/* ==========================================================================
   ARQUITECTURA VISUAL "LUXURY BOUTIQUE" — GABY GLOBAL ATELIER
   ARCHIVO: estilos.css
   VERSIÓN: 6.0.0 (Corrección de Botón Dorado con Máxima Prioridad)
   ========================================================================== */

:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --accent-gold: #d4af37; /* Toque dorado premium */
    --glass-background: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.4);
    --blur-effect: blur(12px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: #fcfaf2;
    transition: color 0.5s ease, background 0.8s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* FONDOS LÍQUIDOS EN MOVIMIENTO (LÍNEA VIBRANTE) */
body.coleccion-luxe {
    background: linear-gradient(-45deg, #f5efe6, #e8d8c8, #fcfaf2, #e3d0be);
    background-size: 400% 400%;
    animation: flujoGradiente 20s ease infinite;
}

body.coleccion-minimal {
    background: linear-gradient(-45deg, #f5f5f5, #e0e0e0, #ffffff, #ebebeb);
    background-size: 400% 400%;
    animation: flujoGradiente 20s ease infinite;
}

body.coleccion-avantgarde {
    background: linear-gradient(-45deg, #2b262d, #1a1a1a, #4a3b4c, #221f24);
    background-size: 400% 400%;
    animation: flujoGradiente 20s ease infinite;
    color: var(--text-light);
}

body.coleccion-organic {
    background: linear-gradient(-45deg, #eef1ec, #d8ded6, #ffffff, #cbd3c8);
    background-size: 400% 400%;
    animation: flujoGradiente 20s ease infinite;
}

@keyframes flujoGradiente {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ESTRUCTURA GENERAL */
#app-wrapper {
    width: 100%;
}

#top-announcement-bar {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 12px 20px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

body.coleccion-avantgarde #top-announcement-bar {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.ticker-timer {
    font-weight: 700;
    color: var(--accent-gold);
    margin-left: 5px;
}

#store-header {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border-bottom: 1px solid var(--glass-border);
    padding: 30px 40px;
}

body.coleccion-avantgarde #store-header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-main-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.brand-identity h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 6px;
    line-height: 1;
}

body.coleccion-avantgarde .brand-identity h1 {
    color: var(--text-light);
}

.brand-identity h2 {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 12px;
    margin-top: 5px;
    text-indent: 12px;
    opacity: 0.8;
}

#main-navigation ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-item {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    color: inherit;
}

.nav-item:hover, .nav-item.active {
    opacity: 1;
}

#store-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

#sidebar-panel {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

#content-display {
    flex: 3;
    min-width: 400px;
}

/* TARJETAS GLASSMORPHISM */
.glass-card {
    background: var(--glass-background);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
}

body.coleccion-avantgarde .glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.btn-mood {
    background: rgba(255, 255, 255, 0.4);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 16px 20px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-mood:hover, .btn-mood.active {
    background: var(--accent-gold);
    color: var(--text-light);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

body.coleccion-avantgarde .btn-mood:hover, 
body.coleccion-avantgarde .btn-mood.active {
    background: var(--text-light);
    color: var(--text-dark);
}

.details-list {
    list-style: none;
    margin-top: 20px;
}

.details-list li {
    font-size: 0.85rem;
    margin-bottom: 15px;
}

/* LIENZO 3D MAPAMUNDI */
.visualizer-wrapper {
    position: relative;
    width: 100%;
    height: 380px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
}

#threejs-canvas-container {
    width: 100%;
    height: 100%;
    cursor: grab;
    pointer-events: auto;
}

#threejs-canvas-container:active {
    cursor: grabbing;
}

.visualizer-overlay {
    position: absolute;
    bottom: 20px;
    left: 25px;
    pointer-events: none;
    z-index: 5;
}

.badge-tech {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
    font-weight: 700;
}

/* MARQUESINA */
.ticker-wrapper-brands {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    gap: 20px;
}

.badge-tech-inline {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    opacity: 0.5;
    border-right: 1px solid var(--glass-border);
    padding-right: 15px;
    white-space: nowrap;
}

.ticker-text-container {
    white-space: nowrap;
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-style: italic;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* ==========================================================================
   REJILLA DE PRODUCTOS OPTIMIZADA PARA GRANDES VOLÚMENES (10+ PRENDAS)
   ========================================================================== */
.products-section-title h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
    align-items: start;
}

.product-card {
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.product-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

body.coleccion-avantgarde .product-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-image-container {
    width: 100%;
    height: 320px;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.02);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-img {
    transform: scale(1.06);
}

.product-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--text-dark);
    color: var(--text-light);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 2;
}

body.coleccion-avantgarde .product-tag {
    background: var(--text-light);
    color: var(--text-dark);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

body.coleccion-avantgarde .product-info h4 {
    color: var(--text-light);
}

/* FORZADO ESTRICTO A DOS LÍNEAS MÁXIMO (...) */
.product-desc {
    font-size: 0.8rem;
    line-height: 1.5;
    opacity: 0.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.coleccion-avantgarde .product-desc {
    color: var(--text-light);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; 
    padding-top: 5px;
}

.price {
    font-weight: 700;
    font-size: 1.05rem;
}

body.coleccion-avantgarde .price {
    color: var(--accent-gold);
}

.btn-add-cart {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
    padding: 8px 18px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.coleccion-avantgarde .btn-add-cart {
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-add-cart:hover {
    background: var(--text-dark);
    color: var(--text-light);
}

body.coleccion-avantgarde .btn-add-cart:hover {
    background: var(--text-light);
    color: var(--text-dark);
}

/* ==========================================================================
   CONFIGURACIÓN DEL FORMULARIO Y BOTÓN DORADO MANDATORIO
   ========================================================================== */
.contacto-page .form-container form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* NUEVA MEJORA: Forzar al botón con tu clase exacta del HTML (.btn-submit-contacto) */
.contacto-page button[type="submit"],
.contacto-page .btn-enviar-formulario,
.btn-submit-contacto, 
button.btn-submit-contacto {
    background-color: #d4af37 !important; /* Dorado Atelier obligatorio */
    color: #ffffff !important;            /* Texto blanco limpio */
    font-family: var(--font-body) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    padding: 14px 30px !important;
    border: 1px solid #d4af37 !important;
    border-radius: 30px !important;       /* Estilo óvalo boutique */
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    width: 100% !important;               /* Ocupa todo el ancho del contenedor */
    display: block !important;
    margin-top: 10px !important;
}

/* Efecto cuando pasas el mouse por encima (Hover) */
.contacto-page button[type="submit"]:hover,
.contacto-page .btn-enviar-formulario:hover,
.btn-submit-contacto:hover,
button.btn-submit-contacto:hover {
    background-color: transparent !important;
    color: #d4af37 !important;            /* El texto se vuelve dorado */
    border-color: #d4af37 !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* Ajuste de hover para la colección Avant-Garde (Modo Oscuro) */
body.coleccion-avantgarde .btn-submit-contacto:hover,
body.coleccion-avantgarde button.btn-submit-contacto:hover {
    color: var(--text-light) !important;
    border-color: var(--text-light) !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1) !important;
}

/* ==========================================================================
   CIERRE DE CONTENEDORES Y OPTIMIZACIÓN RESPONSIVA
   ========================================================================== */
#store-footer {
    text-align: center;
    padding: 60px 20px;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

.footer-credits p {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.5;
}

@media (max-width: 992px) {
    #store-layout {
        flex-direction: column;
    }
    #sidebar-panel, #content-display {
        width: 100%;
        min-width: 100%;
    }
}

#bg-threejs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none; 
}

/* Translucidez optimizada para el efecto vidrio brillante */
.product-card, 
.layout-controller-card,
.info-details-card,
.glass-card {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.coleccion-avantgarde .product-card,
body.coleccion-avantgarde .layout-controller-card,
body.coleccion-avantgarde .info-details-card,
body.coleccion-avantgarde .glass-card {
    background: rgba(30, 25, 32, 0.6) !important;
}



/* ==========================================================================
   RESPONSIVE DESIGN - OPTIMIZACIÓN PARA MÓVILES Y TABLETS
   ========================================================================== */

/* TABLETS Y MÓVILES GRANDES (hasta 768px) */
@media (max-width: 768px) {
    /* Header y Navegación */
    #store-header {
        padding: 20px 15px;
    }

    .header-main-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .brand-identity h1 {
        font-size: 1.6rem;
        letter-spacing: 4px;
    }

    .brand-identity h2 {
        font-size: 0.6rem;
        letter-spacing: 8px;
    }

    #main-navigation ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-item {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    /* Layout Principal */
    #store-layout {
        margin: 20px auto;
        padding: 0 15px;
        gap: 20px;
    }

    #sidebar-panel {
        min-width: 100%;
    }

    #content-display {
        min-width: 100%;
    }

    /* Visualizer 3D */
    .visualizer-wrapper {
        height: 280px;
        margin-bottom: 20px;
    }

    .visualizer-overlay {
        bottom: 10px;
        left: 15px;
    }

    .badge-tech {
        font-size: 0.55rem;
    }

    /* Ticker/Marquesina */
    .ticker-wrapper-brands {
        padding: 12px 15px;
        margin-bottom: 25px;
    }

    .ticker-text-container {
        font-size: 0.8rem;
    }

    /* Grid de Productos */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .products-section-title h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    /* Tarjetas de Producto */
    .product-image-container {
        height: 280px;
    }

    .product-info {
        padding: 15px;
    }

    .product-info h4 {
        font-size: 1rem;
    }

    .product-desc {
        font-size: 0.75rem;
        margin-bottom: 15px;
    }

    .price {
        font-size: 0.95rem;
    }

    .btn-add-cart {
        padding: 6px 14px;
        font-size: 0.65rem;
    }

    /* Glass Cards */
    .glass-card {
        padding: 20px;
    }

    .glass-card h3 {
        font-size: 1.1rem;
    }

    /* Botones Mood */
    .btn-mood {
        padding: 12px 15px;
        font-size: 0.7rem;
    }

    /* Carrito Sidebar */
    #carrito-sidebar {
        width: 100%;
        right: -100%;
    }

    /* Botón Carrito Flotante */
    #btn-carrito-flotante {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    /* Footer */
    #store-footer {
        padding: 40px 15px;
        margin-top: 40px;
    }

    /* Página de Contacto */
    .contacto-page main {
        padding: 0 15px !important;
    }

    .contacto-page .products-section-title h3 {
        font-size: 1.8rem !important;
    }

    /* Página de Colecciones */
    .colecciones-page .products-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .colecciones-page .product-image-container img {
        max-height: 400px !important;
    }

    .colecciones-page .product-info h4 {
        font-size: 1.3rem !important;
    }

    /* Memoria Técnica (Sección Acerca de) */
    #memoria-tecnica-profesor {
        padding: 40px 20px !important;
    }

    #memoria-tecnica-profesor summary {
        font-size: 1.6rem !important;
    }

    .memoria-grid-container {
        flex-direction: column !important;
        gap: 30px !important;
    }
}

/* MÓVILES PEQUEÑOS (hasta 480px) */
@media (max-width: 480px) {
    /* Announcement Bar */
    #top-announcement-bar {
        padding: 10px 15px;
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .ticker-timer {
        display: block;
        margin-top: 5px;
        margin-left: 0;
    }

    /* Header */
    .brand-identity h1 {
        font-size: 1.3rem;
        letter-spacing: 3px;
    }

    .brand-identity h2 {
        font-size: 0.55rem;
        letter-spacing: 6px;
    }

    #main-navigation ul {
        gap: 10px;
    }

    .nav-item {
        font-size: 0.65rem;
    }

    /* Visualizer 3D */
    .visualizer-wrapper {
        height: 240px;
    }

    /* Productos */
    .product-image-container {
        height: 240px;
    }

    .product-info h4 {
        font-size: 0.95rem;
    }

    .product-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .btn-add-cart {
        width: 100%;
        text-align: center;
    }

    /* Glass Cards */
    .glass-card {
        padding: 15px;
    }

    .glass-card h3 {
        font-size: 1rem;
    }

    /* Ticker */
    .ticker-text-container {
        font-size: 0.7rem;
    }

    /* Carrito */
    #carrito-sidebar > div:first-child {
        padding: 20px 15px;
    }

    #carrito-sidebar h3 {
        font-size: 1.2rem;
    }

    #lista-carrito-items {
        padding: 15px;
    }

    #carrito-sidebar > div:last-child {
        padding: 20px 15px;
    }

    /* Contacto */
    .contacto-page .products-section-title h3 {
        font-size: 1.5rem !important;
    }

    .contacto-page .glass-card {
        padding: 20px !important;
    }

    .contacto-page .glass-card h4 {
        font-size: 1.2rem !important;
    }

    /* Colecciones */
    .colecciones-page .products-section-title h3 {
        font-size: 1.8rem !important;
    }

    .colecciones-page .product-info {
        padding: 20px !important;
    }

    .colecciones-page .product-info h4 {
        font-size: 1.2rem !important;
    }

    /* Memoria Técnica */
    #memoria-tecnica-profesor summary {
        font-size: 1.3rem !important;
    }

    #memoria-tecnica-profesor svg {
        width: 35px !important;
        height: 35px !important;
    }
}

/* AJUSTES ADICIONALES PARA PANTALLAS MUY PEQUEÑAS (hasta 360px) */
@media (max-width: 360px) {
    .brand-identity h1 {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .brand-identity h2 {
        font-size: 0.5rem;
        letter-spacing: 4px;
    }

    .nav-item {
        font-size: 0.6rem;
    }

    .product-image-container {
        height: 220px;
    }

    .visualizer-wrapper {
        height: 200px;
    }
}


/* ==========================================================================
   CORRECCIÓN DE IMÁGENES EN MÓVILES - Mostrar completas
   ========================================================================== */

/* TABLETS Y MÓVILES (hasta 768px) */
@media (max-width: 768px) {
    .product-image-container {
        height: 320px; /* Un poco más alto para mejor proporción */
    }

    .product-img {
        object-fit: contain; /* Muestra la imagen completa sin recortar */
        object-position: top center; /* Alinea desde arriba */
    }
}

/* MÓVILES PEQUEÑOS (hasta 480px) */
@media (max-width: 480px) {
    .product-image-container {
        height: 300px; /* Altura ajustada */
        background: rgba(0, 0, 0, 0.02); /* Fondo sutil */
    }

    .product-img {
        object-fit: contain; /* Muestra la imagen completa */
        object-position: top center;
    }

    /* Para la página de catálogo específicamente */
    #catalogo.html .product-image-container {
        height: 280px;
    }
}

/* MÓVILES MUY PEQUEÑOS (hasta 360px) */
@media (max-width: 360px) {
    .product-image-container {
        height: 260px;
    }
}