/* VARIABLES ESPECÍFICAS PARA EL LOADER */
:root {
    --bg-loader-premium: #0a0a0a; /* Negro cinematográfico puro */
    --color-linea-carga: #bd9b53;  /* Dorado premium del salón */
}

/* VARIABLES COMPLEMENTARIAS PARA EL HERO */
:root {
    --bg-hero-salon: #ffffff;       /* Fondo limpio (blanco o contratono según el salón) */
    --texto-hero-principal: #1a1a1a;/* Color de títulos */
    --texto-hero-bajada: #555555;   /* Color de la descripción */
    --color-detalles: #bd9b53;      /* Color de acento (Dorado, plateado, etc.) */
}

/* RESET BASE PARA EL COMPORTAMIENTO DEL LOADER */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* CONTENEDOR PRINCIPAL DEL LOADER */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-loader-premium);
    display: table; 
    z-index: 99999; /* Por encima de todo */
    overflow: hidden;
}

.loader-content {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

/* WRAPPER DEL LOGO Y ANIMACIÓN ZOOM IN + BLUR */
.logo-wrapper {
    position: relative;
    display: inline-block;
    max-width: 180px; 
    margin-bottom: 25px;
}

.logo-cinematic {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    filter: blur(8px);
    transform: scale(0.85);
    animation: logoReveal 1.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* EFECTO DE BRILLO (SHIMMER) PASANDO POR EL LOGO */
.shimmer-effect {
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100
    );
    transform: skewX(-25deg);
    animation: shinePass 1.2s ease-in-out 0.8s forwards;
}

/* BARRA DE PROGRESO INFERIOR */
.loader-spinner-bar {
    width: 100px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.loader-spinner-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: var(--color-linea-carga);
    animation: progressFill 1.8s ease-in-out forwards;
}

/* --- KEYFRAMES DE LAS ANIMACIONES --- */

/* 1. Revelado del logo estilo intro */
@keyframes logoReveal {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: scale(0.8);
    }
    15% {
        opacity: 0.3;
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

/* 2. Brillo metálico cruzando el logo */
@keyframes shinePass {
    0% { left: -150%; }
    100% { left: 150%; }
}

/* 3. Llenado de la barra de carga */
@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ESTADOS DEL CONTENIDO PRINCIPAL */
.content-hidden {
    display: none;
    opacity: 0;
}

.fade-in-up {
    display: block !important;
    animation: fadeInUpContent 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fadeInUpContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ESTILOS DEL CONTENEDOR HERO */
.hero-catalog {
    position: relative;
    width: 100%;
    min-height: 45vh; /* Altura ideal para que no tape toda la pantalla en desktop */
    background-color: var(--bg-hero-salon);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* CONTENEDOR INTERNO DEL CONTENIDO */
.hero-content {
    position: relative;
    max-width: 750px; /* Ancho de lectura óptimo para que no quede una línea eterna */
    margin: 0 auto;
    z-index: 2;
}

/* LOGO DEL SALÓN EN EL HERO */
.hero-logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 25px;
    display: inline-block;
}

/* TÍTULO PRINCIPAL */
.hero-title {
    font-size: 2.4rem;
    color: var(--texto-hero-principal);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 15px;
}

/* LÍNEA DIVISORIA ESTÉTICA */
.hero-divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-detalles);
    margin: 0 auto 20px auto;
    border-radius: 2px;
}

/* DESCRIPCIÓN O BAJADA DE TEXTO */
.hero-description {
    font-size: 1.05rem;
    color: var(--texto-hero-bajada);
    line-height: 1.6;
    font-weight: 400;
}

/* RESPONSIVE DESIGN (Para celulares) */
@media (max-width: 768px) {
    .hero-catalog {
        padding: 40px 15px;
        min-height: auto;
    }
    
    .hero-logo {
        max-width: 110px;
        margin-bottom: 20px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* VARIABLES DE COLOR PARA SECCIONES */
:root {
    --bg-botones-filtro: #e0e0e0;
    --texto-botones: #333333;
}

/* CONTENEDOR DE LA CATEGORÍA */
.category-section {
    max-width: 900px;
    margin: 60px auto;
    padding:  20px;
    background-color: #313131;
}

.category-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.category-title {
    font-size: 1.8rem;
    color:#bd9b53;
    margin-bottom: 12px;
}

.category-description {
    font-size: 1rem;
    color: cornsilk;
    line-height: 1.5;
    max-width: 650px;
    margin: 0 auto;
}

/* CONTENEDOR DEL VISUALIZADOR */
.showcase-container {
    /* background-color: var(--bg-secundario, #f9f9f9); */
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

/* GALERÍA DE IMÁGENES */
.gallery-display {
    position: relative;
    width: 100%;
    max-width: 380px; /* Tamaño controlado estilo pantalla de celular */
    margin: 0 auto 30px auto;
    min-height: 500px; /* Evita saltos de diseño si las imágenes varían milímetros */
}

.gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none; /* Evita clics accidentales en capas ocultas */
}

/* Clase activa controlada por JS */
.gallery-item.active {
    position: relative;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    display: block;
}

/* Etiqueta flotante sobre la imagen */
.model-badge {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(10, 10, 10, 0.85);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* BOTONES DE FILTRO */
.filter-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: none;
    background-color: var(--bg-botones-filtro);
    color: var(--texto-botones);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background-color: #d0d0d0;
}

/* Estado activo del botón (Combina con el acento dorado/institucional) */
.filter-btn.active {
    background-color: var(--color-detalles);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(189, 155, 83, 0.3);
}

/* RESPONSIVE DESIGN */
@media (max-width: 600px) {
    .gallery-display {
        max-width: 280px;
        min-height: 400px;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
}

/* estilos de las invitaciones web interactivas */

/* VARIABLES ADAPTADAS A TU NUEVA ESTÍTICA DARK */
:root {
    --texto-dorado: #bd9b53; /* Ajustá este amarillo/dorado a tu gusto */
    --texto-blanco: #ffffff;
    --texto-gris-claro: #cccccc;
    --bg-tarjeta-dark: #1e1e1e; /* Gris oscuro para las tarjetas */
}

/* Personalización de títulos para esta sección (Siguiendo tus cambios) */
.category-title-web {
    font-size: 1.8rem;
    color: var(--texto-dorado);
    margin-bottom: 12px;
    text-align: center;
}

.category-description-web {
    font-size: 1rem;
    color: var(--texto-blanco);
    line-height: 1.5;
    max-width: 650px;
    margin: 0 auto 40px auto;
    text-align: center;
}

/* GRID CONTENEDOR (3 Columnas) */
.web-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* ESTILO GENERAL DE LA TARJETA WEB */
.web-card {
    background-color: var(--bg-tarjeta-dark);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.web-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Ajustes visuales para las tarjetas que son solo conceptuales (un poquito más opacas) */
.web-card.conceptual-product {
    opacity: 0.85;
}

/* IMÁGENES DENTRO DE LAS TARJETAS */
.web-card-media {
    width: 100%;
    height: 220px; /* Altura fija para que todas las tarjetas queden alineadas simétricamente */
    overflow: hidden;
}

.web-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen para que llene el contenedor sin deformarse */
}

/* INFORMACIÓN DE LA TARJETA */
.web-card-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Empuja el botón siempre hacia el fondo de la tarjeta */
}

.web-card-info h3 {
    color: var(--texto-blanco);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.web-card-info p {
    color: var(--texto-gris-claro);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* BOTONES DE ACCIÓN */
.web-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background-color: var(--texto-dorado);
    color: #121212; /* Texto oscuro sobre el botón dorado para legibilidad */
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    margin-top: auto; /* Truco CSS para alinear el botón abajo pase lo que pase con el texto */
    transition: background-color 0.2s;
}

.web-btn:hover {
    filter: brightness(1.1);
}

/* Botón deshabilitado para XV y Bodas */
.web-btn.disabled {
    background-color: #333333;
    color: #777777;
    cursor: not-allowed;
}

/* BADGES FLOTANTES (En vivo / Próximamente) */
.web-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 5;
}
.web-badge.live { background-color: #28a745; color: #ffffff; }
.web-badge.concept { background-color: #555555; color: #dddddd; }

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .web-grid {
        gap: 20px;
    }
    .web-card-media {
        height: 180px;
    }
}

/* ESTILOS DE LA VENTANA FLOTANTE (LIGHTBOX) */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 10, 10, 0.95); /* Fondo negro translúcido premium */
    z-index: 100000; /* Por encima de todo, incluso del loader */
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Cuando se activa la ventana */
.lightbox-overlay.show {
    display: flex;
    opacity: 1;
}

/* La imagen ampliada */
#lightbox-img {
    max-width: 90%;
    max-height: 85vh; /* Se adapta al alto de la pantalla del dispositivo */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox-overlay.show #lightbox-img {
    transform: scale(1); /* Efecto pop-up suave */
}

/* Botón de cerrar (X) */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--texto-blanco, #fff);
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--texto-dorado, #bd9b53);
}

/* EXTENSIÓN PARA EL ECOSISTEMA INTERACTIVO (ÁLBUM Y MURO) */
.interactive-ecosystem {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* BLOQUE DE CARACTERÍSTICA (FLEXBOX BIDIRECCIONAL) */
.feature-block {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: var(--bg-tarjeta-dark, #1e1e1e);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* CONTENEDOR DE TEXTO E INFO */
.feature-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinea el badge y elementos a la izquierda */
}

.feature-info h3 {
    font-size: 1.6rem;
    color: var(--texto-blanco, #ffffff);
    margin: 15px 0;
    letter-spacing: -0.3px;
}

.feature-info p {
    color: var(--texto-gris-claro, #cccccc);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Reutilizamos el botón de la sección web, adaptando su comportamiento */
.feature-info .web-btn {
    width: auto; /* No ocupa todo el ancho, solo el de su texto */
    padding: 12px 35px;
    border-radius: 30px; /* Redondeado premium estilo píldora */
}

/* CONTENEDOR DE IMAGEN / MULTIMEDIA */
.feature-media {
    flex: 1;
    min-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.feature-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-block:hover .feature-media img {
    transform: scale(1.03); /* Efecto zoom sutil al pasar el mouse por el bloque */
}

/* EL TRUCO DEL REVERSE: Invierte el orden de los factores en pantallas grandes */
.feature-block.reverse {
    flex-direction: row-reverse;
}

/* BADGE ESPECÍFICO PARA ESTOS SISTEMAS */
.feature-info .web-badge {
    position: static; /* Le saca el posicionamiento absoluto flotante */
    display: inline-block;
    margin-bottom: 5px;
}

/* RESPONSIVE DESIGN FOR TABLETS & MOBILES */
@media (max-width: 850px) {
    .feature-block, 
    .feature-block.reverse {
        flex-direction: column; /* Pasa a formato vertical en celulares */
        gap: 30px;
        padding: 30px 20px;
    }
    
    .feature-media {
        width: 100%;
    }
    
    .feature-info .web-btn {
        width: 100%; /* El botón pasa a ser ancho completo en móviles para mejor clic */
        text-align: center;
    }
    
    .feature-info h3 {
        font-size: 1.4rem;
    }
}

/* footer */
/* FOOTER PREMIUM STYLES */
.main-footer {
    width: 100%;
    background-color: #0a0a0a; /* Un tono más oscuro que el fondo general para dar cierre */
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 30px 20px;
    margin-top: 100px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.footer-brand {
    color: var(--texto-gris-claro, #cccccc);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: -0.2px;
}

.footer-tagline {
    color: var(--texto-dorado, #bd9b53); /* Tu color dorado de acento */
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}