/* ===============================
   LAYOUT GENERAL PDP
=============================== */

.product-detail {
    padding: 120px 5%;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: start;
    min-height: 80vh;
}

/* ===============================
   GALERÍA
=============================== */

.product-gallery {
    position: sticky;
    top: 120px;
    height: fit-content;
}

/* Contenedor imagen principal */
.main-image-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    border: 1px solid #222;
}

/* Marco dorado */
.main-image-container::after {
    content: '';
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(197, 160, 89, 0.5);
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 2;
}

.main-image-container:hover::after {
    inset: 5px;
    border-color: var(--gold-accent);
    box-shadow: inset 0 0 20px rgba(197, 160, 89, 0.2);
}

/* Imagen principal */
.img-main-static {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease, opacity 0.3s ease;
}

.main-image-container:hover .img-main-static {
    transform: scale(1.05);
}

/* ===============================
   MINIATURAS
=============================== */

.thumbnails-grid {
    display: flex;
    gap: 5px;
    max-width: 450px;         /* 🔥 ancho igual a imagen principal */
    margin: 20px auto 0;
    overflow-x: auto;          /* 🔥 slide horizontal */
    overflow-y: hidden;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.thumb-img {
    flex: 0 0 auto;            /* 🔥 NO se encogen */
    width: 80px;
    height: 85px;
    object-fit: cover;
    object-position: top center;
    cursor: pointer;
    opacity: 0.6;
    filter: grayscale(100%);
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.thumb-img:hover,
.thumb-active {
    opacity: 1;
    filter: grayscale(0%);
    border-color: var(--gold-accent);
    transform: scale(1.05);
}

.thumbnails-grid::-webkit-scrollbar {
    height: 10px;
}

.thumbnails-grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}
    /* ===============================
    COLUMNA INFO
    =============================== */

.product-info {
    padding-top: 20px;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 10px;
}

.product-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    color: var(--gold-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.product-description p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: justify;
    hyphens: auto;

    /* 🔥 AGREGA ESTA LÍNEA MÁGICA 🔥 */
    white-space: pre-line;
}

/* Contenedor editorial de descripción */
.product-description {
    max-width: 520px;
}

/* Primer párrafo más protagónico */
.product-description p:first-child {
    font-size: 1.05rem;
    color: #e6e6e6;
}

/* Párrafos largos respiran mejor */
.product-description p + p {
    margin-top: 1.4em;
}


/* ===============================
PRECIO
=============================== */

.product-price {
    display: flex;
    gap: 15px;
    align-items: baseline;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #222;
}

.price-label {
    font-size: 1rem;
    color: var(--text-muted);
}

.price-value {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #fff;
}

/* ===============================
   BOTONES
=============================== */

.product-actions {
    margin-bottom: 60px;
}

/* Agrupamos los 3 botones para que compartan el mismo tamaño y tipografía */
.btn-whatsapp,
.btn-telegram,
.btn-video {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    padding: 18px 0;
    color: #fff;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

/* 1. WHATSAPP */
.btn-whatsapp {
    background-color: #0f1f17;
    border: 1px solid rgba(46,204,113,0.35);
    box-shadow: none;
}

.btn-whatsapp:hover {
    background-color: #1f9d55;
    border-color: #1f9d55;
}

/* 2. VIDEOLLAMADA (AZUL ZAFIRO SOBRIO) */
.btn-video {
    margin-top: 20px;
    background: linear-gradient(135deg, #0a111a, #03060a); /* Azul noche muy profundo */
    border: 1px solid rgba(82, 139, 255, 0.35); /* Borde azul zafiro sutil */
    color: #a3c2ff !important; /* Texto azul hielo elegante */
    box-shadow: 0 4px 15px rgba(82, 139, 255, 0.08); /* Resplandor casi imperceptible */
    font-weight: 700;
}

.btn-video i {
    color: #a3c2ff; 
    transition: color 0.3s ease;
}

.btn-video:hover {
    background: linear-gradient(135deg, #111d2b, #070d14); /* Se aclara ligeramente */
    border-color: rgba(82, 139, 255, 0.6) !important;
    color: #ffffff !important; /* El texto brilla en blanco al pasar el mouse */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 139, 255, 0.15);
}

.btn-video:hover i {
    color: #ffffff;
}

/* 3. TELEGRAM */
.btn-telegram {
    margin-top: 20px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: #bbb;
}

.btn-telegram:hover {
    border-color: var(--gold-accent);
    color: var(--gold-accent);
    transform: translateY(-1px);
}


/* ===============================
   FICHA TÉCNICA
=============================== */

.specs-grid-luxury {
    border-top: 1px solid #333;
    margin: 40px 0;
}

.spec-box {
    display: grid;
    grid-template-columns: 120px 1fr;
    padding: 20px 0;
    border-bottom: 1px solid #333;
}

.spec-label {
    font-size: 0.75rem;
    color: var(--gold-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.spec-value {
    font-family: 'Playfair Display', serif;
    color: #fff;
    text-align: right;
}

/* ===============================
   MULTIMEDIA
=============================== */

.media-wrapper {
    margin-top: 20px;
    border: 1px solid #333;
    background: #000;
}

.custom-video,
.custom-audio {
    width: 100%;
    display: block;
}


/* css/pdp.css */

/* El fondo negro que cubre toda la pantalla */
.zoom-modal {
    display: none; /* Oculto por defecto */
    position: fixed; 
    z-index: 10000; /* Encima de todo, incluso del header y cursor */
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.95); /* Negro casi total */
    backdrop-filter: blur(5px); /* Efecto borroso elegante */
}

/* La imagen en sí */
.zoom-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    max-height: 90vh; /* Que no se salga de la pantalla verticalmente */
    object-fit: contain;
    border: 1px solid var(--gold-accent);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.2);
    animation: zoomIn 0.3s;
}

/* Botón de cerrar (X) */
.close-zoom {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10001;
}

.close-zoom:hover,
.close-zoom:focus {
    color: var(--gold-accent);
    text-decoration: none;
    cursor: pointer;
}

.disclaimer-note {
  /* Caja */
  padding: 1rem;
  margin: 1.5rem 0;
  
  /* Tipografía */
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  color: #52525b; /* Zinc/Gris medio */
  letter-spacing: 0.01em; /* Un poco de aire entre letras */
  
  /* Icono visual con pseudo-elemento (opcional) */
  position: relative;
  padding-left: 3rem; /* Espacio extra para el 'icono' */

  /* Justificación Premium */
  text-align: justify;
  hyphens: auto; /* Importante: parte palabras largas para evitar huecos feos */
  -webkit-hyphens: auto; /* Compatibilidad con Safari/iOS */
}

/* Crea una línea vertical decorativa o "icono" abstracto */
.disclaimer-note::before {
  content: "i"; /* O puedes dejarlo vacío para una línea */
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #52525b;
  font-size: 12px;
  font-style: italic;
  font-family: serif;
}

/* Animación de entrada */
@keyframes zoomIn {
    from {transform:scale(0); opacity:0} 
    to {transform:scale(1); opacity:1}
}


/* ===============================
   TRANS THEME (PDP)
================================ */

body.theme-trans {
    --gold-accent: #b084f7;
    --border-color: #7d4bcc;
}

.pdp-trans-badge {
  position: relative;
  overflow: hidden;
}

.pdp-trans-badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(155,107,255,0.45),
    transparent
  );
  animation: shine 3.5s infinite;
}

@keyframes shine {
  0% { left: -60%; }
  60% { left: 120%; }
  100% { left: 120%; }
}

body.theme-trans .product-title {
  text-shadow: 0 0 12px rgba(180,120,255,0.15);
}

.pdp-trans-badge .trans-icon {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* ===============================
   TEMA TRANS GLOBAL PDP
=============================== */

body.theme-trans {

    --gold-accent: #b084f7;

}

/* títulos */
body.theme-trans .product-title,
body.theme-trans .product-subtitle {
    color: #e8d9ff;
}

/* divisores */
body.theme-trans .gold-divider {
    background: linear-gradient(90deg, #b084f7, transparent);
}

/* botones */
body.theme-trans .btn-whatsapp {
    background: linear-gradient(135deg, #a778ff, #6f3bd9);
    border-color: #a778ff;
}

body.theme-trans .btn-whatsapp:hover {
    filter: brightness(1.15);
}

/* thumbnails activo */
body.theme-trans .thumb-active {
    border-color: #b084f7;
}



/* Responsive para celular */
@media only screen and (max-width: 700px){
    .zoom-content {
        width: 100%;
        border: none;
    }
}

/* ===============================
   RESPONSIVE (MÓVIL)
=============================== */

@media (max-width: 900px) {

    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 100px 20px 40px;
    }

    .product-gallery {
        position: static;
    }

    /* IMAGEN PRINCIPAL */
    .main-image-container {
        width: 100%;
        max-width: 420px;
        aspect-ratio: 4 / 5;
        height: auto;
        margin: 0 auto;
    }

    /* MINIATURAS */
    .thumbnails-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        width: 100%;
        overflow: hidden;
    }

    .thumb-img {
        width: 100%;
        height: 70px;
        object-fit: cover;
    }

    /* TEXTOS */
    .product-title {
        font-size: 2.2rem;
    }

    .product-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .price-value {
        font-size: 2rem;
    }

    /* BOTONES */
    .btn-whatsapp,
    .btn-telegram,
    .btn-video {
        font-size: 0.85rem;
        padding: 15px 0;
    }

}

* {
    box-sizing: border-box;
}