/* ==========================================================================
   GALERÍA 3D INMERSIVA "LA GRAN ALBORADA" · FYNEX
   SISTEMA DE DISEÑO: SPATIAL UI & GLASSMORPHISM (Apple Vision Pro Style)
   ==========================================================================
   Autor: Senior Frontend & Spatial UI Engineer
   Descripción: Sistema de diseño basado en variables CSS con efectos de refracción
   óptica, bordes dorados translúcidos y manipulación de perspectiva tridimensional.
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES DE DISEÑO (DESIGN TOKENS & ARCHITECTURE)
   Centralización de colores corporativos Fynex, medidas espaciales y sombras.
   ========================================================================== */
:root {
    /* --- Paleta Corporativa Fynex --- */
    --fynex-green-deep: #031D16;
    /* Verde ultra profundo para sombras y fondo */
    --fynex-green-base: #073A2D;
    /* Verde principal corporativo Fynex */
    --fynex-green-light: #0E5E4A;
    /* Verde esmeralda para iluminación ambiental */
    --fynex-gold-base: #C7B388;
    /* Dorado corporativo para acentos y destacados */
    --fynex-gold-light: #E5D7B7;
    /* Dorado claro para reflejos de luz */
    --fynex-white: #FFFFFF;
    /* Blanco puro para tipografía de alto contraste */
    --fynex-white-muted: rgba(255, 255, 255, 0.75);
    /* Blanco translúcido para textos secundarios */
    --fynex-white-dim: rgba(255, 255, 255, 0.45);
    /* Blanco atenuado para metadatos */

    /* --- Tokens de Glassmorphism (Efecto Cristal) --- */
    /* Fondo semitransparente con tinte verde oscuro para emular cristal templado */
    --glass-bg-primary: rgba(7, 58, 45, 0.42);
    --glass-bg-secondary: rgba(3, 29, 22, 0.65);
    --glass-bg-hover: rgba(199, 179, 136, 0.15);
    --glass-bg-card-overlay: linear-gradient(180deg, rgba(7, 58, 45, 0.05) 0%, rgba(3, 29, 22, 0.85) 60%, rgba(3, 29, 22, 0.96) 100%);

    /* Borde dorado translúcido estipulado en requerimientos de diseño */
    --glass-border-gold: 1px solid rgba(199, 179, 136, 0.40);
    --glass-border-gold-hover: 1px solid rgba(199, 179, 136, 0.80);
    --glass-border-subtle: 1px solid rgba(255, 255, 255, 0.12);

    /* Desenfoque óptico de fondo (Backdrop Filters) */
    --glass-blur-heavy: blur(24px);
    --glass-blur-medium: blur(15px);
    --glass-blur-light: blur(8px);

    /* Sombras y Profundidad Espacial (Spatial Shadows) */
    --spatial-shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.65), 0 0 30px rgba(199, 179, 136, 0.08);
    --spatial-shadow-glow: 0 0 40px rgba(199, 179, 136, 0.28);
    --spatial-shadow-panel: 0 16px 36px 0 rgba(0, 0, 0, 0.45), inset 0 1px 1px 0 rgba(255, 255, 255, 0.2);

    /* --- Tipografías y Espaciado --- */
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', sans-serif;

    /* --- Tiempos y Curvas de Animación --- */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: all 0.2s ease-out;

    /* --- Radios de Curvatura (Spatial Pill & Card Fillets) --- */
    --radius-card: 30px;
    --radius-pill: 9999px;
    --radius-panel: 22px;
}

/* ==========================================================================
   2. RESETEO GLOBAL & ESTILOS BASE
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Mantiene la experiencia inmersiva contenida sin scroll */
    background-color: var(--fynex-green-deep);
    font-family: var(--font-primary);
    color: var(--fynex-white);
    user-select: none;
    /* Evita selecciones de texto accidentales durante el drag */
}

/* ==========================================================================
   3. FONDO AMBIENTAL SPATIAL (Luz ambiental cálida & atmósfera 3D)
   Crea la profundidad necesaria para que el cristal refracte la luz correctamente.
   ========================================================================== */
.spatial-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Orbe de iluminación superior difusa (simula luz cenital cálida) */
.ambient-glow--top {
    position: absolute;
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 50vh;
    background: radial-gradient(ellipse at center, rgba(199, 179, 136, 0.16) 0%, rgba(7, 58, 45, 0.25) 50%, transparent 80%);
    filter: blur(60px);
}

/* Orbe central (Verde Fynex esmeralda para cuerpo ambiental) */
.ambient-glow--center {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 70vh;
    background: radial-gradient(circle at center, rgba(14, 94, 74, 0.35) 0%, rgba(7, 58, 45, 0.6) 45%, transparent 75%);
    filter: blur(80px);
}

/* Orbe inferior (Dorado tenue reflejado en la superficie) */
.ambient-glow--bottom {
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 70vw;
    height: 35vh;
    background: radial-gradient(ellipse at center, rgba(199, 179, 136, 0.12) 0%, transparent 70%);
    filter: blur(50px);
}

/* Viñeta cinematográfica para concentrar la atención en el centro */
.ambient-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(3, 29, 22, 0.85) 100%);
}

/* ==========================================================================
   4. CLASES DE UTILIDAD PARA GLASSMORPHISM (Spatial Glass Elements)
   ========================================================================== */
/* Contenedor de cristal base con refracción y borde dorado */
.glass-panel {
    background: var(--glass-bg-primary);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    border: var(--glass-border-gold);
    box-shadow: var(--spatial-shadow-panel);
    border-radius: var(--radius-panel);
    transition: var(--transition-smooth);
}

/* Botón circular de icono translúcido */
.glass-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: var(--glass-blur-light);
    -webkit-backdrop-filter: var(--glass-blur-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--fynex-white);
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
}

.glass-icon-btn:hover {
    background: var(--glass-bg-hover);
    border: var(--glass-border-gold);
    color: var(--fynex-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(199, 179, 136, 0.2);
}

.glass-icon-btn:active {
    transform: translateY(0) scale(0.95);
}

/* Botón píldora con texto */
.glass-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: var(--glass-blur-light);
    -webkit-backdrop-filter: var(--glass-blur-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--fynex-white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
    outline: none;
}

.glass-pill-btn:hover {
    border: var(--glass-border-gold);
    color: var(--fynex-gold-light);
    background: var(--glass-bg-hover);
}

.text-gold {
    color: var(--fynex-gold-base);
}

/* ==========================================================================
   5. CONTENEDOR PRINCIPAL & LAYOUT SPATIAL
   ========================================================================== */
.spatial-app {
    position: relative;
    z-index: 10;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px 14px 32px;
    /* Padding inferior optimizado para escritorio para empujar la cápsula hacia el borde */
}

/* ==========================================================================
   6. BARRA SUPERIOR FLOTANTE (Spatial Top Navigation Bar)
   ========================================================================== */
.spatial-topbar {
    width: 100%;
    max-width: 960px;
    height: 56px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.topbar-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-nav-arrows {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Insignia central elegante con título en dorado puro */
.spatial-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 22px;
    background: rgba(3, 29, 22, 0.55);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(199, 179, 136, 0.4);
    font-size: 0.88rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.spatial-title {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.6px;
    color: var(--fynex-gold-base);
    text-shadow: 0 0 12px rgba(199, 179, 136, 0.3);
}

/* ==========================================================================
   7. DOCK LATERAL FLOTANTE (Spatial Sidebar Toolbar)
   ========================================================================== */
.spatial-sidebar {
    position: fixed;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px 10px;
    border-radius: var(--radius-pill);
    z-index: 90;
    animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sidebar-btn {
    width: 44px;
    height: 44px;
}

.sidebar-btn.is-active {
    background: rgba(199, 179, 136, 0.25);
    border-color: var(--fynex-gold-base);
    color: var(--fynex-gold-base);
}

/* ==========================================================================
   8. ESCENARIO CENTRAL & SWIPER 3D (Spatial Coverflow Gallery)
   ========================================================================== */
.spatial-stage {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-height: calc(100vh - 210px);
    perspective: 1400px;
    /* Profundidad óptica para el efecto 3D */
}

.spatial-swiper {
    width: 100%;
    height: 100%;
    padding-top: 15px;
    padding-bottom: 25px;
    overflow: visible !important;
    /* Permite visualizar las tarjetas 3D adyacentes */
}

/* Tarjeta individual (Slide) */
.spatial-card {
    width: 430px;
    height: 560px;
    max-height: 80vh;
    border-radius: var(--radius-card);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
    cursor: grab;
}

.spatial-card:active {
    cursor: grabbing;
}

/* Marco de cristal de la tarjeta */
.card-glass-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: var(--glass-border-gold);
    box-shadow: var(--spatial-shadow-card);
    background: var(--fynex-green-deep);
    transition: var(--transition-smooth);
}

/* Imagen interior optimizada */
.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Efecto sutil de zoom en la tarjeta activa */
.swiper-slide-active .card-image {
    transform: scale(1.03);
}

/* Botones de acción flotantes en la parte superior de la tarjeta */
.card-floating-actions {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.glass-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    background: rgba(3, 29, 22, 0.55);
    backdrop-filter: var(--glass-blur-medium);
    -webkit-backdrop-filter: var(--glass-blur-medium);
    border: 1px solid rgba(199, 179, 136, 0.45);
    color: var(--fynex-white);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.glass-action-pill:hover {
    background: var(--fynex-gold-base);
    color: var(--fynex-green-deep);
    border-color: var(--fynex-gold-light);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(199, 179, 136, 0.4);
}

.glass-action-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(3, 29, 22, 0.55);
    backdrop-filter: var(--glass-blur-medium);
    -webkit-backdrop-filter: var(--glass-blur-medium);
    border: 1px solid rgba(199, 179, 136, 0.45);
    color: var(--fynex-white);
    cursor: pointer;
    transition: var(--transition-fast);
}

.glass-action-circle:hover {
    background: rgba(199, 179, 136, 0.25);
    color: var(--fynex-gold-light);
    border-color: var(--fynex-gold-base);
}

/* ==========================================================================
   9. OVERLAY INFERIOR DE CRISTAL (Glassmorphism Requerido con Bordes Dorados)
   ========================================================================== */
.card-glass-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px 24px 20px 24px;
    background: var(--glass-bg-card-overlay);
    backdrop-filter: blur(15px);
    /* Desenfoque estipulado en requerimientos */
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(199, 179, 136, 0.35);
    z-index: 5;
    transition: var(--transition-smooth);
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--fynex-white);
}

.card-counter {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fynex-gold-base);
    background: rgba(199, 179, 136, 0.15);
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(199, 179, 136, 0.3);
}

.card-description {
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--fynex-white-muted);
    margin-bottom: 12px;
    font-weight: 400;
}

.overlay-footer {
    display: flex;
    align-items: center;
}

.meta-tag {
    font-size: 0.78rem;
    color: var(--fynex-gold-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.meta-tag i {
    color: var(--fynex-gold-base);
}

/* Efectos visuales de la tarjeta enfocada activa */
.swiper-slide-active .card-glass-frame {
    border-color: rgba(199, 179, 136, 0.75);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.75), 0 0 35px rgba(199, 179, 136, 0.22);
}

/* Efecto de atenuación para tarjetas no activas */
.swiper-slide:not(.swiper-slide-active) {
    opacity: 0.65;
    filter: brightness(0.85);
}

.swiper-slide:not(.swiper-slide-active):hover {
    opacity: 0.85;
    filter: brightness(0.95);
}

/* ==========================================================================
   10. CONTROLADOR CÁPSULA INFERIOR (Spatial Controller Capsule)
   ========================================================================== */
.spatial-controls-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    z-index: 100;
    margin-bottom: 2px;
    /* Acerca sutilmente la cápsula al borde inferior de la pantalla */
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.spatial-controller-capsule {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 18px 8px 12px;
    border-radius: var(--radius-pill);
    max-width: 480px;
    width: auto;
    border: var(--glass-border-gold);
    background: rgba(7, 58, 45, 0.6);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.capsule-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--fynex-white);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition-fast);
    outline: none;
}

.capsule-nav-btn:hover {
    background: var(--glass-bg-hover);
    border-color: var(--fynex-gold-base);
    color: var(--fynex-gold-base);
    transform: scale(1.1);
}

.capsule-info-block {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: var(--radius-pill);
    transition: var(--transition-fast);
}

.capsule-info-block:hover {
    background: rgba(255, 255, 255, 0.04);
}

.capsule-thumbnail-ring {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    padding: 2px;
    border: 1.5px solid var(--fynex-gold-base);
    box-shadow: 0 0 10px rgba(199, 179, 136, 0.35);
    overflow: hidden;
    flex-shrink: 0;
}

.capsule-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.capsule-text-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 140px;
}

.capsule-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fynex-white);
    font-family: var(--font-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.capsule-subtitle {
    font-size: 0.72rem;
    color: var(--fynex-gold-light);
    white-space: nowrap;
    opacity: 0.85;
}

.capsule-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--fynex-white);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.capsule-action-btn:hover {
    color: #ff5277;
    border-color: rgba(255, 82, 119, 0.5);
    background: rgba(255, 82, 119, 0.15);
    transform: scale(1.1);
}

.capsule-action-btn.is-liked {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.2);
    border-color: #ff4757;
}

/* ==========================================================================
   11. PAGINACIÓN SWIPER PERSONALIZADA (Bullets Dorados Estilo Spatial)
   ========================================================================== */
.spatial-pagination {
    position: relative !important;
    bottom: auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.spatial-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.35);
    opacity: 1;
    border-radius: var(--radius-pill);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: 0 !important;
    cursor: pointer;
}

.spatial-pagination .swiper-pagination-bullet:hover {
    background: var(--fynex-gold-light);
    transform: scale(1.3);
}

.spatial-pagination .swiper-pagination-bullet-active {
    width: 24px;
    height: 8px;
    background: var(--fynex-gold-base);
    box-shadow: 0 0 12px var(--fynex-gold-base);
}

/* ==========================================================================
   12. MODAL DE VISTA EXPANDIDA & FICHA TÉCNICA (Spatial Lightbox Modal)
   ========================================================================== */
.spatial-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(3, 29, 22, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.spatial-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-glass-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: var(--glass-border-gold);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.7);
}

.spatial-modal-overlay.is-open .modal-glass-container {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 20;
    background: rgba(3, 29, 22, 0.6);
}

.modal-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.modal-image-wrapper {
    width: 100%;
    height: 520px;
    max-height: 60vh;
    background: #000;
    overflow: hidden;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: 24px 30px;
    background: rgba(7, 58, 45, 0.9);
}

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

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--fynex-white);
}

.modal-badge {
    color: var(--fynex-gold-base);
    background: rgba(199, 179, 136, 0.15);
    border: 1px solid rgba(199, 179, 136, 0.3);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
}

.modal-description {
    font-size: 0.95rem;
    color: var(--fynex-white-muted);
    line-height: 1.5;
}

/* Modal Info / Ficha Técnica específica */
.modal-info-container {
    max-width: 680px;
    padding: 36px 30px;
}

.modal-info-content {
    text-align: center;
}

.info-header .info-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.info-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 28px 0;
    text-align: left;
}

.glass-card-mini {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(199, 179, 136, 0.25);
}

.glass-card-mini i {
    color: var(--fynex-gold-base);
    font-size: 1.2rem;
    margin-bottom: 8px;
    display: block;
}

.glass-card-mini h4 {
    font-size: 0.9rem;
    color: var(--fynex-white);
    margin-bottom: 2px;
}

.glass-card-mini p {
    font-size: 0.8rem;
    color: var(--fynex-white-muted);
}

.glass-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    background: var(--fynex-gold-base);
    color: var(--fynex-green-deep);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-fast);
}

.glass-btn-cta:hover {
    background: var(--fynex-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(199, 179, 136, 0.4);
}

/* ==========================================================================
   13. SISTEMA DE TOAST NOTIFICATIONS (Spatial Micro-Feedback)
   ========================================================================== */
.spatial-toast-container {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.spatial-toast {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    background: rgba(3, 29, 22, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border-gold);
    color: var(--fynex-white);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: toastPop 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.spatial-toast i {
    color: var(--fynex-gold-base);
}

/* ==========================================================================
   14. KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate(-30px, -50%);
    }

    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

@keyframes toastPop {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   15. RESPONSIVE DESIGN (Móvil, Tablet & Pantallas Grandes)
   ========================================================================== */
@media (max-width: 1024px) {
    .spatial-sidebar {
        display: none;
        /* Se simplifica en pantallas medianas */
    }

    .spatial-card {
        width: 380px;
        height: 520px;
    }
}

@media (max-width: 768px) {
    .spatial-app {
        padding: 16px 14px 20px 14px;
    }

    .spatial-topbar {
        height: 50px;
        padding: 0 10px;
    }

    .spatial-subtitle {
        display: none;
        /* Ahorra espacio en móviles */
    }

    .topbar-section--left .topbar-nav-arrows {
        display: none;
    }

    .spatial-card {
        width: calc(100vw - 60px);
        max-width: 340px;
        height: 480px;
        border-radius: 22px;
    }

    .card-glass-frame {
        border-radius: 22px;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .card-description {
        font-size: 0.82rem;
    }

    .spatial-controller-capsule {
        max-width: 95vw;
        gap: 8px;
        padding: 6px 12px 6px 8px;
    }

    .capsule-title {
        max-width: 110px;
        font-size: 0.82rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-height: 700px) {
    .spatial-card {
        height: 400px;
    }

    .card-description {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}
/* iframe/mobile improvements: never let fixed cards escape a short viewport. */
@media (max-width: 768px) {
    .spatial-stage { min-height: 0; max-height: none; }
    .spatial-card { height: min(480px, max(285px, calc(100dvh - 230px))); }
    .spatial-topbar { flex-shrink: 0; }
    .spatial-controller-capsule { width: min(100%, 480px); }
}
@media (prefers-reduced-motion: reduce) {
    .spatial-card, .card-image, .swiper-slide, .glass-panel { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* FYNEX v2: iframe-friendly compact gallery layout */
@media (max-width: 768px) {
  html, body { height: auto; min-height: 0; overflow: hidden; }
  .spatial-app { height: auto; min-height: 0; width: 100%; justify-content: flex-start; gap: 16px; padding: 14px 12px 18px; }
  .spatial-stage { flex: none; height: auto; min-height: 0; max-height: none; width: 100%; align-items: flex-start; }
  .spatial-swiper { height: auto; padding: 10px 0 16px; }
  .spatial-card { height: clamp(370px, 122vw, 490px); max-height: none; }
  .spatial-controls-wrapper { flex: none; margin: 0; gap: 8px; }
  .spatial-topbar { min-height: 54px; height: auto; }
  .spatial-badge { padding: 6px 10px; }
  .spatial-title { font-size: 0.78rem; }
  .spatial-controller-capsule { min-height: 58px; }
}
