/* ========================================
   RESET Y VARIABLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f5f5f5;
    --accent-color: #ffc107;
    --text-dark: #333;
    --text-light: #fff;
    --transition-speed: 0.4s;
    --header-height: 80px;
    /* Colores personalizables para el header transparente */
    --header-icon-color: #fff;
    --header-logo-filter: brightness(0) invert(1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: #fff;
}
/* ========================================
   HEADER - TRANSPARENTE CON ANIMACIÓN /INICIO HEADER/
   ======================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: all var(--transition-speed) ease;
}


/* ===== CHAT FLOTANTE ===== */
.chat-float {
    fill: white;
    width: 50px;
    height: 50px;
    padding: 3px;
    background-color: #4dc247;
    border-radius: 50%;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    box-shadow: 2px 2px 11px rgba(0,0,0,0.7);
    position: fixed;
    bottom: 20px;
    right : 20px;
    z-index: 10;
}

.chat-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px #4dc247;
}

.chat-icon {
    animation: pulse 2s infinite;
}


/* Header cuando se hace scroll */
#main-header.scrolled {
    background-color: transparent;
}

#main-header.scrolled .header-top {
    padding: 10px 30px;
}

/*  El logo NO cambia de color al hacer scroll
#main-header.scrolled .logo-single {
     Mantiene su color original
} */

#main-header.scrolled .btn-img img,
#main-header.scrolled .icon-link img {
    filter: brightness(0);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    transition: all var(--transition-speed) ease;
    position: relative; /* Necesario para el centrado absoluto del logo */
}

/* Botón menú */
.btn-img {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
}

.btn-img:hover {
    transform: scale(1.1);
}

.btn-img img {
    width: 30px;
    height: 30px;
    filter: var(--header-icon-color);
    transition: filter var(--transition-speed) ease;
}



/* Logo */
.header{
    position: fixed;
    top:0;
    left:0;
    width:100%;
    padding:20px 40px;
    transition: all 0.3s ease;
    z-index:1000;
}

.header.scrolled{
    background-color: transparent;
}

.logo {
    /* Centrado absoluto para asegurar que no se mueva */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10; /* Asegurar que esté sobre otros elementos */
}

.logo-single {
    height: auto;
    width: 105px;         /* <--  */
    object-fit: contain;  /* <-- */
    transition: all var(--transition-speed) ease;
    display: block;
}

/* Añadimos una clase temporal para el efecto de parpadeo suave al cambiar */
.logo-fade {
    opacity: 0;
    transform: scale(0.95);
}

/* Iconos derecha */
.right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-link {
    position: relative;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.icon-link:hover {
    transform: scale(1.1);
}

.icon-link img {
    width: 28px;
    height: 28px;
    filter: var(--header-icon-color);
    transition: filter var(--transition-speed) ease;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: var(--text-dark);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* ========================================
   OVERLAY MENÚ HAMBURGUESA (DROP STYLE)
======================================== */

/* 1. Asegurar que el menú de hamburguesa esté por encima de TODO */
.overlay-coleccion {
    position: fixed;
    inset: 0;
    z-index: 999999 !important; /* Un valor muy alto para ganar a cualquier otro elemento */
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    visibility: hidden;
    transform: translateY(-100%);
    transition: transform .7s cubic-bezier(.77,0,.18,1), visibility 0s linear .7s;
}

/* 2. Cuando el menú está activo */
.overlay-coleccion.active {
    visibility: visible;
    transform: translateY(0);
    transition: transform .7s cubic-bezier(.77,0,.18,1);
}

/* 3. Ajustar el contenedor del producto para que no compita con el menú */
.product-wrapper {
    position: relative;
    z-index: 1; /* Un valor bajo para que el menú lo tape sin problemas */
}

/* 4. El header también debe estar por debajo del overlay cuando este se abre */
#main-header {
    z-index: 1000;
}




.overlay-coleccion.active {
    visibility: visible;
    transform: translateY(0);
    transition: transform .7s cubic-bezier(.77,0,.18,1);
    z-index: 999999 !important;
}

.overlay-coleccion {
    overflow-y: auto;
    overscroll-behavior: contain;
}


/* ========================================
   CONTENIDO OVERLAY
======================================== */

.overlay-contenido {
    padding: 80px 40px;
    max-width: 1100px;
    margin: 0 auto;

    opacity: 0;
    transform: translateY(-30px);
    transition: opacity .5s ease .3s,
                transform .5s ease .3s;
}
/* 🔥 CUANDO EL OVERLAY ESTÁ ABIERTO */
body.overlay-open #main-header {
    pointer-events: none;
}

.overlay-coleccion {
    pointer-events: auto;
}


.overlay-coleccion.active .overlay-contenido {
    opacity: 1;
    transform: translateY(0);
}


@keyframes overlayFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   BOTÓN CERRAR
======================================== */

.cerrar-overlay {
    position: absolute;
    top: 20px;
    right: 30px;

    background: none;
    border: none;
    color: var(--text-light);
    font-size: 50px;
    cursor: pointer;
    line-height: 1;

    transition: transform .3s ease;
}

.cerrar-overlay:hover {
    transform: rotate(90deg);
}

/* ========================================
   TÍTULO
======================================== */

.titulo-overlay {
    color: var(--text-light);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

/* ========================================
   GRID CATEGORÍAS
======================================== */

.grid-coleccion {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* ========================================
   CARDS PROFESIONALES
======================================== */

.grid-coleccion .card {
    text-decoration: none;
    color: var(--text-light);
    cursor: pointer;

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.08),
        rgba(255,255,255,0.02)
    );
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.12);

    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);

    opacity: 0;
    transform: translateY(30px);
}

.grid-coleccion .card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.grid-coleccion .card {
    opacity: 0;
    transform: translateY(40px);
    transition: all .6s ease;
}

.overlay-coleccion.active .card {
    opacity: 1;
    transform: translateY(0);
}

.grid-coleccion .card:nth-child(1) { transition-delay: .2s; }
.grid-coleccion .card:nth-child(2) { transition-delay: .3s; }
.grid-coleccion .card:nth-child(3) { transition-delay: .4s; }
.grid-coleccion .card:nth-child(4) { transition-delay: .5s; }


/* estado activo real */
.overlay-coleccion.active .card {
    opacity: 1;
    transform: translateY(0);
}

/* delays limpios */
.overlay-coleccion.active .card:nth-child(1) { transition-delay: .1s; }
.overlay-coleccion.active .card:nth-child(2) { transition-delay: .2s; }
.overlay-coleccion.active .card:nth-child(3) { transition-delay: .3s; }
.overlay-coleccion.active .card:nth-child(4) { transition-delay: .4s; }


/* Delay elegante */
.grid-coleccion .card:nth-child(1) { animation-delay: .1s; }
.grid-coleccion .card:nth-child(2) { animation-delay: .2s; }
.grid-coleccion .card:nth-child(3) { animation-delay: .3s; }
.grid-coleccion .card:nth-child(4) { animation-delay: .4s; }

/* Hover premium */
.grid-coleccion .card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.45);
}

/* ========================================
   IMAGEN
======================================== */

.grid-coleccion .card img {
    width: 100%;
    height: 250px;
    object-fit: cover;

    filter: brightness(0.9);
    transition: transform .5s ease, filter .5s ease;
}

.grid-coleccion .card:hover img {
    transform: scale(1.15);
    filter: brightness(1);
}

/* ========================================
   TEXTO
======================================== */

.grid-coleccion .card h3 {
    padding: 20px;
    text-align: center;

    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* ========================================
   BOTÓN VER
======================================== */

.btn-ver {
    width: 100%;
    padding: 15px;

    background: linear-gradient(
        135deg,
        var(--accent-color),
        #ffb300
    );
    color: var(--text-dark);

    border: none;
    font-weight: bold;
    cursor: pointer;

    text-transform: uppercase;
    letter-spacing: 1px;

    transition: transform .3s ease, box-shadow .3s ease;
}

.btn-ver:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,179,0,0.35);
}

/*fin header*/

/* ===== RESET Y CONFIGURACIÓN GENERAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/* ===== ANIMACIONES KEYFRAMES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    padding: 110px 28px 18px;
    font-size: 0.88rem;
    color: #666;
    animation: fadeIn 0.8s ease-out;
}

.breadcrumb a {
    color: #ffc107;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #111;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.product-wrapper {
    padding: 0 0 64px;
    animation: fadeIn 0.6s ease-out;
    background-color: #fff;
}

.product-container {
    margin: 30px;
}

.top-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: flex-start;
    padding: 0 0 48px;
}

/* ===== COLUMNA IZQUIERDA: GALERÍA ===== */
.left-column {
    animation: slideInLeft 1s ease-out 0.2s both;
    position: relative;
    z-index: 30;
}

/* zoom-wrapper: thumbs side + main image side by side */
.zoom-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 14px;
    align-items: flex-start;
}

/* --- ZOOM --- */
#zoom-result {
  position: absolute;
  right: -320px;
  top: 0;
  width: 300px;
  height: 300px;
  border: 2px solid #ddd;
  background-repeat: no-repeat;
  display: none;
}

/* Contenedor lateral de miniaturas con flechas arriba/abajo */
.thumbs-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.thumbs-nav-btn {
    background: #f3f3f3;
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.thumbs-nav-btn:hover {
    background: #ffc107;
    color: #111;
    border-color: #ffc107;
}

.product-main-media {
    position: relative;
    width: 100%;
    display: grid;
    place-items: center;
    z-index: 30;
    border-radius: 16px;
    overflow: hidden;
    background: #f7f7f7;
}

#producto-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    background: #f7f7f7;
    cursor: zoom-in;
    transition: transform 0.4s ease;
}

#producto-img:hover {
    transform: scale(1.02);
}



#zoom-result {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    transform: none;
    background-repeat: no-repeat;
    background-size: 200%;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    border: 2px solid rgba(255, 193, 7, 0.75);
    z-index: 9999;
    pointer-events: none;
}

/* Miniaturas */
.img-thumbs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0;
    scroll-behavior: smooth;
    padding: 4px 0;
    max-height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.img-thumbs::-webkit-scrollbar {
    display: none;
}

.img-thumbs a {
    flex-shrink: 0;
    display: block;
}

.product-gallery {
    width: 88px;
    height: 98px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    opacity: 0.65;
    background: #f0f0f0;
}

.product-gallery:hover {
    opacity: 1;
    border-color: #ddd;
}

.product-gallery.active {
    border-color: #ffc107;
    opacity: 1;
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.32);
}

/* ===== COLUMNA DERECHA: INFORMACIÓN ===== */
.right-column {
    animation: slideInRight 1s ease-out 0.2s both;
    position: relative;
    z-index: 1;
    padding-top: 8px;
}

/* Etiqueta de categoría encima del título */
.product-category {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #ffc107;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-title {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    color: #111;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.price-container {
    margin-bottom: 14px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #111;
}

/* Badge de envío */
.shipping-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #444;
}

/* Color label con nombre dinámico */
#color-nombre-label {
    font-weight: 400;
    color: transparent;
}

/* Fila talla + guía */
.size-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

.size-guide-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: #ffc107;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed #ffc107;
    transition: opacity 0.2s ease;
}

.size-guide-link:hover {
    opacity: 0.65;
}

.cerrar {
  position: absolute;
  top: 19px;
  right: 30px;
  font-size: 25px;
  cursor: pointer;
}

@keyframes aparecer {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal {
    display: flex;
    position: fixed;
    inset: 0;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 99999;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-contenido {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    position: relative;
    bottom: 150px;
    right: 40px;
}

.modal-contenido img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

/* Trust badges */
.trust-badges {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #555;
    font-size: 0.75rem;
    font-weight: 600;
    flex: 1;
    min-width: 80px;
    text-align: center;
}

.trust-badge svg {
    color: #888;
}

/* ===== OPCIONES DE PRODUCTO ===== */
.product-options {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.option-group {
    animation: fadeInUp 0.8s ease-out both;
}

.option-group:nth-child(1) {
    animation-delay: 0.6s;
}

.option-group:nth-child(2) {
    animation-delay: 0.7s;
}

.option-group:nth-child(3) {
    animation-delay: 0.8s;
}

.option-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #333;
}

.color-options,
.size-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.color-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.14);
    cursor: pointer;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.color-circle:hover,
.color-circle.selected {
    transform: translateY(-2px) scale(1.05);
    border-color: #ffc107;
    box-shadow: 0 10px 28px rgba(255, 193, 7, 0.28);
}

.color-circle .checkmark {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    opacity: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.color-circle.selected .checkmark {
    opacity: 1;
}

.size-box {
    min-width: 46px;
    height: 42px;
    padding: 0 16px;
    border: 1px solid rgb(255, 193, 7);
    border-radius: 12px;
    background: #fff;
    color: #111;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.size-box:hover,
.size-box.selected {
    background: #111;
    color: #fff;
    border-color: #111;
    transform: translateY(-2px);
}

.quantity-options {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 5px;
    border-radius: 999px;
    background: #f3f3f3;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.qty-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #111;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.qty-btn:hover {
    background: #ffc107;
    transform: scale(1.04);
}

.quantity-options input {
    width: 48px;
    border: none;
    background: transparent;
    text-align: center;
    color: #111;
    font-size: 1rem;
    font-weight: 900;
    outline: none;
}

.action-buttons {
    display: grid;
    gap: 12px;
    margin-bottom: 34px;
}

.btn-add,
.btn-buy {
    width: 100%;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 14px;
    border: 1px solid #111;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-add {
    background: #111;
    color: #fff;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.btn-buy {
    background: #ffc107;
    color: #111;
    border-color: #ffc107;
}

.btn-add:hover,
.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.btn-add:disabled,
.btn-buy:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-add.success {
    background: #08a464;
    border-color: #08a464;
}

.btn-icon {
    flex: 0 0 auto;
}

.info-accordion {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    margin: 0 100px;
    width: 80%;
    display: flex;
    flex-direction: column;
    margin-top: 100px;
    
}

.info-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding: 16px 0;
}

.info-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    cursor: pointer;
}

.info-item summary::-webkit-details-marker {
    display: none;
}

.info-item h4 {
    margin: 0;
    color: #333;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.info-item p {
    margin-top: 12px;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.7;
}

.info-item .chevron {
    transition: transform 0.2s ease;
}

.info-item[open] .chevron {
    transform: rotate(180deg);
}

#modal-alerta {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(6px);
    z-index: 400000;
}

.modal-content-alert {
    width: min(360px, 92vw);
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 28px 24px;
    border-radius: 18px;
    background: #fff;
    color: #111;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.modal-content-alert p {
    margin: 0;
    font-weight: 700;
}

.btn-modal {
    border: none;
    border-radius: 12px;
    background: #111;
    color: #fff;
    padding: 11px 22px;
    cursor: pointer;
    font-weight: 900;
}

#fullscreen-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.9);
    z-index: 390000;
    touch-action: none;
}

#fullscreen-overlay img {
    max-width: 96vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 12px;
}

.related-products {
    background: #fff;
    padding: 96px 24px 110px;
}

.section-header {
    max-width: 1380px;
    margin: 0 auto 46px;
    text-align: center;
}

.section-title {
    color: #222;
    font-size: clamp(2.2rem, 4.2vw, 4.4rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 0.95;
}

.title-line {
    width: 94px;
    height: 4px;
    margin: 16px auto 0;
    border-radius: 999px;
    background: #ffc107;
}

.simple-products-grid {
    max-width: 1380px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 330px));
    justify-content: center;
    gap: 42px;
}

.simple-card {
    display: block;
    text-align: center;
}

.simple-img {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 18px;
    background: #f7f7f7;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.simple-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.simple-img .img-back {
    opacity: 0;
}

.simple-card:hover .img-front {
    opacity: 0;
}

.simple-card:hover .img-back {
    opacity: 1;
    transform: scale(1.03);
}

.simple-name {
    max-width: 300px;
    margin: 20px auto 0;
    color: #111;
    font-size: 1.15rem;
    line-height: 1.25;
    font-weight: 900;
    text-transform: lowercase;
}

.simple-price {
    color: #333;
    font-size: 1.06rem;
    margin-top: 8px;
}

@media (max-width: 1180px) {
    .top-section {
        gap: 44px;
    }

    .zoom-wrapper {
        grid-template-columns: 96px minmax(0, 1fr);
        min-height: 540px;
    }

    .product-gallery {
        width: 82px;
        height: 94px;
    }

    #zoom-result {
        border-radius: 18px;
    }

    .product-title {
        font-size: clamp(2rem, 4.5vw, 3.4rem);
    }

    .simple-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(230px, 300px));
        gap: 30px;
    }
}

@media (max-width: 920px) {
    body {
        background: #f0f0f0;
    }

    .product-wrapper {
        padding: 96px 14px 46px;
    }

    .product-container {
        margin: 0 auto;
    }

    .top-section {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 18px;
        border-radius: 22px;
    }

    .breadcrumb {
        padding-top: 8px;
    }

    .zoom-wrapper {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 14px;
        display: grid;
    }

    .product-main-media {
        order: 1;
    }

    #zoom-result {
        display: none !important;
    }

    #producto-img {
        width: 100%;
        max-height: 68vh;
        object-fit: contain;
    }

    .img-thumbs {
        order: 2;
        flex-direction: row;
        justify-content: flex-start;
        max-height: none;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        margin: 0;
        padding: 4px 2px 10px;
    }

    .product-gallery {
        width: 76px;
        height: 76px;
    }

    .main-img-arrow--left {
        left: 10px;
    }

    .main-img-arrow--right {
        right: 10px !important;
    }

    .right-column {
        z-index: 1;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .product-wrapper {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 26px;
    }

    .product-container {
        width: 100%;
    }

    .top-section {
        border-radius: 0;
        box-shadow: none;
        padding: 14px;
        flex-direction: column;
    }
    
    .zoom-wrapper {
        display: grid;
    }

    .product-title {
        font-size: clamp(2rem, 12vw, 3.3rem);
        line-height: 0.98;
        letter-spacing: 0.02em;
    }

    .price {
        font-size: 2rem;
    }

    .product-options {
        gap: 22px;
    }

    .simple-products-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
        gap: 18px;
    }

    .related-products {
        padding: 54px 14px 68px;
    }

    .section-title {
        font-size: clamp(1.8rem, 11vw, 3rem);
        letter-spacing: 0.04em;
    }

    .simple-name {
        font-size: 0.98rem;
    }
}

@media (max-width: 430px) {
    .breadcrumb {
        font-size: 0.78rem;
    }

    .product-gallery {
        width: 64px;
        height: 64px;
    }

    .color-circle {
        width: 32px;
        height: 32px;
    }

    .size-box {
        min-width: 42px;
        height: 38px;
        padding: 0 12px;
    }
}

/* ===== PRODUCTO REFERENCIA IMAGEN 4 ===== */
#main-header,
#main-header.scrolled {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#main-header .btn-img img,
#main-header .icon-link img,
#main-header.scrolled .btn-img img,
#main-header.scrolled .icon-link img {
    filter: brightness(0);
}

.header-top {
    min-height: 74px;
    padding: 12px 30px;
}

.product-wrapper {
    background: #fff;
    padding-bottom: 42px;
}

.product-container {
    width: min(100% - 88px, 1510px);
    margin: 0 auto;
}

.breadcrumb {
    padding: 96px 0 24px;
}

.top-section {
    grid-template-columns: minmax(620px, 1fr) minmax(410px, 470px);
    gap: clamp(46px, 6vw, 76px);
    align-items: start;
    padding-bottom: 26px;
}

.zoom-wrapper {
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 26px;
}

.product-main-media,
#producto-img,
.product-gallery,
.simple-img {
    background: #FCFCFC;
}

.product-main-media {
    min-height: 610px;
    border-radius: 10px;
    box-shadow: none;
}

#producto-img {
    height: 610px;
    aspect-ratio: auto;
    object-fit: contain;
}

#producto-img:hover {
    transform: none;
}

.img-thumbs {
    max-height: 610px;
    gap: 14px;
}

.product-gallery {
    width: 96px;
    height: 104px;
    border-radius: 8px;
    opacity: 0.55;
}

.product-gallery.active {
    opacity: 1;
    border-color: #ffc107;
    box-shadow: none;
}

.main-img-arrow {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.main-img-arrow--left {
    left: 14px;
}

.main-img-arrow--right {
    right: 14px !important;
}

.right-column {
    padding-top: 18px;
}

.product-category {
    color: #ffc107;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
}

.product-title {
    font-size: clamp(2.15rem, 3vw, 3.25rem);
    line-height: 1.02;
    letter-spacing: 0.01em;
    margin-bottom: 20px;
}

.price {
    font-size: 2.2rem;
    line-height: 1;
}

.shipping-badge {
    margin-bottom: 18px;
}

.product-options {
    gap: 22px;
    margin-bottom: 24px;
}

.option-label {
    margin-bottom: 11px;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
}

.size-label-row {
    display: block;
}

.size-options {
    gap: 12px;
}

.size-box {
    min-width: 52px;
    height: 42px;
    border-radius: 6px;
    background: #fff;
    border-color: rgba(0, 0, 0, 0.14);
    color: #222;
}

.size-box:hover,
.size-box.selected {
    background: #fff;
    color: #ffc107;
    border-color: #ffc107;
    transform: none;
}

.size-guide-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-top: 13px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #cfa000;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}

.quantity-options {
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    gap: 8px;
    padding: 0;
}

.qty-btn,
.quantity-options input {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 6px;
    background: #fff;
}

.qty-btn:hover {
    background: #fff;
    border-color: #ffc107;
    transform: none;
}

.action-buttons {
    gap: 12px;
    margin-bottom: 16px;
}

.btn-add,
.btn-buy {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 48px;
    border-radius: 6px;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(0);
    will-change: transform;
}

.btn-add {
    background: #ffc107;
    border-color: #ffc107;
    color: #111;
}

.btn-buy {
    background: #fff;
    border-color: #ffc107;
    color: #111;
}

.btn-add:hover,
.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.14);
}

.btn-add::before,
.btn-buy::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    transform: translateX(-110%) skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    transition: transform 0.62s ease;
}

.btn-add:hover::before,
.btn-buy:hover::before {
    transform: translateX(110%) skewX(-18deg);
}

.btn-add:active,
.btn-buy:active {
    transform: translateY(0) scale(0.985);
}

.btn-add.success {
    animation: btnSuccessPop 0.42s ease both;
}

@keyframes btnSuccessPop {
    0% { transform: scale(1); }
    45% { transform: scale(1.025); }
    100% { transform: scale(1); }
}

.btn-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.btn-add:hover .btn-icon-img,
.btn-buy:hover .btn-icon-img {
    transform: translateX(2px) rotate(-4deg) scale(1.08);
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.trust-badge {
    min-width: 0;
    padding: 0 10px;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    color: #333;
    font-size: 0.74rem;
}

.trust-badge:last-child {
    border-right: 0;
}

.trust-badge img {
    width: 25px;
    height: 25px;
    object-fit: contain;
    opacity: 0.9;
}

.trust-badge img[src=""],
.trust-badge img:not([src]) {
    display: none;
}

.info-accordion {
    width: 100%;
    margin: 4px auto 0;
    border: 1px solid rgba(0, 0, 0, 0.13);
    border-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.info-item {
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.13);
}

.info-item summary {
    min-height: 46px;
    padding: 0 22px;
}

.info-summary-left,
.info-row {
    min-width: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 32px minmax(210px, 250px) minmax(0, 1fr);
    align-items: center;
    column-gap: 18px;
}

.info-summary-left > div {
    display: contents;
}

.info-icon {
    color: #111;
}

.info-item h4 {
    margin: 0;
    color: #222;
    font-size: 0.82rem;
    white-space: nowrap;
}

.info-item .info-preview {
    margin: 0;
    min-width: 0;
    color: #555;
    font-size: 0.84rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-row {
    min-height: 46px;
    padding: 0 22px;
}

.info-item-expandable[open] .info-preview {
    display: none;
}

.info-item-expandable[open] summary {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.info-item > .info-full {
    margin: 0;
    padding: 0 22px 15px 300px;
    color: #444;
    font-size: 0.9rem;
    line-height: 1.55;
}

.modal {
    position: fixed !important;
    inset: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 900000 !important;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal.active .modal-contenido {
    animation: aparecer 0.22s ease both;
}

.modal-contenido {
    position: relative;
    width: min(94vw, 860px);
    max-height: min(90vh, 760px);
    padding: 0;
    bottom: auto;
    right: auto;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

.modal-tallas-header {
    padding: 20px 26px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
}

.modal-tallas-header span {
    display: inline-block;
    margin-bottom: 4px;
    color: #ffc107;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.modal-tallas-header h3 {
    margin: 0;
    color: #111;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 900;
}

.modal-tallas-header p {
    margin: 5px 48px 0 0;
    color: #555;
    font-size: 0.92rem;
}

.cerrar {
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    background: #fff;
    color: #111;
    line-height: 1;
}

.modal-contenido img {
    display: block;
    width: 100%;
    max-height: calc(90vh - 105px);
    padding: 14px;
    object-fit: contain;
    background: #fff;
    border-radius: 0;
}

.related-products {
    padding: 70px 24px 90px;
}

.section-header {
    margin-bottom: 34px;
}

.section-title {
    font-size: clamp(2rem, 3.4vw, 3.6rem);
}

.simple-products-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 285px));
    gap: 32px;
}

.simple-img {
    border-radius: 8px;
    box-shadow: none;
}

.simple-name {
    margin-top: 14px;
    font-size: 1rem;
}

@media (max-width: 1280px) {
    .product-container {
        width: min(100% - 52px, 1180px);
    }

    .top-section {
        grid-template-columns: minmax(500px, 1fr) minmax(360px, 440px);
        gap: 36px;
    }

    .product-main-media,
    #producto-img {
        height: 540px;
        min-height: 540px;
    }

    .img-thumbs {
        max-height: 540px;
    }

    .product-title {
        font-size: clamp(1.9rem, 3vw, 2.75rem);
    }
}

@media (max-width: 1024px) {
    .product-container {
        width: min(100% - 36px, 860px);
    }

    .top-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .right-column {
        padding-top: 0;
    }

    .info-accordion {
        margin-top: 30px;
    }
}

@media (max-width: 760px) {
    body {
        background: #fff;
    }

    .header-top {
        min-height: 66px;
        padding: 10px 18px;
    }

    .product-container {
        width: min(100% - 24px, 560px);
    }

    .breadcrumb {
        padding-top: 82px;
        font-size: 0.78rem;
    }

    .zoom-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .thumbs-side {
        order: 2;
    }

    .product-main-media {
        order: 1;
    }

    .product-main-media,
    #producto-img {
        min-height: 0;
        height: auto;
    }

    #producto-img {
        aspect-ratio: 4 / 5;
        max-height: 68vh;
    }

    .img-thumbs {
        flex-direction: row;
        width: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        padding-bottom: 8px;
    }

    .product-gallery {
        width: 74px;
        height: 78px;
    }

    .product-title {
        font-size: clamp(1.85rem, 9vw, 2.55rem);
    }

    .trust-badges {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .trust-badge {
        flex-direction: row;
        justify-content: center;
        border-right: 0;
    }

    .info-item summary {
        min-height: 58px;
        padding: 10px 14px;
    }

    .info-summary-left,
    .info-row {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 12px;
    }

    .info-summary-left > div {
        display: block;
    }

    .info-row .info-preview {
        grid-column: 2 / -1;
        margin-top: 4px;
    }

    .info-item .info-preview {
        margin-top: 4px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .info-row {
        padding: 10px 14px;
    }

    .info-item > .info-full {
        padding: 0 14px 16px 54px;
    }

    .modal {
        padding: 12px;
    }

    .modal-tallas-header {
        padding: 18px 18px 13px;
    }

    .modal-contenido img {
        padding: 10px;
    }

    .related-products {
        padding: 48px 14px 70px;
    }
}
