/* ==========================================
   RESET Y ESTILOS GLOBALES
   ========================================== */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #000000 0%, #1a1205 25%, #2d2410 50%, #4a3b1e 75%, #6b5424 90%, #8b6f30 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding-top: 210px;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ==========================================
   HEADER / NAVBAR
   ========================================== */


.navbar {
    background-color: #000000;
    background-image: url('../images/header-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.8);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}


.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}


.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.9);
}


.navbar.scrolled .logo img {
    height: 80px;
    transition: height 0.3s ease;
}


.navbar .navbar-content {
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}


.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 3;
}


.logo img {
    height: 150px;
    width: auto;
}


.logo span {
    color: #ffd700;
    font-size: 40px;
    font-weight: 700;
}


.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
    position: relative;
    z-index: 3;
}


.nav-links a {
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 16px;
}


.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 3px 10px rgba(225, 48, 108, 0.4);
}


.instagram-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(225, 48, 108, 0.6);
}


.whatsapp-btn {
    background: #25D366;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.4);
}


.whatsapp-btn:hover {
    background: #1fb855;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.6);
}


.admin-btn {
    background: #666;
    color: white;
    box-shadow: 0 3px 10px rgba(102, 102, 102, 0.4);
}


.admin-btn:hover {
    background: #555;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(102, 102, 102, 0.6);
}


/* Versión autenticado */
.admin-btn.authenticated {
    background: #ffd700;
    color: #000;
}



/* ==========================================
   MAIN CONTENT
   ========================================== */


main {
    padding: 40px 20px;
    min-height: 70vh;
}


.catalogo-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}


/* ==========================================
   FILTROS
   ========================================== */


.filtros-mobile-header {
    display: none;
}


.btn-filtros-mobile {
    display: none;
}


.filtros-titulo-desktop {
    display: block;
}


.filtros-header-mobile {
    display: none;
}


.filtros {
    background: #1f1f1f;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    border: 1px solid #333;
}


.filtros h3 {
    margin-bottom: 20px;
    color: #ffd700;
}


.filtro-grupo {
    margin-bottom: 25px;
}


.filtro-grupo h4 {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
}


.filtro-btn {
    display: block;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    text-decoration: none;
    color: #ddd;
    transition: all 0.3s;
}


.filtro-btn:hover,
.filtro-btn.active {
    background: #ffd700;
    border-color: #ffd700;
    color: #1a1a1a;
}


.limpiar-filtros {
    display: block;
    text-align: center;
    padding: 10px;
    background: #ff4444;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 20px;
}


/* ==========================================
   GRID DE CASCOS
   ========================================== */


.cascos-grid h2 {
    margin-bottom: 30px;
    color: #ffd700;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 1px;
}


.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}


.casco-card {
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}


.casco-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}


.casco-card a {
    text-decoration: none;
    color: inherit;
}


/* Badges */
.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}


.badge-nuevo {
    background: #28a745;
    color: white;
}


.badge-usado {
    background: #ffc107;
    color: #333;
}


.badge-destacado {
    top: 45px;
    background: #ff6b6b;
    color: white;
}


/* Imagen del casco */
.casco-imagen {
    width: 100%;
    height: 350px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 15px;
}


.casco-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}


.sin-imagen {
    color: #999;
    font-size: 14px;
}


/* Info del casco */
.casco-info {
    padding: 15px;
    background: #2a2a2a;
}


.casco-info h3 {
    color: #ffd700;
    font-size: 18px;
    margin-bottom: 5px;
}


.modelo {
    color: #f0c040;
    font-size: 14px;
    margin-bottom: 10px;
}


.talle, .color {
    font-size: 13px;
    color: #d0d0d0;
    margin: 3px 0;
}


.precio {
    color: #28a745;
    font-size: 24px;
    font-weight: bold;
    margin-top: 10px;
}

.precio-etiqueta {
    font-size: 11px;
    color: #dddcdc;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 2px 0 6px 0;
    text-transform: uppercase;
}

.cuotas-card {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.precio-cuotas {
    font-size: 13px;
    color: #dddcdc;
    font-weight: 700;
    margin: 0;
    display: block;
}



/* Sin resultados */
.sin-resultados {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
}


.sin-resultados p {
    color: #666;
    margin-bottom: 20px;
}


.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #ffd700;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}


/* ==========================================
   VISTA DE PRODUCTO INDIVIDUAL
   ========================================== */


.breadcrumb {
    margin-bottom: 30px;
}


.breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffd700;
    color: #000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}


.breadcrumb a:hover {
    background: #000;
    color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}


.producto-detalle {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


.producto-contenido {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}


/* Galería de imágenes */
.producto-galeria {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.imagen-principal {
    width: 100%;
    height: 450px;
    background: #1f1f1f;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px solid #3a3a3a;
    cursor: zoom-in;
    transition: border-color 0.3s;
}


.imagen-principal:hover {
    border-color: #ffd700;
}


.imagen-principal img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}


.sin-imagen-grande {
    color: #999;
    font-size: 18px;
    text-align: center;
}


.imagenes-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}


.thumbnail {
    width: 100%;
    height: 110px;
    object-fit: contain;
    background: #1f1f1f;
    border: 2px solid #3a3a3a;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 8px;
}


.thumbnail:hover {
    border-color: #ffd700;
    transform: scale(1.05);
}


.thumbnail.active {
    border-color: #ffd700;
    border-width: 3px;
}


/* Información del producto */
.producto-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.producto-info h1 {
    color: #ffd700;
    font-size: 36px;
    font-weight: 700;
}



.badges-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}


.badge-grande {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}


.modelo-titulo {
    color: #f0c040;
    font-size: 24px;
    font-weight: normal;
    margin-top: -10px;
}


.precio-grande {
    color: #28a745;
    font-size: 42px;
    font-weight: bold;
    margin: 10px 0;
}


.especificaciones,
.descripcion {
    border-top: 1px solid #3a3a3a;
    padding-top: 20px;
}


.especificaciones h3,
.descripcion h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 18px;
}


.especificaciones ul {
    list-style: none;
    padding: 0;
}


.especificaciones li {
    padding: 8px 0;
    color: #d0d0d0;
    font-size: 16px;
}


.especificaciones strong {
    color: #ffffff;
}


.disponible {
    color: #28a745;
    font-weight: bold;
}


.no-disponible {
    color: #dc3545;
    font-weight: bold;
}


.descripcion p {
    color: #d0d0d0;
    line-height: 1.6;
    font-size: 16px;
}


/* ==========================================
   BOTONES DE PRODUCTO
   ========================================== */


/* Botón Ver Publicación en Galería */
.btn-instagram-post-galeria {
    display: block;
    width: 100%;
    padding: 16px 24px;
    margin-top: 5px;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.3s;
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(131, 58, 180, 0.5);
}


.btn-instagram-post-galeria:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(131, 58, 180, 0.7);
}



/* Botones en producto-info */
.botones-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #3a3a3a;
}


.botones-info .btn-instagram,
.botones-info .btn-whatsapp {
    display: block;
    padding: 16px 22px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.3s;
}


.botones-info .btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}


.botones-info .btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.4);
}


.botones-info .btn-whatsapp {
    background: #25D366;
    color: white;
}


.botones-info .btn-whatsapp:hover {
    background: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}


/* ==========================================
   LIGHTBOX
   ========================================== */



.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 40px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}


.lightbox-content {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoom 0.3s ease;
}


@keyframes zoom {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #ffd700;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s;
}


.lightbox-close:hover {
    color: #fff;
    transform: scale(1.1);
}


.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 215, 0, 0.8);
    color: #000;
    border: none;
    font-size: 60px;
    padding: 25px 35px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10000;
    font-weight: bold;
    border-radius: 8px;
}


.lightbox-nav:hover {
    background-color: #ffd700;
    transform: translateY(-50%) scale(1.1);
}


.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }


.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffd700;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: bold;
}


/* ==========================================
   FOOTER
   ========================================== */


footer {
    background: #1a1a1a;
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: 60px;
}


footer a {
    color: #ffd700;
    text-decoration: none;
}


/* ==========================================
   OVERLAY FILTROS MÓVILES
   ========================================== */


.filtros-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
}


.filtros-overlay.activo {
    display: block;
}


/* ==========================================
   RESPONSIVE - TABLET/MÓVIL
   ========================================== */


@media (max-width: 768px) {
    /* Body */
    body {
        padding-top: 210px;
    }
   
    /* Header */
    .navbar {
        padding: 10px 0;
    }
   
    .navbar .navbar-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0 15px !important;
    }
   
    .logo {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
   
    .logo img {
        height: 100px !important;
    }
   
    .logo span {
        font-size: 30px;
    }
   
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
   
    .nav-links a {
        padding: 10px 16px !important;
        font-size: 13px !important;
        flex: 1 !important;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
   
    /* Filtros móviles */
    .filtros-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }
   
    .filtros-mobile-header h2 {
        margin: 0;
    }
   
    .btn-filtros-mobile {
        display: inline-block;
        background: #ffd700;
        color: #000;
        border: none;
        padding: 12px 20px;
        border-radius: 8px;
        font-weight: 700;
        font-size: 16px;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    }
   
    .btn-filtros-mobile:active {
        transform: scale(0.95);
    }
   
    .filtros-titulo-desktop {
        display: none;
    }
   
    .filtros {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: #1f1f1f;
        z-index: 9999;
        overflow-y: auto !important;      /* Forzar scroll vertical */
        overflow-x: hidden;               /* Sin scroll horizontal */
        -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
        padding: 20px;
        padding-bottom: 50px;              /* Espacio extra abajo */
    }


   
    .filtros.abierto {
        left: 0;
    }
   
    .filtros-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 2px solid #ffd700;
    }
   
    .filtros-header-mobile h3 {
        margin: 0;
        font-size: 20px;
    }
   
    .btn-cerrar-filtros {
        background: none;
        border: none;
        color: #ffd700;
        font-size: 35px;
        cursor: pointer;
        padding: 0;
        line-height: 1;
        width: 35px;
        height: 35px;
    }
   
    /* Catálogo */
    .catalogo-wrapper {
        display: block;
    }
   
    .cascos-grid h2 {
        display: none;
    }
   
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
   
    .casco-card {
        font-size: 14px;
    }
   
    .casco-imagen {
        height: 45vw;
        max-height: 250px;
    }
   
    .precio {
        font-size: 20px;
    }
   
    /* Vista producto */
    .producto-contenido {
        grid-template-columns: 1fr;
        gap: 20px;
    }
   
    .breadcrumb a {
        font-size: 14px;
        padding: 10px 16px;
    }
   
    .imagen-principal {
        height: 300px;
    }
   
    .imagenes-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
   
    .thumbnail {
        height: 70px;
    }
   
    .btn-instagram-post-galeria {
        padding: 14px 20px;
        font-size: 15px;
    }
   
    .producto-info h1 {
        font-size: 28px;
    }


   
    .modelo-titulo {
        font-size: 20px;
    }
   
    .precio-grande {
        font-size: 32px;
    }
   
    .especificaciones,
    .descripcion {
        font-size: 14px;
    }
   
    .botones-info {
        grid-template-columns: 1fr;
    }
   
    /* Lightbox */
    .lightbox-nav {
        font-size: 40px;
        padding: 15px 20px;
    }
   
    .lightbox-prev {
        left: 5px;
    }
   
    .lightbox-next {
        right: 5px;
    }
   
    .lightbox-close {
        font-size: 35px;
        right: 15px;
        top: 15px;
    }
   
    .lightbox-counter {
        font-size: 14px;
        bottom: 15px;
    }
}


/* ==========================================
   RESPONSIVE - MÓVILES PEQUEÑOS
   ========================================== */


@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
    }


    .casco-imagen {
        height: 75vw;
        max-height: 340px;
        padding: 10px;
    }
   
    .logo img {
        height: 100px !important;
    }
   
    .logo span {
        font-size: 30px;
    }
   
    .cascos-grid h2 {
        font-size: 32px;
    }
}
#lightbox {
    display: none !important;
}


#lightbox.show {
    display: flex !important;
}
/* ==========================================
   CARRITO
   ========================================== */

.carrito-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.carrito-titulo {
    color: #ffd700;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
}

.carrito-contenido {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}

.carrito-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.carrito-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    align-items: center;
    background: #2a2a2a;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #3a3a3a;
}

.carrito-item-imagen {
    width: 100px;
    height: 100px;
    background: #1f1f1f;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carrito-item-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.sin-imagen-carrito {
    color: #666;
    font-size: 12px;
    text-align: center;
}

.carrito-item-info h3 {
    color: #ffd700;
    font-size: 18px;
    margin-bottom: 4px;
}

.carrito-item-info .modelo {
    color: #f0c040;
    font-size: 14px;
    margin-bottom: 6px;
}

.carrito-item-info .talle,
.carrito-item-info .color {
    color: #d0d0d0;
    font-size: 13px;
    margin: 2px 0;
}

.precio-carrito {
    color: #28a745;
    font-size: 22px;
    font-weight: bold;
    margin-top: 8px;
}

.form-quitar {
    display: flex;
    align-items: center;
}

.btn-quitar {
    background: none;
    border: 2px solid #ff4444;
    color: #ff4444;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-quitar:hover {
    background: #ff4444;
    color: white;
    transform: scale(1.1);
}

.btn-eliminar-pedido {
    padding: 10px 20px;
    background: none;
    color: #dc3545;
    border: 2px solid #dc3545;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    margin-left: auto;
}

.btn-eliminar-pedido:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-1px);
}


/* Resumen carrito */
.carrito-resumen {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 24px;
    border: 1px solid #3a3a3a;
    position: sticky;
    top: 220px;
}

.carrito-resumen h3 {
    color: #ffd700;
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #3a3a3a;
}

.resumen-linea {
    display: flex;
    justify-content: space-between;
    color: #d0d0d0;
    margin-bottom: 12px;
    font-size: 16px;
}

.total-final {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    border-top: 1px solid #3a3a3a;
    padding-top: 12px;
    margin-top: 12px;
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 16px;
    background: #ffd700;
    color: #000;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 17px;
    margin-top: 20px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-checkout:hover {
    background: #ffcc00;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-seguir {
    display: block;
    text-align: center;
    color: #d0d0d0;
    text-decoration: none;
    margin-top: 12px;
    font-size: 14px;
    transition: color 0.3s;
}

.btn-seguir:hover {
    color: #ffd700;
}

/* Carrito vacío */
.carrito-vacio {
    text-align: center;
    padding: 80px 20px;
    background: #2a2a2a;
    border-radius: 10px;
    color: #d0d0d0;
}

.carrito-vacio p {
    font-size: 20px;
    margin-bottom: 24px;
}


/* ==========================================
   CHECKOUT
   ========================================== */

.checkout-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.checkout-titulo {
    color: #ffd700;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
}

.checkout-contenido {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-seccion {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 24px;
    border: 1px solid #3a3a3a;
}

.form-seccion h3 {
    color: #ffd700;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #3a3a3a;
}

.form-fila {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-grupo {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-grupo:last-child {
    margin-bottom: 0;
}

.form-grupo label {
    color: #d0d0d0;
    font-size: 14px;
    font-weight: 600;
}

.form-grupo input {
    padding: 12px 14px;
    background: #1f1f1f;
    border: 1px solid #444;
    border-radius: 6px;
    color: #ffffff;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

.form-grupo input:focus {
    outline: none;
    border-color: #ffd700;
}

.form-grupo input::placeholder {
    color: #666;
}

.opcional {
    color: #888;
    font-weight: normal;
    font-size: 12px;
}

/* Opciones de entrega */
.entrega-opciones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.entrega-opcion {
    cursor: pointer;
}

.entrega-opcion input[type="radio"] {
    display: none;
}

.entrega-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: #1f1f1f;
    border: 2px solid #444;
    border-radius: 8px;
    transition: all 0.3s;
}

.entrega-card strong {
    color: #ffffff;
    font-size: 15px;
}

.entrega-card small {
    color: #888;
    font-size: 12px;
}

.entrega-opcion input[type="radio"]:checked + .entrega-card {
    border-color: #ffd700;
    background: #2d2d1a;
}

#datos-envio {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #3a3a3a;
}

/* Resumen lateral checkout */
.checkout-resumen {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 24px;
    border: 1px solid #3a3a3a;
    position: sticky;
    top: 220px;
}

.checkout-resumen h3 {
    color: #ffd700;
    font-size: 20px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #3a3a3a;
}

.resumen-item {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #333;
}

.resumen-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #1f1f1f;
    border-radius: 6px;
    padding: 4px;
}

.resumen-item p {
    color: #d0d0d0;
    font-size: 13px;
    margin: 2px 0;
}

.precio-resumen {
    color: #28a745 !important;
    font-weight: bold !important;
    font-size: 15px !important;
}

.resumen-total {
    display: flex;
    justify-content: space-between;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    padding-top: 12px;
}


/* ==========================================
   MÉTODOS DE PAGO
   ========================================== */

.pago-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.pago-titulo {
    color: #ffd700;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
}

.metodos-pago {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.metodo-card {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 36px 24px;
    border: 2px solid #3a3a3a;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    justify-content: space-between; 
    transition: border-color 0.3s;
}

.metodo-card:hover {
    border-color: #ffd700;
}

.metodo-icono {
    font-size: 48px;
}

.metodo-card h3 {
    color: #ffd700;
    font-size: 20px;
}

.metodo-card p {
    color: #d0d0d0;
    font-size: 14px;
    text-align: center;
    line-height: 1.5;
}

.btn-metodo {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.btn-mp {
    background: #009ee3;
    color: white;
}

.btn-mp:hover {
    background: #007ab8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 158, 227, 0.4);
}

.btn-transferencia {
    background: #ffd700;
    color: #000;
}

.btn-transferencia:hover {
    background: #ffcc00;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.total-pago {
    color: #d0d0d0;
    font-size: 20px;
    margin-bottom: 20px;
}

.total-pago strong {
    color: #28a745;
    font-size: 28px;
}

.btn-volver {
    display: inline-block;
    color: #d0d0d0;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 28px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-volver:hover {
    color: #ffd700;
    border-color: #ffd700;
    background: #1f1f1f;
}


/* ==========================================
   PÁGINAS DE RESULTADO / TRANSFERENCIA
   ========================================== */

.resultado-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.resultado-card {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    border: 1px solid #3a3a3a;
}

.resultado-exito {
    border-color: #28a745;
}

.resultado-fallo {
    border-color: #dc3545;
}

.resultado-pendiente {
    border-color: #ffc107;
}

.resultado-icono {
    font-size: 64px;
    margin-bottom: 16px;
}

.resultado-card h2 {
    color: #ffd700;
    font-size: 32px;
    margin-bottom: 8px;
}

.resultado-subtitulo {
    color: #d0d0d0;
    font-size: 16px;
    margin-bottom: 24px;
}

.resultado-subtitulo strong {
    color: #ffffff;
}

.pedido-resumen {
    background: #1f1f1f;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.pedido-resumen p {
    color: #d0d0d0;
    font-size: 15px;
    padding: 4px 0;
}

.instruccion {
    color: #d0d0d0;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.btn-wsp-resultado {
    display: block;
    padding: 18px 24px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 14px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-wsp-resultado:hover {
    background: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.btn-reintentar {
    display: block;
    padding: 14px;
    background: #3a3a3a;
    color: #ffd700;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.btn-reintentar:hover {
    background: #444;
}

.btn-volver-inicio {
    display: block;
    color: #888;
    text-decoration: none;
    font-size: 14px;
    margin-top: 8px;
    transition: color 0.3s;
}

.btn-volver-inicio:hover {
    color: #ffd700;
}

/* Transferencia */
.transferencia-datos {
    background: #1f1f1f;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.transferencia-datos h3 {
    color: #ffd700;
    font-size: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.dato-bancario {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #2a2a2a;
}

.dato-bancario:last-child {
    border-bottom: none;
}

.dato-label {
    color: #888;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.dato-valor {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-align: right;
}

.total-transferencia .dato-valor {
    color: #28a745;
    font-size: 20px;
}


/* ==========================================
   BOTONES ESTADO CASCO (producto.html)
   ========================================== */

.btn-agregar-carrito {
    display: block;
    width: 100%;
    padding: 18px;
    background: #ffd700;
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-agregar-carrito:hover {
    background: #ffcc00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.btn-reservado {
    display: block;
    width: 100%;
    padding: 18px;
    background: #3a3a00;
    color: #ffc107;
    border: 2px solid #ffc107;
    border-radius: 10px;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
}

.btn-no-disponible {
    display: block;
    width: 100%;
    padding: 18px;
    background: #3a0000;
    color: #dc3545;
    border: 2px solid #dc3545;
    border-radius: 10px;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
}

/* Carrito en navbar */
.nav-carrito {
    background: #ffd700;
    color: #000 !important;
    font-weight: 700 !important;
    border-radius: 8px;
}

.nav-carrito:hover {
    background: #ffcc00 !important;
    transform: translateY(-2px);
}


/* ==========================================
   ADMIN PEDIDOS
   ========================================== */

.admin-pedidos-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h2 {
    color: #ffd700;
    font-size: 32px;
}

.filtros-estado {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filtro-estado-btn {
    padding: 8px 20px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 20px;
    color: #d0d0d0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.filtro-estado-btn:hover,
.filtro-estado-btn.active {
    background: #ffd700;
    border-color: #ffd700;
    color: #000;
    font-weight: 700;
}

.pedidos-lista {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pedido-card {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #444;
}

.pedido-card.estado-pendiente {
    border-left-color: #ffc107;
}

.pedido-card.estado-confirmado {
    border-left-color: #28a745;
}

.pedido-card.estado-rechazado {
    border-left-color: #dc3545;
}

.pedido-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pedido-id {
    color: #ffd700;
    font-size: 20px;
    font-weight: 700;
}

.badge-estado-pendiente {
    background: #ffc107;
    color: #000;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.badge-estado-confirmado {
    background: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.badge-estado-rechazado {
    background: #dc3545;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.pedido-fecha {
    color: #888;
    font-size: 13px;
    margin-left: auto;
}

.pedido-metodo {
    background: #3a3a3a;
    color: #d0d0d0;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.pedido-body {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 16px;
}

.pedido-cliente p,
.pedido-entrega p {
    color: #d0d0d0;
    font-size: 14px;
    margin: 3px 0;
}

.pedido-cliente strong {
    color: #ffffff;
}

.pedido-item-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.pedido-item-mini img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: #1f1f1f;
    border-radius: 6px;
    padding: 4px;
}

.pedido-item-mini span {
    color: #d0d0d0;
    font-size: 13px;
}

.pedido-item-mini span:last-child {
    color: #28a745;
    font-weight: bold;
    margin-left: auto;
}

.pedido-total {
    color: #ffffff;
    font-size: 16px;
    margin-top: 8px;
}

.pedido-acciones {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #3a3a3a;
}

.btn-confirmar {
    padding: 10px 24px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.btn-confirmar:hover {
    background: #218838;
    transform: translateY(-1px);
}

.btn-rechazar {
    padding: 10px 24px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.btn-rechazar:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.sin-pedidos {
    text-align: center;
    padding: 60px;
    background: #2a2a2a;
    border-radius: 10px;
    color: #888;
    font-size: 18px;
}


/* ==========================================
   RESPONSIVE NUEVAS SECCIONES
   ========================================== */

@media (max-width: 768px) {
    .carrito-contenido,
    .checkout-contenido {
        grid-template-columns: 1fr;
    }

    .carrito-resumen,
    .checkout-resumen {
        position: static;
    }

    .metodos-pago {
        grid-template-columns: 1fr;
    }

    .form-fila {
        grid-template-columns: 1fr;
    }

    .entrega-opciones {
        grid-template-columns: 1fr;
    }

    .pedido-body {
        grid-template-columns: 1fr;
    }

    .pedido-header {
        gap: 10px;
    }

    .pedido-fecha {
        margin-left: 0;
        width: 100%;
    }

    /* Vista producto mobile */
    .imagen-principal {
        height: 80vw;
        max-height: 500px;
        padding: 8px;
    }

    .imagen-principal img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    /* Vista producto */
    .producto-detalle {
        padding: 15px;
    }

    .producto-contenido {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .imagen-principal {
        height: 320px;
        padding: 10px;
    }

    .imagenes-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .thumbnail {
        height: 75px;
        padding: 4px;
    }
}

.bloque-precios {
    margin: 15px 0;
}

.precio-efectivo {
    margin-bottom: 10px;
}

.precio-tarjeta {
    background: #f8f9fa;
    border-left: 3px solid #ffd700;
    padding: 10px 15px;
    border-radius: 4px;
    flex-direction: column;
    display: flex;
    gap: 6px;
}

.precio-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}




