﻿/**
 * FM Theme - Main Stylesheet (Compiled)
 * Version: 4.0.1
 * Generated: 2025-12-21 16:39:49
 * DO NOT EDIT THIS FILE DIRECTLY - Edit files in /src instead
 */

/**
 * Â© 2025 Franco Macchiavelli. Todos los derechos reservados.
 * Archivo: fm-theme/assets/css/src/variables.css
 * VersiÃ³n: 4.0.3 (Dark Mode Selector Fix)
 * PropÃ³sito: Variables CSS globales (colores, tipografÃ­a, espaciados)
 *
 * v4.0.3:
 * - FIX: Desacoplado el selector .dark-mode de .theme-uranian
 * para permitir que el modo oscuro ("Electric Platinum")
 * funcione globalmente. Esto alinea el comportamiento con la 
 * referencia (variant-d) y corrige el bug de variables ausentes.
 *
 * v4.0.2:
 * - Revertido --font-size-base de 1.125rem a 1rem (16px)
 * para evitar tipografÃ­as demasiado grandes en toda la web.
 */

:root {
   /* ============================================
       PALETA DE COLORES - Tommy (Default)
       ============================================ */
   --color-primary: #780000;
   --color-primary-rgb: 120, 0, 0;
   --color-secondary: #004a1e;
   --color-light: #ffffff;
   --color-dark: #003049;
   --color-gray: #f4f4f4;
   --color-dark-gray: #003049;
   --color-dark-background: #003049;

   /* Color de texto para botones con fondo primary */
   --button-text-primary: #ffffff;


   /* ============================================
       TIPOGRAFÃA
       ============================================ */
   --font-family-base: 'Poppins', sans-serif;
   --font-family-headings: 'Cal Sans', sans-serif;

   /* TamaÃ±os de fuente base */
   --font-size-base: 1rem;
   /* v4.0.2: Revertido a 16px para legibilidad Ã³ptima */
   --font-size-lg: 1.125rem;
   --font-size-xl: 1.25rem;
   --font-size-2xl: 1.5rem;
   --font-size-3xl: 1.875rem;
   --font-size-4xl: 2.25rem;

   /* ============================================
       ESPACIADOS Y MEDIDAS
       ============================================ */
   --container-width: 1140px;
   --border-radius: 16px;
   --header-capsule-height: 48px;
   --tradingview-height: 46px;

   /* Espaciados */
   --spacing-xs: 0.25rem;
   /* 4px */
   --spacing-sm: 0.5rem;
   /* 8px */
   --spacing-md: 1rem;
   /* 16px */
   --spacing-lg: 1.5rem;
   /* 24px */
   --spacing-xl: 2rem;
   /* 32px */
   --spacing-2xl: 3rem;
   /* 48px */
   --spacing-3xl: 4rem;
   /* 64px */

   /* ============================================
       TRANSICIONES Y ANIMACIONES
       ============================================ */
   --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
   --transition-fast: all 0.2s ease-in-out;

   /* ============================================
       Z-INDEX LAYERS (para evitar conflictos)
       ============================================ */
   --z-base: 1;
   --z-dropdown: 100;
   --z-sticky: 200;
   --z-fixed: 300;
   --z-modal-backdrop: 400;
   --z-modal: 500;
   --z-popover: 600;
   --z-tooltip: 700;

   /* ============================================
       OFFSETS Y CÃLCULOS
       ============================================ */
   --sticky-top-offset: calc(var(--header-capsule-height) + var(--tradingview-height) + 40px);
}

/* ============================================
   PALETA ALTERNATIVA: Uranian (Light)
   ============================================ */
body.theme-uranian {
   --color-primary: #6b458b;
   --color-secondary: #361e5c;
   --color-light: #ffffff;
   --color-dark: #361e5c;
   --color-gray: #f0f5ff;
   --color-dark-gray: #6b458b;
   --color-dark-background: #361e5c;
   background: linear-gradient(180deg, #f0f5ff 0%, #ffffff 100%);
}

/* ============================================
   MODO OSCURO (Global) - "Electric Platinum"
   ============================================ */
/* FIX: Selector cambiado de 'body.theme-uranian.dark-mode' a 'body.dark-mode' */
body.dark-mode {
   /* Variables base del modo oscuro (derivadas de Uranian Dark) */
   --color-primary: #bad6ff;
   --color-secondary: #6b458b;
   --color-light: #03001c;
   --color-dark: #ffffff;
   --color-gray: #03001c;
   --color-dark-gray: #ffffff;
   --color-dark-background: #03001c;

   /* Paleta "Electric Platinum" (de variant-d) */
   --ep-primary: #00d9ff;
   --ep-secondary: #ff2e63;
   --ep-accent: #ffea00;
   --ep-tertiary: #b026ff;
   --ep-background: #03001c;
   --ep-surface: #03001c;
   --ep-text: #f0f8ff;
   --ep-text-secondary: #a8b2d1;
   --ep-gradient: linear-gradient(135deg, #00d9ff 0%, #b026ff 50%, #ffea00 100%);
   --ep-glow: #00d9ff;

   /* Color de texto para botones con fondo primary en dark mode */
   --button-text-primary: #03001c;

   background: #03001c;
   background-color: #03001c;
}

/* ============================================
   TIPOGRAFÃA ALTERNATIVA (Cal Sans)
   ============================================ */
body.font-cal-sans {
   --font-family-headings: 'Cal Sans', sans-serif;
}

/**
 * Â© 2025 Franco Macchiavelli
 * Archivo: fm-theme/assets/css/src/base.css
 * VersiÃ³n: 4.1.3 (Disable Text Selection)
 * PropÃ³sito: Reset global, eliminaciÃ³n de mÃ¡rgenes WP y estilos base.
 */

/* ============================================
   RESET Y NORMALIZACIÃ“N
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FIX: Eliminar margen de WP Admin Bar que rompe el layout */
html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ============================================
   BODY BASE
   ============================================ */
body {
    font-family: var(--font-family-base);
    background-color: var(--color-light);
    color: var(--color-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;

    /* FIX CRÃTICO DESKTOP: Espacio para Ticker arriba */
    padding-top: var(--tradingview-height, 46px);

    /* TAREA: Deshabilitar selecciÃ³n de texto global */
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE10+/Edge */
    user-select: none;
    /* Standard */
}

/* EXCEPCIÃ“N: Permitir selecciÃ³n en inputs y textareas para usabilidad */
input,
textarea,
[contenteditable] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* FIX CRÃTICO MOBILE: Eliminar espacio blanco superior */
/* En mÃ³vil el ticker estÃ¡ abajo, asÃ­ que NO debe haber padding arriba */
@media (max-width: 768px) {
    body {
        padding-top: 0 !important;
    }
}

/* ============================================
   TIPOGRAFÃA GLOBAL
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-headings);
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-base);
}

/* ============================================
   CLASE ESPECIAL: TÃTULOS DE SECCIÃ“N
   ============================================ */
.section-title {
    font-family: var(--font-family-headings);
    font-size: clamp(2.8rem, 5vw, 4rem);
    text-transform: none;
    text-align: left;
    margin-bottom: 70px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.section-title span {
    color: var(--color-primary);
}

/* ============================================
   ELEMENTOS BÃSICOS
   ============================================ */
p {
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   CONTENEDORES & LAYOUT
   ============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 120px 0;
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
}

/* ============================================
   BOTONES BASE
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 0.8rem 1.6rem;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-dark);
    border: 2px solid var(--color-dark);
    padding: 0.8rem 1.6rem;
}

.btn-secondary:hover {
    background-color: var(--color-dark);
    color: var(--color-light);
    transform: translateY(-3px);
}

/* ============================================
   UTILIDADES
   ============================================ */
.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   ANIMACIONES GLOBALES
   ============================================ */
[data-animation] {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.645, 0.045, 0.355, 1),
        transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/**
 * Archivo: assets/css/src/components/ticker.css
 * VersiÃ³n: 1.0.0
 * PropÃ³sito: Layout y cosmetica del ticker de TradingView (V4-COMP-003)
 */

.tradingview-ticker-container-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--tradingview-height, 52px);
    z-index: 2000;
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 25px rgba(3, 0, 28, 0.45);
    backdrop-filter: blur(12px);
    font-size: 0.9rem;
    line-height: 1;
    background: linear-gradient(90deg, rgba(3, 0, 28, 0.85), rgba(26, 37, 63, 0.85));
    overflow: hidden;
}

.tradingview-ticker-container-wrapper .tradingview-widget-container {
    flex: 1;
    min-height: 100%;
    display: flex;
    align-items: stretch;
}

.tradingview-ticker-container-wrapper .tradingview-widget-container__widget,
.tradingview-ticker-container-wrapper .tradingview-widget-container__widget>* {
    height: 100% !important;
}

.tradingview-ticker-container-wrapper .tv-embed-widget-wrapper__body {
    padding: 0 !important;
    display: flex;
    align-items: stretch;
}

.tradingview-ticker-container-wrapper .tradingview-widget-container__widget,
.tradingview-ticker-container-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
}

.tradingview-ticker-container-wrapper .tradingview-widget-copyright {
    display: none;
}

.tv-ticker-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: inherit;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.tv-ticker-fallback[data-state="visible"] {
    opacity: 1;
}

.tv-ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    animation: tv-marquee 35s linear infinite;
    min-width: 100%;
}

.tradingview-ticker-container-wrapper:hover .tv-ticker-track {
    animation-play-state: paused;
}

.tv-ticker-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-light, #fff);
    font-size: 0.85rem;
    line-height: 1;
    white-space: nowrap;
}

.tv-ticker-chip .tv-symbol {
    font-weight: 600;
}

.tv-ticker-chip .tv-code {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
}

@keyframes tv-marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tv-ticker-track {
        animation: none;
    }
}

@media (max-width: 768px) {
    .tradingview-ticker-container-wrapper {
        top: auto;
        bottom: 0;
        height: 48px;
        border-bottom: none;
        border-top: none;
        box-shadow: 0 -10px 25px rgba(3, 0, 28, 0.45);
    }
}

body.theme-uranian.dark-mode .tradingview-ticker-container-wrapper {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(245, 246, 250, 0.92));
    color: #03001c;
    border-bottom: 1px solid rgba(3, 0, 28, 0.12);
    box-shadow: 0 12px 25px rgba(3, 0, 28, 0.2);
}

body.theme-uranian.dark-mode .tv-ticker-chip {
    background: rgba(3, 0, 28, 0.08);
    color: #03001c;
}

body.theme-uranian.dark-mode .tv-ticker-chip .tv-code {
    color: rgba(3, 0, 28, 0.6);
}

/**
 * © 2025 Franco Macchiavelli
 * Archivo: fm-theme/assets/css/src/components/header.css
 * Versión: 3.4.0 (Custom Capsule Colors)
 */

/* =========================================
   ESTRUCTURA PRINCIPAL
   ========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.header-container {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

/* =========================================
   CÁPSULAS (Estilos Compartidos)
   ========================================= */
.header-wrapper {
    display: flex;
    align-items: center;
    height: var(--header-capsule-height, 48px);
    background: #00000060;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    pointer-events: all;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* =========================================
   1. BRAND CAPSULE (SOLO MÓVIL)
   ========================================= */
.brand-capsule {
    display: none !important;
}

/* =========================================
   2. NAVBAR DESKTOP
   ========================================= */
.full-navbar {
    flex-grow: 1;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 5px 0;
    transition: color 0.2s ease;
    font-family: var(--font-family-base);
}

.main-nav a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.btn-header-cta {
    display: inline-flex;
    align-items: center;
    padding: 0 1.5rem;
    height: 32px;
    background-color: var(--color-primary);
    color: var(--button-text-primary) !important;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: transform 0.2s, filter 0.2s;
}

.btn-header-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* =========================================
   3. RIGHT NAVBAR (Iconos)
   ========================================= */
.right-navbar {
    padding: 0 0.5rem;
    flex-shrink: 0;
}

.navbar-button-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-switcher {
    width: 52px;
    height: 28px;
    border-radius: 8px;
    padding: 3px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
}

.sun-icon {
    position: absolute;
    left: 5px;
    color: #FFD700;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toggle-indicator {
    background-color: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    position: absolute;
    left: 3px;
    transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #707075;
}

body.dark-mode .toggle-indicator {
    transform: translateX(24px);
}

body.dark-mode .sun-icon {
    opacity: 1;
}

body.dark-mode .moon-icon {
    opacity: 0;
}

.btn-icon,
.btn-dojo {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background-color: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-dojo {
    width: auto;
    padding: 0 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 500;
}

.btn-icon:hover,
.btn-dojo:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* =========================================
   MOBILE MENU - OCULTO POR DEFECTO
   ========================================= */
.mobile-menu-toggle {
    display: none;
}

.mobile-menu-overlay {
    display: none;
}

/* =========================================
   RESPONSIVE (MOBILE)
   ========================================= */
@media (max-width: 1280px) {

    /* Ocultar Desktop */
    .full-navbar,
    .right-navbar {
        display: none !important;
    }

    /* Mostrar Brand en Móvil */
    .brand-capsule {
        display: flex !important;
        flex-grow: 1;
        justify-content: flex-start;
        align-items: center;
        min-width: 0;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .brand-capsule a {
        color: #ffffff;
        font-weight: 700;
        text-decoration: none;
        line-height: 1;
        white-space: nowrap;
        font-size: 1rem;
    }

    /* Mostrar Toggle en Móvil */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 48px;
        background: #00000060;
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        color: #ffffff;
        backdrop-filter: blur(12px);
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
    }

    /* Hamburger Icon */
    .hamburger-box {
        width: 24px;
        height: 24px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hamburger-inner {
        width: 24px;
        height: 2px;
        background-color: currentColor;
        position: relative;
        border-radius: 2px;
        transition: all 0.3s;
    }

    .hamburger-inner::before,
    .hamburger-inner::after {
        content: '';
        width: 24px;
        height: 2px;
        background-color: currentColor;
        position: absolute;
        left: 0;
        border-radius: 2px;
        transition: all 0.3s;
    }

    .hamburger-inner::before {
        top: -7px;
    }

    .hamburger-inner::after {
        top: 7px;
    }

    /* Mobile Overlay */
    .mobile-menu-overlay {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background-color: var(--color-light);
        z-index: 3000;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        flex-direction: column;
    }

    body.is-mobile-menu-open .mobile-menu-overlay {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-menu-container {
        width: 100%;
        height: 100%;
        padding: 1rem 1.5rem;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 1rem;
    }

    .mobile-menu-brand {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--color-dark);
        font-family: var(--font-family-headings);
    }

    .mobile-menu-close {
        background: none;
        border: none;
        color: var(--color-dark);
        padding: 0.5rem;
        cursor: pointer;
    }

    .mobile-nav {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* FIX: Alineación a la izquierda */
    .mobile-nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: clamp(0.8rem, 2.5vh, 1.5rem);
        width: 100%;
    }

    .mobile-nav-list a {
        font-size: clamp(1.4rem, 4vw, 1.8rem);
        color: var(--color-dark);
        font-weight: 600;
        text-decoration: none;
        font-family: var(--font-family-headings);
        width: 100%;
        text-align: left;
    }

    /* FIX: CTA más angosto */
    .mobile-cta-wrapper {
        margin-top: 1rem;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .btn-header-cta-mobile {
        max-width: 280px;
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        background-color: var(--color-primary);
        color: var(--button-text-primary);
        border-radius: 12px;
        text-decoration: none;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    /* Mobile Footer con botones */
    .mobile-menu-footer {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(128, 128, 128, 0.2);
        display: flex;
        justify-content: center;
    }

    .mobile-footer-buttons {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .mobile-footer-buttons .btn-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background-color: transparent;
        color: var(--color-dark);
        transition: all 0.3s ease;
        border: 1px solid color-mix(in srgb, var(--color-dark), transparent 80%);
        text-decoration: none;
    }

    .mobile-footer-buttons .btn-icon:hover {
        background-color: var(--color-dark);
        color: var(--color-light);
    }

    .mobile-footer-buttons .theme-switcher {
        width: 52px;
        height: 44px;
    }

    .mobile-footer-buttons .btn-text-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 44px;
        padding: 0 1rem;
        border-radius: 12px;
        background-color: transparent;
        color: var(--color-dark);
        transition: all 0.3s ease;
        border: 1px solid color-mix(in srgb, var(--color-dark), transparent 80%);
        text-decoration: none;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    .mobile-footer-buttons .btn-text-mobile:hover {
        background-color: var(--color-dark);
        color: var(--color-light);
    }
}

/**
 * Â© 2025 Franco Macchiavelli. Todos los derechos reservados.
 * Autor del proyecto: Xavier (Baxahaun Venture Studio, https://baxahaun.com)
 * Proyecto: francomacchiavelli.com
 * Archivo: variant-d_tommyhilfgr/components/hero.css (v5.1.0)
 * PEV_REF: TAREA-043-Hero-Background-Adjust
 * ID_PEV: [SESION-ID-PENDIENTE]
 * PROPÃ“SITO: CSS unificado para ambas variantes del Hero, con ajustes en el layout 'background'.
*/

/* ==========================================
   BASE
   ========================================== */
.hero {
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
}

/* ==========================================
   LÃ“GICA DE VISIBILIDAD (Corregida para v4.0)
   ========================================== */

.hero-layout--background {
    display: flex;
    /* Muestra nuestro layout de fondo por defecto */
}

/* ==========================================
   LAYOUT DEFAULT (Cartas Animadas)
   ========================================== 
.hero-layout--default {
    width: 100%;
    height: 100%;
}

.hero-layout--default .hero-content {
    position: absolute;
    top: 20vh;
    left: 8vw;
    z-index: 10;
    text-align: left;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-layout--default h1 { 
    font-size: clamp(3.5rem, 7vw, 6rem);
    line-height: 1.1; 
    text-transform: uppercase;
    font-weight: 400;
    margin: 0;
    color: var(--color-dark-gray);
    text-align: left;
}

.hero-layout--default h1 span { 
    color: var(--color-primary); 
}

.hero-layout--default p { 
    font-size: clamp(0.9rem, 1.3vw, 1.1rem); 
    max-width: 55ch;
    margin: 2vw 0 0;
    color: var(--color-dark);
    text-align: left;
}

.hero-image-presenter {
    position: absolute;
    top: 22vh;
    right: 8vw;
    width: 40vw;
    max-width: 700px;
    aspect-ratio: 16 / 10;
}

.hero-cards-stack {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.hero-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(3, 0, 28, 0.4);
    animation: card-stack-animation 12s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card:nth-child(1) { animation-delay: 0s; }
.hero-card:nth-child(2) { animation-delay: -8s; }
.hero-card:nth-child(3) { animation-delay: -4s; }

@keyframes card-stack-animation {
    0% {
        transform: translateY(20px) rotate(8deg) scale(0.9);
        z-index: 1;
        opacity: 1;
    }
    33.33% {
        transform: translateY(0) rotate(2deg) scale(0.95);
        z-index: 2;
        opacity: 1;
    }
    66.66% {
        transform: translateY(-20px) rotate(-4deg) scale(1);
        z-index: 3;
        opacity: 1;
    }
    90% {
        opacity: 1;
        transform: translateY(-20px) rotate(-4deg) scale(1);
    }
    100% {
        transform: translateY(100px) rotate(15deg) scale(0.8);
        opacity: 0;
        z-index: 1;
    }
}*/

/* ==========================================
   LAYOUT BACKGROUND (Imagen de Fondo)
   ========================================== */
.hero-layout--background {
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    color: #fff;
    background-image:
        linear-gradient(rgba(3, 0, 28, 0.6), rgba(3, 0, 28, 0.6)),
        url('../assets/images/dudando.webp');
    background-size: cover;
    background-position: center 70%;
    width: 100%;
    height: 100%;
    padding: 20vh 8vw;
}

.hero-layout--background .hero-content {
    max-width: 650px;
    padding: 20px;
    align-items: flex-start;
}

.hero-layout--background h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    text-shadow: 0 4px 15px rgba(3, 0, 28, 0.5);
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
}

.hero-layout--background p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    max-width: 55ch;
    margin: 2vw 0 0;
    text-shadow: 0 2px 10px rgba(3, 0, 28, 0.7);
    color: #fff;
}

.hero-layout--background .scroll-down-indicator {
    color: #fff;
    margin-top: 10vh;
}

/* ==========================================
   ELEMENTOS COMUNES
   ========================================== */
.scroll-down-indicator {
    text-decoration: none;
    margin-top: 9vh;
    display: inline-block;
    animation: bounce-scroll 2.5s ease-in-out infinite;
    color: var(--color-dark-gray);
    border-radius: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

.scroll-down-indicator svg {
    width: 60px;
    height: 60px;
}

@keyframes bounce-scroll {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 992px) {
    .hero {
        display: flex;
        align-items: center;
    }

    .hero-layout--default {
        position: static;
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        padding-top: 150px;
        padding-bottom: 80px;
        justify-content: center;
        gap: 60px;
    }

    .hero-layout--default .hero-content,
    .hero-layout--default .hero-image-presenter {
        position: static;
        width: 100%;
        max-width: 600px;
        text-align: center;
        padding: 0 20px;
        align-items: center;
    }

    .hero-layout--default .hero-content {
        order: 1;
    }

    .hero-layout--default .hero-image-presenter {
        order: 2;
        height: auto;
    }

    .hero-layout--default h1,
    .hero-layout--default p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .scroll-down-indicator {
        margin-top: 40px;
    }

    /* Hero background sin padding para cubrir viewport completo en mÃ³vil */
    .hero-layout--background {
        padding: 0;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-layout--background .hero-content {
        padding: 1rem;
    }

    .hero-layout--background h1 {
        font-size: 3rem;
    }

    .hero-layout--background p {
        font-size: 1.2rem;
    }
}

/**
 * @version      4.0.6
 * @date         2025-11-27
 * @author       Baxahaun Venture Studio https://baxahaun.com
 * // PEV_REF:   V4-COMP-004-Logo-Ticker
 * PROPÃ“SITO: Estilos para el Logo Ticker, migrados desde variant-d (v5.0.0)
 * y extraÃ­dos del PHP (v1.4.0) a un archivo dedicado.
*/

.logo-ticker {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    display: flex;
    background-color: var(--color-background, var(--color-light));
    /* Fallback a --color-light */
    padding: 30px 0;
}

/* CORRECCIÃ“N: Alineado con el selector de dark mode global (variant-d/style.css) */
body.dark-mode .logo-ticker {
    /* Fondo blanco semitransparente con blur para resaltar logos oscuros */
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.1);
}

.logo-ticker-content {
    display: flex;
    animation: logo-scroll 60s linear infinite;
}

@keyframes logo-scroll {
    from {
        transform: translateX(0%);
    }

    to {
        transform: translateX(-50%);
    }
}

.logo-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    flex-shrink: 0;
}

.logo-item img {
    height: 40px;
    width: auto;
    max-width: 250px;
    display: block;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.logo-item:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* CORRECCIÃ“N: Alineado con el selector de dark mode global (variant-d/style.css) */
body.dark-mode .logo-item img {
    /* En este nuevo diseÃ±o con fondo blanco, usamos los mismos estilos que en modo claro */
    opacity: 0.85;
}

body.dark-mode .logo-item:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* --- AJUSTES ESPECÃFICOS POR LOGO --- */

/* Capital Radio: Ajuste de visibilidad y tamaÃ±o */
.logo-item img[src*="capital"] {
    height: 55px;
    /* Un poco mÃ¡s grande que el default de 40px */
}

body.dark-mode .logo-item img[src*="capital"] {
    /* Aumentamos contraste para que destaque sobre el fondo blanco semitransparente */
    filter: contrast(1.2) brightness(0.9);
}

body.dark-mode .logo-item:hover img[src*="capital"] {
    /* Intensifica el azul en hover */
    filter: contrast(1.3) saturate(1.2) brightness(0.85);
    opacity: 1;
    transform: scale(1.1);
}

/* ExpansiÃ³n: Ajuste de tamaÃ±o */
.logo-item img[src*="expansion"] {
    height: 100px;
    /* Aumentado para compensar visualmente */
    width: auto;
}

/**
 * @version      4.0.0
 * @date         2025-11-08
 * @author       Baxahaun Venture Studio https://baxahaun.com
 * // PEV_REF:   V4-COMP-005-Metodo
 * PROPÃ“SITO: Estilos para el bloque 'El MÃ©todo', migrados 1:1 desde
 * variant-d (metodo_blueprint.css v5.0.0).
*/

/* ===================================== */
/* CONTENEDOR PRINCIPAL - GRID 2 COLUMNAS */
/* ===================================== */

.blueprint-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
    min-height: 80vh;
}

/* ===================================== */
/* COLUMNA IZQUIERDA - TEXTO */
/* ===================================== */

.blueprint-text-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
}

.blueprint-container h2 {
    font-family: var(--font-family-headings);
    font-size: clamp(2.8rem, 5vw, 4rem);
    text-transform: uppercase;
    text-align: left;
    margin: 0;
    color: var(--color-dark-gray);
    line-height: 1.2;
}

.blueprint-container h2 span {
    color: var(--color-primary);
}

.blueprint-container .method-description {
    text-align: left;
    max-width: 500px;
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-dark);
    line-height: 1.7;
}

body.dark-mode .blueprint-container h2 {
    color: var(--text-primary);
}

body.dark-mode .blueprint-container h2 span {
    color: var(--color-primary);
}

body.dark-mode .blueprint-container .method-description {
    color: var(--text-secondary);
}

/* ===================================== */
/* COLUMNA DERECHA - DIAGRAMA */
/* ===================================== */

.diagram-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================== */
/* NODO CENTRAL */
/* ===================================== */

.center-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    margin-left: -90px;
    margin-top: -90px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: 4px solid var(--color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 100;
    box-shadow: 0 20px 60px rgba(3, 0, 28, 0.3);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.center-node-text {
    font-family: var(--font-family-headings);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-light);
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(3, 0, 28, 0.3);
}

body.dark-mode .center-node {
    background: var(--accent-gradient);
    border-color: var(--ep-surface);
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.4);
}

body.dark-mode .center-node-text,
body.theme-uranian.dark-mode .center-node-text {
    color: var(--color-dark);
    text-shadow: 0 2px 10px rgba(3, 0, 28, 0.45);
}

.diagram-wrapper.has-focus .center-node {
    transform: scale(0.7);
    opacity: 0.5;
}

/* ===================================== */
/* NODOS PERIFÃ‰RICOS - SISTEMA DE VARIABLES */
/* ===================================== */

.node {
    --push-x: 0px;
    --push-y: 0px;
    --node-scale: 1;

    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    min-height: 140px;
    background: var(--color-light);
    border: 3px solid var(--color-primary);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 10px;
    cursor: pointer;
    z-index: 50;
    box-shadow: 0 10px 30px rgba(3, 0, 28, 0.15);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.dark-mode .node {
    background: var(--ep-surface);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.node.is-focused {
    --node-scale: 1.15;
    width: 300px;
    min-height: 240px;
    padding: 30px;
    border-width: 4px;
    box-shadow: 0 30px 80px rgba(var(--color-primary-rgb), 0.5);
    z-index: 200;
}

body.dark-mode .node.is-focused {
    box-shadow: 0 30px 80px rgba(0, 217, 255, 0.6);
}

.node.is-dimmed {
    --node-scale: 0.65;
    opacity: 0.4;
    border-color: rgba(var(--color-primary-rgb), 0.3);
}

body.dark-mode .node.is-dimmed {
    border-color: rgba(0, 217, 255, 0.3);
}

/* ===================================== */
/* CONTENIDO DEL NODO */
/* ===================================== */

.node-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
}

.node-icon {
    font-size: 2.2rem;
    color: var(--color-primary);
    transition: all 0.4s ease;
}

body.dark-mode .node-icon {
    color: var(--color-primary);
}

.node.is-focused .node-icon {
    font-size: 2.8rem;
}

.node-content h3 {
    font-family: var(--font-family-headings);
    color: var(--color-dark-gray);
    font-size: 1rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    transition: all 0.4s ease;
}

body.dark-mode .node-content h3 {
    color: var(--text-primary);
}

.node.is-focused .node-content h3 {
    font-size: 1.3rem;
}

/* ===================================== */
/* DESCRIPCIÃ“N (visible solo en focused) */
/* ===================================== */

.node-description {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    text-align: center;
}

.node.is-focused .node-description {
    opacity: 1;
    max-height: 500px;
    margin-top: 15px;
}

.node-description p {
    font-family: var(--font-family-base);
    color: var(--color-dark);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

body.dark-mode .node-description p {
    color: var(--text-secondary);
}

/* ===================================== */
/* POSICIONAMIENTO CIRCULAR (6 NODOS) */
/* Radio: 320px desde el centro */
/* ===================================== */

.node-1 {
    transform: translate(-50%, -50%) translate(calc(277px + var(--push-x)), calc(-160px + var(--push-y))) scale(var(--node-scale));
}

.node-2 {
    transform: translate(-50%, -50%) translate(calc(320px + var(--push-x)), calc(0px + var(--push-y))) scale(var(--node-scale));
}

.node-3 {
    transform: translate(-50%, -50%) translate(calc(277px + var(--push-x)), calc(160px + var(--push-y))) scale(var(--node-scale));
}

.node-4 {
    transform: translate(-50%, -50%) translate(calc(-277px + var(--push-x)), calc(160px + var(--push-y))) scale(var(--node-scale));
}

.node-5 {
    transform: translate(-50%, -50%) translate(calc(-320px + var(--push-x)), calc(0px + var(--push-y))) scale(var(--node-scale));
}

.node-6 {
    transform: translate(-50%, -50%) translate(calc(-277px + var(--push-x)), calc(-160px + var(--push-y))) scale(var(--node-scale));
}

/* ===================================== */
/* LÃNEAS DE CONEXIÃ“N - PERFECTAMENTE CENTRADAS */
/* ===================================== */

.line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 210px;
    height: 2px;
    margin-top: -1px;
    background: linear-gradient(90deg,
            rgba(var(--color-primary-rgb), 0.3),
            rgba(var(--color-primary-rgb), 0.6),
            rgba(var(--color-primary-rgb), 0.3));
    transform-origin: left center;
    z-index: 1;
    opacity: 0.6;
    transition: all 0.6s ease;
}

body.dark-mode .line {
    background: linear-gradient(90deg,
            rgba(0, 217, 255, 0.2),
            rgba(0, 217, 255, 0.5),
            rgba(0, 217, 255, 0.2));
}

.diagram-wrapper.has-focus .line {
    opacity: 0.2;
}

.line-1 {
    transform: rotate(30deg);
}

.line-2 {
    transform: rotate(90deg);
}

.line-3 {
    transform: rotate(150deg);
}

.line-4 {
    transform: rotate(210deg);
}

.line-5 {
    transform: rotate(270deg);
}

.line-6 {
    transform: rotate(330deg);
}

.line.is-active {
    background: linear-gradient(90deg,
            var(--color-primary),
            var(--color-secondary),
            var(--color-primary));
    height: 4px;
    margin-top: -2px;
    opacity: 1;
}

body.dark-mode .line.is-active {
    background: linear-gradient(90deg,
            var(--color-primary),
            var(--color-secondary),
            var(--color-primary));
}

/* ===================================== */
/* RESPONSIVE - TABLET */
/* ===================================== */

@media (max-width: 1200px) {
    .blueprint-container {
        grid-template-columns: 1fr;
        gap: 60px;
        min-height: auto;
        padding: 60px 0;
    }

    .blueprint-text-content {
        align-items: center;
        text-align: center;
    }

    .blueprint-container h2,
    .blueprint-container .method-description {
        text-align: center;
    }

    .diagram-wrapper {
        max-height: 600px;
    }

    .center-node {
        width: 150px;
        height: 150px;
        margin-left: -75px;
        margin-top: -75px;
    }

    .center-node-text {
        font-size: 1.4rem;
    }

    .node {
        width: 170px;
        min-height: 120px;
        padding: 18px;
    }

    .node.is-focused {
        width: 260px;
        min-height: 200px;
    }

    .node-1 {
        transform: translate(-50%, -50%) translate(calc(234px + var(--push-x)), calc(-135px + var(--push-y))) scale(var(--node-scale));
    }

    .node-2 {
        transform: translate(-50%, -50%) translate(calc(270px + var(--push-x)), calc(0px + var(--push-y))) scale(var(--node-scale));
    }

    .node-3 {
        transform: translate(-50%, -50%) translate(calc(234px + var(--push-x)), calc(135px + var(--push-y))) scale(var(--node-scale));
    }

    .node-4 {
        transform: translate(-50%, -50%) translate(calc(-234px + var(--push-x)), calc(135px + var(--push-y))) scale(var(--node-scale));
    }

    .node-5 {
        transform: translate(-50%, -50%) translate(calc(-270px + var(--push-x)), calc(0px + var(--push-y))) scale(var(--node-scale));
    }

    .node-6 {
        transform: translate(-50%, -50%) translate(calc(-234px + var(--push-x)), calc(-135px + var(--push-y))) scale(var(--node-scale));
    }

    .line {
        width: 180px;
    }
}

/* ===================================== */
/* RESPONSIVE - MOBILE */
/* ===================================== */

@media (max-width: 768px) {
    .blueprint-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px;
        min-height: auto;
    }

    /* --- VERTICAL FLOW LAYOUT --- */

    .diagram-wrapper {
        max-height: none;
        /* Permitir crecimiento natural */
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
    }

    /* LÃ­nea Vertical Conectora */
    .diagram-wrapper::before {
        content: '';
        position: absolute;
        top: 60px;
        /* Debajo del nodo central */
        bottom: 40px;
        left: 50%;
        width: 2px;
        background: linear-gradient(180deg,
                var(--color-primary),
                rgba(var(--color-primary-rgb), 0.3));
        z-index: 0;
        transform: translateX(-50%);
    }

    /* Ocultar lÃ­neas radiales originales */
    .line {
        display: none;
    }

    /* Nodo Central (Header) */
    .center-node {
        position: relative;
        top: auto;
        left: auto;
        margin: 0;
        width: 100px;
        height: 100px;
        transform: none !important;
        /* Anular animaciones de foco */
        margin-bottom: 20px;
        z-index: 10;
    }

    .center-node-text {
        font-size: 1rem;
    }

    /* Nodos PerifÃ©ricos (Lista Vertical) */
    .node {
        position: relative;
        top: auto;
        left: auto;
        transform: none !important;
        /* Reset total de posiciÃ³n */
        width: 90%;
        max-width: 340px;
        min-height: 80px;
        margin: 0;
        z-index: 10;
        background: var(--color-light);
        /* Mantener interacciÃ³n de click */
    }

    /* Reset de clases especÃ­ficas de posiciÃ³n */
    .node-1,
    .node-2,
    .node-3,
    .node-4,
    .node-5,
    .node-6 {
        transform: none !important;
    }

    /* Estilos de Nodo en MÃ³vil */
    .node-content {
        flex-direction: row;
        gap: 15px;
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }

    .node-icon {
        font-size: 1.8rem;
        min-width: 40px;
        /* Evitar encogimiento */
    }

    .node-content h3 {
        font-size: 1rem;
        margin: 0;
    }

    /* Estado Expandido (Focused) */
    .node.is-focused {
        width: 95%;
        max-width: 360px;
        min-height: auto;
        padding: 25px;
        z-index: 20;
        border-color: var(--color-secondary);
    }

    .node.is-focused .node-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .node.is-focused .node-description {
        margin-top: 15px;
        font-size: 0.95rem;
    }

    /* Ajustes Dark Mode */
    body.dark-mode .node {
        background: var(--ep-surface);
    }
}

/**
 * @version      4.0.1
 * @date         2025-11-27
 * @author       Baxahaun Venture Studio https://baxahaun.com
 * // PEV_REF:   V4-COMP-006-Testimonial
 * PROPÓSITO: Estilos para el bloque 'Testimonial', migrados 1:1 desde
 * variant-d (testimonial-banner.css v3.1.0).
*/

#testimonios {
    padding: 120px 0;
    background-color: #ffffff !important;
    overflow: hidden;
    position: relative;
}

body.dark-mode #testimonios {
    background-color: var(--color-dark-background) !important;
}

.testimonial-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
}

.testimonial-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
}

body.dark-mode .testimonial-description {
    color: var(--text-secondary);
}

.testimonial-ticker-container {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    cursor: grab;
    /* Indicador visual de dragging */
}

.testimonial-ticker-container:active {
    cursor: grabbing;
}

.testimonial-ticker {
    display: flex;
    width: max-content;
}

.testimonial-ticker.animate {
    animation: testimonial-scroll 70s linear infinite;
}

@keyframes testimonial-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    background-color: var(--color-light);
    border: 1px solid #e9e9e9;
    border-radius: var(--border-radius);
    padding: 35px;
    margin: 20px;
    /* Margen para la sombra */
    width: 450px;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 48, 73, 0.07);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

body.dark-mode .testimonial-card {
    background: linear-gradient(135deg, rgba(3, 0, 28, 0.94), rgba(3, 0, 28, 0.75));
    border-color: rgba(0, 217, 255, 0.2);
    box-shadow: 0 15px 40px rgba(3, 0, 28, 0.4);
    color: var(--text-primary);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 48, 73, 0.12);
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: inherit;
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 20px -5px var(--color-primary), inset 0 0 15px -5px var(--color-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

body.dark-mode .testimonial-card::after {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px -5px var(--color-primary), inset 0 0 15px -5px var(--color-primary);
}


.testimonial-card:hover::after {
    opacity: 0.8;
}

.testimonial-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary);
}

body.dark-mode .testimonial-avatar {
    border-color: var(--color-primary);
}

.testimonial-avatar.avatar-generated {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    background-color: var(--avatar-color, var(--color-primary));
    color: #ffffff;
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
}

.testimonial-author {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
    color: var(--color-dark-gray);
}

body.dark-mode .testimonial-author {
    color: var(--text-primary);
}

.testimonial-tag {
    font-size: 0.8rem;
    color: #666;
}

body.dark-mode .testimonial-tag {
    color: var(--text-secondary);
}

.testimonial-card blockquote {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    border: none;
    font-style: normal;
    color: var(--color-dark);
}

body.dark-mode .testimonial-card blockquote {
    color: var(--text-secondary);
}

/**
 * © 2025 Franco Macchiavelli. Todos los derechos reservados.
 * Autor del proyecto: Xavier (Baxahaun Venture Studio, https://baxahaun.com)
 * Proyecto: francomacchiavelli.com
 * Archivo: variant-d_tommyhilfgr/components/la-formacion.css (v3.1.0)
 * @version      3.1.0
 * @date         2025-10-23
 * @author       Baxahaun Venture Studio https://baxahaun.com
 * PEV_REF:      TAREA-052-Formation-Fade-Carousel
 * ID_PEV:       [ID_PEV_PENDIENTE]
 * PROPÓSITO:    Implementa efecto fade en carrusel, oculta flechas y ajusta posición CTA.
*/

#la-formacion {
    padding: 120px 8vw;
    background-color: var(--color-gray);
    display: flex;
    flex-direction: column;
    gap: 60px;
    /* Espacio entre header, carrusel y CTA */
    align-items: center;
    /* Centra los elementos hijos (header, wrapper, CTA) */
}

body.dark-mode #la-formacion {
    background-color: var(--surface-soft);
}

/* --- Fila 1: Header Centrado --- */
.formation-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
    max-width: 800px;
    /* width: 100%; Se quita para que se centre por el flex del padre */
    margin: 0;
    /* Se quita el margin auto */
}

.formation-header .section-title {
    margin: 0;
}

.formation-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-dark-gray);
    max-width: 60ch;
}

body.dark-mode .formation-description {
    color: var(--text-secondary);
}

/* --- Fila 2: Carrusel --- */
.formation-carousel-wrapper {
    width: 100%;
    max-width: 1200px;
    /* Mantiene ancho máximo */
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.formation-carousel-container {
    position: relative;
    overflow: hidden;
    /* Oculta slides inactivas */
    width: 100%;
    min-height: 350px;
    /* Altura mínima para contener las cards */
    /* background-color: #eee; Para debug */
}

.formation-carousel-track {
    position: relative;
    /* Padre para slides absolutas */
    width: 100%;
    height: 100%;
    /* Ocupa la altura del container */
    /* transition removida, se maneja en las cards */
}

.formation-step-card {
    position: absolute;
    /* Clave para el efecto fade */
    top: 0;
    left: 0;
    width: 100%;
    /* Ocupa todo el ancho del track */
    opacity: 0;
    /* Ocultas por defecto */
    transition: opacity 0.6s ease-in-out, transform 0.35s ease, box-shadow 0.35s ease;
    pointer-events: none;
    /* Inactivas por defecto */

    /* Estilos previos mantenidos */
    background-color: var(--color-light);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 50px 40px;
    box-shadow: 0 10px 30px rgba(0, 48, 73, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    min-height: 350px;
    /* Asegura altura consistente */
    justify-content: center;
}

/* Estilo para la card activa */
.formation-step-card.active {
    opacity: 1;
    pointer-events: auto;
    /* Se puede interactuar con ella si tuviera enlaces */
    z-index: 1;
    /* Asegura que esté por encima de otras */
}

.formation-step-card.active:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 18px 45px rgba(0, 48, 73, 0.18);
}

body.dark-mode .formation-step-card.active:hover {
    box-shadow: 0 25px 50px rgba(3, 0, 28, 0.55);
}


body.dark-mode .formation-step-card {
    background: linear-gradient(135deg, rgba(3, 0, 28, 0.94), rgba(3, 0, 28, 0.75));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow: 0 15px 40px rgba(3, 0, 28, 0.4);
    color: var(--text-primary);
}

.step-icon {
    color: var(--color-primary);
    background-color: rgba(var(--color-primary-rgb), 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.step-icon .material-icons {
    font-size: 2.2rem;
}

body.dark-mode .step-icon {
    color: var(--color-primary);
    background-color: rgba(0, 217, 255, 0.15);
}

.formation-step-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.75rem;
    font-family: var(--font-family-headings);
    color: var(--color-dark-gray);
}

body.dark-mode .formation-step-card h3 {
    color: var(--text-primary);
}

.formation-step-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    max-width: 50ch;
}

body.dark-mode .formation-step-card p {
    color: var(--text-secondary);
}

.formation-step-card.bonus .step-icon {
    --color-secondary-rgb: 0, 74, 30;
    background-color: rgba(var(--color-secondary-rgb), 0.1);
    color: var(--color-secondary, #004a1e);
}

body.dark-mode .formation-step-card.bonus .step-icon {
    background-color: rgba(176, 38, 255, 0.15);
    color: var(--color-secondary);
}

/* --- Navegación: Flechas --- */
.carousel-arrow {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-dark-gray);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.carousel-arrow .material-icons {
    font-size: 2rem;
}

.carousel-arrow:hover {
    transform: scale(1.2);
    color: var(--color-primary);
}

body.dark-mode .carousel-arrow {
    color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .carousel-arrow:hover {
    color: var(--color-primary);
}

/* --- Navegación: Dots --- */
.formation-carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Alinear verticalmente flechas y dots */
    gap: 15px;
    /* Un poco más de espacio */
    width: 100%;
    margin-top: 20px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.nav-dot:hover {
    transform: scale(1.25);
    background-color: #999;
}

.nav-dot.active {
    background-color: var(--color-primary);
    transform: scale(1.2);
}

body.dark-mode .nav-dot {
    background-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .nav-dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .nav-dot.active {
    background-color: var(--color-primary);
}

/* --- CTA Button Styling (Nueva posición) --- */
.formation-cta {
    /* align-self: center; No necesario si #la-formacion tiene align-items: center */
    margin-top: 0;
    /* El gap del flex container #la-formacion ya da espacio */
}


/* --- Responsive --- */
@media (max-width: 992px) {
    #la-formacion {
        gap: 50px;
    }
}

@media (max-width: 768px) {
    #la-formacion {
        padding: 80px 5vw;
        gap: 40px;
    }

    .formation-header {
        gap: 20px;
    }

    .carousel-arrow .material-icons {
        font-size: 1.8rem;
        /* Flechas un poco más pequeñas en móvil */
    }
}

/**
 * Â© 2025 Franco Macchiavelli. Todos los derechos reservados.
 * Autor del proyecto: Xavier (Baxahaun Venture Studio, https://baxahaun.com)
 * Proyecto: francomacchiavelli.com
 * Archivo: assets/css/src/components/comunidad.css
 * @version      8.0.0 (Modern Discord Redesign)
 * @date         2025-11-27
 * PROPÃ“SITO:    RÃ©plica exacta de Discord Moderno (#313338) con soporte mÃ³vil contenido.
*/

:root {
    /* Discord Modern Palette (2024/2025) */
    --discord-bg: #313338;
    /* Fondo principal del chat */
    --discord-sidebar: #2b2d31;
    /* Sidebar de canales y User Panel */
    --discord-servers: #1e1f22;
    /* Barra de servidores */
    --discord-header: #313338;
    /* Header del chat (a veces igual al bg o un poco mÃ¡s claro) */
    --discord-input: #383a40;
    /* Fondo del input */
    --discord-divider: #26272d;
    /* LÃ­neas divisorias (sutiles) */

    --discord-text-normal: #dbdee1;
    /* Texto de mensajes */
    --discord-text-header: #f2f3f5;
    /* TÃ­tulos, nombres de canal */
    --discord-text-muted: #949ba4;
    /* Timestamps, placeholders, canales inactivos */
    --discord-text-link: #00a8fc;
    /* Enlaces */

    --discord-brand: #ffffff;
    /* Blurple moderno */
    --discord-brand-hover: #4752c4;
    --discord-green: #23a559;
    /* Online status */
    --discord-red: #da373c;
    /* Notificaciones, DND */
    --discord-yellow: #f0b232;
    /* Idle */

    --discord-hover-bg: rgba(78, 80, 88, 0.3);
    /* Hover genÃ©rico */
    --discord-active-bg: rgba(78, 80, 88, 0.6);
    /* Active genÃ©rico */

    --discord-font: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#comunidad {
    padding: 120px 8vw;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    /* Fondo de la secciÃ³n web (no del chat) */
    color: var(--color-dark-gray);
    position: relative;
    overflow: hidden;
}

/* Modo oscuro de la WEB (afecta al contenedor, no al chat que ya es oscuro) */
body.dark-mode #comunidad {
    background-color: var(--ep-background);
    color: var(--ep-text);
}

.comunidad-header {
    width: 100%;
    margin-bottom: 60px;
    text-align: left;
}

#comunidad .section-title {
    text-align: left;
    margin: 0;
    padding: 0;
    color: var(--color-dark-gray);
}

#comunidad .section-title span {
    color: var(--color-primary);
}

body.dark-mode #comunidad .section-title {
    color: var(--ep-text);
}

body.dark-mode #comunidad .section-title span {
    color: var(--ep-primary);
}

.comunidad-discord-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5vw;
    align-items: center;
    /* Centrado verticalmente */
    width: 100%;
    padding: 0;
}

/* --- Columna Izquierda: Texto --- */
.comunidad-main-content .comunidad-paragraph {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.8;
    color: inherit;
    max-width: 65ch;
    margin: 0;
    text-align: left;
}

.comunidad-paragraph strong,
.comunidad-paragraph em {
    color: var(--color-primary);
    font-weight: 700;
}

body.dark-mode .comunidad-paragraph strong,
body.dark-mode .comunidad-paragraph em {
    color: var(--ep-primary);
}

/* --- Columna Derecha: Interfaz Discord (RÃ‰PLICA EXACTA) --- */
.discord-interface {
    display: flex;
    height: 600px;
    max-height: 80vh;
    border-radius: 8px;
    background-color: var(--discord-bg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    /* Sombra mÃ¡s profunda */
    overflow: hidden;
    font-family: var(--discord-font);
    color: var(--discord-text-normal);
    position: relative;
}

/* 1. Server Rail */
.discord-server-bar {
    width: 72px;
    flex-shrink: 0;
    background-color: var(--discord-servers);
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    overflow-y: auto;
}

.discord-server-bar::-webkit-scrollbar {
    display: none;
}

/* Ocultar scroll */

.server-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #313338;
    /* Fondo placeholder */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-out;
    position: relative;
    color: var(--discord-text-normal);
    font-weight: 500;
    font-size: 0.9rem;
}

.server-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* Pill indicator */
.server-icon::before {
    content: '';
    position: absolute;
    left: -16px;
    /* Fuera de la vista inicialmente */
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 0 4px 4px 0;
    transition: all 0.2s ease;
    opacity: 0;
}

.server-icon:hover {
    border-radius: 16px;
    background-color: var(--discord-brand);
    color: white;
}

.server-icon:hover::before {
    left: -12px;
    /* Ajuste visual */
    height: 20px;
    opacity: 1;
}

.server-icon.active {
    border-radius: 16px;
    background-color: var(--discord-brand);
}

.server-icon.active::before {
    left: -12px;
    height: 40px;
    opacity: 1;
}

.server-separator {
    width: 32px;
    height: 2px;
    background-color: #35363c;
    border-radius: 1px;
    margin: 4px 0;
}

/* 2. Sidebar (Canales) */
.discord-sidebar {
    width: 240px;
    flex-shrink: 0;
    background-color: var(--discord-sidebar);
    display: flex;
    flex-direction: column;
    border-radius: 8px 0 0 0;
    /* PequeÃ±o detalle de diseÃ±o moderno */
}

.sidebar-header {
    height: 160px;
    padding: 0 16px;
    border-bottom: 1px solid #1f2023;
    /* Sutil */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sidebar-header:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.sidebar-header h3 {
    color: var(--discord-text-header);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.channel-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px 8px;
}

.channel-category {
    display: flex;
    align-items: center;
    padding: 0 8px;
    margin-bottom: 4px;
    cursor: pointer;
    color: var(--discord-text-muted);
}

.channel-category:hover {
    color: var(--discord-text-normal);
}

.channel-category h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 0 2px;
}

.category-arrow {
    font-size: 0.65rem;
    margin-right: 2px;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 2px;
    color: var(--discord-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.channel-item i {
    font-size: 1.2rem;
    color: #80848e;
}

/* Hash icon color */
.channel-item:hover {
    background-color: var(--discord-hover-bg);
    color: var(--discord-text-normal);
}

.channel-item.active {
    background-color: rgba(88, 101, 242, 0.2);
    /* Brand tint */
    color: white;
}

.channel-item.active i {
    color: white;
}

/* User Panel (Bottom Sidebar) */
.user-panel {
    height: 52px;
    background-color: #232428;
    /* Ligeramente mÃ¡s oscuro que sidebar */
    display: flex;
    align-items: center;
    padding: 0 8px;
    flex-shrink: 0;
}

.user-avatar-container {
    position: relative;
    margin-right: 8px;
    cursor: pointer;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.user-status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background-color: var(--discord-green);
    border: 3px solid #232428;
    /* Mask effect */
    border-radius: 50%;
}

.user-info {
    flex-grow: 1;
    cursor: pointer;
}

.user-name {
    display: block;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.user-discriminator {
    display: block;
    color: var(--discord-text-muted);
    font-size: 0.75rem;
}

.user-actions i {
    padding: 8px;
    border-radius: 4px;
    color: var(--discord-text-muted);
    font-size: 1.1rem;
    cursor: pointer;
}

.user-actions i:hover {
    background-color: var(--discord-hover-bg);
    color: var(--discord-text-normal);
}

/* 3. Chat Window */
.discord-chat-window {
    flex-grow: 1;
    background-color: var(--discord-bg);
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Fix flex overflow */
}

.chat-header {
    height: 75px;
    padding: 0 16px;
    border-bottom: 1px solid #26272d;
    /* Sutil */
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    color: var(--discord-text-header);
    background-color: var(--discord-bg);
}

.channel-name-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1rem;
}

.channel-name-header i {
    color: #80848e;
    font-size: 1.4rem;
}

.channel-topic {
    color: var(--discord-text-muted);
    font-weight: 400;
    font-size: 0.85rem;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid #3f4147;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--discord-text-muted);
}

.chat-header-icons i {
    cursor: pointer;
    transition: color 0.2s;
    font-size: 1.3rem;
}

.chat-header-icons i:hover {
    color: var(--discord-text-normal);
}

.search-bar {
    background-color: #1e1f22;
    border-radius: 4px;
    padding: 4px 8px;
    width: 144px;
    font-size: 0.85rem;
    color: var(--discord-text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: text;
    transition: width 0.2s;
}

/* Messages Area */
.chat-messages-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px 0;
    scrollbar-width: thin;
    scrollbar-color: #1a1b1e #2b2d31;
}

.chat-messages-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.chat-messages-container::-webkit-scrollbar-track {
    background-color: #2b2d31;
    border-radius: 4px;
}

.chat-messages-container::-webkit-scrollbar-thumb {
    background-color: #1a1b1e;
    border-radius: 4px;
}

.chat-message {
    display: flex;
    padding: 2px 16px;
    margin-top: 17px;
    /* Cozy mode spacing */
    position: relative;
}

.chat-message:hover {
    background-color: rgba(2, 2, 2, 0.06);
}

/* Sutil highlight */

.chat-message .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    background-color: var(--discord-brand);
    /* Fallback */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Sutil */
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    color: var(--discord-text-header);
    background-color: var(--discord-bg);
}

.channel-name-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1rem;
}

.channel-name-header i {
    color: #80848e;
    font-size: 1.4rem;
}

.channel-topic {
    color: var(--discord-text-muted);
    font-weight: 400;
    font-size: 0.85rem;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid #3f4147;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--discord-text-muted);
}

.chat-header-icons i {
    cursor: pointer;
    transition: color 0.2s;
    font-size: 1.3rem;
}

.chat-header-icons i:hover {
    color: var(--discord-text-normal);
}

.search-bar {
    background-color: #1e1f22;
    border-radius: 4px;
    padding: 4px 8px;
    width: 144px;
    font-size: 0.85rem;
    color: var(--discord-text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: text;
    transition: width 0.2s;
}

/* Messages Area */
.chat-messages-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px 0;
    scrollbar-width: thin;
    scrollbar-color: #1a1b1e #2b2d31;
}

.chat-messages-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.chat-messages-container::-webkit-scrollbar-track {
    background-color: #2b2d31;
    border-radius: 4px;
}

.chat-messages-container::-webkit-scrollbar-thumb {
    background-color: #1a1b1e;
    border-radius: 4px;
}

.chat-message {
    display: flex;
    padding: 2px 16px;
    margin-top: 17px;
    /* Cozy mode spacing */
    position: relative;
}

.chat-message:hover {
    background-color: rgba(2, 2, 2, 0.06);
}

/* Sutil highlight */

.chat-message .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    background-color: var(--discord-brand);
    /* Fallback */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.message-content {
    .chat-header-icons i {
        cursor: pointer;
        transition: color 0.2s;
        font-size: 1.3rem;
    }

    .chat-header-icons i:hover {
        color: var(--discord-text-normal);
    }

    .search-bar {
        background-color: #1e1f22;
        border-radius: 4px;
        padding: 4px 8px;
        width: 144px;
        font-size: 0.85rem;
        color: var(--discord-text-muted);
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: text;
        transition: width 0.2s;
    }

    /* Messages Area */
    .chat-messages-container {
        flex-grow: 1;
        overflow-y: auto;
        padding: 16px 0;
        scrollbar-width: thin;
        scrollbar-color: #1a1b1e #2b2d31;
    }

    .chat-messages-container::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    .chat-messages-container::-webkit-scrollbar-track {
        background-color: #2b2d31;
        border-radius: 4px;
    }

    .chat-messages-container::-webkit-scrollbar-thumb {
        background-color: #1a1b1e;
        border-radius: 4px;
    }

    .chat-message {
        display: flex;
        padding: 2px 16px;
        margin-top: 17px;
        /* Cozy mode spacing */
        position: relative;
    }

    .chat-message:hover {
        background-color: rgba(2, 2, 2, 0.06);
    }

    /* Sutil highlight */

    .chat-message .avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin-right: 16px;
        flex-shrink: 0;
        margin-top: 2px;
        background-color: var(--discord-brand);
        /* Fallback */
        display: flex;
        align-items: center;
        justify-content: center;
        /* Sutil */
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
        color: var(--discord-text-header);
        background-color: var(--discord-bg);
    }

    .channel-name-header {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 700;
        font-size: 1rem;
    }

    .channel-name-header i {
        color: #80848e;
        font-size: 1.4rem;
    }

    .channel-topic {
        color: var(--discord-text-muted);
        font-weight: 400;
        font-size: 0.85rem;
        margin-left: 16px;
        padding-left: 16px;
        border-left: 1px solid #3f4147;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .chat-header-icons {
        display: flex;
        align-items: center;
        gap: 16px;
        color: var(--discord-text-muted);
    }

    .chat-header-icons i {
        cursor: pointer;
        transition: color 0.2s;
        font-size: 1.3rem;
    }

    .chat-header-icons i:hover {
        color: var(--discord-text-normal);
    }

    .search-bar {
        background-color: #1e1f22;
        border-radius: 4px;
        padding: 4px 8px;
        width: 144px;
        font-size: 0.85rem;
        color: var(--discord-text-muted);
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: text;
        transition: width 0.2s;
    }

    /* Messages Area */
    .chat-messages-container {
        flex-grow: 1;
        overflow-y: auto;
        padding: 16px 0;
        scrollbar-width: thin;
        scrollbar-color: #1a1b1e #2b2d31;
    }

    .chat-messages-container::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    .chat-messages-container::-webkit-scrollbar-track {
        background-color: #2b2d31;
        border-radius: 4px;
    }

    .chat-messages-container::-webkit-scrollbar-thumb {
        background-color: #1a1b1e;
        border-radius: 4px;
    }

    .chat-message {
        display: flex;
        padding: 2px 16px;
        margin-top: 17px;
        /* Cozy mode spacing */
        position: relative;
    }

    .chat-message:hover {
        background-color: rgba(2, 2, 2, 0.06);
    }

    /* Sutil highlight */

    .chat-message .avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin-right: 16px;
        flex-shrink: 0;
        margin-top: 2px;
        background-color: var(--discord-brand);
        /* Fallback */
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 600;
        font-size: 0.9rem;
    }

    .message-content {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .message-header {
        display: flex;
        align-items: baseline;
        gap: 8px;
    }

    .username {
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
    }

    .username:hover {
        text-decoration: underline;
    }

    .timestamp {
        color: var(--discord-text-muted);
        font-size: 0.75rem;
        font-weight: 400;
    }

    .message-text {
        color: var(--discord-text-normal);
        font-size: 1rem;
        line-height: 1.375;
        white-space: pre-wrap;
        word-wrap: break-word;
        margin-top: 2px;
    }

    /* Input Area */
    .chat-input-bar {
        padding: 0 16px 24px 16px;
        flex-shrink: 0;
    }

    .chat-input-wrapper {
        background-color: var(--discord-input);
        border-radius: 8px;
        padding: 10px 16px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .chat-input-wrapper i {
        color: var(--discord-text-muted);
        font-size: 1.3rem;
        cursor: pointer;
        transition: color 0.2s;
    }

    background-color: rgba(2, 2, 2, 0.06);
}

/* Sutil highlight */

.chat-message .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    background-color: var(--discord-brand);
    /* Fallback */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Sutil */
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    color: var(--discord-text-header);
    background-color: var(--discord-bg);
}

.channel-name-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1rem;
}

.channel-name-header i {
    color: #80848e;
    font-size: 1.4rem;
}

.channel-topic {
    color: var(--discord-text-muted);
    font-weight: 400;
    font-size: 0.85rem;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid #3f4147;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--discord-text-muted);
}

.chat-header-icons i {
    cursor: pointer;
    transition: color 0.2s;
    font-size: 1.3rem;
}

.chat-header-icons i:hover {
    color: var(--discord-text-normal);
}

.search-bar {
    background-color: #1e1f22;
    border-radius: 4px;
    padding: 4px 8px;
    width: 144px;
    font-size: 0.85rem;
    color: var(--discord-text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: text;
    transition: width 0.2s;
}

/* Messages Area */
.chat-messages-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px 0;
    scrollbar-width: thin;
    scrollbar-color: #1a1b1e #2b2d31;
}

.chat-messages-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.chat-messages-container::-webkit-scrollbar-track {
    background-color: #2b2d31;
    border-radius: 4px;
}

.chat-messages-container::-webkit-scrollbar-thumb {
    background-color: #1a1b1e;
    border-radius: 4px;
}

.chat-message {
    display: flex;
    padding: 2px 16px;
    margin-top: 17px;
    /* Cozy mode spacing */
    position: relative;
}

.chat-message:hover {
    background-color: rgba(2, 2, 2, 0.06);
}

/* Sutil highlight */

.chat-message .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    background-color: var(--avatar-color, var(--discord-brand));
    /* Fallback */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.message-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.message-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.username {
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

.username:hover {
    text-decoration: underline;
}

.timestamp {
    color: var(--discord-text-muted);
    font-size: 0.75rem;
    font-weight: 400;
}

.message-text {
    color: var(--discord-text-normal);
    font-size: 1rem;
    line-height: 1.375;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-top: 2px;
}

/* Input Area */
.chat-input-bar {
    padding: 0 16px 24px 16px;
    flex-shrink: 0;
    background-color: var(--discord-bg);
    /* Asegurar fondo correcto detrÃ¡s del input */
}

.chat-input-wrapper {
    background-color: var(--discord-input);
    border-radius: 8px;
    padding: 0 16px;
    height: 44px;
    /* Altura fija estÃ¡ndar Discord */
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Icono MÃ¡s (+) a la izquierda */
.chat-input-wrapper i.material-icons:first-child {
    color: var(--discord-text-normal);
    background-color: var(--discord-text-normal);
    /* CÃ­rculo sÃ³lido */
    color: var(--discord-input);
    /* Icono interno oscuro */
    border-radius: 50%;
    font-size: 16px;
    /* TamaÃ±o del icono interno */
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
}

.chat-input-wrapper i.material-icons:first-child:hover {
    opacity: 0.8;
}

/* Iconos a la derecha */
.chat-input-wrapper i:not(:first-child) {
    color: #b5bac1;
    font-size: 24px;
    /* TamaÃ±o estÃ¡ndar iconos */
    cursor: pointer;
    transition: color 0.2s;
}

.chat-input-wrapper i:not(:first-child):hover {
    color: var(--discord-text-normal);
}

.chat-input-wrapper input {
    flex-grow: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--discord-text-normal);
    font-size: 1rem;
    height: 100%;
    padding: 0 8px;
    /* Espacio extra texto */
}

.chat-input-wrapper input::placeholder {
    color: #949ba4;
    opacity: 1;
    font-weight: 400;
}

/* --- RESPONSIVE MOBILE (App-like Feel) --- */
@media (max-width: 1200px) {
    .comunidad-discord-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .comunidad-main-content {
        text-align: center;
    }

    .comunidad-main-content .comunidad-paragraph {
        margin: 0 auto;
        text-align: left;
    }
}

@media (max-width: 768px) {
    #comunidad {
        padding: 40px 12px;
    }

    .comunidad-discord-container {
        gap: 20px;
    }

    /* Ocultar elementos de escritorio */
    .discord-server-bar,
    .discord-sidebar {
        display: none !important;
    }

    /* Contenedor principal: altura fija razonable con margen lateral */
    .discord-interface {
        height: 500px;
        max-height: 70vh;
        width: 100%;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
        background-color: var(--discord-bg);
        overflow: hidden;
    }

    /* Ventana de chat: flex column */
    .discord-chat-window {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    /* Header: altura fija, no crece ni encoge */
    .chat-header {
        padding: 0 12px;
        background-color: var(--discord-bg);
        border-bottom: 1px solid var(--discord-divider);
        height: 48px;
        min-height: 48px;
        flex-shrink: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .channel-name-header {
        font-size: 0.95rem;
        color: var(--discord-text-header);
        display: flex;
        align-items: center;
    }

    /* Back arrow simulation */
    .channel-name-header::before {
        content: 'arrow_back';
        font-family: 'Material Icons';
        font-weight: normal;
        font-size: 1.4rem;
        margin-right: 10px;
        color: var(--discord-text-muted);
    }

    .channel-topic,
    .search-bar {
        display: none;
    }

    .chat-header-icons i {
        display: none;
    }

    .chat-header-icons::after {
        content: 'search';
        font-family: 'Material Icons';
        font-size: 1.4rem;
        color: var(--discord-text-muted);
    }

    /* Contenedor de mensajes: scroll interno */
    .chat-messages-container {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 8px 0;
        scroll-behavior: smooth;
    }

    .chat-message {
        margin-top: 10px;
        padding: 4px 12px;
    }

    .chat-message:hover {
        background-color: transparent;
    }

    .chat-message .avatar {
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }

    /* Input Bar: siempre visible abajo */
    .chat-input-bar {
        padding: 8px 10px;
        background-color: var(--discord-bg);
        border-top: 1px solid var(--discord-divider);
        flex-shrink: 0;
        min-height: 56px;
    }

    .chat-input-wrapper {
        background-color: var(--discord-input);
        border-radius: 20px;
        padding: 0 8px;
        height: 40px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    /* BotÃ³n + */
    .chat-input-wrapper i.material-icons:first-child {
        background-color: #3f4147;
        color: var(--discord-text-normal);
        width: 28px;
        height: 28px;
        font-size: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .chat-input-wrapper input {
        flex: 1;
        min-width: 0;
        color: var(--discord-text-normal);
        font-size: 0.9rem;
        padding: 0 4px;
        background: transparent;
        border: none;
        outline: none;
    }

    .chat-input-wrapper input::placeholder {
        color: var(--discord-text-muted);
    }

    /* Iconos derecha */
    .chat-input-wrapper i:not(:first-child) {
        font-size: 22px;
        color: var(--discord-text-muted);
        flex-shrink: 0;
    }

    /* Ocultar iconos menos esenciales */
    .chat-input-wrapper i.material-icons:nth-child(n+4):not(:last-child) {
        display: none;
    }
}

@media (max-width: 480px) {
    #comunidad {
        padding: 20px 10px;
    }

    .discord-interface {
        height: 450px;
        max-height: 65vh;
        border-radius: 8px;
    }

    .chat-header {
        height: 44px;
        min-height: 44px;
    }

    .chat-input-bar {
        min-height: 52px;
        padding: 6px 8px;
    }

    .chat-input-wrapper {
        height: 36px;
    }
}

/**
 * @version      2.1.0 (Responsive Grid & Event Cards)
 * @date         2025-11-10
 * @author       Baxahaun Venture Studio https://baxahaun.com
 * // PEV_REF:   V4-COMP-009-REFACTOR-EVENT-CARD
 *
 * v2.1.0: REFACTOR Responsive Grid & Event Cards
 * - Reajustado grid layout: reducida imagen, aumentado espacio eventos
 * - .event-card ahora usa width flexible (100%, max-width)
 * - Implementado orden mobile-first correcto
 * - Mejorado A11y y centrado vertical en mobile
 *
 * v2.0.4: FIX de Ancho de .event-card
 * - Reducido width de .event-card de 320px a 280px para evitar
 * que las tarjetas se corten en la sidebar.
 *
 * v2.0.3: TAREA-V4-COMP-009-REFACTOR (TAREA.A)
 * - AÃ±adida la SecciÃ³n 5 con los estilos para la nueva clase
 * '.event-card', destinada al carrusel de calendario.
 * - Estilos basados en comunidad.css
 * para el layout (ancho, header, body) y fusionados con
 * los estilos de .media-card (SecciÃ³n 1) para coherencia visual.
 *
 * v2.0.2: FIX de Layout Profesional (Ancho de LÃ­nea)
 * - Aumenta el max-width del modal de 1140px a 1440px.
 * - Restaura 'margin: 0 auto' para centrar el contenido.
 * - AÃ±ade padding lateral para el layout ancho.
 *
 * v2.0.0: Refactor de Arquitectura del Modal (2 Columnas)
 * - SecciÃ³n 1 (Grid principal) SIN CAMBIOS.
 * - SecciÃ³n 2 (Modal) REESCRITA para el layout 2-columnas.
 * - (Req. A, D, E) AÃ±ade .historia-modal-body-grid y .historia-imagenes-sticky.
 * - (Req. F) AÃ±ade .historia-fade-carousel (fade effect).
 * - (Req. G, H) AÃ±ade .historia-sticky-title y span.
 */

/* --- 1. SecciÃ³n Principal (Mobile-First + Desktop Grid) --- */

/* Base: Mobile First (orden vertical correcto) */
#sobre-mi {
    padding: 60px 4vw 80px;
    background-color: var(--color-gray);
}

body.dark-mode #sobre-mi {
    background-color: var(--surface-soft);
}

.about-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    width: 100%;
}

/* Mobile: Orden 1 - TÃ­tulo y descripciÃ³n */
.about-content {
    order: 1;
    width: 100%;
    max-width: 600px;
    text-align: center;
    z-index: 10;
}

.about-content h2 {
    text-align: center;
    margin: 0 0 20px 0;
}

.about-content .wysiwyg-content {
    margin-bottom: 20px;
}

.about-content .btn {
    margin-top: 20px;
}

/* Mobile: Orden 2 - Imagen */
.about-image-wrapper {
    order: 2;
    width: 100%;
    max-width: 350px;
    z-index: 5;
}

.about-image {
    width: 100%;
    aspect-ratio: 3/4;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px -12px rgba(3, 0, 28, 0.25);
}

/* v4.0.0: Carrusel de imÃ¡genes con transiciÃ³n fade */
.about-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(3, 0, 28, 0.25);
}

.about-carousel-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.about-carousel-item.active {
    opacity: 1;
}

.about-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile: Orden 3 - Carrusel de eventos */
.vertical-media-carousel {
    order: 3;
    width: 100%;
    max-width: 350px;
}

/* v1.3.0: Nuevo contenedor del carrusel de calendario */
.calendar-scroll-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 500px;
}

/* Header del carrusel */
.calendar-scroll-header {
    text-align: center;
    padding: 0.5rem 0 1rem 0;
    flex-shrink: 0;
}

.calendar-scroll-header h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin: 0;
}

/* Track del carrusel */
.calendar-scroll-track {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
}

/* Modo ESTÃTICO: pocos eventos, centrados sin animaciÃ³n */
.calendar-scroll--static .calendar-scroll-track {
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

/* Modo ANIMADO: muchos eventos, scroll infinito */
.calendar-scroll--animated .calendar-scroll-track {
    animation: vertical-scroll 25s linear infinite;
}

/* Pausa la animaciÃ³n al hacer hover */
.calendar-scroll--animated:hover .calendar-scroll-track {
    animation-play-state: paused;
}

/* Tarjetas (antiguas .media-card, ahora usamos .event-card) */
.media-card {
    background-color: var(--color-light);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 15px -3px rgba(3, 0, 28, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e5e5ED;
}

.media-card p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0;
}

@keyframes vertical-scroll {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-50%);
    }
}

body.dark-mode .media-card {
    background: var(--surface-soft);
    border-color: rgba(0, 217, 255, 0.2);
    box-shadow: 0 10px 30px rgba(3, 0, 28, 0.4);
}

body.dark-mode .media-card p {
    color: var(--text-secondary);
}

body.dark-mode .media-card strong {
    color: var(--text-primary);
}

/* ============================================
   DESKTOP: Grid Layout (768px+)
   ============================================ */
@media (min-width: 768px) {
    #sobre-mi {
        padding: 120px 6vw;
    }

    .about-grid {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 30px;
        align-items: center;
        min-height: 700px;
    }

    /* Desktop: Contenido (columnas 1-6) */
    .about-content {
        grid-column: 1 / 7;
        grid-row: 1 / 2;
        order: unset;
        text-align: left;
        max-width: none;
    }

    .about-content h2 {
        text-align: left;
    }

    /* Desktop: Imagen (columnas 7-10, reducida de 7-11) */
    .about-image-wrapper {
        grid-column: 7 / 10;
        grid-row: 1 / 2;
        order: unset;
        max-width: 380px;
        width: 100%;
        justify-self: center;
    }

    /* Desktop: Carrusel (columnas 10-13, aumentado de 11-13) */
    .vertical-media-carousel {
        grid-column: 10 / 13;
        grid-row: 1 / 2;
        order: unset;
        height: 600px;
        max-height: 80vh;
        max-width: none;
        align-self: center;
    }
}

/* ============================================
   DESKTOP LARGE: MÃ¡s espacio (1200px+)
   ============================================ */
@media (min-width: 1200px) {
    #sobre-mi {
        padding-left: 8vw;
        padding-right: 8vw;
    }

    .about-image-wrapper {
        max-width: 420px;
    }
}


/* --- 2. REFACTOR Modal 2 Columnas (v2.0.2) --- */

.historia-modal {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 90vh;
    background: var(--color-light);
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    box-shadow: 0 -10px 60px rgba(3, 0, 28, 0.3);
    z-index: 900;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
        opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Layout Interno (Header Fijo + Body Scrollable) */
    display: flex;
    flex-direction: column;
}

body.dark-mode .historia-modal {
    /* A11y Fix: Fondo sÃ³lido para garantizar legibilidad en dark mode */
    background: rgba(3, 0, 28, 0.98);
    border-top: 1px solid rgba(0, 217, 255, 0.25);
    box-shadow: 0 -10px 60px rgba(0, 217, 255, 0.15);
}

/* A11y: Overlay oscuro detrÃ¡s del modal para bloquear el contenido de fondo */
body.dark-mode .historia-modal::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 0, 28, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: -1;
    pointer-events: none;
}

.historia-modal.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Wrapper del Header Fijo (Req. G, H) */
.historia-modal-header-wrapper {
    /* Este wrapper asegura que el header tenga el fondo correcto */
    background: var(--color-light);
    border-bottom: 1px solid #e0e0e0;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    z-index: 100;
    flex-shrink: 0;
}

.historia-modal-header {
    /* v2.0.2: Layout Profesional Ancho */
    max-width: 1440px;
    /* Aumentado de 1140px */
    margin: 0 auto;
    padding: 20px 40px;
    /* Padding lateral */

    /* Layout interno */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.dark-mode .historia-modal-header-wrapper {
    /* A11y Fix: Fondo sÃ³lido consistente con el modal */
    background: rgba(3, 0, 28, 0.98);
    border-bottom: 1px solid rgba(0, 217, 255, 0.25);
}

/* TÃ­tulo Sticky (Req. G, H) */
.historia-sticky-title {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    color: var(--color-dark-gray);
    /* (Req. H - Color "Azul"/Normal) */
    margin: 0;
}

.historia-sticky-title span.color-primary {
    color: var(--color-primary);
    /* (Req. H - Color Rojo) */
}

body.dark-mode .historia-sticky-title {
    color: var(--text-primary);
}

.historia-modal-close {
    width: 40px;
    height: 40px;
    background: rgba(3, 0, 28, 0.05);
    border: 1px solid rgba(3, 0, 28, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

body.dark-mode .historia-modal-close {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.historia-modal-close:hover {
    transform: rotate(90deg);
}

/* Body (Layout de 2 Columnas) (Req. A) */
.historia-modal-body-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* 66% Texto, 33% ImÃ¡genes */
    gap: 40px;

    /* v2.0.2: Layout Profesional Ancho */
    max-width: 1440px;
    /* Aumentado de 1140px */
    width: 100%;
    margin: 0 auto;
    height: 100%;
    /* Ocupa el espacio restante del modal */
    overflow: hidden;
    /* El scroll lo maneja la columna izquierda */
    padding: 40px 40px;
    /* Padding lateral */
}

/* Columna 1: Texto (Scrollable) (Req. D) */
.historia-texto-scrollable {
    overflow-y: auto;
    height: 100%;
    padding-right: 20px;
    /* Espacio para el scrollbar */
}

.historia-texto-scrollable .entry-content {
    max-width: 100%;
    /* El max-width ya estÃ¡ en el grid */
}

.historia-modal-body-grid--single,
.historia-modal--legal .historia-modal-body-grid {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}

.historia-modal--legal .historia-texto-scrollable {
    max-height: none;
    padding-right: 0;
    color: var(--color-dark);
}

.historia-modal--legal .historia-texto-scrollable .entry-content {
    max-width: 100%;
    color: var(--color-dark);
}

/* Columna 2: ImÃ¡genes (Sticky) (Req. E) */
.historia-imagenes-sticky-wrapper {
    /* Este wrapper es necesario para el 'position: sticky' */
    position: relative;
    height: 100%;
}

.historia-imagenes-sticky {
    position: sticky;
    top: 0;
    /* v2.0.2: Ajustado de 40px a 0 (el padding estÃ¡ en el grid) */
    height: 50vh;
    /* Altura del carrusel */
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: #f0f0f0;
}

body.dark-mode .historia-imagenes-sticky {
    background-color: var(--discord-dark-1);
    /* Color oscuro de fondo */
}


/* Carrusel Fade (Req. F) */
.historia-fade-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.historia-fade-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.historia-fade-item.active {
    opacity: 1;
}

.historia-fade-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Asegura que la imagen llene el contenedor */
}


/* --- 3. Responsive (SecciÃ³n Principal) --- */
@media (max-width: 992px) {
    #sobre-mi {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 40px;
        min-height: 0;
    }

    .about-content,
    .about-image-wrapper,
    .vertical-media-carousel {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .about-content {
        text-align: center;
    }

    .about-content h2 {
        text-align: center;
    }

    .about-image-wrapper {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 3/4;
        justify-self: center;
    }

    .vertical-media-carousel {
        display: none;
    }
}

@media (max-width: 768px) {
    #sobre-mi {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* --- 4. Responsive para Modal (v2.0.2) --- */
@media (max-width: 992px) {

    /* En tablet, el layout se rompe. Hacemos que la imagen sticky desaparezca */
    .historia-modal-body-grid {
        grid-template-columns: 1fr;
        /* Columna Ãºnica */
    }

    .historia-imagenes-sticky-wrapper {
        display: none;
        /* Ocultamos la columna de imÃ¡genes */
    }
}

@media (max-width: 768px) {

    /* v2.0.2: Layout en mÃ³vil vuelve a ser full-width */
    .historia-modal-header {
        max-width: none;
        padding: 15px 20px;
    }

    .historia-modal-body-grid {
        max-width: none;
        padding: 20px 20px;
        /* A11y Fix: Padding inferior para evitar solapamiento con el ticker de TradingView */
        padding-bottom: 70px;
        /* 48px ticker + 22px margen de seguridad */
    }

    .historia-sticky-title {
        font-size: 1.2rem;
    }

    .historia-texto-scrollable {
        padding-right: 10px;
    }
}

/* --- 5. TAREA-V4-COMP-009-REFACTOR (TAREA.A) --- */
/* Estilos para la nueva .event-card del carrusel de calendario.
 * Creada para aislar estilos y no colisionar con .media-card (vertical).
 * Basada en el layout de comunidad.css y los
 * estilos base de .media-card (SecciÃ³n 1 de este archivo).
 * ---------------------------------------------------- */

/* El JS/PHP (TAREA C y D) envolverÃ¡ el shortcode en un
   .horizontal-media-carousel o similar */

.event-card {
    /* Estilos base de .media-card (SecciÃ³n 1) */
    background-color: var(--color-light);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 15px -3px rgba(3, 0, 28, 0.1);
    border: 1px solid #e5e5ED;
    margin-bottom: 20px;

    /* v2.1.0: Width flexible y responsive */
    flex-shrink: 0;
    width: 100%;
    /* Flexible: se ajusta al contenedor padre */
    max-width: 320px;
    /* MÃ¡ximo en desktop */
    padding: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* v2.1.0: Tarjeta clicable */
    cursor: pointer;
    position: relative;
}

/* Mobile: Tarjetas mÃ¡s pequeÃ±as */
@media (max-width: 767px) {
    .event-card {
        max-width: 100%;
        /* Ocupa todo el ancho disponible en mobile */
        width: 100%;
    }
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(3, 0, 28, 0.1);
    border-color: var(--color-primary);
}

.event-card:active {
    transform: translateY(-3px);
}

/* v2.2.0: Tooltip en hover */
.event-card::before {
    content: 'Ver detalles del evento';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 100;
}

.event-card::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    border: 6px solid transparent;
    border-top-color: var(--color-dark);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 100;
}

.event-card:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-12px);
}

.event-card:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
}

/* Cabecera 1:1 (TAREA.C) */
.event-card--header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e5e5ED;
    /* Usamos el color de borde de .media-card */
}

.event-card--header p {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0;
    line-height: 1.3;
    color: #555;
    /* Base de .media-card p */
}

.event-card--header p strong {
    color: var(--color-dark);
    /* Color de .media-card strong */
}

/* BotÃ³n "AÃ±adir al Calendario" 1:1 (TAREA.C) */
.event-add-to-calendar {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-add-to-calendar:hover {
    color: var(--color-secondary);
}

.event-add-to-calendar .material-icons {
    font-size: 1.25rem;
}

/* Cuerpo 1:1 (TAREA.C) */
.event-card--body {
    padding: 1rem;
}

.event-card--body p {
    font-size: 0.9rem;
    /* Base de .media-card p */
    color: #555;
    /* Base de .media-card p */
    margin-bottom: 0;
    line-height: 1.5;
}

/* --- Dark Mode (consistente con .media-card) --- */

body.dark-mode .event-card {
    background: var(--surface-soft);
    border-color: rgba(0, 217, 255, 0.2);
    box-shadow: 0 10px 30px rgba(3, 0, 28, 0.4);
}

body.dark-mode .event-card--header {
    border-bottom-color: rgba(0, 217, 255, 0.2);
}

body.dark-mode .event-card--header p {
    color: var(--text-secondary);
}

body.dark-mode .event-card--header strong {
    color: var(--text-primary);
}

body.dark-mode .event-card--body p {
    color: var(--text-secondary);
}

body.dark-mode .event-add-to-calendar {
    color: var(--color-primary);
}

/* Dark mode para header del carrusel */
body.dark-mode .calendar-scroll-header h4 {
    color: var(--text-muted);
}

/* ============================================
   6. MODAL DE EVENTOS (v2.1.0)
   ============================================ */

.event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 0, 28, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.event-modal.active {
    display: flex;
    opacity: 1;
}

.event-modal-content {
    background-color: var(--color-light);
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(3, 0, 28, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.event-modal.active .event-modal-content {
    transform: scale(1);
}

/* Header del Modal */
.event-modal-header {
    padding: 2rem;
    border-bottom: 1px solid #e5e5ED;
    position: relative;
}

.event-modal-header h3 {
    margin: 0 0 0.5rem 0;
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    color: var(--color-dark);
    line-height: 1.3;
}

.event-modal-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.event-modal-date .material-icons {
    font-size: 1.1rem;
}

.event-modal-location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.event-modal-location .material-icons {
    font-size: 1.1rem;
}

/* BotÃ³n cerrar */
.event-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-modal-close:hover {
    color: var(--color-primary);
}

.event-modal-close .material-icons {
    font-size: 1.75rem;
}

/* Body del Modal */
.event-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.event-modal-body p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.event-modal-body p:last-child {
    margin-bottom: 0;
}

/* Footer del Modal */
.event-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e5ED;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.event-modal-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-event {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    flex: 1;
    min-width: 140px;
}

.btn-event .material-icons {
    font-size: 1.1rem;
}

.btn-event-primary {
    background-color: var(--color-primary);
    color: var(--color-light);
}

.btn-event-primary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.3);
}

.btn-event-secondary {
    background-color: transparent;
    color: var(--color-dark);
    border: 2px solid var(--color-dark);
}

.btn-event-secondary:hover {
    background-color: var(--color-dark);
    color: var(--color-light);
    transform: translateY(-2px);
}

.event-modal-subscribe-note {
    font-size: 0.8rem;
    color: #777;
    text-align: center;
    margin-top: 0.5rem;
}

/* Dark Mode */
body.dark-mode .event-modal {
    /* A11y Fix: Mayor opacidad para garantizar legibilidad */
    background-color: rgba(3, 0, 28, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.dark-mode .event-modal-content {
    background-color: var(--surface-soft);
    box-shadow: 0 25px 50px -12px rgba(0, 217, 255, 0.3);
}

body.dark-mode .event-modal-header {
    border-bottom-color: rgba(0, 217, 255, 0.2);
}

body.dark-mode .event-modal-header h3 {
    color: var(--text-primary);
}

body.dark-mode .event-modal-date,
body.dark-mode .event-modal-location {
    color: var(--text-secondary);
}

body.dark-mode .event-modal-body p {
    color: var(--text-secondary);
}

body.dark-mode .event-modal-footer {
    border-top-color: rgba(0, 217, 255, 0.2);
}

body.dark-mode .btn-event-secondary {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

body.dark-mode .btn-event-secondary:hover {
    background-color: var(--text-primary);
    color: var(--surface-soft);
}

/* Responsive */
@media (max-width: 767px) {

    .event-modal-header,
    .event-modal-body,
    .event-modal-footer {
        padding: 1.5rem;
    }

    .event-modal-header h3 {
        font-size: 1.25rem;
        padding-right: 2rem;
    }

    .event-modal-actions {
        flex-direction: column;
    }

    .btn-event {
        width: 100%;
        min-width: unset;
    }
}

/* ============================================
   7. DROPDOWN MENU (v2.2.0)
   ============================================ */

.event-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    flex: 1;
    min-width: 140px;
}

.event-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 0.5rem;
    background-color: var(--color-light);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(3, 0, 28, 0.15);
    border: 1px solid #e5e5ED;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10;
    overflow: hidden;
}

.event-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.event-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: var(--color-dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.event-dropdown-item:last-child {
    border-bottom: none;
}

.event-dropdown-item:hover {
    background-color: var(--color-gray);
}

.event-dropdown-item .material-icons {
    font-size: 1.1rem;
    color: var(--color-primary);
}

.event-dropdown-item-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-dropdown-item-title {
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.event-dropdown-item-subtitle {
    font-size: 0.75rem;
    color: #777;
    font-weight: 400;
}

/* Dark Mode - Dropdown */
body.dark-mode .event-dropdown-menu {
    background-color: #1a1b26;
    border-color: rgba(0, 217, 255, 0.2);
    box-shadow: 0 10px 25px rgba(3, 0, 28, 0.5);
}

body.dark-mode .event-dropdown-item {
    color: var(--text-primary);
    border-bottom-color: rgba(0, 217, 255, 0.1);
}

body.dark-mode .event-dropdown-item:hover {
    background-color: rgba(0, 217, 255, 0.05);
}

body.dark-mode .event-dropdown-item-subtitle {
    color: var(--text-secondary);
}

/* Responsive - Dropdown */
@media (max-width: 767px) {
    .event-dropdown-wrapper {
        width: 100%;
    }

    .event-dropdown-menu {
        left: 0;
        right: 0;
    }
}

/**
* (c) 2025 Franco Macchiavelli. Todos los derechos reservados.
* Autor del proyecto: Xavier (Baxahaun Venture Studio, https://baxahaun.com)
* Proyecto: francomacchiavelli.com
* Archivo: medios.css - Sistema de carruseles de medios (v1.0.0)
* PEV_REF: V4-COMP-010-MEDIOS
*
* v1.0.0: Migraci�n 1:1 desde masonry-gallery.css de referencia (v3.1.0)
* - Implementa sistema de doble carrusel con movimientos opuestos
* - Implementa modal para art�culos y lightbox para multimedia
* - Implementa animaciones CSS puras (sin JS en transiciones)
* - Mantiene soporte para dark mode completo
*/

/* ========================
   SECCI�N PRINCIPAL
======================== */

#colaboraciones-y-medios {
  padding: 140px 0 80px 0; /* ? Aumentado de 60px a 140px el padding-top para evitar solapamiento con navbar */
  background-color: var(--color-gray);
  position: relative;
  overflow: hidden;
}

body.dark-mode #colaboraciones-y-medios {
  background-color: #03001c;
}

/* ========================
   HEADER
======================== */

.medios-header {
  padding: 0 8vw;
  margin-bottom: 30px; /* Reducido de 60px a 30px */
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.medios-title {
  font-family: var(--font-family-headings);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 15px;
}

.medios-title span {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

.medios-title span::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary) 0%, transparent 100%);
  border-radius: 2px;
}

body.dark-mode .medios-title span {
  color: var(--color-primary);
}

.medios-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.7;
  margin: 0;
  opacity: 1;
  max-width: 45ch;
  color: #555;
  text-align: left;
}

body.dark-mode .medios-subtitle {
  color: #bbb;
}

/* ========================
   CONTENEDORES DE CARRUSEL
======================== */

.medios-carousel-wrapper {
  position: relative;
  width: 100%;
  height: 260px; /* Reducido de 320px a 260px */
  margin: 25px auto 0 auto; /* Reducido margen superior de 40px a 25px */
  overflow: hidden;
}

.medios-carousel-wrapper-bottom {
  margin-top: 35px; /* Reducido de 60px a 35px */
}

/* M�scaras de gradiente para fade lateral */
.medios-carousel-wrapper::before,
.medios-carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 5;
  pointer-events: none;
}

.medios-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--color-gray) 0%, transparent 100%);
}

.medios-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--color-gray) 0%, transparent 100%);
}

body.dark-mode .medios-carousel-wrapper::before {
  background: linear-gradient(to right, #03001c 0%, transparent 100%);
}

body.dark-mode .medios-carousel-wrapper::after {
  background: linear-gradient(to left, #03001c 0%, transparent 100%);
}

/* Contenedor de scroll */
.medios-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-x: auto; /* Permitir scroll horizontal para JS */
  overflow-y: hidden;
  cursor: grab;
  user-select: none;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

/* Ocultar scrollbar en Webkit */
.medios-carousel::-webkit-scrollbar {
  display: none;
}

.medios-carousel.dragging {
  cursor: grabbing;
}

/* Track y filas */
.medios-track {
  height: 100%;
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-width: 100%;
}

.medios-row {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
  padding: 0 8vw;
  flex-shrink: 0;
}

/* ========================
   ANIMACIONES AUTOM�TICAS
======================== */

/* Scroll controlado por JavaScript - sin animaciones CSS */
.medios-row {
  will-change: transform;
}

.medios-carousel.no-transition .medios-row {
  transition: none !important;
}

/* ========================
   ITEMS DEL CARRUSEL
======================== */

.medios-item {
  width: 280px; /* Reducido de 320px a 280px */
  height: 220px; /* Reducido de 280px a 220px */
  flex-shrink: 0;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 25px rgba(3, 0, 28, 0.12);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

body.dark-mode .medios-item {
  background: #03001c;
  box-shadow: 0 8px 25px rgba(3, 0, 28, 0.4);
}

.medios-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 30px rgba(3, 0, 28, 0.2);
  z-index: 100;
}

.medios-item.dragging {
  cursor: grabbing;
  transition: none;
}

.medios-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  pointer-events: none;
}

.medios-audio-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, #03001cd3f, #1f2f63);
  color: #003049;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 24px;
  text-align: center;
  pointer-events: none;
}

.medios-audio-placeholder svg { color: #003049; }
.medios-audio-placeholder span { color: #003049; }


body.dark-mode .medios-audio-placeholder {
  background: linear-gradient(135deg, #03001c, #161c33);
  color: #ffffff;
}
body.dark-mode .medios-audio-placeholder span { color: #ffffff; }


.medios-item:hover img {
  transform: scale(1.08);
  transition: transform 0.5s ease;
}

/* Overlay con informaci�n */
.medios-overlay {
  position: relative;
  z-index: 2;
  padding: 15px;
  color: white;
  background: linear-gradient(
    to top,
    rgba(3, 0, 28, 0.95) 0%,
    rgba(3, 0, 28, 0.7) 60%,
    transparent 100%
  );
  pointer-events: none;
  opacity: 0; /* Oculto por defecto */
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.medios-item:hover .medios-overlay {
  opacity: 1; /* Visible en hover */
  transform: translateY(0);
}

.medios-overlay h3 {
  font-family: var(--font-family-heading);
  font-size: 1.1rem; /* Reducido de 1.2rem */
  margin: 0 0 6px 0; /* Reducido margen de 8px a 6px */
  font-weight: 600;
}

.medios-overlay p {
  font-size: 0.85rem; /* Reducido de 0.9rem */
  margin: 0 0 10px 0; /* Reducido de 12px a 10px */
  opacity: 0.9;
  line-height: 1.3; /* Reducido de 1.4 */
}

.medios-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px; /* Reducido de 6px */
  font-size: 0.75rem; /* Reducido de 0.8rem */
  padding: 4px 10px; /* Reducido de 6px 12px */
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ========================
   BOTONES DE NAVEGACI�N
======================== */

.medios-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(3, 0, 28, 0.18);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  z-index: 10;
}

body.dark-mode .medios-nav-btn {
  background: rgba(3, 0, 28, 0.95);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.medios-nav-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 16px 40px rgba(3, 0, 28, 0.22);
  background: var(--color-primary);
  color: white;
}

.medios-nav-prev-top,
.medios-nav-prev-bottom {
  left: 20px;
}

.medios-nav-next-top,
.medios-nav-next-bottom {
  right: 20px;
}

/* ========================
   CONTROLES DE VELOCIDAD
======================== */

.medios-speed-controls {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.medios-carousel-wrapper:hover .medios-speed-controls {
  opacity: 1;
}

.speed-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.3s ease;
}

.speed-btn:hover {
  background: var(--color-primary);
  color: white;
  transform: scale(1.1);
}

.speed-btn.active {
  background: var(--color-primary);
  color: white;
}

body.dark-mode .speed-btn {
  background: rgba(3, 0, 28, 0.9);
  color: #fff;
}

body.dark-mode .speed-btn.active {
  background: var(--color-primary);
}

/* ========================
   MODAL
======================== */

.medios-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 0, 28, 0.95);
  backdrop-filter: blur(10px);
  z-index: 4000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.medios-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.medios-modal-content {
  background: white;
  border-radius: var(--border-radius);
  max-width: min(1100px, 95vw);
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.4s ease-out;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(3, 0, 28, 0.35);
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

body.dark-mode .medios-modal-content {
  background: #03001c;
  color: #e0e0e0;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
}

.medios-modal-header {
  position: sticky;
  top: 0;
  height: 320px;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  overflow: hidden;
  background: #ffffff;
  z-index: 2;
  box-shadow: 0 8px 20px rgba(3, 0, 28, 0.08);
}

body.dark-mode .medios-modal-header {
  background: #03001c;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.medios-modal-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.medios-modal-header-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(
    to top,
    rgba(3, 0, 28, 0.95) 0%,
    rgba(3, 0, 28, 0.4) 100%
  );
  color: white;
}

.medios-modal-header-overlay h2 {
  font-family: var(--font-family-heading);
  font-size: 2rem;
  margin-bottom: 8px;
}

.medios-modal-header-overlay p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 12px;
}

.medios-modal-body {
  padding: 40px;
}

.medios-modal-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.medios-modal-main {
  flex: 1 1 auto;
  min-width: 0;
}

#modal-body-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.medios-modal-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(3, 0, 28, 0.02);
  border: 1px solid rgba(3, 0, 28, 0.05);
  border-radius: 18px;
  padding: 20px;
  position: sticky;
  top: 120px;
}

body.dark-mode .medios-modal-sidebar {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.medios-modal-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.medios-modal-body h3 {
  font-family: var(--font-family-heading);
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.medios-modal-body h4 {
  font-family: var(--font-family-heading);
  font-size: 1.2rem;
  margin: 24px 0 12px 0;
}

.medios-modal-body p {
  line-height: 1.8;
  margin-bottom: 16px;
  color: #666;
}

body.dark-mode .medios-modal-body p {
  color: #aaa;
}

.medios-modal-body ul {
  margin: 16px 0;
  padding-left: 24px;
}

.medios-modal-body li {
  line-height: 1.8;
  margin-bottom: 8px;
}

/* Bot�n de cierre */
.medios-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.medios-modal-close:hover {
  transform: rotate(90deg);
  background: white;
}

/* Navegaci�n del modal */
.medios-modal-nav {
  position: relative;
  width: 100%;
  height: auto;
  padding: 12px 16px;
  background: #f6f6f6;
  border: 1px solid rgba(3, 0, 28, 0.08);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.medios-modal-nav svg {
  flex-shrink: 0;
}

.medios-modal-nav:hover:not(:disabled) {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(3, 0, 28, 0.1);
}

.medios-modal-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.medios-modal-nav span {
  font-size: 0.95rem;
}

body.dark-mode .medios-modal-nav {
  background: rgba(240, 248, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f0f0f0;
}

body.dark-mode .medios-modal-nav:hover:not(:disabled) {
  background: rgba(160, 160, 255, 0.15);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
}

/* ========================
   LIGHTBOX
======================== */

.medios-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 0, 28, 0.95);
  z-index: 4000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.medios-lightbox.active {
  display: flex;
  opacity: 1;
}

.medios-pdf-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 0, 28, 0.9);
  z-index: 4200;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.medios-pdf-lightbox.active {
  display: flex;
  opacity: 1;
}

.medios-pdf-content {
  width: min(90vw, 1000px);
  height: 90vh;
  background: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: 0 30px 60px rgba(3, 0, 28, 0.4);
  position: relative;
  overflow: hidden;
}

body.dark-mode .medios-pdf-content {
  background: #03001c;
}

.medios-pdf-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 2rem;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease;
}

body.dark-mode .medios-pdf-close {
  color: #f0f0f0;
}

.medios-pdf-close:hover {
  transform: scale(1.1);
}

.medios-pdf-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

body.dark-mode .medios-pdf-content iframe {
  background: #03001c;
}

.medios-lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.medios-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

#medios-lightbox-content img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

/* ========================
   RESPONSIVE
======================== */

@media (max-width: 992px) {
  .medios-carousel-wrapper {
    height: 240px;
  }

  .medios-item {
    width: 260px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  #colaboraciones-y-medios {
    padding: 120px 0 60px 0; /* ? Tambi�n ajustado para m�viles */
  }

  .medios-header {
    padding: 0 20px;
    margin-bottom: 20px;
  }

  .medios-title {
    font-size: 1.8rem;
  }

  .medios-carousel-wrapper {
    height: 200px;
  }

  .medios-carousel-wrapper-bottom {
    margin-top: 25px;
  }

  .medios-row {
    padding: 0 20px;
    animation-duration: 30s;
  }

  .medios-item {
    width: 220px;
    height: 180px;
  }

  .medios-nav-btn {
    width: 44px;
    height: 44px;
  }

  .medios-nav-prev-top,
  .medios-nav-prev-bottom {
    left: 10px;
  }

  .medios-nav-next-top,
  .medios-nav-next-bottom {
    right: 10px;
  }

  .medios-modal-body {
    padding: 24px;
  }

  .medios-modal-header {
    height: 200px;
  }
}

/* ========================
   LIGHTBOX MULTIMEDIA
======================== */

.medios-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 0, 28, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 60px 20px 20px 20px;
}

.medios-lightbox.active {
  display: flex;
  opacity: 1;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.medios-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2001;
}

.medios-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
  border-color: rgba(255, 255, 255, 0.6);
}

.medios-media-container {
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 16/9;
  background: black;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(3, 0, 28, 0.5);
  animation: scaleIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.medios-media-container.is-audio {
  aspect-ratio: auto;
  background: #03001c;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.medios-media-container.is-audio iframe {
  height: 220px;
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.medios-media-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.medios-media-info {
  margin-top: 20px;
  text-align: center;
  color: white;
  max-width: 800px;
  animation: slideUp 0.5s ease-out 0.2s both;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.medios-media-info h3 {
  font-family: var(--font-family-heading);
  font-size: 1.8rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.medios-media-info p {
  font-size: 1.1rem;
  opacity: 0.8;
  margin: 0;
}

/* ========================
   MODAL EDITORIAL MEJORADO
======================== */

.medios-modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.medios-modal-date,
.medios-modal-reading {
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.medios-modal-date::before {
  content: "\1F4C5";
  margin-right: 6px;
}

.medios-modal-reading::before {
  content: "\23F3";
  margin-right: 6px;
}

.medios-modal-body p {
  max-width: 70ch;
  margin: 0 auto 24px auto;
  font-size: 1.05rem;
  color: #444;
}

body.dark-mode .medios-modal-body p {
  color: #bbb;
}

.medios-modal-body h3 {
  font-family: var(--font-family-heading);
  font-size: 1.8rem;
  margin: 40px 0 20px 0;
  color: var(--color-primary);
  text-align: center;
}

body.dark-mode .medios-modal-body h3 {
  color: #e57373;
}

.medios-modal-body h4 {
  font-family: var(--font-family-heading);
  font-size: 1.3rem;
  margin: 32px 0 16px 0;
  color: var(--color-dark-gray);
  text-align: center;
}

.medios-modal-body strong {
  color: var(--color-primary);
  font-weight: 600;
}

body.dark-mode .medios-modal-body strong {
  color: #e57373;
}

.medios-modal-external-link,
.medios-modal-pdf-link {
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 0 0;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(3, 0, 28, 0.2);
  background: transparent;
  color: #03001c;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
  outline: none;
  appearance: none;
}

.medios-modal-external-link:hover,
.medios-modal-pdf-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(3, 0, 28, 0.15);
}

body.dark-mode .medios-modal-external-link,
body.dark-mode .medios-modal-pdf-link {
  background: rgba(240, 248, 255, 0.12);
  color: #f0f8ff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

body.dark-mode .medios-modal-external-link:hover,
body.dark-mode .medios-modal-pdf-link:hover {
  filter: brightness(1.05);
}

.medios-modal .is-hidden {
  display: none !important;
}

/* ========================
   RESPONSIVE LIGHTBOX
======================== */

@media (max-width: 992px) {
  .medios-modal-layout {
    flex-direction: column;
  }

  .medios-modal-sidebar {
    width: 100%;
    position: static;
  }
}

@media (max-width: 768px) {
  .medios-lightbox {
    padding: 80px 15px 15px 15px;
  }

  .medios-lightbox-close {
    width: 48px;
    height: 48px;
    top: 15px;
    right: 15px;
  }

  .medios-media-container {
    aspect-ratio: 16/9;
  }

  .medios-media-info h3 {
    font-size: 1.3rem;
  }

  .medios-media-info p {
    font-size: 0.95rem;
  }

  .medios-modal-body {
    padding: 30px 20px;
  }

  .medios-modal-meta {
    gap: 8px;
  }
}






/**
 * @version      1.0.0
 * @date         2025-11-10
 * @author       Baxahaun Venture Studio https://baxahaun.com
 * // PEV_REF:   V4-COMP-011-CONTENIDO-ABIERTO
 *
 * v1.0.0: MigraciÃ³n 1:1 desde open-content.css de referencia (v17.1.0)
 * - SecciÃ³n de viewport completo con grid de contenido
 * - Sistema de "Content Wall" con hover effects
 * - Lightbox para ampliar contenido
 * - Barra social con iconos
 * - Responsive (992px, 600px)
 * - Soporte completo dark mode
 */

#contenido-abierto {
  /* Define la altura total de los elementos fijos superiores (ticker + navbar) */
  --header-offset: 93px;
  /* Altura estimada del tÃ­tulo */
  --title-height: 90px;
  /* Altura de la barra social */
  --social-height: 70px;
  /* Espaciado entre elementos */
  --gap-spacing: 4vh;

  /* La secciÃ³n ocupa el 100% del alto de la ventana */
  min-height: 100vh;
  width: 100%;

  /* CRÃTICO: Se aÃ±ade un padding-top para empujar el contenido hacia abajo, evitando el solapamiento con la navbar. */
  padding-top: var(--header-offset);
  /* Se ajusta el padding inferior para dejar "aire" */
  padding-left: 4vw;
  padding-right: 4vw;

  /* box-sizing: border-box es CLAVE para que el padding se incluya dentro del height: 100vh y no lo desborde. */
  box-sizing: border-box;
  background-color: var(--color-gray);
  display: flex;
  flex-direction: column;
  gap: 5vh;
  overflow: hidden;
  padding-bottom: 50px;
}

body.dark-mode #contenido-abierto {
  background-color: var(--color-dark-background);
}

/* --- TÃ­tulo de la SecciÃ³n --- */
.open-content-title {
  font-size: clamp(2.8rem, 5vw, 4rem);
  text-align: left;
  margin: 0;
  color: var(--color-dark-gray);
  width: 100%;
  flex-shrink: 0; /* El tï¿½tulo no se encoge */
}

.open-content-title span {
  color: var(--color-primary);
}

body.dark-mode .open-content-title span {
  color: var(--color-primary);
}

/* --- Muro de Contenido --- */
.content-wall-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 15px;

  /* SOLUCIÃ“N AL PROBLEMA: Altura calculada precisa sin flex-grow */
  /* FÃ³rmula: 100vh - header-offset - padding-bottom - title-height - social-height - gap-spacing */
  grid-auto-rows: minmax(220px, 1fr);
  height: auto;
  max-height: none;
  box-sizing: border-box;
}

.wall-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease, filter 0.4s ease;
  background: #333;
  /* Los elementos internos se ajustan dinÃ¡micamente al contenedor grid */
  width: 100%;
  height: 100%;
}

body.dark-mode .wall-item {
  background: var(--color-dark-background);
}

.wall-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.wall-item.wall-type-instagram img {
  object-fit: cover;
  aspect-ratio: 9 / 16;
}

.wall-item.featured {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

/* --- Efectos Hover --- */
.content-wall-grid:hover .wall-item:not(:hover) {
  transform: scale(0.95);
  opacity: 0.7;
  filter: grayscale(80%);
}

.wall-item:hover {
  transform: scale(1.03);
  z-index: 10;
}

.wall-item:hover img {
  transform: scale(1.1);
}

/* --- Overlay de InformaciÃ³n --- */
.wall-item .item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  color: white;
  z-index: 2;
  background: rgba(3, 0, 28, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.wall-item:hover .item-info {
  transform: translateY(0);
}

.item-info .info-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.info-header .material-icons {
  font-size: 1rem;
}

.info-header span {
  font-family: var(--font-family-body);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.6rem;
  background: var(--color-primary);
  padding: 2px 8px;
  border-radius: 99px;
}

.item-info h3 {
  font-family: var(--font-family-heading);
  font-size: clamp(0.9rem, 1.5vw, 1.3rem);
  margin: 0 0 4px 0;
}

.item-info p {
  font-size: 0.7rem;
  margin: 0;
  opacity: 0.8;
}

.wall-item.featured .item-info h3 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

/* --- Barra de Redes Sociales --- */
.social-follow-capsule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  background-color: rgba(3, 0, 28, 0.60);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0 1.5rem;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  /* CRÃTICO: La barra no se encoge ni crece */
  flex-grow: 0;
}

body.dark-mode .social-follow-capsule {
  background-color: rgba(3, 0, 28, 0.7);
  border-color: rgba(224, 224, 224, 0.2);
}

.social-follow-label {
  color: var(--color-light);
  font-weight: 500;
  font-size: 1rem;
  margin-right: 1.5rem;
  white-space: nowrap;
}

body.dark-mode .social-follow-label {
  color: var(--color-dark);
}

.social-buttons-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0.8rem;
  width: 100%;
}

.btn-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 36px;
  border-radius: 12px;
  background-color: transparent;
  color: #ffffff;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.btn-social-icon:hover {
  background-color: var(--color-light);
  color: var(--color-primary);
  transform: translateY(-2px);
  border-color: transparent;
}

.btn-social-icon svg {
  width: 22px;
  height: 22px;
}

body.dark-mode .btn-social-icon {
  color: #ffffff;
  border-color: rgba(224, 224, 224, 0.3);
}

body.dark-mode .btn-social-icon:hover {
  background-color: #3a3a3a;
  color: #fff;
}

/* --- Lightbox --- */
.wall-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 0, 28, 0.9);
  z-index: 4000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.wall-lightbox.active {
  display: flex;
  opacity: 1;
}

.wall-lightbox-content {
  position: relative;
  width: 80%;
  height: 80%;
  max-width: 1400px;
  animation: zoomIn 0.4s ease;
}

.wall-lightbox-content img,
.wall-lightbox-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--border-radius);
}

.wall-lightbox.instagram-mode .wall-lightbox-content {
  width: min(420px, 90vw);
  height: min(740px, 90vh);
}

.wall-lightbox.instagram-mode .wall-lightbox-content iframe {
  aspect-ratio: 9 / 16;
  height: 100%;
  width: 100%;
  border-radius: 30px;
  background: #fff;
}

.wall-close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.wall-close-btn:hover {
  transform: scale(1.2);
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* --- Responsive --- */
@media (max-width: 992px) {
  #contenido-abierto {
    height: auto;
    min-height: 100vh;
    padding-top: 100px;
    overflow: visible;
  }

  .content-wall-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 300px);
    height: auto;
    max-height: none;
    padding: 20px 0;
  }

  .wall-item.featured {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }

  .social-follow-capsule {
    flex-direction: column;
    height: auto;
    padding: 20px;
    gap: 15px;
    margin-top: 2vh;
  }
}

@media (max-width: 600px) {
  #contenido-abierto {
    padding: 80px 4vw 30px 4vw;
    height: auto;
  }

  .content-wall-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 250px);
  }

  .wall-item.featured {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .item-info h3 {
    font-size: 1.1rem;
  }
}




/**
 * Â© 2025 Franco Macchiavelli. Todos los derechos reservados.
 * Autor del proyecto: Xavier (Baxahaun Venture Studio, https://baxahaun.com)
 * Proyecto: francomacchiavelli.com
 * Archivo: ia-market-analysis.css (v4.0.0 - Migrado de variant-d)
 * @version      4.0.0
 * @date         2025-11-12
 * @author       Baxahaun Venture Studio https://baxahaun.com
 * PEV_REF: V4-COMP-012-IA-LEAD
 * ID_PEV: SESION-20251112-002-V4-FOOTER
 * PROPÃ“SITO: Estilos del bloque IA Lead migrados 1:1 desde variant-d/components/ia-market-analysis.css
 */

#ia-market-analysis {
    padding: clamp(40px, 8vw, 80px) 0;
    background-color: var(--color-dark);
    color: var(--color-light);
    position: relative;
    overflow: hidden;
}
body.dark-mode #ia-market-analysis { background-color: var(--color-dark-background); }

.ia-strip-container {
    width: 100%;
    max-width: 100%;
    padding: 0 clamp(24px, 4vw, 60px);
    margin: 0 auto 40px;
    box-sizing: border-box;
}

.ia-content-strip {
    background: color-mix(in srgb, var(--color-light) 95%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-light) 10%, transparent);
    border-radius: 20px;
    box-shadow: 0 15px 40px color-mix(in srgb, var(--color-dark) 15%, transparent);
    padding: 40px 60px;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    color: var(--color-dark);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.dark-mode .ia-content-strip {
    background-color: color-mix(in srgb, var(--color-dark) 65%, transparent);
    color: var(--color-dark);
    border-color: color-mix(in srgb, var(--color-light) 10%, transparent);
    box-shadow: 0 15px 40px color-mix(in srgb, var(--color-dark) 35%, transparent);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.ia-grid-wrapper {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 40px;
    width: 100%;
}

.ia-col-left, .ia-col-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ia-strip-title {
    color: var(--color-dark);
    margin-bottom: 20px;
    line-height: 1.1;
    font-size: clamp(2.2rem, 3.5vw, 3.5rem);
    text-transform: none;
    text-align: left;
    max-width: none;
}
body.dark-mode .ia-strip-title { color: var(--color-light); }

.ia-strip-title strong { color: var(--color-dark); font-weight: 700; }
body.dark-mode .ia-strip-title strong { color: var(--color-light); }

.ia-strip-title span { color: var(--color-primary); font-weight: 700; }
body.dark-mode .ia-strip-title span { color: color-mix(in srgb, var(--color-primary) 80%, var(--color-light) 20%); }

.ia-strip-body {
    max-width: none;
    margin-bottom: 20px;
}

.ia-strip-body p {
    color: color-mix(in srgb, var(--color-dark) 60%, var(--color-light) 40%);
    margin-bottom: 1rem;
    max-width: none;
    text-align: left;
    font-size: 1.05rem;
}
body.dark-mode .ia-strip-body p { color: color-mix(in srgb, var(--color-light) 80%, var(--color-dark) 20%); }

.cta-texto-whatsapp {
    margin-top: 10px;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.ia-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
}

.ia-feature-item strong {
    color: var(--color-dark-gray);
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}
body.dark-mode .ia-feature-item strong { color: var(--color-light); }

.ia-feature-item p {
    margin: 0;
    font-size: 0.95rem;
    color: color-mix(in srgb, var(--color-dark) 60%, var(--color-light) 40%);
    line-height: 1.5;
    max-width: none;
}
body.dark-mode .ia-feature-item p { color: color-mix(in srgb, var(--color-light) 75%, var(--color-dark) 25%); }

.ia-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--color-primary);
    flex-shrink: 0;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.ia-feature-icon .material-icons {
    color: var(--color-light);
    font-size: 20px;
}

.ia-form-wrapper {
    width: 100%;
    margin-top: 30px;
    text-align: left;
}

.ia-form-inline {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    margin-bottom: 5px;
}

.ia-form-inline input[type="email"] {
    flex-grow: 1;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid color-mix(in srgb, var(--color-light) 40%, var(--color-dark) 60%);
    background-color: color-mix(in srgb, var(--color-light) 90%, transparent);
    color: var(--color-dark);
    font-size: 1rem;
}
body.dark-mode .ia-form-inline input[type="email"] {
     background-color: color-mix(in srgb, var(--color-dark) 60%, transparent);
     color: var(--color-light);
     border-color: color-mix(in srgb, var(--color-light) 30%, var(--color-dark) 70%);
}

.btn-ia-strip {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
    text-transform: uppercase;
    padding: 0.85rem 1.6rem;
    border-radius: var(--border-radius);
    background-color: var(--color-primary);
    color: var(--color-light);
    border: 2px solid var(--color-primary);
    flex-shrink: 0;
    box-shadow: 0 8px 15px rgba(var(--color-primary-rgb), 0.2);
    transition: var(--transition-smooth);
}

.btn-ia-strip:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(var(--color-primary-rgb), 0.25);
}

body.dark-mode .btn-ia-strip {
    background-color: var(--color-primary);
    color: var(--color-light);
    border-color: var(--color-primary);
    box-shadow: 0 10px 20px rgba(var(--color-primary-rgb), 0.25);
}

body.dark-mode .btn-ia-strip:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
}

.form-disclaimer {
    font-size: 0.85rem;
    color: color-mix(in srgb, var(--color-light) 55%, var(--color-dark) 45%);
    margin: 5px 0 0 0;
}
body.dark-mode .form-disclaimer {
    color: color-mix(in srgb, var(--color-light) 75%, var(--color-dark) 25%);
}

.ia-message.success {
    text-align: center;
    padding: 40px;
    width: 100%;
}
.ia-message.success h3 {
    font-family: var(--font-family-heading);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}
.ia-message.success p {
    font-size: 1.1rem;
    max-width: 60ch;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .ia-content-strip {
        padding: 40px 40px;
        max-width: 100%;
    }
    .ia-grid-wrapper {
        grid-template-columns: 1fr;
    }
    .ia-col-left, .ia-col-right {
        align-items: center;
        text-align: center;
    }
    .ia-feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .ia-feature-item p, .ia-strip-body p {
        text-align: center;
    }
    .ia-strip-title {
        text-align: center;
    }
    .ia-form-inline {
        flex-direction: column;
        gap: 10px;
    }
    .ia-form-inline input[type="email"], .btn-ia-strip {
        width: 100%;
    }
}
@media (max-width: 640px) {
    .ia-content-strip {
        padding: 30px 20px;
    }
}

/* --- FIX DE CONTRASTE PARA TEMA URANIAN DARK MODE (v2) --- */
body.theme-uranian.dark-mode #ia-market-analysis {
    background: radial-gradient(
        circle at top,
        color-mix(in srgb, var(--glow-color) 15%, transparent),
        color-mix(in srgb, var(--color-dark-background) 95%, transparent)
    );
}

body.theme-uranian.dark-mode .ia-content-strip {
    background-color: var(--surface-soft);
    color: var(--color-dark); /* uranian-blue */
    border-color: color-mix(in srgb, var(--text-primary) 25%, transparent);
    box-shadow: 0 30px 70px color-mix(in srgb, var(--color-dark-background) 80%, transparent);
}

body.theme-uranian.dark-mode .ia-strip-title,
body.theme-uranian.dark-mode .ia-strip-title strong {
    color: var(--text-primary); /* uranian-blue light */
}

body.theme-uranian.dark-mode .ia-strip-title span {
    color: var(--color-primary); /* highlight */
}

body.theme-uranian.dark-mode .ia-strip-body p,
body.theme-uranian.dark-mode .ia-strip-body strong,
body.theme-uranian.dark-mode .cta-texto-whatsapp strong {
    color: var(--text-primary); /* white */
}
body.theme-uranian.dark-mode .cta-texto-whatsapp{
    color: var(--color-primary);
}


body.theme-uranian.dark-mode .ia-feature-item strong {
    color: var(--text-primary); /* uranian-blue */
}
body.theme-uranian.dark-mode .ia-feature-item p {
    color: var(--text-secondary); /* muted */
}
body.theme-uranian.dark-mode .ia-feature-icon {
    background-color: color-mix(in srgb, var(--text-primary) 12%, transparent); /* glow */
    border: 1px solid color-mix(in srgb, var(--text-primary) 30%, transparent);
}
body.theme-uranian.dark-mode .ia-feature-icon .material-icons {
    color: var(--color-primary); /* highlight */
}

body.theme-uranian.dark-mode .ia-form-inline input[type="email"] {
    background-color: color-mix(in srgb, var(--color-dark-background) 65%, transparent);
    border-color: var(--color-primary);
    color: var(--text-primary);
}
body.theme-uranian.dark-mode .ia-form-inline input[type="email"]::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
}

body.theme-uranian.dark-mode .btn-ia-strip {
    background-color: var(--color-primary);
    color: var(--color-light);
    border-color: var(--color-primary);
    box-shadow: 0 12px 25px rgba(var(--color-primary-rgb), 0.35);
}

body.theme-uranian.dark-mode .btn-ia-strip:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
}

body.theme-uranian.dark-mode .form-disclaimer {
    color: var(--text-secondary);
}


/* 
 * Google Form Modal Styles
 * Componente: Modal de Lista de Espera
 */

/* Overlay del Modal */
.fm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.fm-modal-overlay.is-visible {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* Contenedor del Modal */
.fm-modal-container {
    background-color: var(--color-light, #ffffff);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: var(--border-radius, 16px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.fm-modal-overlay.is-visible .fm-modal-container {
    transform: translateY(0);
}

/* BotÃ³n de Cerrar */
.fm-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--color-dark-gray, #333);
    z-index: 10;
    padding: 5px;
    transition: color 0.3s ease;
}

.fm-modal-close:hover {
    color: var(--color-primary, #780000);
}

/* Header del Modal */
.fm-modal-header {
    padding: 30px 30px 10px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.fm-modal-header h2 {
    font-family: var(--font-family-headings, 'Share Tech', sans-serif);
    font-size: 28px;
    color: var(--color-dark-gray, #003049);
    margin-bottom: 10px;
    line-height: 1.2;
}

.fm-modal-header p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* Cuerpo del Modal (Scrollable) */
.fm-modal-body {
    padding: 30px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Estilos del Formulario */
.fm-form-group {
    margin-bottom: 20px;
}

.fm-form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-dark-gray, #003049);
    font-size: 14px;
}

.fm-form-label .required {
    color: #e74c3c;
}

.fm-form-input,
.fm-form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    font-family: var(--font-family-base, 'Poppins', sans-serif);
    font-size: 15px;
    background-color: #f8f9fa;
    color: #333;
    transition: all 0.3s ease;
}

.fm-form-input:focus,
.fm-form-textarea:focus {
    outline: none;
    border-color: var(--color-primary, #780000);
    background-color: #fff;
}

.fm-form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Radio Buttons */
.fm-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fm-radio-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fm-radio-item:hover {
    background: #ecf0f1;
    border-color: #ccc;
}

.fm-radio-item input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary, #780000);
}

.fm-radio-item label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    width: 100%;
    font-weight: 400;
}

.fm-radio-item input[type="radio"]:checked+label {
    color: var(--color-dark-gray, #003049);
    font-weight: 600;
}

/* Checkbox */
.fm-checkbox-container {
    background: #ecf0f1;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary, #780000);
}

.fm-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    font-weight: 400;
}

.fm-checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: var(--color-primary, #780000);
}

/* BotÃ³n Submit */
.fm-form-submit {
    width: 100%;
    padding: 16px;
    background-color: var(--color-primary, #780000);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
    font-family: var(--font-family-base, 'Poppins', sans-serif);
}

.fm-form-submit:hover {
    background-color: var(--color-secondary, #004a1e);
    transform: translateY(-2px);
}

/* Mensaje de Ã‰xito */
.fm-success-message {
    text-align: center;
    padding: 40px 20px;
    display: none;
}

.fm-success-message h3 {
    color: #27ae60;
    font-family: var(--font-family-headings, 'Share Tech', sans-serif);
    font-size: 28px;
    margin-bottom: 15px;
}

.fm-success-message p {
    font-size: 16px;
    color: var(--color-dark-gray, #333);
}

/* --- Dark Mode Support --- */
body.dark .fm-modal-container {
    background-color: var(--ep-surface, #0F0326);
    color: var(--ep-text, #F0F8FF);
}

body.dark .fm-modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark .fm-modal-header h2,
body.dark .fm-modal-close {
    color: var(--ep-text, #F0F8FF);
}

body.dark .fm-modal-header p {
    color: var(--ep-text-secondary, #A8B2D1);
}

body.dark .fm-form-label {
    color: var(--ep-text, #F0F8FF);
}

body.dark .fm-form-input,
body.dark .fm-form-textarea {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 217, 255, 0.3);
    color: var(--ep-text, #F0F8FF);
}

body.dark .fm-form-input:focus,
body.dark .fm-form-textarea:focus {
    border-color: var(--ep-primary, #00D9FF);
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark .fm-radio-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 217, 255, 0.3);
}

body.dark .fm-radio-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark .fm-radio-item label {
    color: var(--ep-text-secondary, #A8B2D1);
}

body.dark .fm-radio-item input[type="radio"]:checked+label {
    color: var(--ep-text, #F0F8FF);
}

body.dark .fm-checkbox-container {
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: var(--ep-primary, #00D9FF);
}

body.dark .fm-checkbox-label {
    color: var(--ep-text-secondary, #A8B2D1);
}

body.dark .fm-form-submit {
    background-color: var(--ep-primary, #00D9FF);
    color: var(--ep-background, #03001C);
}

body.dark .fm-form-submit:hover {
    background-color: var(--ep-secondary, #B026FF);
}

body.dark .fm-modal-close:hover {
    color: var(--ep-primary, #00D9FF);
}

/* Responsive */
@media (max-width: 768px) {
    .fm-modal-container {
        width: 95%;
        max-height: 95vh;
    }

    .fm-modal-header h2 {
        font-size: 24px;
    }

    .fm-modal-body {
        padding: 20px;
    }
}

/**
 * Video Widget Styles
 * DiseÃ±o: Card expandible con trigger compacto
 *
 * @version 2.1.0
 * @date 2025-12-10
 * // PEV_REF: V4-WIDGET-001-VIDEO-LEAD
 */

/* ========================================
   WIDGET CONTAINER
   ======================================== */

.fm-lead-widget {
    position: fixed;
    bottom: 100px;
    /* PosiciÃ³n base, serÃ¡ calculada por JS */
    z-index: 9989;
    /* Debajo del chat (999999) */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, bottom 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fm-lead-widget--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fm-lead-widget--right {
    right: 1.2rem;
}

.fm-lead-widget--left {
    left: 1.2rem;
    align-items: flex-start;
}

.fm-lead-widget--hide-mobile {
    display: flex;
}

@media (max-width: 768px) {
    .fm-lead-widget--hide-mobile {
        display: none !important;
    }
}

/* Ocultar en mÃ³vil cuando el chat estÃ¡ abierto */
@media (max-width: 480px) {
    .fm-lead-widget--chat-open {
        display: none !important;
    }
}

/* ========================================
   WIDGET CARD (Expandido)
   ======================================== */

.fm-widget-card {
    width: 320px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin-bottom: 1rem;
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--color-light, #ffffff);
}

.fm-lead-widget--left .fm-widget-card {
    transform-origin: bottom left;
}

.fm-widget-card--hidden {
    display: none;
    opacity: 0;
    transform: scale(0.95);
}

.fm-widget-card--visible {
    display: block;
    opacity: 1;
    transform: scale(1);
}

/* Card Header */
.fm-widget-card__header {
    background: linear-gradient(135deg, var(--color-primary, #780000) 0%, #a00020 100%);
    padding: 1rem 1.25rem;
    position: relative;
}

.fm-widget-card__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.fm-widget-card__close:hover {
    color: #ffffff;
}

.fm-widget-icon {
    width: 20px;
    height: 20px;
}

.fm-widget-card__title {
    color: #ffffff;
    font-family: var(--font-family-headings, 'Share Tech', sans-serif);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    padding-right: 1.5rem;
    line-height: 1.3;
}

.fm-widget-card__subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    margin: 0.25rem 0 0;
}

/* Card Body */
.fm-widget-card__body {
    padding: 1.25rem;
    background: var(--color-light, #ffffff);
}

/* ========================================
   WIDGET FORM
   ======================================== */

.fm-widget-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fm-widget-form__group {
    width: 100%;
}

.fm-widget-form__input {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: var(--font-family-base, 'Poppins', sans-serif);
    color: #1f2937;
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.fm-widget-form__input:focus {
    border-color: var(--color-primary, #780000);
    box-shadow: 0 0 0 3px rgba(120, 0, 0, 0.1);
}

.fm-widget-form__input::placeholder {
    color: #9ca3af;
}

.fm-widget-form__submit {
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--color-primary, #780000);
    color: #ffffff;
    font-family: var(--font-family-base, 'Poppins', sans-serif);
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.fm-widget-form__submit:hover {
    background: #5a0000;
}

.fm-widget-form__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.fm-widget-form__disclaimer {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    margin: 0;
}

.fm-widget-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
    text-align: left;
}

.fm-widget-checkbox input[type="checkbox"] {
    margin-top: 0.15rem;
    width: 1rem;
    height: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--color-primary, #780000);
}

.fm-widget-checkbox__text a {
    color: var(--color-primary, #780000);
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.fm-widget-checkbox__text a:hover {
    opacity: 0.8;
}

/* ========================================
   SUCCESS MESSAGE
   ======================================== */

.fm-widget-success {
    text-align: center;
    padding: 1rem 0;
}

.fm-widget-success--hidden {
    display: none;
}

.fm-widget-success__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    background: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fm-widget-success__icon svg {
    width: 24px;
    height: 24px;
    stroke: #059669;
}

.fm-widget-success__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.25rem;
}

.fm-widget-success__text {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.75rem;
}

.fm-widget-success__link {
    display: inline-block;
    background: transparent;
    border: none;
    color: var(--color-primary, #780000);
    font-family: var(--font-family-base, 'Poppins', sans-serif);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: text-decoration 0.2s ease;
}

.fm-widget-success__link:hover {
    text-decoration: underline;
}

/* ========================================
   TRIGGER BUTTON
   ======================================== */

/* Estado base: contraÃ­do (solo icono) */
.fm-widget-trigger {
    display: flex;
    align-items: center;
    background: #ffffff;
    color: #1f2937;
    padding: 0.5rem;
    border-radius: 50%;
    border: 1px solid #f3f4f6;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fm-widget-pulse 2s ease-in-out infinite;
}

.fm-widget-trigger:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(1.05);
    animation: none;
}

.fm-widget-trigger--hidden {
    display: none;
}

.fm-widget-trigger__icon {
    width: 40px;
    height: 40px;
    background: var(--color-primary, #780000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.fm-widget-trigger:hover .fm-widget-trigger__icon {
    background: #5a0000;
}

.fm-widget-trigger__icon svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
}

/* AnimaciÃ³n ring + bounce en todo el widget */
@keyframes fm-widget-pulse {

    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 0 0 0 rgba(120, 0, 0, 0.5), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    25% {
        transform: translateY(-4px);
        box-shadow: 0 0 0 6px rgba(120, 0, 0, 0.3), 0 14px 20px -3px rgba(0, 0, 0, 0.15);
    }

    50% {
        transform: translateY(0);
        box-shadow: 0 0 0 12px rgba(120, 0, 0, 0), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    75% {
        transform: translateY(-2px);
        box-shadow: 0 0 0 0 rgba(120, 0, 0, 0), 0 12px 18px -3px rgba(0, 0, 0, 0.12);
    }
}

/* Texto oculto en estado contraÃ­do */
.fm-widget-trigger__text {
    display: flex;
    flex-direction: column;
    text-align: left;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-left: 0;
}

.fm-widget-trigger__label {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.fm-widget-trigger__title {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1f2937;
}

/* Estado desplegado */
.fm-widget-trigger--expanded {
    padding-right: 1rem;
    border-radius: 50px;
}

.fm-widget-trigger--expanded .fm-widget-trigger__text {
    max-width: 200px;
    opacity: 1;
    margin-left: 0.5rem;
}

/* ========================================
   VIDEO MODAL
   ======================================== */

.fm-video-modal__container--video {
    max-width: 95vw;
    max-height: 95vh;
    width: 100%;
    background-color: #000;
    display: flex;
    flex-direction: column;
}

/* BotÃ³n cerrar modal de vÃ­deo - MÃS VISIBLE */
.fm-video-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.fm-video-modal__close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.fm-video-modal__player-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    background-color: #000;
    aspect-ratio: 16 / 9;
}

.fm-video-modal__player-wrapper iframe,
.fm-video-modal__player-wrapper video,
.fm-video-modal__player-wrapper #fm-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.fm-video-modal__cta {
    flex-shrink: 0;
    padding: 20px 30px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.95) 100%);
    animation: fm-cta-fade-in 0.5s ease forwards;
}

@keyframes fm-cta-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fm-video-modal__cta h3 {
    color: #fff;
    font-family: var(--font-family-headings, 'Share Tech', sans-serif);
    font-size: 24px;
    margin-bottom: 10px;
}

.fm-video-modal__cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    margin-bottom: 20px;
}

.fm-video-modal__cta-button {
    background: linear-gradient(135deg, var(--color-primary, #780000) 0%, #a00020 100%);
    color: #ffffff;
    font-size: 16px;
    padding: 16px 40px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fm-video-modal__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(120, 0, 0, 0.5);
}

/* ========================================
   DARK MODE (Paleta Uranian Dark)
   Colores base:
   --color-primary: #bad6ff
   --color-secondary: #6b458b
   --color-light/background: #03001c
   --color-dark/text: #ffffff
   ======================================== */

body.theme-uranian.dark-mode .fm-widget-card {
    background: #03001c;
    border: 1px solid rgba(186, 214, 255, 0.2);
}

body.theme-uranian.dark-mode .fm-widget-card__header {
    background: linear-gradient(135deg, #bad6ff 0%, #6b458b 100%);
}

body.theme-uranian.dark-mode .fm-widget-card__title {
    color: #03001c;
}

body.theme-uranian.dark-mode .fm-widget-card__subtitle {
    color: rgba(3, 0, 28, 0.8);
}

body.theme-uranian.dark-mode .fm-widget-card__close {
    color: rgba(3, 0, 28, 0.6);
}

body.theme-uranian.dark-mode .fm-widget-card__close:hover {
    color: #03001c;
}

body.theme-uranian.dark-mode .fm-widget-card__body {
    background: #03001c;
}

body.theme-uranian.dark-mode .fm-widget-form__input {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(186, 214, 255, 0.3);
    color: #ffffff;
}

body.theme-uranian.dark-mode .fm-widget-form__input:focus {
    border-color: #bad6ff;
    box-shadow: 0 0 0 3px rgba(186, 214, 255, 0.15);
}

body.theme-uranian.dark-mode .fm-widget-form__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

body.theme-uranian.dark-mode .fm-widget-form__submit {
    background: linear-gradient(135deg, #bad6ff 0%, #6b458b 100%);
    color: #03001c;
    font-weight: 700;
}

body.theme-uranian.dark-mode .fm-widget-form__submit:hover {
    opacity: 0.9;
}

body.theme-uranian.dark-mode .fm-widget-form__disclaimer {
    color: rgba(255, 255, 255, 0.6);
}

body.theme-uranian.dark-mode .fm-widget-checkbox {
    color: rgba(255, 255, 255, 0.7);
}

body.theme-uranian.dark-mode .fm-widget-checkbox input[type="checkbox"] {
    border-color: rgba(186, 214, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

body.theme-uranian.dark-mode .fm-widget-checkbox__text a {
    color: #bad6ff;
}

body.theme-uranian.dark-mode .fm-widget-success__icon {
    background: rgba(186, 214, 255, 0.15);
}

body.theme-uranian.dark-mode .fm-widget-success__icon svg {
    stroke: #bad6ff;
}

body.theme-uranian.dark-mode .fm-widget-success__title {
    color: #ffffff;
}

body.theme-uranian.dark-mode .fm-widget-success__text {
    color: rgba(255, 255, 255, 0.7);
}

body.theme-uranian.dark-mode .fm-widget-success__link {
    color: #bad6ff;
}

/* Trigger Button Dark Mode */
body.theme-uranian.dark-mode .fm-widget-trigger {
    background: #03001c;
    border-color: rgba(186, 214, 255, 0.25);
    color: #ffffff;
    animation: fm-widget-pulse-dark 2s ease-in-out infinite;
}

body.theme-uranian.dark-mode .fm-widget-trigger:hover {
    animation: none;
    border-color: rgba(186, 214, 255, 0.5);
}

body.theme-uranian.dark-mode .fm-widget-trigger__icon {
    background: linear-gradient(135deg, #bad6ff 0%, #6b458b 100%);
}

/* AnimaciÃ³n ring + bounce dark mode */
@keyframes fm-widget-pulse-dark {

    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 0 0 0 rgba(186, 214, 255, 0.5), 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    }

    25% {
        transform: translateY(-4px);
        box-shadow: 0 0 0 6px rgba(186, 214, 255, 0.3), 0 14px 20px -3px rgba(107, 69, 139, 0.2);
    }

    50% {
        transform: translateY(0);
        box-shadow: 0 0 0 12px rgba(186, 214, 255, 0), 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    }

    75% {
        transform: translateY(-2px);
        box-shadow: 0 0 0 0 rgba(107, 69, 139, 0), 0 12px 18px -3px rgba(0, 0, 0, 0.15);
    }
}

body.theme-uranian.dark-mode .fm-widget-trigger__icon svg {
    stroke: #03001c;
}

body.theme-uranian.dark-mode .fm-widget-trigger__label {
    color: rgba(255, 255, 255, 0.6);
}

body.theme-uranian.dark-mode .fm-widget-trigger__title {
    color: #ffffff;
}

body.theme-uranian.dark-mode .fm-video-modal__cta-button {
    background: linear-gradient(135deg, #bad6ff 0%, #6b458b 100%);
    color: #03001c;
}

body.theme-uranian.dark-mode .fm-video-modal__close {
    background: rgba(186, 214, 255, 0.15);
    border-color: rgba(186, 214, 255, 0.3);
    color: #bad6ff;
}

body.theme-uranian.dark-mode .fm-video-modal__close:hover {
    background: rgba(186, 214, 255, 0.25);
    border-color: rgba(186, 214, 255, 0.5);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 400px) {
    .fm-widget-card {
        width: calc(100vw - 2rem);
    }

    .fm-widget-trigger__text {
        display: none;
    }

    .fm-widget-trigger {
        padding: 0.5rem;
        border-radius: 50%;
    }
}

/* ========================================
   MOBILE BUBBLE (Post-Video al 50%)
   Solo visible en mÃ³vil, superpuesta sobre el vÃ­deo
   ======================================== */

.fm-video-bubble {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 100000;

    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;

    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);

    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.fm-video-bubble.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.fm-video-bubble__close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.fm-video-bubble__close:hover {
    color: #ffffff;
}

.fm-video-bubble__text {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fm-video-bubble__cta {
    background: linear-gradient(135deg, var(--color-primary, #780000) 0%, #a00020 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 16px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fm-video-bubble__cta:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(120, 0, 0, 0.5);
}

/* Dark mode bubble */
body.theme-uranian.dark-mode .fm-video-bubble {
    background: rgba(3, 0, 28, 0.95);
    border-color: rgba(186, 214, 255, 0.3);
}

body.theme-uranian.dark-mode .fm-video-bubble__cta {
    background: linear-gradient(135deg, #bad6ff 0%, #6b458b 100%);
    color: #03001c;
}

/* Solo mostrar en mÃ³vil */
@media (min-width: 481px) {
    .fm-video-bubble {
        display: none !important;
    }
}

/* FM AI Chat Widget - Premium WhatsApp Style */

:root {
    --fm-chat-primary: #25D366;
    --fm-chat-primary-dark: #128C7E;
    --fm-chat-bg: #ffffff;
    --fm-chat-bg-secondary: #f0f2f5;
    --fm-chat-text: #111b21;
    --fm-chat-text-secondary: #8696a0;
    --fm-chat-user-bubble: #d9fdd3;
    --fm-chat-bot-bubble: #ffffff;
    --fm-chat-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    --fm-chat-font: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.fm-ai-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 1.2rem;
    z-index: 999999;
    font-family: var(--fm-chat-font);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    transition: bottom 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fm-ai-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--fm-chat-primary);
    color: var(--fm-chat-primary);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(4px);
}

.fm-ai-chat-toggle:hover {
    transform: scale(1.1) rotate(-5deg);
    background: var(--fm-chat-primary);
    color: white;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    border-color: var(--fm-chat-primary);
}

.fm-ai-chat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Estado base: contraÃ­do (solo icono) */
.fm-ai-chat-toggle__text {
    display: flex;
    flex-direction: column;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-left: 0;
    text-align: left;
}

.fm-ai-chat-toggle__name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fm-chat-primary);
    line-height: 1.2;
}

.fm-ai-chat-toggle__cta {
    font-size: 0.65rem;
    color: rgba(37, 211, 102, 0.8);
    line-height: 1.2;
}

/* Estado desplegado */
.fm-ai-chat-toggle--expanded {
    width: auto;
    border-radius: 30px;
    padding: 0.5rem 1rem 0.5rem 0.75rem;
}

.fm-ai-chat-toggle--expanded .fm-ai-chat-toggle__text {
    max-width: 180px;
    opacity: 1;
    margin-left: 0.75rem;
}

/* Hover cuando desplegado */
.fm-ai-chat-toggle--expanded:hover {
    transform: scale(1.05);
}

.fm-ai-chat-toggle--expanded:hover .fm-ai-chat-toggle__name,
.fm-ai-chat-toggle--expanded:hover .fm-ai-chat-toggle__cta {
    color: white;
}

.fm-ai-chat-window {
    width: 380px;
    height: 600px;
    max-height: 80vh;
    background: var(--fm-chat-bg-secondary);
    border-radius: 18px;
    box-shadow: var(--fm-chat-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    bottom: 80px;
    right: 0;
}

.fm-ai-chat-widget.open .fm-ai-chat-window {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.fm-ai-chat-header {
    background: var(--fm-chat-primary-dark);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fm-ai-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fm-ai-avatar-emoji {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.fm-ai-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.fm-ai-title-group {
    display: flex;
    flex-direction: column;
}

.fm-ai-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
}

.fm-ai-subtitle {
    font-size: 12px;
    opacity: 0.9;
}

.fm-ai-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 0;
    line-height: 1;
}

.fm-ai-close-btn:hover {
    opacity: 1;
}

.fm-ai-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-blend-mode: overlay;
    background-color: #e5ddd5;
}

.fm-ai-message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14.2px;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fm-ai-message.bot {
    background: var(--fm-chat-bot-bubble);
    color: var(--fm-chat-text);
    align-self: flex-start;
    border-top-left-radius: 0;
}

.fm-ai-message.user {
    background: var(--fm-chat-user-bubble);
    color: var(--fm-chat-text);
    align-self: flex-end;
    border-top-right-radius: 0;
}

.fm-ai-message.error {
    background: #ffebee;
    color: #c62828;
    align-self: center;
    font-size: 12px;
    border-radius: 8px;
}

.fm-ai-chat-input {
    padding: 10px;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fm-ai-chat-input input {
    flex: 1;
    border: none;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 15px;
    outline: none;
    background: white;
}

.fm-ai-send-btn {
    background: none;
    border: none;
    color: var(--fm-chat-primary-dark);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.fm-ai-send-btn:hover {
    transform: scale(1.1);
}

.fm-ai-send-btn:disabled {
    color: #aebac1;
    cursor: default;
    transform: none;
}

@media (max-width: 480px) {
    .fm-ai-chat-window {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        bottom: 0;
        right: 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        position: fixed;
        z-index: 9999999;
    }

    .fm-ai-chat-header {
        padding: 15px;
        padding-top: max(15px, env(safe-area-inset-top));
    }

    .fm-ai-chat-messages {
        padding-bottom: 80px;
    }

    .fm-ai-chat-input {
        padding-bottom: max(10px, env(safe-area-inset-bottom));
        position: absolute;
        bottom: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .fm-ai-chat-widget.open {
        bottom: 0;
        right: 0;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .fm-ai-header-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .fm-ai-avatar-emoji {
        font-size: 24px;
        background: rgba(255, 255, 255, 0.2);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .fm-ai-avatar-img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255, 255, 255, 0.5);
    }

    .fm-ai-title-group {
        display: flex;
        flex-direction: column;
    }

    .fm-ai-title {
        font-weight: 600;
        font-size: 16px;
        line-height: 1.2;
    }

    .fm-ai-subtitle {
        font-size: 12px;
        opacity: 0.9;
    }

    .fm-ai-close-btn {
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        opacity: 0.8;
        transition: opacity 0.2s;
        padding: 0;
        line-height: 1;
    }

    .fm-ai-close-btn:hover {
        opacity: 1;
    }

    .fm-ai-chat-messages {
        flex: 1;
        padding: 20px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 8px;
        background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
        background-blend-mode: overlay;
        background-color: #e5ddd5;
    }

    .fm-ai-message {
        max-width: 80%;
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 14.2px;
        line-height: 1.4;
        position: relative;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        word-wrap: break-word;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .fm-ai-message.bot {
        background: var(--fm-chat-bot-bubble);
        color: var(--fm-chat-text);
        align-self: flex-start;
        border-top-left-radius: 0;
    }

    .fm-ai-message.user {
        background: var(--fm-chat-user-bubble);
        color: var(--fm-chat-text);
        align-self: flex-end;
        border-top-right-radius: 0;
    }

    .fm-ai-message.error {
        background: #ffebee;
        color: #c62828;
        align-self: center;
        font-size: 12px;
        border-radius: 8px;
    }

    .fm-ai-chat-input {
        padding: 10px;
        background: #f0f2f5;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .fm-ai-chat-input input {
        flex: 1;
        border: none;
        border-radius: 8px;
        padding: 12px 15px;
        font-size: 15px;
        outline: none;
        background: white;
    }

    .fm-ai-send-btn {
        background: none;
        border: none;
        color: var(--fm-chat-primary-dark);
        font-size: 24px;
        cursor: pointer;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s;
    }

    .fm-ai-send-btn:hover {
        transform: scale(1.1);
    }

    .fm-ai-send-btn:disabled {
        color: #aebac1;
        cursor: default;
        transform: none;
    }

    @media (max-width: 480px) {
        .fm-ai-chat-window {
            width: 100%;
            height: 100dvh;
            max-height: 100dvh;
            bottom: 0;
            right: 0;
            border-radius: 0;
            display: flex;
            flex-direction: column;
            position: fixed;
            z-index: 9999999;
        }

        .fm-ai-chat-header {
            padding: 15px;
            padding-top: max(15px, env(safe-area-inset-top));
        }

        .fm-ai-chat-messages {
            padding-bottom: 80px;
        }

        .fm-ai-chat-input {
            padding-bottom: max(10px, env(safe-area-inset-bottom));
            position: absolute;
            bottom: 0;
            width: 100%;
            box-sizing: border-box;
        }

        .fm-ai-chat-widget.open {
            bottom: 0;
            right: 0;
            width: 100%;
            height: 100%;
            z-index: 9999999;
        }

        .fm-ai-chat-toggle {
            display: flex;
            width: 56px;
            height: 56px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        /* Estado expandido en mobile */
        .fm-ai-chat-toggle--expanded {
            width: auto;
            height: auto;
            min-height: 56px;
            border-radius: 28px;
            padding: 0.5rem 1rem 0.5rem 0.75rem;
        }

        .fm-ai-chat-toggle--expanded .fm-ai-chat-toggle__text {
            max-width: 160px;
            opacity: 1;
            margin-left: 0.5rem;
        }

        .fm-ai-chat-widget.open .fm-ai-chat-toggle {
            display: none;
        }
    }
}

/**
 * ï¿½ï¿½ 2025 Franco Macchiavelli. Todos los derechos reservados.
 * Autor del proyecto: Xavier (Baxahaun Venture Studio, https://baxahaun.com)
 * Proyecto: francomacchiavelli.com
 * Archivo: footer.css (v5.5.0 - variant-d 1:1)
 * @version      5.5.0
 * @date         2025-10-03
 * PEV_REF: TAREA-014-Fix-CTA-Text-Visibility
 * ID_PEV: SESION-20251003-1400-CTA-Text-Fix
 * PROPï¿½"SITO: Correcciï¿½n crï¿½tica de altura del botï¿½n y posicionamiento del texto.
 */

.main-footer {
    background-color: var(--color-dark);
    padding: 80px 1rem 0 1rem;
    margin-top: 50px;
    color: #ffffff;
}

body.dark-mode .main-footer {
    background-color: #03001c;
}

.footer-container {
    max-width: 100%;
    margin: 0 auto;
}

.footer-capsule {
    width: 95%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 30px 40px;
    margin: 0 auto;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .footer-capsule {
    background-color: rgba(0, 48, 73, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-top-row {
    padding-bottom: 15px;
}

.footer-top-row a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-block;
}

.footer-top-row a:hover {
    color: #ffffff;
    text-decoration: underline;
    transform: scale(1.05);
}

.footer-divider {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 20px 0 30px 0;
}

.footer-text {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.footer-certification {
    font-size: 1rem;
    color: #ffffff;
}

.footer-scroll-top-btn {
    background-color: transparent;
    color: #e0e0e0;
    border: 1px solid #e0e0e0;
    padding: 10px 25px;
    border-radius: 99px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-scroll-top-btn:hover {
    background-color: #fff;
    color: var(--color-dark);
    border-color: #fff;
}

body.dark-mode .footer-scroll-top-btn:hover {
    color: #03001c;
}

.footer-cta-container {
    text-align: center;
    margin: 40px auto;
}

.footer-cta-button {
    display: inline-block;
    background-color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 45px;
    text-decoration: none;
    font-family: var(--font-family-heading);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(3, 0, 28, 0.2);
    transition: transform 0.3s ease;
    perspective: 1000px;
    white-space: nowrap;
}

.cta-text-flipper {
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.footer-cta-button:hover .cta-text-flipper {
    transform: rotateX(360deg);
}

.footer-cta-button:hover {
    transform: translateY(-3px);
}

.footer-cta-button .cta-text-flipper > span:first-child {
    color: #003049;
}

.footer-cta-button .text-red {
    color: var(--color-primary);
}

.footer-cta-button .text-red.--ep-secondary {
    color: var(--ep-secondary);
}

.footer-credits-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 30px 0;
    font-size: 0.8rem;
    color: #777;
    border-top: 1px solid #333;
}

.footer-credits-bar p {
    margin: 0;
}

.footer-credits-bar a {
    color: #999;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credits-bar a:hover {
    color: #fff;
}

@media (max-width: 992px) {
    .footer-row {
        flex-direction: column;
        gap: 25px;
    }
    .footer-links-group {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .footer-credits-bar {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}


/**
 * Â© 2025 Franco Macchiavelli. Todos los derechos reservados.
 * Archivo: fm-theme/assets/css/src/components/consent-banner.css
 * VersiÃ³n: 2.0.0
 * PropÃ³sito: Banner de cookies modal + configuraciÃ³n granular
 */

/* ==========================================================================
   OVERLAY CON BLUR
   ========================================================================== */

.consent-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.consent-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   BANNER PRINCIPAL - MODAL CENTRADO
   ========================================================================== */

.consent-banner.consent-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 9999;
    width: 90%;
    max-width: 440px;
    background: rgba(20, 20, 30, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    opacity: 0;
    visibility: hidden;
    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.consent-banner.consent-modal.is-visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.consent-banner.consent-modal.is-hiding {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
}

/* Content */
.consent-modal .consent-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.75rem;
    gap: 1rem;
}

.consent-modal .consent-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.consent-modal .consent-icon {
    font-size: 3.5rem;
    line-height: 1;
    animation: cookieBounce 2s ease-in-out infinite;
}

@keyframes cookieBounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-6px) rotate(-5deg);
    }

    75% {
        transform: translateY(-6px) rotate(5deg);
    }
}

.consent-modal .consent-header h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.consent-modal .consent-message {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

.consent-modal .consent-message strong {
    color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.consent-modal .consent-buttons {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.5rem;
}

.btn-consent {
    flex: 1;
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-consent-primary {
    background: linear-gradient(135deg, var(--color-primary, #6366f1), var(--color-primary-dark, #4f46e5));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-consent-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
}

.btn-consent-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-consent-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Privacy Link */
.consent-modal .consent-privacy-link {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s ease;
}

.consent-modal .consent-privacy-link:hover {
    color: var(--color-primary, #6366f1);
    text-decoration: underline;
}

/* ==========================================================================
   MODAL DE CONFIGURACIÃ“N
   ========================================================================== */

.consent-settings-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 10000;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: rgba(20, 20, 30, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition:
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.3s ease,
        visibility 0.3s ease;
    overflow: hidden;
}

.consent-settings-modal.is-visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.consent-settings-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Settings Header */
.consent-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.consent-settings-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.consent-settings-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.consent-settings-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Settings Body */
.consent-settings-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.consent-settings-intro {
    margin: 0 0 1.25rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
}

/* Cookie Option */
.cookie-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    margin-bottom: 0.75rem;
}

.cookie-option:last-child {
    margin-bottom: 0;
}

.cookie-info {
    display: flex;
    gap: 0.75rem;
    flex: 1;
}

.cookie-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
}

.cookie-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.cookie-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(99, 102, 241, 0.2);
    color: var(--color-primary, #6366f1);
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.cookie-text p {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
}

/* Toggle Switch */
.cookie-toggle {
    flex-shrink: 0;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.toggle-label {
    display: block;
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
}

.toggle-label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.cookie-toggle input:checked+.toggle-label {
    background: var(--color-primary, #6366f1);
}

.cookie-toggle input:checked+.toggle-label::after {
    transform: translateX(20px);
}

.toggle-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Settings Footer */
.consent-settings-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.consent-settings-footer .btn-consent {
    width: 100%;
}

/* ==========================================================================
   LIGHT MODE
   ========================================================================== */

html:not(.dark) .consent-overlay {
    background: rgba(255, 255, 255, 0.7);
}

html:not(.dark) .consent-banner.consent-modal,
html:not(.dark) .consent-settings-modal {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

html:not(.dark) .consent-modal .consent-header h3,
html:not(.dark) .consent-settings-header h3 {
    color: #1a1a2e;
}

html:not(.dark) .consent-modal .consent-message {
    color: rgba(0, 0, 0, 0.65);
}

html:not(.dark) .consent-modal .consent-message strong {
    color: rgba(0, 0, 0, 0.85);
}

html:not(.dark) .btn-consent-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.65);
    border-color: rgba(0, 0, 0, 0.1);
}

html:not(.dark) .btn-consent-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.85);
}

html:not(.dark) .consent-settings-header,
html:not(.dark) .consent-settings-footer {
    border-color: rgba(0, 0, 0, 0.08);
}

html:not(.dark) .consent-settings-close {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.5);
}

html:not(.dark) .consent-settings-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.8);
}

html:not(.dark) .consent-settings-intro {
    color: rgba(0, 0, 0, 0.6);
}

html:not(.dark) .cookie-option {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

html:not(.dark) .cookie-text strong {
    color: #1a1a2e;
}

html:not(.dark) .cookie-text p {
    color: rgba(0, 0, 0, 0.55);
}

html:not(.dark) .toggle-label {
    background: rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 480px) {

    .consent-banner.consent-modal,
    .consent-settings-modal {
        width: calc(100% - 1.5rem);
        border-radius: 20px;
    }

    .consent-modal .consent-content {
        padding: 1.75rem 1.25rem;
    }

    .consent-modal .consent-icon {
        font-size: 2.75rem;
    }

    .consent-modal .consent-header h3 {
        font-size: 1.2rem;
    }

    .consent-modal .consent-buttons {
        flex-direction: column;
    }

    .btn-consent {
        width: 100%;
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .consent-overlay,
    .consent-banner.consent-modal,
    .consent-settings-modal {
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .consent-banner.consent-modal,
    .consent-settings-modal {
        transform: translate(-50%, -50%) !important;
    }

    .consent-modal .consent-icon {
        animation: none;
    }
}

