/* Estilos principales - Base común para ambos modos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Variables de colores base */
    --primary-blue: #0066CC;
    --primary-red: #CC0000;
    --primary-black: #121212;
    --primary-white: #FFFFFF;
    
    /* Variables para modo claro (DEFAULT) */
    --color-bg: #F5F7FA;
    --color-text: #333333;
    --color-card: #FFFFFF;
    --color-border: #E0E0E0;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --color-overlay: rgba(0, 0, 0, 0.7);
    
    /* Variables de transición */
    --transition-speed: 0.3s;
    
    /* Variables tipográficas */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Oswald', sans-serif;
}

/* --- OPTIMIZACIÓN MOBILE PREMIUM --- */
@media (max-width: 1024px) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.03);
        --glass-border: rgba(255, 255, 255, 0.12);
        --xbox-accent: #107c10; /* Verde Xbox para detalles de éxito/on */
        --ios-blur: blur(20px);
        --safe-bottom: env(safe-area-inset-bottom);
    }

    body {
        background-color: #050505; /* Fondo negro profundo para resaltar el Glassmorphism */
        -webkit-font-smoothing: antialiased;
        overflow-x: hidden;
    }
}

@media (max-width: 768px) {
    .hero-carousel-container {
        height: 85dvh; /* Altura dinámica para móviles */
        margin-top: 0; /* Pegado arriba para inmersión total */
        border-radius: 0 0 40px 40px; /* Bordes redondeados inferiores estilo iPhone */
        box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    }

    .glass-overlay {
        bottom: 12%;
        left: 20px;
        right: 20px;
        padding: 25px 20px;
        border-radius: 28px; /* Redondeo agresivo estilo iOS */
        text-align: center;
    }

    .slide-title {
        font-size: 1.8rem;
        font-weight: 800;
        letter-spacing: -0.5px;
        line-height: 1.2;
    }

    .slide-subtitle {
        font-size: 1rem;
        margin-top: 8px;
        color: rgba(255,255,255,0.7);
    }

    /* Botones de navegación móviles: más grandes para los pulgares */
    .carousel-btn {
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
        bottom: 30px;
        top: auto; /* Bajamos los controles a la zona del pulgar */
        transform: none;
    }
    
    .carousel-btn.prev { left: 20px; }
    .carousel-btn.next { right: 20px; }
}

@media (max-width: 1024px) {
    /* Grid adaptable: 1 col en móvil, 2 en tablets */
    .services-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        padding: 20px;
    }

    .service-item {
        background: var(--glass-bg);
        backdrop-filter: var(--ios-blur);
        -webkit-backdrop-filter: var(--ios-blur);
        border: 1px solid var(--glass-border);
        border-radius: 24px;
        padding: 20px;
        transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    /* Efecto "Press" al tocar (Feedback háptico visual) */
    .service-item:active {
        transform: scale(0.96);
        background: rgba(255, 255, 255, 0.08);
    }

    /* Brillo interno tipo Xbox */
    .service-item::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; height: 100%;
        background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
        pointer-events: none;
    }

    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
        display: inline-block;
        filter: drop-shadow(0 5px 15px rgba(0, 102, 204, 0.4));
    }
}

/* --- EFECTO GOTA DINÁMICA Y SCROLL --- */
@media (max-width: 1024px) {
    .mobile-nav-bar {
        /* Permitir que la gota sobresalga al subir */
        overflow: visible !important;
        position: fixed;
        bottom: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 980;
    }

    .nav-item-mobile {
        position: relative;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: white !important;
        font-size: 1.4rem;
        z-index: 10;
        
        /* Forma de gota inicial (aplastada en el piso) */
        border-radius: 50% 50% 15% 15%;
        transform: translateY(15px) scaleX(1.4) scaleY(0.6);
        transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        cursor: pointer;
    }

    /* Colores automáticos según el Tema detectado en el body */
    body.light-mode .nav-item-mobile {
        background-color: var(--primary-blue);
        box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
    }

    body.dark-mode .nav-item-mobile {
        background-color: var(--primary-red);
        box-shadow: 0 4px 15px rgba(204, 0, 0, 0.4);
    }

    /* Estado cuando la gota sube a su posición original */
    .nav-item-mobile.rising {
        transform: translateY(-25px) scaleX(0.95) scaleY(1.1);
        border-radius: 50%; /* Se vuelve redonda al subir */
    }

    /* Sombra opcional en el suelo para realismo */
    .nav-item-mobile::before {
        content: '';
        position: absolute;
        bottom: -10px;
        width: 30px;
        height: 4px;
        background: rgba(0,0,0,0.2);
        border-radius: 50%;
        filter: blur(2px);
        opacity: 1;
        transition: 0.4s;
    }

    .nav-item-mobile.rising::before {
        opacity: 0;
        transform: scale(0.2);
    }
}

.mobile-nav-bar {
        /* Permitir que la gota sobresalga al subir */
        overflow: visible !important;
        position: fixed;
        bottom: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 980;
    }

    .nav-item-mobile {
        position: relative;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: white !important;
        font-size: 1.4rem;
        z-index: 10;
        
        /* Forma de gota inicial (aplastada en el piso) */
        border-radius: 50% 50% 15% 15%;
        transform: translateY(15px) scaleX(1.4) scaleY(0.6);
        transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        cursor: pointer;
    }

    /* Colores automáticos según el Tema detectado en el body */
    body.light-mode .nav-item-mobile {
        background-color: var(--primary-blue);
        box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
    }

    body.dark-mode .nav-item-mobile {
        background-color: var(--primary-red);
        box-shadow: 0 4px 15px rgba(204, 0, 0, 0.4);
    }

    /* Estado cuando la gota sube a su posición original */
    .nav-item-mobile.rising {
        transform: translateY(-25px) scaleX(0.95) scaleY(1.1);
        border-radius: 50%; /* Se vuelve redonda al subir */
    }

    /* Sombra opcional en el suelo para realismo */
    .nav-item-mobile::before {
        content: '';
        position: absolute;
        bottom: -10px;
        width: 30px;
        height: 4px;
        background: rgba(0,0,0,0.2);
        border-radius: 50%;
        filter: blur(2px);
        opacity: 1;
        transition: 0.4s;
    }

    .nav-item-mobile.rising::before {
        opacity: 0;
        transform: scale(0.2);
    }

/* --- EFECTO GOTA DINÁMICA --- */
@media (max-width: 768px) {
    .mobile-nav-bar {
        /* Aseguramos que la gota pueda subir por encima de la barra */
        overflow: visible !important; 
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-item-mobile {
        position: relative;
        width: 55px;
        height: 55px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50% 50% 20% 20%; /* Forma de gota base */
        color: white !important;
        text-decoration: none;
        font-size: 1.5rem;
        z-index: 10;
        
        /* Posición inicial: "Aplastada en el piso" */
        transform: translateY(20px) scaleX(1.4) scaleY(0.6);
        transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        cursor: pointer;
    }

    /* Cambio de color según el Tema */
    .light-mode .nav-item-mobile {
        background: var(--primary-blue);
        box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
    }

    .dark-mode .nav-item-mobile {
        background: var(--primary-red);
        box-shadow: 0 4px 15px rgba(204, 0, 0, 0.4);
    }

    /* Estado cuando se hace click: "La gota sube" */
    .nav-item-mobile.rising {
        transform: translateY(-30px) scaleX(0.9) scaleY(1.1);
        border-radius: 50%; /* Se vuelve circular al subir */
    }

    /* Efecto de sombra en el "piso" mientras sube */
    .nav-item-mobile::after {
        content: '';
        position: absolute;
        bottom: -15px;
        left: 25%;
        width: 50%;
        height: 5px;
        background: rgba(0,0,0,0.2);
        border-radius: 50%;
        opacity: 1;
        transition: 0.5s;
        filter: blur(2px);
    }

    .nav-item-mobile.rising::after {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* =========================================================
   CORRECCIÓN DEFINITIVA DE VIDEOS EN MÓVIL (FULL FILL)
   ========================================================= */

@media (max-width: 768px) {

    /* 1. Asegurar que los contenedores no tengan padding de ratio 16:9 */
    .mobile-youtube-section .video-wrapper,
    .mobile-youtube-section .stream-widget-wrapper {
        position: relative !important;
        padding-bottom: 0 !important; /* Elimina el espacio calculado por ratio */
        height: 240px !important;     /* Altura fija forzada para móviles */
        min-height: 240px !important;
        width: 100% !important;
        z-index: 20;
        overflow: hidden !important;
        border: none !important;      /* Opcional: quita bordes si molestan */
    }

    /* 2. Forzar a los IFRAMES a estirarse al 100% real */
    .mobile-youtube-section iframe,
    .mobile-youtube-section .video-wrapper iframe,
    .mobile-youtube-section .stream-widget-wrapper iframe,
    .tips-container iframe {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 20;
        width: 100% !important;
        height: 100% !important;
        
        /* CRUCIAL: Anular reglas anteriores que rompen el llenado */
        aspect-ratio: unset !important; 
        transform: none !important;     /* Elimina el zoom out (scale 0.75) que tenías */
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    /* 3. Ajuste específico para las tarjetas simétricas (Voz mecánico/conductor) */
    .symmetric-card .mobile-youtube-section {
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    /* 4. Asegurar que el contenedor del video "Tips" no tenga altura extraña */
    .tips-container {
        height: 100% !important;
        margin: 0 !important;
        transform: none !important;
    }
}

/* CORRECCIÓN 1: Mejora drástica de sensibilidad táctil */
html, body {
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: auto;
    /* Aseguramos que el scroll sea nativo y libre */
    overflow-x: hidden; 
    width: 100%;
    min-height: 100%;
}

/* En móviles, desactivamos el scroll suave global porque causa sensación de "pesadez" */
@media (max-width: 1024px) {
    html, body {
        /* Permitir comportamiento nativo */
        scroll-behavior: smooth !important;
        /* Habilitar selección y toques naturales */
        touch-action: auto !important;
    }
}

/* Modo oscuro */
.dark-mode {
    --color-bg: #0A0A0A;
    --color-text: #E0E0E0;
    --color-card: #1A1A1A;
    --color-border: #333333;
    --color-shadow: rgba(0, 0, 0, 0.5);
    --color-overlay: rgba(0, 0, 0, 0.85);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    background-color: var(--color-bg);
    color: var(--color-text);
    position: relative;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Overlay para el menú */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-overlay);
    z-index: 998;
    display: none;
    backdrop-filter: blur(3px);
}

.menu-overlay.active {
    display: block;
}

/* Barra de navegación superior */
.top-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    padding: 0 10px;
    transition: all var(--transition-speed);
    backdrop-filter: blur(10px);
    background-color: var(--color-card);
    border-bottom: 1px solid var(--color-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all var(--transition-speed);
    font-family: var(--font-secondary);
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 1001;
    color: var(--primary-blue);
    background-color: rgba(0, 102, 204, 0.1);
}

.menu-toggle:hover {
    background-color: rgba(0, 102, 204, 0.2);
}

.menu-icon {
    font-size: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0px;
    text-decoration: none;
}

.logo-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    line-height: 1;
    font-family: var(--font-secondary);
}

.logo-chevere {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary-blue);
}

.logo-cars {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary-red);
}

.logo-subtitle {
    font-size: 0.7rem;
    margin-top: 0px;
    letter-spacing: 1.5px;
    color: var(--color-text);
}

.theme-switcher {
    margin-left: auto;
    margin-right: 5px;
}

.theme-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-blue);
}

.theme-btn i {
    position: absolute;
    transition: all var(--transition-speed);
}

.theme-btn .fa-moon {
    opacity: 1;
    color: white;
}

.theme-btn .fa-sun {
    opacity: 0;
    transform: rotate(-90deg);
    color: #FFD700;
}

.dark-mode .theme-btn {
    background-color: var(--primary-red);
}

.dark-mode .theme-btn .fa-moon {
    opacity: 0;
    transform: rotate(90deg);
}

.dark-mode .theme-btn .fa-sun {
    opacity: 1;
    transform: rotate(0deg);
}

/* ============================================
   TABLETS: STREAMING CHEVERECARS TV - OCUPA TODO EL ESPACIO
   ============================================ */

@media (min-width: 769px) and (max-width: 1024px) {
  /* 1. Asegurar que el contenedor principal ocupe el 100% */
  .streaming-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
  }
  
  /* 2. Streaming principal ocupa todo el ancho */
  .streaming-main {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 0 100% !important;
    order: 1;
  }
  
  /* 3. Contenedor de video expandido */
  .streaming-main .video-wrapper {
    height: 400px !important;
    min-height: 400px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 20px 0 !important;
    border-width: 4px !important;
  }
  
  /* 4. Banners se reorganizan en fila debajo del streaming */
  .streaming-banners {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 25px !important;
    width: 100% !important;
    order: 2;
  }
  
  /* 5. Ajustar cada banner para tablets */
  .stream-banner, .info-card.symmetric-card {
    min-height: 320px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 25px 20px !important;
  }
  
  /* 6. Asegurar que los iframes sean responsivos */
  .stream-widget-wrapper, .video-wrapper iframe {
    width: 100% !important;
    z-index: 20;
    height: 100% !important;
  }
  
  /* 7. Titulo centrado y visible */
  .streaming-header h2 {
    font-size: 2.5rem !important;
    text-align: center;
    margin-bottom: 15px;
  }
  
  /* 8. Ocultar división left/right en tablets */
  .side-left, .side-right {
    width: 100% !important;
    display: contents !important;
  }
}

/* ============================================
   MEJORA DE SENSIBILIDAD TÁCTIL PARA TABLETS Y MÓVILES
   ============================================ */

@media (max-width: 1024px) {
  /* C. BANNERS STREAMING - Scroll horizontal más sensible */
  .streaming-banners {
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x !important;
    scroll-snap-type: x proximity !important;
  }
  
  /* D. Aumentar área táctil para elementos deslizables */
 .promo-item, .stream-banner, .symmetric-card {
    min-height: 50px !important; /* Mínimo recomendado para toques */
    padding: 15px !important;
  }
}

/* ============================================
   TABLETS: LOGO COMPLETAMENTE VISIBLE
   ============================================ */

@media (min-width: 500px) and (max-width: 1024px) {
  /* 1. Asegurar que el contenedor del logo tenga espacio suficiente */
  .logo {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    min-width: 300px !important;
    max-width: 350px !important;
    z-index: 998 !important; /* Mayor que el menú lateral (z-index: 900) */
    position: relative !important;
  }
  
  /* 2. Imagen del logo visible */
  #mainLogo {
    height: 60px !important;
    width: auto !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* 3. Texto del logo completamente visible */
  .logo-text {
        display: flex;
        flex-direction: row;
        align-items: baseline;
        gap: 4px;
        line-height: 1;
        margin-bottom: 2px;
        flex-wrap: nowrap;
        z-index: 740;
    }
  
  .logo-chevere {
        font-size: 1.8rem !important;
        font-weight: 800 !important;
        letter-spacing: 1px !important;
        color: var(--primary-blue) !important;
        padding-top: 0 !important;
        z-index: 740
    }
  
  .logo-cars {
        font-size: 1.8rem !important;
        font-weight: 700 !important;
        letter-spacing: 2px !important;
        color: var(--primary-red) !important;
        padding-top: 0 !important;
        z-index: 740;
    }
  
  /* 4. Subtitle también visible */
  .logo-subtitle {
        font-size: 0.55rem !important;
        margin-top: 0 !important;
        letter-spacing: 0.8px;
        color: var(--color-text);
        line-height: 1.1;
        opacity: 0.9;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
        z-index: 740;
    }
  
  /* 5. Asegurar que navbar no tape el logo */
  .top-navbar {
    z-index: 900 !important;
    padding: 5px 20px !important;
  }
  
  .nav-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }
  
  /* 6. Asegurar que el logo tenga prioridad sobre otros elementos */
  .logo-content-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        margin: 0;
        max-width: 200px;
        overflow: visible !important;
        z-index: 750;
    }
  
  /* 7. Garantizar que no haya superposición con el botón del menú */
  .menu-toggle {
    z-index: 899 !important; /* Un nivel menos que el logo */
    position: relative !important;
  }
}

/* Ajuste adicional para asegurar visibilidad */
@media (min-width: 769px) {
  /* Asegurar que el logo esté siempre encima del fondo */
  .logo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--color-card);
    opacity: 0.95;
    border-radius: 10px;
    z-index: -1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .dark-mode .logo::before {
    background: var(--color-card);
    opacity: 0.98;
  }
}

/* Menú lateral de servicios - CORREGIDO */
.services-menu {
    position: fixed;
    top: 0;
    left: 0; /* Lo fijamos a la izquierda */
    width: 85%;
    max-width: 350px; 
    height: 100vh;
    z-index: 999;
    
    /* MAGIA ANTI-LAG: Movemos el menú fuera de la pantalla usando GPU, no la propiedad 'left' */
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    will-change: transform; /* Le avisa al teléfono que prepare memoria gráfica */
    overflow-y: auto;
    padding: 20px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    background-color: var(--color-card);
    color: var(--color-text);
}

.services-menu.active {
    /* Retorna a su posición original suavemente */
    transform: translateX(0);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-blue);
}

.menu-header h2 {
    font-family: var(--font-secondary);
    letter-spacing: 2px;
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.close-menu {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    color: var(--color-text);
    background-color: rgba(0, 0, 0, 0.05);
}

.close-menu:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--primary-red);
}

/* Estilos para búsqueda de servicios */
.services-search {
    margin-bottom: 20px;
    padding: 0 10px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--color-card);
    border: 2px solid var(--color-border);
    border-radius: 10px;
    padding: 10px 15px;
    transition: all var(--transition-speed);
}

.search-box:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-box i {
    color: var(--primary-blue);
    margin-right: 10px;
    font-size: 1.1rem;
}

#servicesSearch {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--color-text);
    outline: none;
    padding: 5px 0;
}

#servicesSearch::placeholder {
    color: #999;
}

#clearSearch {
    background: transparent;
    border: none;
    color: var(--primary-red);
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

#clearSearch:hover {
    background: rgba(204, 0, 0, 0.1);
}

.highlight {
    background-color: rgba(255, 215, 0, 0.3);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
    opacity: 0.5;
}

.no-results p {
    font-size: 1.1rem;
}

.services-sections {
    margin-bottom: 30px;
}

.service-item {
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-weight: 500;
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--color-text);
    border-left: 4px solid var(--primary-blue);
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.1), transparent);
    transition: left 0.6s;
}

.service-item:hover::before {
    left: 100%;
}

.service-item:hover {
    background-color: rgba(0, 102, 204, 0.1);
    transform: translateX(5px);
    border-left-color: var(--primary-red);
}

.service-item.active {
    background-color: rgba(0, 102, 204, 0.2);
    border-left-color: var(--primary-red);
    color: var(--primary-blue);
    font-weight: 700;
}
.service-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
    min-width: 30px;
    text-align: center;
}

.service-content {
    flex: 1;
}

.service-item h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.service-item p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.service-arrow {
    color: var(--primary-blue);
    transition: transform var(--transition-speed);
}

.service-item:hover .service-arrow {
    transform: translateX(5px);
}

.publications-container {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-card);
    z-index: 10;
    padding: 20px;
    overflow-y: auto;
    transition: opacity 0.3s ease;
}

/* Contenedor de publicaciones cuando está activo */
.publications-container.active {
    display: block;
}

.publications-container h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-family: var(--font-secondary);
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

.publication-item {
    background: var(--color-card);
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.publication-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.5s ease;
    z-index: -1;
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.1), rgba(204, 0, 0, 0.1));
}

.publication-item:hover::before {
    left: 0;
}

.publication-item:hover {
    box-shadow: 0 5px 15px var(--color-shadow);
    transform: translateY(-3px);
    border-left-color: var(--primary-blue);
}

.publication-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 5px;
}

.publication-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.publication-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.favorite-btn {
    background: transparent;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s;
    padding: 5px;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn:hover,
.favorite-btn.active {
    color: var(--primary-red);
}

.favorite-btn.active i {
    font-weight: 900;
}

.favorite-btn:hover {
    background: rgba(204, 0, 0, 0.1);
}

.publication-date {
    font-size: 0.8rem;
    color: var(--primary-blue);
    background: rgba(0, 102, 204, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
}

.publication-subtitle {
    font-size: 0.9rem;
    color: var(--color-text);
    opacity: 0.8;
    line-height: 1.4;
    margin: 5px 0;
}

.publication-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
}

.publication-views {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 102, 204, 0.1);
    padding: 4px 10px;
    border-radius: 15px;
    transition: all var(--transition-speed);
}

.dark-mode .publication-views {
    color: #ccc;
    background: rgba(0, 102, 204, 0.2);
}

.publication-views i {
    color: var(--primary-blue);
    font-size: 0.9rem;
}

.publication-item:hover .publication-views {
    background: rgba(0, 102, 204, 0.2);
    transform: scale(1.05);
}

.publication-arrow {
    color: var(--primary-blue);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all var(--transition-speed);
}

.back-button:hover {
    background: #004c99;
    transform: translateX(-5px);
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
}

.pagination-btn {
    padding: 8px 15px;
    border: 2px solid var(--color-border);
    background: var(--color-card);
    color: var(--color-text);
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: all var(--transition-speed);
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.pagination-btn:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.pagination-btn.prev,
.pagination-btn.next {
    padding: 8px 20px;
}

/* Contenido principal */
.main-content {
    margin-top: 80px;
}

.presentation-section {
    position: relative;
    height: 90vh;
    min-height: 700px;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    background: linear-gradient(135deg, var(--color-bg) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.presentation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    padding-top: 60px;
}

.presentation-content {
    max-width: 700px;
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.dark-mode .presentation-content {
    background-color: rgba(26, 26, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.presentation-title {
    font-family: var(--font-secondary);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    color: var(--primary-blue);
}

.presentation-title span {
    display: block;
}

.title-part-1 {
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--primary-blue);
    font-size: 3rem;
}

.title-part-2 {
    font-weight: 700;
    letter-spacing: 4px;
    margin: 10px 0;
    color: var(--primary-red);
    font-size: 3.5rem;
}

.title-part-3 {
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.dark-mode .title-part-2 {
    color: var(--primary-blue);
}

.dark-mode .title-part-1,
.dark-mode .title-part-3 {
    color: var(--primary-red);
}

.presentation-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 500px;
    color: var(--color-text);
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-secondary);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-speed);
    font-size: 1rem;
}

.cta-btn i {
    transition: transform var(--transition-speed);
}

.cta-btn:hover i {
    transform: translateX(5px);
}

.cta-btn.primary {
    background: linear-gradient(45deg, var(--primary-blue), #004C99);
    color: var(--primary-white);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.3);
}

.cta-btn.secondary {
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
}

.cta-btn.secondary:hover {
    background-color: var(--primary-red);
    color: var(--primary-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(204, 0, 0, 0.3);
}

/* ============================================
   ANIMACIONES ESPECÍFICAS PARA MÓVILES
   ============================================ */

@keyframes pulse-mobile {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Contenido Interno */
.overlay-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Efecto de brillo al pasar sobre elementos */
.glow-on-hover {
    position: relative;
    overflow: hidden;
}

.glow-on-hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.7s;
}

.glow-on-hover:hover::after {
    left: 100%;
}

.social-presentation {
    display: none !important;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all var(--transition-speed);
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
}

.social-link.youtube:hover {
    background-color: #FF0000;
    color: white;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #405DE6, #5B51D8, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
}

.social-link.tiktok:hover {
    background-color: #000000;
    color: white;
}

/* Secciones de contenido */
.section-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    color: var(--primary-blue);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    border-radius: 2px;
    background-color: var(--primary-red);
}

/* Diseño Optimizado: Servicios y Publicaciones */
.featured-services, .latest-publications {
    padding: 60px 0;
    background: var(--color-bg);
}

.services-grid, .publications-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Tarjetas Universales */
.service-card, .pub-card {
    background: var(--color-card);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border-bottom: 4px solid var(--primary-blue);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px var(--color-shadow);
    position: relative;
    overflow: hidden;
}

.service-card:hover, .pub-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-red);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.pub-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Tarjeta de bienvenida */
.welcome-card {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(204, 0, 0, 0.1));
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    grid-column: 1 / -1;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-blue), var(--primary-red));
    border-radius: 22px;
    z-index: -1;
}

.welcome-icon {
    font-size: 4rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.welcome-card h3 {
    font-family: var(--font-secondary);
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 2rem;
}

.welcome-card p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text);
    line-height: 1.6;
}

.welcome-btn {
    padding: 15px 30px;
    background: linear-gradient(45deg, var(--primary-blue), var(--primary-red));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-speed);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.welcome-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.welcome-btn i {
    transition: transform var(--transition-speed);
}

.welcome-btn:hover i {
    transform: rotate(15deg);
}

/* Contenido de secciones personalizadas */
.home-section-content {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05), rgba(204, 0, 0, 0.05));
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

.home-section-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-blue), var(--primary-red));
    border-radius: 22px;
    z-index: -1;
    opacity: 0.5;
}

.home-section-content h3 {
    font-family: var(--font-secondary);
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.home-section-content p {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.6;
}

/* Modal de publicación */
.publication-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.publication-modal.active {
    display: flex;
}

.publication-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    background-color: var(--color-overlay);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    z-index: 2001;
    animation: modalOpen 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    background-color: var(--color-card);
    color: var(--color-text);
    box-shadow: 0 20px 60px var(--color-shadow);
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 2px solid var(--primary-blue);
    flex-wrap: wrap;
    gap: 10px;
}

.modal-title-wrapper {
    flex: 1;
    min-width: 200px;
}

/* Tipografía Profesional */
.modal-title {
    font-family: var(--font-secondary);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-transform: uppercase;
    margin-bottom: 5px;
    line-height: 1.1;
}

.modal-subtitle {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 25px;
}

/* Estilo para el contador de vistas en el modal */
.modal-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-views {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 102, 204, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.dark-mode .modal-views {
    color: #ccc;
    background: rgba(0, 102, 204, 0.2);
}

.modal-views i {
    color: var(--primary-blue);
}

.close-modal {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    color: var(--color-text);
    background-color: rgba(0, 0, 0, 0.05);
}

.close-modal:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--primary-red);
}

.modal-body {
    padding: 30px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-description {
    font-family: var(--font-primary);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text);
}

.modal-social h4 {
    margin-bottom: 15px;
    font-family: var(--font-secondary);
    color: var(--primary-blue);
}

.modal-social .social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 255, 255, 0.2);
}

.social-icons-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    width: 100%;
}

/* Estado normal: hereda el color del tema (oscuro o claro) */
.social-icon.whatsapp {
    color: var(--color-text);
}

/* Estado al pasar el mouse: se vuelve verde con el icono blanco */
.social-icon.whatsapp:hover {
    background-color: #25D366;
    color: #FFFFFF;
    border-color: #25D366; /* Opcional: si tus iconos tienen borde, esto lo iguala al verde */
}

.social-icon.youtube:hover {
    background: #FF0000;
    color: white;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #405DE6, #833AB4, #C13584);
    color: white;
}

.social-icon.facebook:hover {
    background-color: #1877F2;
    color: white;
}

.social-icon.tiktok:hover {
    background: #000000;
    color: white;
}

/* Animación de entrada para el contenido */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal de login */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-modal.active {
    display: flex;
}

.login-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    background-color: var(--color-overlay);
}

.login-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    z-index: 1501;
    animation: modalOpen 0.5s ease;
    background-color: var(--color-card);
    color: var(--color-text);
    box-shadow: 0 20px 60px var(--color-shadow);
}

.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 2px solid var(--primary-red);
    color: var(--primary-red);
}

.login-header h3 {
    font-family: var(--font-secondary);
    margin: 0;
    font-size: 1.5rem;
}

.close-login {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    color: var(--color-text);
    background-color: rgba(0, 0, 0, 0.05);
}

.close-login:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--primary-red);
}

.login-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid var(--color-border);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-speed);
    background: transparent;
    color: var(--color-text);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    border-width: 3px;
}

.login-submit {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-secondary);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all var(--transition-speed);
    font-size: 1rem;
    background-color: var(--primary-red);
    color: var(--primary-white);
}

.login-submit:hover {
    background-color: #990000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(204, 0, 0, 0.3);
}

.login-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}


.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h4 {
    margin-bottom: 20px;
    color: var(--primary-blue);
    font-family: var(--font-secondary);
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 10px;
}

.btn-add {
    padding: 10px 20px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 20px;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.btn-add:hover {
    background-color: #004c99;
    transform: translateY(-2px);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.item-header h5 {
    margin: 0;
    flex: 1;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.item-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--primary-blue);
    white-space: nowrap;
}

.letter-badge {
    background-color: var(--primary-red) !important;
    color: white !important;
}

.type-badge {
    background-color: #28a745 !important;
    color: white !important;
}

.item-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #666;
    line-height: 1.4;
}

.item-actions {
    display: flex;
    gap: 10px;
}

.btn-edit, .btn-delete {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    justify-content: center;
}

.btn-edit {
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--primary-blue);
}

.btn-edit:hover {
    background-color: rgba(0, 102, 204, 0.3);
}

.btn-delete {
    background-color: rgba(204, 0, 0, 0.1);
    color: var(--primary-red);
}

.btn-delete:hover {
    background-color: rgba(204, 0, 0, 0.3);
}

.empty-message {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    border: 2px dashed var(--color-border);
}

.section-settings {
    margin-top: 20px;
}

.section-settings .form-group {
    margin-bottom: 25px;
}

.section-settings .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text);
}

.section-settings .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-speed);
    background: transparent;
    color: var(--color-text);
}

.section-settings .form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* Validaciones de formulario */
.form-control.error {
    border-color: var(--primary-red) !important;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1) !important;
}

.validation-error {
    color: var(--primary-red);
    font-size: 0.8rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.validation-error::before {
    content: "⚠";
}

/* Notificaciones globales */
.global-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.global-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    background: var(--color-card);
    border-left: 4px solid;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--color-shadow);
    display: flex;
    align-items: center;
    gap: 15px;
}

.global-notification.success .notification-content {
    border-left-color: #28a745;
}

.global-notification.error .notification-content {
    border-left-color: var(--primary-red);
}

.global-notification.info .notification-content {
    border-left-color: var(--primary-blue);
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-content i.fa-check-circle {
    color: #28a745;
}

.notification-content i.fa-exclamation-circle {
    color: var(--primary-red);
}

.notification-content i.fa-info-circle {
    color: var(--primary-blue);
}

.notification-content span {
    flex: 1;
    font-weight: 500;
}

.notification-close {
    background: transparent;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-speed);
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

/* Modal de edición */
.edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.edit-modal.active {
    display: flex;
}

.edit-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-overlay);
    backdrop-filter: blur(3px);
}

.edit-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: var(--color-card);
    border-radius: 15px;
    z-index: 3001;
    animation: modalOpen 0.5s ease;
}

.edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid var(--primary-blue);
}

.edit-header h4 {
    margin: 0;
    color: var(--primary-blue);
    font-family: var(--font-secondary);
}

.close-edit {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    color: var(--color-text);
    background-color: rgba(0, 0, 0, 0.05);
}

.close-edit:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--primary-red);
}

.edit-body {
    padding: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-speed);
    background-color: transparent;
    color: var(--color-text);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text);
}

.form-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
    display: block;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.btn-save {
    padding: 12px 25px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-speed);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-save:hover {
    background-color: #004c99;
    transform: translateY(-2px);
}

.btn-delete {
    padding: 12px 25px;
    background-color: var(--primary-red);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-speed);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-delete:hover {
    background-color: #990000;
    transform: translateY(-2px);
}

/* Footer */
.main-footer {
    padding: 60px 0 30px;
    border-top: 2px solid var(--color-border);
    background-color: var(--color-card);
    color: var(--color-text);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-logo h3 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.footer-logo p {
    color: var(--primary-red);
    font-weight: 600;
}

.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links h4, .footer-social h4 {
    font-family: var(--font-secondary);
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--primary-blue);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    transition: all var(--transition-speed);
    font-weight: 500;
    color: var(--color-text);
}

.footer-links a:hover {
    padding-left: 10px;
    color: var(--primary-blue);
}

.social-icons {
    display: flex;
    gap: 15px;
}

/* ANIMACIONES Y EFECTOS VISUALES MEJORADOS */

/* Efecto de vidrio (glassmorphism) */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-mode .glass-effect {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Efecto neón para títulos */
.neon-text {
    color: #fff;
    text-shadow: 0 0 5px var(--primary-blue),
                 0 0 10px var(--primary-blue),
                 0 0 15px var(--primary-blue),
                 0 0 20px var(--primary-red);
    animation: neonPulse 1.5s infinite alternate;
}

@keyframes neonPulse {
    from {
        text-shadow: 0 0 5px var(--primary-blue),
                     0 0 10px var(--primary-blue),
                     0 0 15px var(--primary-blue),
                     0 0 20px var(--primary-red);
    }
    to {
        text-shadow: 0 0 10px var(--primary-red),
                     0 0 20px var(--primary-red),
                     0 0 30px var(--primary-red),
                     0 0 40px var(--primary-blue);
    }
}

/* Gradientes animados */
.animated-gradient {
    background: linear-gradient(-45deg, 
        var(--primary-blue), 
        var(--primary-red), 
        #0066CC, 
        #CC0000);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Efecto de profundidad con sombras */
.depth-shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
                0 15px 12px rgba(0, 0, 0, 0.22);
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.depth-shadow:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25),
                0 10px 10px rgba(0, 0, 0, 0.22);
    transform: translateY(-5px);
}

/* Efecto de borde luminoso */
.glow-border {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(var(--color-card), var(--color-card)) padding-box,
                linear-gradient(45deg, var(--primary-blue), var(--primary-red)) border-box;
    border-radius: 10px;
}

/* Efecto de partículas en elementos */
.particle-element {
    position: relative;
    overflow: hidden;
}

.particle-element::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1%, transparent 1%);
    background-size: 20px 20px;
    animation: particleMove 20s linear infinite;
    pointer-events: none;
}

@keyframes particleMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(20px, 20px);
    }
}

/* Efecto de onda en botones */
.wave-effect {
    position: relative;
    overflow: hidden;
}

.wave-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.wave-effect:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        transform: scale(40, 40);
        opacity: 0;
    }
}

/* Efecto de texto degradado */
.gradient-text {
    background: linear-gradient(45deg, var(--primary-blue), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Efecto de tarjeta 3D */
.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(5deg) translateZ(20px);
}

/* Efecto de brillo al pasar mouse */
.shine-hover {
    position: relative;
    overflow: hidden;
}

.shine-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.shine-hover:hover::before {
    left: 100%;
}

/* Efecto de desenfoque al hacer scroll */
.blur-on-scroll {
    transition: filter 0.3s ease;
}

.blur-on-scroll.blurred {
    filter: blur(2px);
}

/* Efecto de máquina de escribir */
.typewriter {
    overflow: hidden;
    border-right: .15em solid var(--primary-blue);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end),
               blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-blue) }
}

/* Efecto de confeti */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--primary-red);
    top: 0;
    opacity: 0;
    pointer-events: none;
}

/* Animación de aparición suave */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Efecto de zoom sutil */
.zoom-hover {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.zoom-hover:hover {
    transform: scale(1.05);
}

/* Efecto de línea que se dibuja */
.draw-line {
    position: relative;
}

.draw-line::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
    transition: width 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.draw-line:hover::after {
    width: 100%;
}

/* Efecto de vibración sutil */
.vibrate {
    animation: vibrate 0.3s linear infinite both;
}

@keyframes vibrate {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

/* Efecto de rotación 3D */
.rotate-3d {
    transform-style: preserve-3d;
    animation: rotate3d 20s infinite linear;
}

@keyframes rotate3d {
    0% {
        transform: rotateX(0) rotateY(0) rotateZ(0);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

/* APLICAR EFECTOS A ELEMENTOS EXISTENTES */

/* Mejorar presentación */
.presentation-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
                inset 0 0 50px rgba(255, 255, 255, 0.1);
}

.dark-mode .presentation-content {
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mejorar tarjetas */
.welcome-card, .home-section-content {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.9),
        rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1),
                -20px -20px 60px rgba(255, 255, 255, 0.7);
}

.dark-mode .welcome-card,
.dark-mode .home-section-content {
    background: linear-gradient(145deg, 
        rgba(30, 30, 30, 0.9),
        rgba(20, 20, 20, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.3),
                -20px -20px 60px rgba(255, 255, 255, 0.05);
}

/* Mejorar botones */
.cta-btn {
    position: relative;
    overflow: hidden;
    border: none;
    background: linear-gradient(45deg, 
        var(--primary-blue), 
        var(--primary-red));
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.3),
                0 6px 6px rgba(204, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.7s;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 102, 204, 0.4),
                0 10px 10px rgba(204, 0, 0, 0.3);
}

.cta-btn.secondary {
    background: transparent;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.cta-btn.secondary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--primary-blue), 
        var(--primary-red));
    border-radius: 50px;
    z-index: -1;
}

.dark-mode .services-menu {
    background: rgba(18, 18, 18, 0.98);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mejorar items del menú */
.service-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dark-mode .service-item {
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.2);
}

.dark-mode .service-item:hover {
    background: rgba(50, 50, 50, 0.9);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.3);
}

/* Mejorar navbar */
.top-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.dark-mode .top-navbar {
    background: rgba(18, 18, 18, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mejorar logo */
.logo-text {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.logo-text:hover {
    text-shadow: 0 0 20px rgba(0, 102, 204, 0.5),
                 0 0 40px rgba(204, 0, 0, 0.3);
}

/* Mejorar modales */
.modal-content, .login-content, .edit-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
                0 0 100px rgba(0, 102, 204, 0.1);
}

.dark-mode .modal-content,
.dark-mode .login-content,
.dark-mode .edit-content {
    background: rgba(18, 18, 18, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
                0 0 100px rgba(0, 102, 204, 0.2);
}

/* Mejorar footer */
.main-footer {
    background: linear-gradient(to top,
        var(--color-card) 0%,
        rgba(var(--color-card), 0.8) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Efecto de gradiente animado en secciones */
.presentation-section {
    background: linear-gradient(-45deg, 
        #0066CC, 
        #CC0000, 
        #0066CC, 
        #CC0000);
    background-size: 400% 400%;
    animation: gradientAnimation 20s ease infinite;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Efecto de brillo en íconos */
.welcome-icon i,
.service-icon i {
    filter: drop-shadow(0 0 5px currentColor);
    transition: all 0.3s ease;
}

.welcome-icon:hover i,
.service-icon:hover i {
    filter: drop-shadow(0 0 15px currentColor);
    transform: scale(1.2);
}

/* Efecto de línea de tiempo para publicaciones */
.publication-item {
    position: relative;
    padding-left: 20px;
}

.publication-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom,
        var(--primary-blue),
        var(--primary-red));
    border-radius: 2px;
}

/* NUEVO DISEÑO PARA EL MENÚ LATERAL (Estilo CTA) */

/* Contenedor de items con más espacio */
.services-sections {
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-item {
    /* Forma de botón redondeado */
    border-radius: 50px; 
    padding: 12px 25px;
    
    /* Diseño Base (Estilo "Ghost" o secundario para no saturar) */
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--color-text);
    
    /* Resetear estilos anteriores */
    border-left: 2px solid var(--primary-blue);
    margin-bottom: 0;
    
    /* Alineación */
    display: flex;
    align-items: center;
    gap: 15px;
    
    /* Transiciones suaves iguales a los botones CTA */
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Icono dentro del botón */
.service-icon {
    font-size: 1.2rem;
    color: var(--primary-blue);
    min-width: 25px;
    text-align: center;
    transition: color 0.3s;
}

/* Texto del botón */
.service-content h3 {
    margin: 0;
    font-size: 1rem;
    font-family: var(--font-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Ocultar descripción pequeña para limpiar el diseño de botón (opcional) */
.service-content p {
    display: none; 
}

/* Flecha derecha */
.service-arrow {
    margin-left: auto;
    color: var(--primary-blue);
    transition: transform 0.3s;
}

/* ESTADO HOVER (Aquí ocurre la magia del diseño conjunto) */

.service-item:hover, .service-item.active {
    /* El mismo gradiente que tus botones CTA principales */
    background: linear-gradient(45deg, var(--primary-blue), #004C99);
    border-color: transparent;
    
    /* Sombra similar a los botones de inicio */
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
    
    /* Mover un poco hacia arriba */
    transform: translateY(-3px) scale(1.02);
    
    /* Cambiar texto a blanco */
    color: white;
}

/* Ajustar colores internos al hacer hover */
.service-item:hover .service-icon,
.service-item.active .service-icon,
.service-item:hover .service-arrow,
.service-item.active .service-arrow {
    color: white;
}

.service-item:hover .service-arrow {
    transform: translateX(5px);
}

/* Ajuste para modo oscuro */
.dark-mode .service-item {
    border-color: var(--primary-blue);
    color: var(--color-text);
}

.dark-mode .service-item:hover {
    color: white;
}

/* Corrección para la animación del contenedor de servicios */
.services-sections {
    transition: opacity 0.4s ease, transform 0.4s ease;
    width: 100%; 
}

/* Mejora visual del botón volver */
.back-button {
    margin-bottom: 20px;
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 600;
    font-family: var(--font-secondary);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.2);
}

/* --- Sección Streaming --- */
.streaming-section {
    padding: 70px 0;
    background: radial-gradient(circle at center, var(--color-card) 0%, var(--color-bg) 100%);
    overflow: hidden;
}

.streaming-layout {
    display: flex;
    gap: 30px;
    align-items: stretch; /* Esto fuerza que todos los elementos tengan la misma altura */
    justify-content: space-between;
    width: 100%;
}

.streaming-main {
    flex: 2;
    max-width: 850px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid var(--primary-blue);
    box-shadow: 0 0 30px rgba(0, 102, 204, 0.3);
    margin: 20px 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Indicador En Vivo Animado */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(204, 0, 0, 0.2);
    color: var(--primary-red);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 800;
    font-family: var(--font-secondary);
    margin-bottom: 15px;
    border: 1px solid var(--primary-red);
}

.live-indicator .dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary-red);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.stream-banner {
    padding: 25px;
    text-align: center;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 5px solid var(--primary-blue);
    background: var(--color-card);
    transition: all 0.4s ease;
}

/* Banners Atractivos */
.streaming-banners {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 1;
}

/* Ajuste específico para el banner de cotización */
.stream-banner .glass-effect .zoom-hover {
    height: auto;
    display: flex;
    flex-direction: column;
}

/* Asegurar que ambos lados sean iguales */
.side-left, .side-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Contenedores simétricos */
.streaming-banners .stream-banner,
.streaming-banners .info-card.symmetric-card {
    flex: 1;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}



/* Asegurar que el video de presentación sea visible */
.stream-banner.video-mode .stream-widget-wrapper {
    flex: 1;
    min-height: 200px;
}

/* Contenedor del video en presentación */
.stream-banner.video-mode .stream-widget-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 200px;
    border-radius: 10px;
}

.stream-header {
    background: var(--primary-black);
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blink { animation: blinker 1.5s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }

.main-banner-icon {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.banner-action-container {
    width: 100%;
    margin-top: 15px;
}

/* El nuevo botón unificado */
.contact-btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    width: 90%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.telegram-bg { background-color: #0088cc; }
.whatsapp-bg { background-color: #25D366; }

.contact-btn-link:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: white;
}

.contact-btn-link i {
    font-size: 1.2rem;
}

.stream-banner:nth-child(even) {
    background: linear-gradient(145deg, var(--color-card), rgba(204, 0, 0, 0.05)) !important;
    border: 3px solid var(--primary-red) !important;
    box-shadow: 0 15px 40px rgba(204, 0, 0, 0.2) !important;
}

.stream-banner i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.stream-banner h4 {
    font-family: var(--font-secondary);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stream-banner p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Responsivo */
@media (max-width: 1024px) {
    .streaming-layout { flex-direction: column; }
    .streaming-banners { flex-direction: row; width: 100%; }
    .stream-banner { flex: 1; }
}

/* Slider de Fondo (Imagen/Video) */
.hero-media-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.hero-media-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    object-fit: cover;
}
.hero-media-item.active { opacity: 1; }

/* Cuadro Desplegable */
.welcome-card { transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; position: relative; }
.welcome-card.collapsed { max-height: 60px; padding: 10px; opacity: 0.9; }
.welcome-card.collapsed .welcome-content > *:not(#toggleWelcome) { display: none; }
.toggle-btn {
    position: absolute; top: 10px; right: 10px;
    background: transparent; border: none; color: white; cursor: pointer; z-index: 10;
}
.welcome-card.collapsed .toggle-btn i { transform: rotate(180deg); }

/* Cintillo Publicitario */
.promo-banner-strip {
    background: linear-gradient(90deg, var(--primary-red), var(--primary-blue));
    color: white;
    padding: 30px 0;
    text-align: center;
    font-family: var(--font-secondary);
    font-weight: bold;
    font-size: 1.8rem; 
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    overflow: hidden;
    white-space: nowrap;
}

.banner-content { animation: scroll-text 20s linear infinite; }

@keyframes scroll-text {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Cintillo Publicitario Grande y Atractivo */
.ad-cintillo-strip {
    background: linear-gradient(90deg, var(--primary-red), #ff1a1a, var(--primary-blue));
    color: white;
    padding: 25px 0; 
    overflow: hidden;
    white-space: nowrap;
    font-family: var(--font-secondary);
    font-size: 1.8rem; 
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-top: 4px solid rgba(255,255,255,0.2);
    border-bottom: 4px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 50;
}

.cintillo-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-scroll 30s linear infinite, brightness-pulse 2s infinite;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes brightness-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Slider de fondo dinámico */
.hero-bg-slider {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background: #000; overflow: hidden;
}
.bg-media-item {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transition: opacity 1.5s ease-in-out;
}
.bg-media-item.active { opacity: 1; }

/* Estilo Desplegable del Cuadro (Similar al Menú Lateral) */
.welcome-card {
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    position: relative;
    max-width: 500px;
    z-index: 10;
}
.welcome-card.collapsed {
    transform: translateX(-110%);
}

/* Botón de control del cuadro */
.welcome-drawer-btn {
    position: absolute; right: -40px; top: 20px;
    width: 40px; height: 40px; background: var(--primary-red);
    border: none; color: white; border-radius: 0 5px 5px 0;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.welcome-card.collapsed .welcome-drawer-btn i { transform: rotate(180deg); }

/* Asegurar que la sección de streaming sea visible */
#streamingSection,
.streaming-section {
    display: block !important;
}

/* Estilos para la Radio */
.radio-container {
    margin-top: -20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.radio-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 25px;
    border-radius: 50px;
    background-color: var(--color-card);
    border: 2px solid var(--primary-blue);
    box-shadow: 0 10px 25px var(--color-shadow);
    transition: all var(--transition-speed);
}

.radio-logo-wrapper {
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 10px !important;
    border: 3px solid var(--primary-blue) !important;
    padding: 8px !important;
}

.dark-mode .radio-logo {
    filter: drop-shadow(0 0 5px var(--primary-blue));
}

.radio-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: filter var(--transition-speed);
}

.radio-play-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-family: var(--font-secondary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.radio-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(204, 0, 0, 0.4);
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    .radio-controls {
        padding: 20px 15px !important;
        flex-direction: column;
        gap: 15px;
    }
    
    .radio-play-btn {
        width: 100%;
        max-width: 280px;
        padding: 14px;
        font-size: 0.95rem;
    }
}

/* Estilos para el estado playing de radio */
.radio-play-btn.playing {
    background: linear-gradient(135deg, var(--primary-red), #ff1a1a);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(204, 0, 0, 0.5);
}

.radio-play-btn.playing:hover {
    background: linear-gradient(135deg, #990000, #cc0000);
}

/* Animación de pulso cuando está playing */
@keyframes radioPulse {
    0% { box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(204, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(204, 0, 0, 0); }
}

.radio-play-btn.playing {
    animation: radioPulse 2s infinite;
}

/* Estilo para cuando la radio está cargando */
.radio-player-wrapper .loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.radio-player-wrapper .spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 102, 204, 0.3);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Estado inicial del reproductor de radio */
.radio-placeholder {
    width: 401px;
    height: 75px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    font-family: var(--font-primary);
    gap: 10px;
    padding: 0 20px;
}

.radio-placeholder i {
    font-size: 24px;
    color: var(--primary-blue);
}

/* Botón de radio cuando está playing */
.radio-play-btn.playing {
    background: linear-gradient(135deg, var(--primary-red), #ff3333) !important;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(204, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(204, 0, 0, 0); }
}

/* Mejorar visibilidad del botón */
.radio-play-btn {
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.radio-play-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
}

/* ESTILOS PARA RADIO FUNCIONAL */

/* Asegurar que las secciones de autos sean visibles */
.featured-services, 
.latest-publications {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Contenedor de radio */
.radio-container {
    margin: 20px auto;
    padding: 10px;
}

.radio-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
    background: var(--color-card);
    border-radius: 20px;
    border: 2px solid var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Botón de radio */
.radio-play-btn {
    background: linear-gradient(135deg, var(--primary-blue), #004C99);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
}

.radio-play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.3);
}

.radio-play-btn.playing {
    background: linear-gradient(135deg, var(--primary-red), #CC0000);
    animation: radioPulse 2s infinite;
}

@keyframes radioPulse {
    0% { box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(204, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(204, 0, 0, 0); }
}

/* Reproductor */
.radio-player-wrapper {
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Logo de radio */
.radio-logo-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-blue);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Asegurar que streaming sea visible */
#streamingSection {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Esto debe permanecer OCULTO (tu configuración original) */
.featured-services, 
.latest-publications {
    display: none !important;
}

.developer-title {
    margin-top: 25px;
    margin-bottom: 15px !important;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
    font-size: 1.1rem !important;
}

/* Ajuste para que la línea se vea bien en modo oscuro */
.dark-mode .developer-title {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    padding: 0px;
}

#mainLogo {
    height: 45px; 
    width: auto;
    object-fit: fill; 
    margin-right: 20px;
    flex-shrink: 0;
}

/* Contenedor del logo para alineación */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 5px 0;
    min-width: fit-content;
}

/* 1. Hacemos que la cabecera sea compacta y no tape el fondo */
.main-header {
    height: 80px;
    background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    transition: all 0.3s ease;
}

.dark-mode .main-header {
    background: rgba(10, 10, 10, 0.8);
}

/* 2. Reducimos el logo al mínimo necesario */
#mainLogo {
    height: 35px;
    width: auto;
    margin-right: 15px;
    flex-shrink: 0;
}

/* 3. Aseguramos que la barra de búsqueda se expanda en el espacio sobrante */
.search-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    max-width: 600px;
}

/* Corrección de alineación para botones de contacto */
.contact-link-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-secondary);
    transition: all 0.3s ease;
    border: none;
    min-width: 160px;
}

/* Estilo específico WhatsApp */
.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Estilo específico Telegram */
.btn-telegram {
    background-color: #0088cc;
    color: white;
}

.btn-telegram:hover {
    background-color: #0077b5;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

/* Alineación interna del icono */
.btn-contact i {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

/* Forzamos que los iconos en el banner mantengan el estilo de .social-icon */
.stream-banner .social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-card);
    color: var(--color-text);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 10px var(--color-shadow);
}

/* Colores de Hover específicos para que coincidan con el diseño general */
.stream-banner .social-icon.telegram:hover {
    background-color: #0088cc;
    color: white;
    transform: translateY(-5px);
}

.stream-banner .social-icon.whatsapp:hover {
    background-color: #25D366;
    color: white;
    transform: translateY(-5px);
}

/* Estilo para el icono superior del banner para que no choque */
.main-banner-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-red);
}

/* Estilo específico para el icono de Google News */
.stream-banner .social-icon.google-news:hover {
    background: linear-gradient(45deg, #4285F4, #34A853, #FBBC05, #EA4335);
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(66, 133, 244, 0.4);
}

/* Aseguramos que el icono interno esté centrado */
.social-icon.google-news i {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SECCIÓN MULTIMEDIA SIMÉTRICA (STREAMING & VIDEO) */

/* 1. La Grilla Contenedora (Asegura la simetría) */
.multimedia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 30px;
    width: 100%;
    margin: 40px 0;
    align-items: stretch;
}

/* 2. Diseño de la Tarjeta Unificada */
.symmetric-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.symmetric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--primary-blue);
}

/* 3. Títulos y Textos alineados */
.card-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 10px;
    width: 100%;
}

.card-big-title {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.card-footer {
    text-align: center;
    margin-top: 20px;
}

.card-small-text {
    font-size: 0.95rem;
    opacity: 0.8;
    margin: 0;
}

/* 4. EL VENTANAL DE VIDEO (Aspect Ratio 16:9 Perfecto) */
.stream-widget-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background-color: #000;
}


.stream-widget-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CORRECCIÓN DE MÁRGENES: BOTONES SOCIALES (WA / NOTICIAS) */

.action-buttons-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: auto;
    margin-bottom: 10px;
    width: 100%;
    flex-wrap: wrap;
}

/* Estilo Base del Botón (Píldora) */
.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-family: var(--font-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    min-width: 200px;
    border: none;
}

/* Icono dentro del botón */
.action-btn i {
    font-size: 1.3rem;
    margin-right: 10px;
}

/* COLORES ESPECÍFICOS */

/* WhatsApp (Verde degradado) */
.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}
.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* Noticias Google (Azul degradado Google) */
.news-btn {
    background: linear-gradient(135deg, #4285F4 0%, #2b62c2 100%);
}
.news-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.4);
}

/* ANIMACIÓN PARA CONTADOR DE VISUALIZACIONES */
@keyframes viewCountIncrement {
    0% {
        transform: scale(1);
        color: #666;
    }
    50% {
        transform: scale(1.3);
        color: var(--primary-blue);
    }
    100% {
        transform: scale(1);
        color: #666;
    }
}

.view-count-updated {
    animation: viewCountIncrement 0.5s ease;
}

/* Mejorar visibilidad de contadores */
.publication-views .view-count-large {
    font-weight: 700;
    color: var(--primary-blue);
}

.dark-mode .publication-views .view-count-large {
    color: #8bb9ff;
}

/* Para números normales */
.publication-views .view-count-normal {
    font-weight: 600;
}

/* =========================================
   SOLUCIÓN MOVIL YOUTUBE (Agregado)
   ========================================= */

/* Por defecto (PC), la sección móvil está oculta */
.mobile-youtube-section {
    display: none !important;
}

/* Clases utilitarias para ocultar la versión de escritorio */
.desktop-youtube-wrapper {
    display: block;
}

/* =========================================
   CONTROLES COMPACTOS PARA YOUTUBE
   ========================================= */

   .youtube-controls.compact-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 10px auto;
    padding: 8px 12px;
    background: var(--color-card);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    width: fit-content;
    max-width: 95%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.yt-nav-btn {
    background: linear-gradient(135deg, var(--primary-blue), #004C99);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.yt-nav-btn:hover {
    background: linear-gradient(135deg, var(--primary-red), #CC0000);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(204,0,0,0.3);
}

.yt-nav-btn:active {
    transform: translateY(0);
}

/* Contenedor especial para Tips Técnicos con zoom reducido */
.tips-container iframe {
    transform: scale(0.85);
    transform-origin: top left;
    width: 117.65%; /* 100 / 0.85 = 117.65 */
    height: 117.65%;
}

.tips-container {
    overflow: hidden;
    height: 250px;
    position: relative;
    border-radius: 10px;
    margin-top: 5px;
}

/* Estados de los botones */
.yt-nav-btn:disabled {
    background: #ccc !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.5;
}

/* Efecto de pulsación para botón de recargar cuando está activo */
.yt-nav-btn[data-action="reload"].reloading i {
    animation: spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 1200px) {
    .presentation-title {
        font-size: 3rem;
    }
    
    .title-part-1 {
        font-size: 2.5rem;
    }
    
    .title-part-2 {
        font-size: 3rem;
    }
    
    .title-part-3 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .presentation-title {
        font-size: 2.5rem;
    }
    
    .title-part-1 {
        font-size: 2rem;
    }
    
    .title-part-2 {
        font-size: 2.5rem;
    }
    
    .title-part-3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {

    .radio-placeholder {
    width: 260px;
    height: 75px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    font-family: var(--font-primary);
    gap: 10px;
    padding: 0 20px;
}

.radio-placeholder i {
    font-size: 24px;
    color: var(--primary-blue);
}

    /* =========================================
        MEJORAS DISEÑO MÓVIL - MANTENIENDO TEMÁTICA
        ========================================= */

    /* 1. MEJORAR VISIBILIDAD GENERAL EN MÓVILES */
    body {
        font-size: 16px;
        line-height: 1.7;
    }

    .action-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    .telegram-btn {
        background: linear-gradient(135deg, #0088cc, #006699);
        color: white;
    }

    .whatsapp-btn {
        background: linear-gradient(135deg, #25D366, #128C7E);
        color: white;
    }

    .youtube-btn {
        background: linear-gradient(135deg, #FF0000, #CC0000);
        color: white;
    }

    .card-big-title {
        font-size: 1.4rem !important;
        color: var(--primary-blue) !important;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .card-header {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .presentation-title {
        font-size: 2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    .overlay-content {
        max-width: 90% !important;
        padding: 15px;
    }

    .overlay-content h3 {
        font-size: 1.2rem !important;
        margin-bottom: 10px;
        color: white;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }
    
    .quick-service-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
        margin-top: 15px;
    }
    
    .quick-service-grid button {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .title-part-1, .title-part-2, .title-part-3 {
        font-size: 2rem !important;
        display: inline !important;
        margin: 0 5px !important;
    }
    
    .presentation-subtitle {
        font-size: 1.1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 30px !important;
    }
    
    /* Mejorar botones en móviles */
    .cta-btn {
        padding: 18px 30px !important;
        font-size: 1.1rem !important;
        border-radius: 12px !important;
        margin: 10px 0;
        width: 100%;
        justify-content: center;
        gap: 12px;
    }
    
    .cta-btn i {
        font-size: 1.2rem;
    }
    
    /* Mejorar tarjetas para toques más precisos */
    .stream-banner, .symmetric-card, .yt-mobile-card {
        min-height: 180px;
        padding: 25px 20px !important;
        margin: 15px 0;
        border-radius: 20px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        position: relative;
    }
    
    /* Efecto de pulsación al tocar */
    .stream-banner:active, 
    .symmetric-card:active, 
    .yt-mobile-card:active {
        transform: scale(0.98);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    /* Mejorar iconos en móviles */
    .main-banner-icon, .stream-banner i {
        font-size: 2.8rem !important;
        margin-bottom: 20px !important;
        color: var(--primary-blue);
        filter: drop-shadow(0 3px 6px rgba(0,102,204,0.2));
    }
    
    /* Mejorar títulos */
    .stream-banner h5, .symmetric-card .card-big-title {
        font-size: 1.4rem !important;
        font-weight: 700;
        margin-bottom: 15px;
        line-height: 1.3;
        font-family: var(--font-secondary);
        letter-spacing: 0.5px;
    }
    
    /* Mejorar textos descriptivos */
    .stream-banner p, .symmetric-card .card-small-text {
        font-size: 1rem !important;
        line-height: 1.6;
        opacity: 0.9;
        margin-bottom: 20px;
    }
    
    /* Mejorar botones de acción */
    .action-btn, .contact-btn-link {
        padding: 16px 25px !important;
        font-size: 1.05rem !important;
        border-radius: 12px;
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin: 15px auto;
        width: 100%;
        max-width: 320px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    .action-btn:active, .contact-btn-link:active {
        transform: translateY(2px);
        box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    }

    .action-btn i {
        font-size: 1.2rem;
    }
    
    .action-btn i, .contact-btn-link i {
        font-size: 1.4rem;
    }
    
    /* Mejorar contenedor de streaming principal */
    .video-wrapper {
        height: 220px !important;
        min-height: 220px !important;
        border-radius: 15px;
        border-width: 3px !important;
        margin: 15px 0;
    }
    
    .video-wrapper iframe {
        border-radius: 16px !important;
    }
    
    /* Mejorar indicador EN VIVO */
    .live-indicator {
        font-size: 0.9rem;
        padding: 8px 15px;
        margin-bottom: 10px;
        background: rgba(204, 0, 0, 0.2);
        backdrop-filter: blur(5px);
        border: 2px solid var(--primary-red);
    }
    
    @keyframes pulse-glow {
        0%, 100% { box-shadow: 0 0 15px rgba(204,0,0,0.3); }
        50% { box-shadow: 0 0 25px rgba(204,0,0,0.5); }
    }
    
    .live-indicator .dot {
        width: 14px !important;
        height: 14px !important;
        animation: blink 1s infinite !important;
        box-shadow: 0 0 10px var(--primary-red);
    }
    
    /* Mejorar sección de radio */
    .radio-controls {
        padding: 25px 20px !important;
        border-radius: 25px !important;
        background: linear-gradient(145deg, var(--color-card), rgba(0,102,204,0.15)) !important;
        border: 3px solid var(--primary-blue) !important;
        box-shadow: 0 10px 35px rgba(0,102,204,0.2) !important;
        margin: 20px 0;
    }
    
    .radio-play-btn {
        padding: 18px 30px !important;
        font-size: 1.1rem !important;
        border-radius: 15px !important;
        width: 100%;
        max-width: 300px;
        margin: 15px 0;
        box-shadow: 0 8px 25px rgba(0,102,204,0.3);
    }
    
    .radio-play-btn.playing {
        animation: radioPulseMobile 1.5s infinite;
    }
    
    @keyframes radioPulseMobile {
        0% { box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.7); }
        70% { box-shadow: 0 0 0 20px rgba(204, 0, 0, 0); }
        100% { box-shadow: 0 0 0 0 rgba(204, 0, 0, 0); }
    }
    
    /* Mejorar cintillo publicitario */
    .promo-banner-strip, .ad-cintillo-strip {
        padding: 20px 0 !important;
        font-size: 1.4rem !important;
        letter-spacing: 2px !important;
        margin: 20px 0;
        overflow: hidden;
    }
    
    .banner-content, .cintillo-content {
        animation: scroll-text-mobile 25s linear infinite;
    }
    
    @keyframes scroll-text-mobile {
        0% { transform: translateX(100%); }
        100% { transform: translateX(-100%); }
    }
    
    /* Mejorar footer en móviles */
    .footer-content {
        padding: 30px 20px !important;
        gap: 30px;
    }
    
    .footer-logo h3 {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }
    
    .social-icons {
        justify-content: center !important;
        gap: 20px;
        margin-top: 20px;
    }
    
    .social-icon {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.4rem !important;
    }
    
    .developer-title {
        font-size: 1.3rem !important;
        margin-top: 30px !important;
        padding-top: 20px !important;
    }
    
    /* Mejorar scroll horizontal en banners */
    .streaming-banners {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .side-left, .side-right {
        order: 2;
        width: 100%;
    }
    
    .streaming-banners::after {
        content: '';
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 4px;
        background: var(--primary-blue);
        border-radius: 2px;
        opacity: 0.3;
    }
    
    .swipe-hint {
        font-size: 1.1rem !important;
        padding: 15px;
        background: rgba(0,102,204,0.1);
        border-radius: 10px;
        margin: 20px 0;
        animation: swipeHintMobile 2s infinite alternate;
    }
    
    @keyframes swipeHintMobile {
        0% { transform: translateX(0); opacity: 0.7; }
        100% { transform: translateX(10px); opacity: 1; }
    }
    
    /* Mejorar navegación YouTube */
    .youtube-controls.compact-controls {
        margin: 20px auto;
        padding: 12px 20px;
        border-radius: 15px;
        background: rgba(0,0,0,0.05);
        backdrop-filter: blur(5px);
    }
    
    .yt-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        border-radius: 10px;
    }
    
    /* Mejorar presentación de contenido */
    .presentation-content {
        padding: 30px 25px !important;
        margin: 20px 10px;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(5px) !important; /* REDUCIDO DE 20px A 5px */
        -webkit-backdrop-filter: blur(5px) !important; /* Soporte Apple */
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important; /* Sombra más ligera */
    }
    
    .dark-mode .presentation-content {
        background: rgba(18, 18, 18, 0.95) !important;
        border: 2px solid rgba(255, 255, 255, 0.1) !important;
    }

    /* 3. MEJORAS ESPECÍFICAS PARA EL INTERCAMBIO NOTICIAS/PRESENTACIÓN EN MÓVILES */
    /* Estilo para el enlace de noticias en el contenedor grande */
    .news-link-container {
        display: block;
        width: 100%;
        height: 100%;
        text-decoration: none;
        color: inherit;
    }
    
    .news-preview {
        width: 100%;
        height: 100%;
        min-height: 200px;
        background: linear-gradient(135deg, #4285F4, #34A853, #FBBC05, #EA4335);
        border-radius: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 30px 20px;
        text-align: center;
        transition: transform 0.3s ease;
    }
    
    .news-preview:active {
        transform: scale(0.98);
    }
    
    .news-icon {
        font-size: 4rem;
        color: white;
        margin-bottom: 20px;
        filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    }
    
    .news-content h4 {
        color: white;
        font-size: 2rem;
        font-family: var(--font-secondary);
        margin-bottom: 10px;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    .news-content p {
        color: rgba(255,255,255,0.9);
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .news-preview .fa-external-link-alt {
        color: white;
        font-size: 1.5rem;
        opacity: 0.8;
    }
    
    /* Estilo para el banner de presentación */
    .stream-banner .fa-play-circle {
        color: var(--primary-red);
        animation: play-pulse 2s infinite;
    }
    
    @keyframes play-pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.1); }
    }

    /* 4. MEJORAR EXPERIENCIA TÁCTIL */
    /* Aumentar áreas táctiles */
    button, .btn, .action-btn, .contact-btn-link, .stream-banner, .yt-mobile-card {
        min-height: 44px; /* Tamaño mínimo recomendado para toques */
    }
    
    /* Mejorar feedback táctil */
    .service-item:active,
    .publication-item:active,
    .yt-nav-btn:active {
        opacity: 0.8;
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Desactivar hover en móviles y usar active */
    @media (hover: none) {
        .service-item:hover,
        .publication-item:hover,
        .cta-btn:hover {
            transform: none !important;
        }
    }

    /* Resto del código responsive original... */
    .logo {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 5px 0 !important;
        height: 60px !important;
    }
    
    .top-navbar {
        padding: 8px 10px;
        height: 70px;
    }
    
    .logo-chevere {
        font-size: 1.2rem !important;
        font-weight: 800;
        letter-spacing: 1px;
        color: var(--primary-blue);
        padding-top: 0;
        line-height: 1;
    }
    
    .logo-cars {
        font-size: 1.2rem !important;
        font-weight: 700;
        letter-spacing: 1.5px;
        color: var(--primary-red);
        padding-top: 0;
        line-height: 1;
    }
    
    .presentation-title {
        font-size: 2rem;
    }

    .nav-content {
        gap: 10px;
    }
    
    .title-part-1 {
        font-size: 1.6rem;
    }
    
    .title-part-2 {
        font-size: 2rem;
    }
    
    .title-part-3 {
        font-size: 1.5rem;
    }
    
    .presentation-subtitle {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .social-presentation {
        flex-direction: row;
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .modal-title {
        font-size: 1.5rem;
        width: 100%;
    }
    
    .modal-views {
        margin-left: 0;
        margin-right: 0;
        align-self: flex-start;
    }

    .logo-text {
        display: flex;
        flex-direction: row;
        align-items: baseline;
        gap: 4px;
        line-height: 1;
        margin-bottom: 2px;
        flex-wrap: nowrap;
        z-index: 740;
    }

    .logo-chevere {
        font-size: 1.8rem !important;
        font-weight: 800 !important;
        letter-spacing: 1px !important;
        color: var(--primary-blue) !important;
        padding-top: 0 !important;
        z-index: 740
    }

    .logo-cars {
        font-size: 1.8rem !important;
        font-weight: 700 !important;
        letter-spacing: 2px !important;
        color: var(--primary-red) !important;
        padding-top: 0 !important;
        z-index: 740;
    }

    .logo-subtitle {
        font-size: 0.55rem !important;
        margin-top: 0 !important;
        letter-spacing: 0.8px;
        color: var(--color-text);
        line-height: 1.1;
        opacity: 0.9;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
        z-index: 740;
    }

    .logo-content-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        margin: 0;
        max-width: 200px;
        overflow: visible !important;
        z-index: 750;
    }

    .social-link {
        width: 38px !important;
        height: 38px !important;
        margin: 0 !important;
        font-size: 1.2rem !important;
        background: rgba(255, 255, 255, 0.95) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    .social-link:hover {
        transform: translateY(-3px) scale(1.1) !important;
    }

    /* REDISEÑO COMPLETO DEL ÁREA STREAMING */
    #streaming-section {
        padding: 30px 0 !important;
        margin-top: 0 !important;
        background: linear-gradient(180deg, var(--color-bg) 0%, rgba(0, 102, 204, 0.05) 100%) !important;
    }

    .streaming-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .streaming-main {
        order: 1;
        width: 100%;
    }

    .video-wrapper {
        height: 240px !important;
        min-height: 240px !important;
        border-width: 4px !important;
        border-radius: 25px !important;
    }

    #streaming-section {
        padding: 40px 0 !important;
    }

    .live-indicator {
        font-size: 1rem !important;
        padding: 8px 20px !important;
        margin-bottom: 15px !important;
        background: rgba(204, 0, 0, 0.2) !important;
        backdrop-filter: blur(5px) !important;
        border: 2px solid var(--primary-red) !important;
    }

    .live-indicator .dot {
        width: 12px !important;
        height: 12px !important;
        animation: blink 1s infinite !important;
    }

    .streaming-banners {
        align-items: stretch !important;
        order: 2;
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 15px !important;
        padding: 10px 5px 25px !important;
        margin: 0 5px !important;
        width: calc(100% - 10px) !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth !important;
        scrollbar-width: thin !important;
        scrollbar-color: var(--primary-blue) transparent !important;
        -webkit-overflow-scrolling: auto !important;
        overscroll-behavior-x: contain !important;
    }

    .streaming-banners::-webkit-scrollbar {
        height: 8px !important;
        background: rgba(0, 0, 0, 0.05) !important;
        border-radius: 10px !important;
    }

    .streaming-banners::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1) !important;
        border-radius: 10px !important;
        margin: 0 5px !important;
    }

    .streaming-banners::-webkit-scrollbar-thumb {
        background: var(--primary-blue) !important;
        border-radius: 10px !important;
        border: 2px solid transparent !important;
        background-clip: padding-box !important;
    }

    .streaming-banners::-webkit-scrollbar-thumb:hover {
        background: var(--primary-red) !important;
    }

    .streaming-banners::after {
        content: none !important;
    }

    .stream-banner {
        width: 100% !important;
        min-height: 220px;
        padding: 25px 20px !important;
        margin: 0 0 15px 0 !important;
        border-radius: 15px;
        background: var(--color-card);
        border: 2px solid var(--color-border);
    }

    /* TEXTO LEGIBLE EN AMBOS MODOS */
    .stream-banner h5,
    .stream-banner p,
    .card-big-title,
    .card-small-text {
        color: var(--color-text) !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }

    .stream-banner:active {
        transform: scale(0.99) !important;
        transition: transform 0.1s ease !important;
    }

    @media (hover: hover) {
        .stream-banner:hover {
            transform: translateY(-10px) scale(1.02) !important;
            box-shadow: 0 25px 50px rgba(0, 102, 204, 0.3) !important;
        }
    }

    .main-banner-icon {
        font-size: 2.2rem !important;
        color: var(--primary-blue);
        margin-bottom: 15px;
    }

    .stream-banner h4 {
        font-size: 1.3rem !important;
        margin-bottom: 10px !important;
        font-family: var(--font-secondary) !important;
        color: var(--primary-blue) !important;
    }

    .stream-banner h5 {
        font-size: 1.3rem !important;
        font-weight: 700;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .stream-banner p {
        font-size: 0.95rem !important;
        line-height: 1.5;
        opacity: 0.9;
    }

    .banner-action-container {
        width: 100% !important;
        display: flex;
        justify-content: center;
        margin-top: 10px !important;
    }

    .swipe-hint {
        text-align: center;
        margin: 15px 0 10px 0;
        color: var(--primary-blue);
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        opacity: 0.9;
        animation: swipeHint 2s infinite alternate;
        font-family: var(--font-secondary);
        font-weight: 600;
        letter-spacing: 1px;
    }

    .contact-btn-link {
        max-width: 250px !important;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
        min-height: auto !important;
    }

    .contact-btn-link i {
        font-size: 1.6rem !important;
    }

    .contact-btn-link:hover {
        transform: translateY(-4px) !important;
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25) !important;
    }

    .telegram-bg:hover {
        background-color: #0077b5 !important;
    }

    .whatsapp-bg:hover {
        background-color: #128C7E !important;
    }

    /* MEJORAS GENERALES DE VISIBILIDAD */
    .presentation-content {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(15px) !important;
        padding: 25px !important;
        margin: 10px !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
    }

    .dark-mode .presentation-content {
        background: rgba(18, 18, 18, 0.95) !important;
        border: 2px solid rgba(255, 255, 255, 0.1) !important;
    }

    .presentation-title {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }

    .title-part-1, .title-part-2, .title-part-3 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        margin: 5px 0 !important;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 25px;
    }

    .cta-btn {
        width: 100% !important;
        padding: 18px 25px !important;
        font-size: 1.1rem !important;
        justify-content: center !important;
        border-radius: 12px !important;
    }

    .multimedia-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        margin: 30px 0 !important;
    }

    .symmetric-card {
        min-height: 320px;
        padding: 25px 20px;
        margin-bottom: 20px;
        background: var(--color-card);
        border: 2px solid var(--color-border);
        border-radius: 15px;
        position: relative;
    }

    .symmetric-card .card-big-title {
        font-size: 1.9rem !important;
        margin-bottom: 25px !important;
    }

    .radio-container {
        margin: 15px auto !important;
        width: 100% !important;
        max-width: 350px !important;
        padding: 0 15px !important;
    }

    .radio-controls {
        background: linear-gradient(145deg, var(--color-card), rgba(0, 102, 204, 0.1)) !important;
        border: 3px solid var(--primary-blue) !important;
        box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15) !important;
    }

    .radio-logo-wrapper {
        width: 70px !important;
        height: 70px !important;
        margin-bottom: 5px !important;
        border-width: 2px !important;
    }

    .radio-play-btn {
        box-shadow: 0 8px 25px rgba(0, 102, 204, 0.25) !important;
        width: 100% !important;
        max-width: 280px !important;
        padding: 14px 20px !important;
        font-size: 0.95rem !important;
        min-height: 50px !important;
        border-radius: 10px !important;
    }

    .radio-play-btn.playing {
        background: linear-gradient(135deg, var(--primary-red), #CC0000) !important;
        animation: radioPulse 2s infinite !important;
    }

    .radio-play-btn i {
        font-size: 1.1rem !important;
    }

    .radio-play-btn:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 12px 30px rgba(0, 102, 204, 0.35) !important;
    }

    .radio-play-btn span {
        font-size: 0.9rem !important;
        max-width: calc(100% - 35px);
        white-space: normal !important;
        text-align: center;
        line-height: 1.3;
    }

    .action-buttons-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin: 20px 0;
        width: 100%;
    }

    .action-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 20px;
        border-radius: 10px;
        font-weight: 600;
        text-decoration: none;
        width: 100%;
        border: none;
        transition: all 0.3s ease;
        font-family: var(--font-secondary);
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 30px;
        padding: 30px 20px !important;
    }

    .social-icons {
        justify-content: center !important;
        gap: 15px;
    }

    /* MEJORAS DE ESPACIADO Y MARGENES */
    .presentation-section {
        min-height: 500px !important;
        height: auto !important;
        padding-bottom: 40px !important;
    }

    .main-content {
         overflow: visible !important;
        height: auto !important;    
    }

    section {
        padding: 40px 0 !important;
    }

    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative;
    }

    .container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    section {
        padding: 40px 0 !important;
    }
    
    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 30px !important;
    }
    
    /* MEJORA DE CONTRASTE PARA TEXTO */
    .dark-mode .stream-banner h5,
    .dark-mode .stream-banner p,
    .dark-mode .card-big-title,
    .dark-mode .card-small-text {
        color: #f0f0f0 !important;
    }
    
    .light-mode .stream-banner h5,
    .light-mode .stream-banner p,
    .light-mode .card-big-title,
    .light-mode .card-small-text {
        color: #333 !important;
    }
    
    /* AÑADIR BOTÓN AL CONTENEDOR "VOZ DEL MECÁNICO" */
    #tips-widget-container-mecanico + .action-buttons-grid {
        margin-top: 20px;
    }

    .container, .section-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        /* CAMBIO CRUCIAL: De 'hidden' a 'visible' o 'clip' para permitir scroll */
        overflow: visible !important; 
        position: relative; /* Ayuda a que el z-index funcione mejor */
    }

    /* MEJORAS VISUALES ADICIONALES */
    .service-card, .pub-card, .stream-banner, .symmetric-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    }

    .service-card:hover, .pub-card:hover, .stream-banner:hover, .symmetric-card:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
    }

    .dark-mode .stream-banner {
        border: 2px solid rgba(255, 255, 255, 0.15) !important;
        background: rgba(30, 30, 30, 0.9) !important;
    }

    .dark-mode .symmetric-card {
        background: rgba(30, 30, 30, 0.9) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    p, li, span {
        line-height: 1.6 !important;
        font-size: 0.95rem !important;
    }

    h1, h2, h3, h4 {
        line-height: 1.3 !important;
    }

    #streamingSection {
        padding: 30px 0 !important;
    }

    #streamingSection .section-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    .stream-widget-wrapper {
        height: 180px !important;
        margin: 15px 0;
        border-radius: 10px;
        overflow: hidden;
        z-index: 20;
        background: #000;
    }

    .stream-widget-wrapper iframe {
        width: 100% !important;
        z-index: 20;
        height: 100% !important;
    }

    .streaming-container iframe,
    .video-wrapper iframe,
    .stream-widget-wrapper iframe {
        width: 100% !important;
        height: 220px !important;
        min-height: 220px !important;
        z-index: 20;
        border-radius: 12px !important;
    }

    .stream-widget-wrapper,
    .video-wrapper,
    .elfsight-app-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        z-index: 20;
    }

    .streaming-container iframe,
    .video-wrapper iframe,
    .stream-widget-wrapper iframe,
    .elfsight-app-iframe {
        width: 100% !important;
        height: 220px !important;
        min-height: 220px !important;
        border-radius: 15px !important;
        border: none !important;
        z-index: 20;
    }

    /* Reordenar los cuadros usando CSS order */
    .streaming-banners.side-left {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .streaming-banners.side-left .stream-banner {
        order: 2 !important;
    }

    .info-card.symmetric-card:nth-child(2) .action-buttons-grid {
        margin-top: 20px;
    }
    
    .streaming-banners.side-left .info-card.symmetric-card {
        order: 1 !important;
    }
    
    .streaming-banners.side-right {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .streaming-banners.side-right .stream-banner {
        order: 2 !important;
    }
    
    .streaming-banners.side-right .info-card.symmetric-card {
        order: 1 !important;
    }

    /* 1. Ocultamos el reproductor de escritorio que da error */
    .desktop-youtube-wrapper {
        display: none !important;
    }

    /* 2. Mostramos la sección exclusiva de móvil */
    .mobile-youtube-section {
        display: flex !important;
        flex-direction: column;
        gap: 20px;
        padding: 15px;
        background: var(--color-card);
        border-radius: 15px;
        box-shadow: 0 4px 15px var(--color-shadow);
        border: 1px solid var(--color-border);
    }

    /* Estilos de las Tarjetas Móviles */
    .yt-mobile-card {
        background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
        color: white;
        border-radius: 12px;
        overflow: hidden;
        position: relative;
        text-decoration: none;
        display: block;
        border: 1px solid #333;
    }

    .yt-mobile-header {
        padding: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
        border-bottom: 1px solid #333;
    }

    .yt-mobile-header i {
        color: #FF0000;
        font-size: 1.5rem;
    }

    .yt-mobile-content {
        padding: 20px;
        text-align: center;
    }

    .yt-mobile-title {
        font-family: var(--font-secondary);
        font-size: 1.2rem;
        margin-bottom: 10px;
        color: white;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .yt-mobile-desc {
        font-family: var(--font-primary);
        font-size: 0.9rem;
        color: #ccc;
        margin-bottom: 15px;
    }

    .yt-mobile-btn {
        background: #FF0000;
        color: white;
        padding: 10px 25px;
        border-radius: 50px;
        font-weight: 600;
        display: inline-block;
        text-transform: uppercase;
        font-size: 0.85rem;
        box-shadow: 0 4px 10px rgba(204, 0, 0, 0.4);
        transition: transform 0.2s;
    }

    .yt-mobile-btn:active {
        transform: scale(0.95);
    }

    /* Controles más compactos en móviles */
    .youtube-controls.compact-controls {
        gap: 6px;
        padding: 6px 10px;
        margin: 8px auto;
        border-radius: 6px;
    }
    
    .yt-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        border-radius: 5px;
    }
    
    .zoom-controls {
        display: none;
    }
    
    .tips-container {
        height: 200px;
        margin-top: 0;
    }
    
    .tips-container iframe {
        transform: scale(0.75);
        width: 133.33%;
        height: 133.33%;
    }
    
    .streaming-main .youtube-controls {
        margin-top: 8px;
        margin-bottom: 8px;
    }

    /* AJUSTES PARA TELÉFONOS */
    #mainLogo {
        height: 40px !important;
        width: auto !important;
        margin-right: 10px;
    }

    .navbar-container { 
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .search-bar-container {
        max-width: 100%;
    }

    .main-header {
        height: 65px;
        padding: 0 15px;
        justify-content: space-between;
    }

    #mainLogo {
        height: 32px;
        margin-right: 10px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 6px 10px;
    }

    .action-buttons-grid {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .action-btn {
        width: 100%;
        padding: 15px;
        font-size: 1rem;
    }

    /* MEJORA DE DISEÑO MÓVIL */
    .yt-mobile-card, 
    #tips-widget-container, 
    .stream-widget-wrapper,
    .video-wrapper {
        background: var(--color-card);
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
        margin-bottom: 25px;
        border: none !important;
        position: relative;
        z-index: 20;
    }

    .yt-mobile-header, .section-header-mobile {
        background: linear-gradient(90deg, #1a1a1a, #000);
        padding: 15px 20px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .yt-mobile-title {
        font-family: 'Oswald', sans-serif;
        font-size: 1.1rem;
        color: #fff;
        letter-spacing: 0.5px;
        margin: 0;
    }

    .yt-mobile-content, 
    .tips-container iframe, 
    .stream-widget-wrapper iframe {
        width: 100% !important;
        aspect-ratio: 16 / 9;
        height: auto !important;
        display: block;
        padding: 0 !important;
        z-index: 20;
    }

    .yt-mobile-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
    }
    
    #tips-widget-container {
        padding: 0 !important;
        background: #000;
    }

    /* 1. DISEÑO ESTÉTICO PARA EL ÁREA DE STREAMING */
    .streaming-container {
        padding: 10px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        overflow: hidden;
    }

    .streaming-container iframe {
        width: 100% !important;
        height: 220px !important;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }

    .streaming-wrapper, .live-chat-container {
        width: 100% !important;
        margin: 0 auto;
    }

    /* 4. PREVENCIÓN DE DESBORDE HORIZONTAL GENERAL */
    .section-container, .main-content {
        width: 100% !important;
        overflow-x: hidden;
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* 2. MEJORAS PARA TELÉFONOS PEQUEÑOS */
@media (max-width: 480px) {
    .presentation-title {
        font-size: 1.8rem !important;
    }
    
    .title-part-1, .title-part-2, .title-part-3 {
        font-size: 1.8rem !important;
    }
    
    .cta-btn {
        padding: 20px 25px !important;
        font-size: 1.15rem !important;
    }
    
    .stream-banner {
        min-height: 200px;
        padding: 30px 25px !important;
    }
    
    .stream-banner h5 {
        font-size: 1.5rem !important;
    }
    
    .main-banner-icon {
        font-size: 3.2rem !important;
    }
    
    .action-btn, .contact-btn-link {
        padding: 18px 28px !important;
        font-size: 1.1rem !important;
        min-height: 60px;
    }
    
    .video-wrapper {
        height: 220px !important;
        min-height: 220px !important;
    }
    
    .radio-controls {
        padding: 30px 25px !important;
    }
    
    .radio-play-btn {
        padding: 20px 30px !important;
        font-size: 1.15rem !important;
    }
    
    /* Ajustar logo en navbar */
    #mainLogo {
        height: 45px !important;
    }
    
    .logo-chevere, .logo-cars {
        font-size: 1.6rem !important;
    }
    
    /* Mejorar visibilidad de textos pequeños */
    .logo-subtitle, .publication-date, .modal-views, .card-small-text {
        font-size: 0.9rem !important;
    }
    
    /* Mejorar espaciado general */
    .container, .section-container {
        padding: 0 15px !important;
    }
    
    section {
        padding: 40px 0 !important;
    }
}

@media (max-width: 576px) {
    .presentation-title {
        font-size: 1.6rem;
    }
    
    .title-part-1 {
        font-size: 1.3rem;
    }
    
    .title-part-2 {
        font-size: 1.6rem;
    }
    
    .title-part-3 {
        font-size: 1.2rem;
    }
    
    .presentation-content {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .services-grid, .publications-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .item-actions {
        flex-direction: column;
    }
    
    .btn-edit, .btn-delete {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }

    .publication-meta {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
    }
    
    .publication-views {
        order: 1;
        margin-right: 10px;
    }
    
    .publication-arrow {
        order: 2;
    }
    
    .modal-views {
        font-size: 0.8rem;
        padding: 3px 8px;
    }

    .youtube-controls.compact-controls {
        gap: 4px;
        padding: 5px 8px;
    }
    
    .yt-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .tips-container {
        height: 180px;
    }
    
    .tips-container iframe {
        transform: scale(0.7);
        width: 142.86%;
        height: 142.86%;
    }
}

/* Responsividad adicional para pantallas muy pequeñas */
@media screen and (max-width: 480px) {
    .stream-banner {
        flex: 0 0 95% !important;
        min-width: 280px !important;
        max-width: 340px !important;
        padding: 22px 15px !important;
    }
    
    .stream-banner h4 {
        font-size: 1.3rem !important;
    }
    
    .main-banner-icon {
        font-size: 2.5rem !important;
    }
    
    .contact-btn-link {
        max-width: 260px !important;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
    }
    
    .swipe-hint {
        font-size: 0.9rem !important;
        gap: 8px !important;
    }
}

@media screen and (max-width: 360px) {
    .stream-banner {
        flex: 0 0 96% !important;
        min-width: 260px !important;
        padding: 20px 12px !important;
    }
    
    .stream-banner h4 {
        font-size: 1.2rem !important;
    }
    
    .contact-btn-link {
        max-width: 240px !important;
        padding: 11px 18px !important;
    }
}

/* Responsive para animaciones */
@media (max-width: 768px) {
    .card-3d:hover {
        transform: none;
    }
    
    .service-item:hover {
        transform: translateX(5px);
    }
    
    .cta-btn:hover {
        transform: translateY(-3px);
    }
    
    /* Desactivar algunas animaciones en móviles para mejor performance */
    .particle-element::before,
    .cta-btn::before {
        display: none;
    }
}

/* Mejorar performance de animaciones */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* AJUSTES PARA TELÉFONOS MÁS PEQUEÑOS */
@media (max-width: 480px) {
    .logo-chevere,
    .logo-cars {
        font-size: 1rem !important;
    }
    
    .logo-subtitle {
        font-size: 0.5rem !important;
        max-width: 150px;
    }
    
    #mainLogo {
        height: 35px !important;
        margin-right: 8px;
    }
    
    .stream-banner {
        padding: 20px 15px !important;
        min-height: 200px;
    }
    
    .stream-banner h5 {
        font-size: 1.2rem !important;
    }
    
    .main-banner-icon {
        font-size: 1.8rem !important;
    }
    
    .symmetric-card {
        min-height: 280px;
        padding: 20px 15px;
    }
    
    .card-big-title {
        font-size: 1.2rem !important;
    }
    
    .video-wrapper {
        height: 190px !important;
        min-height: 190px !important;
    }
    
    .stream-widget-wrapper {
        height: 160px !important;
        z-index: 20;
    }
    
    .action-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* CORRECCIÓN ESPECÍFICA PARA EL TEXTO DEL LOGO */
@media (max-width: 768px) {
    .logo {
        min-width: auto;
        max-width: 180px;
        overflow: hidden;
    }
    
    .logo-text span {
        display: inline !important;
    }
    
    .logo-content-wrapper {
        min-width: 0;
        overflow: visible !important;
    }
}

/* Estilos para el tutorial del menú */
.menu-tutorial {
    position: fixed; /* Cambiado de absolute a fixed */
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 12px 15px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    z-index: 10001; /* Más alto para estar sobre todo */
    width: 200px;
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    /* Posición inicial - será ajustada por JS */
    top: 80px;
    left: 80px;
}

.menu-tutorial.show {
    transform: scale(1) translateY(0);
}

.menu-tutorial::before {
    top: -8px; /* Flecha en la parte superior */
    left: 20px; /* Centrada horizontalmente */
    transform: translateX(0);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #3498db;
    border-top: none;
}

@keyframes bouncePoint {
    0% { transform: translateX(0); }
    100% { transform: translateX(5px); }
}

.tutorial-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tutorial-arrow {
    font-size: 24px;
    color: #FFD700;
    animation: bouncePoint 1.2s infinite alternate ease-in-out;
}

.tutorial-text {
    flex: 1;
}

.tutorial-text p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.tutorial-close {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    justify-content: center;
    font-weight: 500;
}

.tutorial-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

@keyframes pointRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(5px);
    }
}

/* Ajustes para móviles */
@media (max-width: 768px) {

    .tutorial-content {
        gap: 8px;
    }
    
    .tutorial-arrow {
        font-size: 20px;
    }
    
    .tutorial-text p {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .tutorial-close {
        font-size: 10px;
        padding: 3px 8px;
    }

    .menu-tutorial {
        /* Tamaño más pequeño para móviles */
        width: 160px;
        padding: 10px 12px;
        font-size: 0.9rem;
        
        /* Posición relativa al botón del menú */
        top: 70px !important; /* Justo debajo del navbar */
        left: 15px !important; /* Alineado con el botón del menú */
        
        /* Asegurar que no tape otros elementos importantes */
        max-width: 85%;
    }
    
    .menu-tutorial.show {
        transform: translateX(-50%) translateY(0);
    }
    
    .menu-tutorial::before {
        top: -8px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid #3498db;
        border-top: none;
    }
}

@media (max-width: 480px) {
    .menu-tutorial {
        width: 150px;
        padding: 8px 10px;
        top: 65px !important;
        left: 10px !important;
    }
    
    .tutorial-text p {
        font-size: 11px;
    }
}

/* Para tablets en modo vertical */
@media (max-width: 992px) and (min-width: 769px) {
    .menu-tutorial {
        top: 75px !important;
        left: 20px !important;
        width: 180px;
    }
}

/* Asegurar que el tutorial esté por encima de todo */
.menu-tutorial {
    z-index: 10001 !important;
}

/* ============================================================
   DISEÑO ÚNICO Y ESPECIAL PARA TABLETS (768px - 1024px)
   ============================================================ */

   @media screen and (min-width: 768px) and (max-width: 1024px) {
    
    /* 1. Navegación Flotante Estilo "Island" */
    .top-navbar {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
        border-radius: 50px;
        height: 100px;
        box-shadow: 0 10px 30px var(--color-shadow);
        padding: 0 25px;
    }

    .logo-chevere, .logo-cars {
        font-size: 1.8rem; /* Ajuste de escala para tablet */
    }

    /* 2. Hero Section: Composición Lateral */
    .presentation-section {
        height: 80vh;
        display: flex;
        align-items: center;
        border-radius: 0 0 50px 50px;
    }

    .presentation-overlay {
        padding-top: 0;
        justify-content: flex-start;
        padding-left: 5%;
    }

    .presentation-content {
        max-width: 550px;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.4);
        padding: 50px;
        border-radius: 40px;
    }

    .dark-mode .presentation-content {
        background: rgba(26, 26, 26, 0.7);
    }

    .presentation-title {
        font-size: 2.8rem;
    }

    /* 3. Grid de Servicios: 2 Columnas Elegantes */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 0 40px;
    }

    .service-card {
        padding: 40px 20px;
        border-radius: 30px;
        /* Efecto de profundidad único */
        background: linear-gradient(145deg, var(--color-card), var(--color-bg));
    }

    /* 4. Menú Lateral (Services Menu) más amplio */
    .services-menu {
        width: 500px;
        left: -500px;
        padding: 40px;
    }

    /* 5. Publicaciones: Diseño tipo Revista */
    .publications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .pub-card {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .pub-card img {
        height: 250px; /* Imágenes más grandes y llamativas */
    }

    /* 6. Botones de Acción (CTA) más grandes para dedos */
    .cta-btn {
        padding: 18px 35px;
        font-size: 1.1rem;
    }

    /* 7. Modal de Publicación Optimizado */
    .modal-content {
        width: 85%;
        max-height: 85vh;
    }

    .modal-header {
        padding: 30px 40px;
    }

    /* 8. Efecto Visual de Fondo */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 300px;
        background: var(--primary-blue);
        filter: blur(150px);
        opacity: 0.1;
        z-index: -1;
        border-radius: 50%;
    }
}

/* Asegura que el item de la promo sea un contenedor relativo */
.promo-item {
    position: relative;
    width: 100%; 
    height: 300px; /* O el alto que desees */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Empuja el texto hacia abajo */
    border-radius: 10px;
}

/* La imagen de fondo */
.promo-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto evita que se deforme y llena el espacio */
    z-index: 1;
}

/* Capa de texto para que sea legible sobre el logo */
.promo-item h4, .promo-item p, .btn-insta {
    position: relative;
    z-index: 2; /* Por encima de la imagen */
    background: rgba(0, 0, 0, 0.5); /* Fondo oscuro semi-transparente para legibilidad */
    color: white;
    margin: 0;
    padding: 5px 10px;
}

/* Estilo del Botón de Instagram */
.btn-insta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(195, 0, 255, 0.3);
}

.btn-insta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(195, 0, 255, 0.4);
    letter-spacing: 2px;
}

/* ============================================
   REDISEÑO COMPLETO PARA TABLETS (768px - 1024px)
   ============================================ */

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait),
       (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    
    /* === AJUSTES GENERALES PARA TABLETS === */
    body {
        font-size: 15px;
    }
    
    .container {
        padding: 0 25px;
        max-width: 100%;
    }
    
    /* === HEADER Y LOGO MEJORADO PARA TABLETS === */
    .top-navbar {
        height: 80px;
        padding: 0 15px;
        backdrop-filter: blur(20px);
    }
    
    .logo {
        flex: 0 1 auto;
        min-width: 0;
    }
    
    .logo-container {
        padding: 0;
    }
    
    #mainLogo {
        height: 50px !important;
        width: auto;
        margin-right: 15px;
        object-fit: contain;
    }
    
    .logo-content-wrapper {
        min-width: 0;
        max-width: 220px;
        overflow: visible !important;
    }
    
    .logo-text {
        display: flex;
        flex-direction: row;
        align-items: baseline;
        gap: 5px;
        line-height: 1;
    }
    
    .logo-chevere {
        font-size: 1.8rem !important;
        font-weight: 800;
        letter-spacing: 1.5px;
        line-height: 1;
    }
    
    .logo-cars {
        font-size: 1.8rem !important;
        font-weight: 700;
        letter-spacing: 2px;
        line-height: 1;
    }
    
    .logo-subtitle {
        font-size: 0.65rem !important;
        margin-top: 2px;
        letter-spacing: 1px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.1;
    }
    
    .nav-content {
        gap: 15px;
        justify-content: space-between;
    }
    
    .theme-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .menu-toggle {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .btn-insta {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .social-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    
    /* === SECCIÓN STREAMING OPTIMIZADA PARA TABLETS === */
    .streaming-section {
        padding: 40px 0 !important;
    }
    
    .streaming-layout {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 30px;
        width: 100%;
    }
    
    .streaming-main {
        order: 1;
        grid-column: 1 / -1;
        width: 100%;
        text-align: center;
    }
    
    .streaming-header {
        margin-bottom: 25px;
    }
    
    .live-indicator {
        font-size: 1.1rem;
        padding: 8px 20px;
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .video-wrapper {
        height: 280px !important;
        min-height: 280px !important;
        border-width: 3px;
        border-radius: 20px;
        margin: 20px 0;
    }
    
    .streaming-banners {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        width: 100%;
        order: 2;
    }
    
    .side-left, .side-right {
        grid-column: 1 / -1;
        display: contents;
    }
    
    .stream-banner {
        min-height: 180px;
        padding: 25px 20px !important;
        margin: 0;
        border-radius: 18px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .stream-banner.glass-effect {
        grid-column: 1 / -1;
        margin-bottom: 10px;
    }
    
    .info-card.symmetric-card {
        min-height: 320px;
        padding: 25px 20px;
        margin: 0;
        border-radius: 18px;
    }
    
    /* Ajustar el orden de los elementos en la grid */
    .streaming-banners.side-left .stream-banner {
        grid-column: 1 / -1;
        grid-row: 1;
    }
    
    .streaming-banners.side-left .info-card.symmetric-card:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }
    
    .streaming-banners.side-right .info-card.symmetric-card:first-child {
        grid-column: 2;
        grid-row: 2;
    }
    
    .streaming-banners.side-right .info-card.symmetric-card:nth-child(2) {
        grid-column: 1 / -1;
        grid-row: 3;
        margin-top: 25px;
    }
    
    .card-header {
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .card-big-title {
        font-size: 1.4rem;
        text-align: center;
    }
    
    .stream-widget-wrapper {
        height: 200px;
        margin: 15px 0;
        border-radius: 12px;
        z-index: 20;
    }
    
    .action-buttons-grid {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        margin: 20px 0;
    }
    
    .action-btn {
        min-width: 180px;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .whatsapp-btn {
        background: linear-gradient(135deg, #25D366, #128C7E);
    }
    
    /* === SECCIÓN RADIO OPTIMIZADA === */
    .radio-section {
        padding: 30px 0;
    }
    
    .radio-controls {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 25px;
        border-radius: 20px;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .radio-logo-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .radio-play-btn {
        min-width: 180px;
        padding: 12px 25px;
        font-size: 1rem;
        margin: 0 15px;
    }
    
    .radio-player-wrapper {
        display: none;
    }
    
    /* === MENÚ LATERAL MEJORADO PARA TABLETS === */
    .services-menu {
        width: 450px;
        left: -450px;
        padding: 30px;
    }
    
    .menu-header h2 {
        font-size: 1.4rem;
    }
    
    .services-sections {
        padding: 10px 5px;
        gap: 12px;
    }
    
    .service-item {
        padding: 12px 22px;
        border-radius: 45px;
        font-size: 0.95rem;
    }
    
    .service-icon {
        font-size: 1.1rem;
        min-width: 25px;
    }
    
    /* === SECCIONES DE CONTENIDO (ocultas pero optimizadas) === */
    .featured-services,
    .latest-publications {
        padding: 40px 0;
        display: none !important;
    }
    
    .services-grid,
    .publications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .service-card,
    .pub-card {
        padding: 25px 20px;
        border-radius: 18px;
    }
    
    .service-card i {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .pub-card img {
        height: 160px;
        border-radius: 12px;
        margin-bottom: 15px;
    }
    
    /* === FOOTER OPTIMIZADO PARA TABLETS === */
    .main-footer {
        padding: 40px 0 25px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
    
    .footer-logo {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .footer-logo h3 {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }
    
    .footer-links,
    .footer-social {
        text-align: center;
    }
    
    .footer-links h4,
    .footer-social h4 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .developer-title {
        font-size: 1.1rem;
        margin-top: 25px;
        padding-top: 15px;
    }
    
    .social-icons {
        justify-content: center;
        gap: 15px;
    }
    
    .social-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    /* === MODALES OPTIMIZADOS PARA TABLETS === */
    .modal-content,
    .login-content,
    .edit-content {
        width: 90%;
        max-width: 700px;
    }
    
    .modal-header {
        padding: 20px 25px;
    }
    
    .modal-title {
        font-size: 1.8rem;
    }
    
    .modal-body {
        padding: 25px;
    }
    
    /* === BOTONES Y CONTROLES TÁCTILES MÁS GRANDES === */
    button, 
    .btn, 
    .action-btn, 
    .cta-btn,
    .service-item {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Mejorar la experiencia táctil */
    .service-item:active,
    .publication-item:active,
    .action-btn:active {
        transform: scale(0.97);
        transition: transform 0.1s ease;
    }
    
    /* === AJUSTES DE TEXTO Y TIPOGRAFÍA === */
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
    }
    
    p, li, span {
        line-height: 1.6;
    }
    
    .presentation-subtitle {
        font-size: 1.1rem;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* === MEJORAS DE RENDIMIENTO PARA TABLETS === */
    .slide-overlay {
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
    }
    
    .glass-effect {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
    
    /* Desactivar algunas animaciones pesadas */
    .particle-element::before,
    .wave-effect::after,
    .shine-hover::before {
        display: none;
    }
    
    /* === CINTILLO PUBLICITARIO OPTIMIZADO === */
    .promo-banner-strip,
    .ad-cintillo-strip {
        padding: 20px 0;
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
    
    .banner-content,
    .cintillo-content {
        animation: scroll-text 25s linear infinite;
    }
    
    @keyframes scroll-text {
        0% { transform: translateX(100%); }
        100% { transform: translateX(-100%); }
    }
    
    /* === MEJORAS DE ACCESIBILIDAD TÁCTIL === */
    /* Aumentar áreas táctiles para elementos importantes */
    .menu-toggle,
    .theme-btn {
        position: relative;
    }
    
    .menu-toggle::after,
    .theme-btn::after {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
        z-index: -1;
    }
    
    /* === SOPORTE PARA ORIENTACIÓN HORIZONTAL === */
    @media (orientation: landscape) {
        .streaming-layout {
            grid-template-columns: 1fr 1fr;
            grid-template-rows: auto auto;
        }
        
        .streaming-main {
            grid-column: 1 / -1;
            grid-row: 1;
        }
        
        .streaming-banners {
            grid-column: 1 / -1;
            grid-row: 2;
            grid-template-columns: 1fr 1fr;
        }
        
        .streaming-banners.side-left {
            grid-column: 1;
            grid-row: 2;
            display: flex;
            flex-direction: column;
            gap: 25px;
        }
        
        .streaming-banners.side-right {
            grid-column: 2;
            grid-row: 2;
            display: flex;
            flex-direction: column;
            gap: 25px;
        }
        
        .streaming-banners.side-left,
        .streaming-banners.side-right {
            display: flex;
        }
        
        .streaming-banners.side-left > *,
        .streaming-banners.side-right > * {
            width: 100%;
        }
    }
    
    /* === CORRECCIONES ESPECÍFICAS PARA iPAD === */
    @supports (-webkit-touch-callout: none) {
        .slide-overlay {
            -webkit-backdrop-filter: blur(15px);
            backdrop-filter: blur(15px);
        }
        
        .glass-effect {
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
        }
    }
}

/* === ESTILOS ESPECÍFICOS PARA TABLETS MÁS PEQUEÑAS === */
@media (min-width: 768px) and (max-width: 820px) {
    .logo-chevere,
    .logo-cars {
        font-size: 1.6rem !important;
    }
    
    .logo-subtitle {
        font-size: 0.6rem !important;
    }
    
    #mainLogo {
        height: 45px !important;
    }
    
    .overlay-content {
        padding: 25px !important;
    }
}

/* === ESTILOS ESPECÍFICOS PARA TABLATS EN ORIENTACIÓN VERTICAL === */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .streaming-banners {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .streaming-banners.side-left .info-card.symmetric-card:nth-child(2),
    .streaming-banners.side-right .info-card.symmetric-card:first-child,
    .streaming-banners.side-right .info-card.symmetric-card:nth-child(2) {
        grid-column: 1 / -1;
    }
    
    .streaming-banners.side-right .info-card.symmetric-card:nth-child(2) {
        grid-row: auto;
        margin-top: 0;
    }
    
    .action-buttons-grid {
        flex-direction: column;
        gap: 12px;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* === TRANSICIONES SUAVES PARA REDIMENSIONAMIENTO === */
@media (min-width: 768px) and (max-width: 1024px) {
    * {
        transition: all 0.2s ease-out;
    }
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: white;
    box-shadow: 0 0 10px white;
    transition: width 0.1s linear;
}

.showcase-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.glass-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    /* Optimización táctil */
    min-width: 45px;
    touch-action: manipulation;
}

.glass-btn:active {
    background: white;
    color: black;
}

.indicators span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s;
}

.indicators span.active {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 0 8px white;
}

/* OPTIMIZACIONES DE RENDIMIENTO (Lag Reduction) */
* {
    /* Evita el highlight azul en móviles al tocar */
    -webkit-tap-highlight-color: transparent; 
}

/* Mejora para el renderizado de capas en scroll */
.main-content, section, .container {
    will-change: transform; /* Ayuda a la GPU con el scroll */
}

/* Desactiva sombras pesadas en móviles de gama baja si es posible */
.service-item, .stream-banner {
    transform: translateZ(0); /* Fuerza aceleración por hardware */
    backface-visibility: hidden;
}

/* Aplica a los iconos específicos mencionados */
.fa-youtube, .fa-instagram, .fa-tiktok, .fa-facebook-f {
    color: #444444; /* Color en tema claro */
    transition: color var(--transition-speed);
}

.dark-mode .fa-youtube, 
.dark-mode .fa-instagram, 
.dark-mode .fa-tiktok, 
.dark-mode .fa-facebook-f {
    color: #FFFFFF; /* Color en tema oscuro */
}

/* --- HERO CAROUSEL SYSTEM --- */
.hero-carousel-container {
    position: relative;
    width: 100%;
    height: 80vh; /* Ajustable según necesidad */
    overflow: hidden;
    background: #000;
    margin-top: 70px; /* Espacio para el navbar */
}

.carousel-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); /* Curva suave tipo iOS */
}

.carousel-slide {
    width: 33.333%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

/* Efecto Glassmorphism iOS/Xbox */
.glass-overlay {
    position: absolute;
    bottom: 10%;
    left: 5%;
    right: 5%;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
    z-index: 10;
}

/* Animaciones de Texto en orden */
.slide-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateX(-20px);
}

.slide-subtitle {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateX(-20px);
}

/* Clases de Activación */
.glass-overlay.show {
    opacity: 1;
    transform: translateY(0);
}

.glass-overlay.show .slide-title {
    animation: fadeInUp 0.5s forwards 0.1s;
}

.glass-overlay.show .slide-subtitle {
    animation: fadeInUp 0.5s forwards 0.3s;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translate(0); }
}

/* Botones Estilo Xbox/iOS */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 20;
    transition: 0.3s;
}

.carousel-btn:hover { background: rgba(255, 255, 255, 0.3); }
.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

/* =========================================================
   🛡️ ESCUDO TÁCTIL GLOBAL (SOLUCIÓN "INVISIBLE BOX")
   Esta sección crea la "capa invisible" lógica que corrige el scroll
   ========================================================= */

@media (max-width: 1024px) {
    /* 1. FORZAR COMPORTAMIENTO DE CAPA TÁCTIL EN TODO EL SITIO */
    html, body {
        /* Esto es la "Caja Invisible": Obliga al navegador a manejar el dedo 
           como scroll de página, ignorando comportamientos internos de los divs */
        touch-action: pan-y !important; 
        -webkit-overflow-scrolling: touch !important;
        overflow-x: hidden !important;
        width: 100% !important;
    }

    /* 2. ESCUDO PARA IFRAMES (VIDEOS) */
    /* Por defecto, los videos son "intangibles" para el dedo, 
       permitiendo que el scroll pase sobre ellos suavemente */
    iframe, 
    .video-wrapper iframe, 
    .stream-widget-wrapper iframe,
    .tips-container iframe {
        pointer-events: none !important; /* El toque traspasa el video y mueve la página */
        touch-action: pan-y !important;
        z-index: 20;
    }

    /* 3. CLASE DE ACTIVACIÓN */
    /* Cuando el usuario toca el botón de "Activar", quitamos el escudo 
       solo para ese elemento */
    .touch-active iframe,
    .touch-active .video-wrapper iframe,
    .touch-active .stream-widget-wrapper iframe {
        pointer-events: auto !important; /* Ahora sí recibe clicks internos */
        z-index: 20;
    }

    /* 4. EXCEPCIÓN PARA BANNERS HORIZONTALES */
    /* Permitimos deslizar a los lados aquí, pero sin bloquear el vertical */
    .streaming-banners, .carousel-track {
        touch-action: pan-x pan-y !important;
    }
    
    /* 5. CAPA SUPERIOR PARA ACTIVACIÓN DE VIDEO */
    /* Creamos un "botón invisible" sobre los videos */
    .video-wrapper::after,
    .stream-widget-wrapper::after,
    .tips-container::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10; /* Z-index alto para capturar el primer toque */
        background: transparent;
        cursor: pointer;
    }

    /* Si ya está activo, quitamos la capa invisible */
    .touch-active::after {
        display: none !important;
    }
    
    .touch-active::before {
        opacity: 0 !important;
        display: none !important;
    }
}

/* Busca donde tengas esto y agrega la coma con el video */
.stream-widget-wrapper iframe, 
.stream-widget-wrapper video {
    width: 100%;
    z-index: 20;
    border: none;
    border-radius: 12px;
}

/* =========================================================
   NUEVO DISEÑO MODAL VERTICAL 2026
   ========================================================= */
.new-modal-layout {
    max-width: 1050px !important;
    padding: 40px !important;
    border: none !important;
    border-radius: 25px;
    background: var(--color-card);
}

.modal-grid-split {
    display: grid;
    grid-template-columns: 320px 1fr; /* Izquierda: Video 320px, Derecha: Info */
    gap: 40px;
}

/* Columna Izquierda */
.modal-info-col {
    display: flex;
    flex-direction: column;
}

.modal-social-compact {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.modal-social-compact .social-icon {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
}

.description-box {
    border: none !important;
    background: transparent !important;
    padding: 0;
    margin-top: 15px;
}

.desc-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--primary-blue);
    color: white;
    font-size: 0.7rem;
    font-family: var(--font-secondary);
    padding: 3px 10px;
    border-radius: 10px;
    letter-spacing: 1px;
}

.video-vertical-container {
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #050505;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border: none !important;
}

.video-vertical-container video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Llena el formato vertical sin deformar */
}

/* Vistas, Likes y Logo alineados */
.modal-metadata {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 0 5px;
    border: none !important;
    background: transparent !important;
}

.distribuidor-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-blue);
}

.modal-stats-group {
    display: flex;
    gap: 10px;
}

.modal-like-btn {
    background: rgba(204, 0, 0, 0.08);
    color: var(--primary-red);
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-family: var(--font-primary);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-like-btn.liked {
    background: var(--primary-red);
    color: white;
}

/* Fila Interactiva (Feed y Comentarios) */
.modal-interactive-row {
    border-top: 2px dashed var(--color-border);
    padding-top: 30px;
    display: block; /* Eliminamos el grid 1fr 1fr que empujaba todo a la derecha */
    width: 100%;
}

.modal-interactive-row, .modal-comments-row {
    width: 100%;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.05); /* Separador sutil, NO borde de caja */
}

.interactive-title {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--primary-blue);
    text-transform: uppercase;
    margin-bottom: 25px;
}

/* Error 4: Formulario de Comentarios Estético */
.comment-form-modern {
    background: var(--glass-bg, rgba(0,0,0,0.02));
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.modern-input {
    border: 2px solid transparent;
    background: var(--color-card);
    padding: 15px 20px;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--color-text);
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.modern-input:focus {
    border-color: var(--primary-blue);
    outline: none;
}

.name-input {
    width: 100%;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Estilo del Botón Pin (Fijar) en el Feed */
.pin-btn {
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.pin-btn.active { color: var(--primary-red); transform: scale(1.1); }

/* Slider Feed - Rediseño Flex/Grid Responsivo */
.social-feed-slider {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    width: 100%;
    /* En móviles, permitimos scroll horizontal */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) transparent; 
}

/* En pantallas grandes (Tablet/PC), lo centramos y hacemos que caigan en cuadrícula si son muchas */
@media (min-width: 768px) {
    .social-feed-slider {
        display: grid;
        /* Magia pura: Crea columnas automáticas del mismo tamaño ocupando TODO el ancho */
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
        width: 100%;
        overflow: visible;
    }

    .social-feed-slider .feed-item {
        width: 100%;
        /* 1. Definimos la proporción vertical de Instagram (4 de ancho por 5 de alto) */
        aspect-ratio: 4 / 5; 
        
        /* 2. Quitamos el height fijo para que el aspect-ratio mande */
        height: auto; 
        
        border-radius: 12px;
        overflow: hidden; /* Corta lo que sobre del contenedor */
        background-color: #000; /* Fondo negro por si la imagen tarda en cargar */
    }

    .social-feed-slider .feed-item img {
        width: 100%;
        height: 100%;
        
        /* 3. La propiedad mágica: rellena el contenedor sin deformar la imagen */
        object-fit: cover; 
        
        /* 4. Centra la imagen para que si se corta, sea por los bordes */
        object-position: center; 
        
        display: block;
    }
}

.feed-item {
    min-width: 130px;
    height: 180px;
    background: var(--color-border);
    border-radius: 15px;
    scroll-snap-align: start;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    cursor: pointer;
}

.feed-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    z-index: 1;
}

.feed-item i {
    z-index: 2;
}

.feed-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 102, 204, 0.3);
}

/* Adaptación para pantallas de teléfonos muy pequeños */
@media (max-width: 480px) {
    .feed-item {
        min-width: 110px;
        height: 160px;
    }
}

/* Comentarios (Sin Lag) */
.comments-list {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 5px;
}

.comment-bubble {
    background: rgba(0, 102, 204, 0.05);
    padding: 12px 15px;
    border-radius: 0 15px 15px 15px;
    font-size: 0.9rem;
    animation: slideInComment 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    transform-origin: left top;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.comment-author {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 3px;
    font-size: 0.85rem;
}

@keyframes slideInComment {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Formulario Comentarios */
.input-btn-group {
    display: flex;
    gap: 10px;
}

.input-btn-group input {
    flex-grow: 1;
    border: 2px solid var(--color-border);
    border-radius: 20px;
    padding: 10px 15px;
    background: transparent;
    color: var(--color-text);
}

.btn-send-comment {
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-send-comment:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Responsive */
@media (max-width: 900px) {
    .modal-grid-split, .modal-interactive-row {
        grid-template-columns: 1fr;
    }
    .modal-media-col {
        order: -1; /* En móviles, el video va arriba */
        max-width: 300px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   SOLUCIÓN 1: CORRECCIONES EN MÓVILES (Y GENERALES)
   ========================================================================== */

/* 1.1 Solución al cierre del modal al dar "Like" */
/* Evita que los clics se registren en los hijos (icono o span), forzando el clic en el botón principal que no desaparece del DOM */
.modal-like-btn * {
    pointer-events: none;
}

/* 1.2 Estética y simetría de Vistas y Likes */
.modal-stats-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.modal-views, .modal-like-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px; /* Altura idéntica forzada para ambos */
    padding: 0 18px;
    border-radius: 21px; /* Mitad de la altura para forma de píldora perfecta */
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    box-sizing: border-box;
}

/* 1.3 Área de comentarios: Evitar desbordamiento y botón aplastado */
.input-btn-group {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.input-btn-group input {
    flex-grow: 1;
    min-width: 0; /* CRUCIAL: Impide que el input rompa el contenedor flex al escribir texto largo */
    width: 100%;
}

.btn-send-comment {
    width: 45px;
    height: 45px; /* Altura explícita igual al ancho */
    border-radius: 50%;
    flex-shrink: 0; /* CRUCIAL: Evita que el input aplaste el botón de enviar */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; 
}


/* ==========================================================================
   SOLUCIÓN 2: REDISEÑO EXCLUSIVO PARA COMPUTADORAS (ESCRITORIO)
   ========================================================================== */

@media (min-width: 901px) {
    /* Convertimos el grid en un área de posicionamiento relativo */
    .modal-grid-split {
        position: relative;
    }
    
    /* Reubicamos el contenedor de Metadata (Stats + Logo) */
    .modal-metadata {
        position: absolute;
        /* El "piso" del video: Calculamos la altura exacta del video (320px de ancho con ratio 16:9) */
        top: calc(320px * 16 / 9); 
        transform: translateY(-100%); /* Alinea la parte inferior de los elementos con el piso del video */
        
        /* Posición horizontal */
        left: 360px; /* Al lado derecho del video (320px de video + 40px de espacio/gap) */
        right: 0;    /* Estirado hasta el borde derecho total del contenedor de la publicación */
        
        display: flex;
        justify-content: space-between; /* Views/Likes a la izquierda (junto al video), Logo a la derecha */
        align-items: flex-end;
        padding: 0;
        margin: 0;
        z-index: 10;
        
        /* Permite hacer clic en el texto de abajo sin que este contenedor bloquee el cursor */
        pointer-events: none; 
    }
    
    /* Reactivamos los clics únicamente para los botones/logos interactivos */
    .modal-stats-group, .distribuidor-logo {
        pointer-events: auto;
    }
    
    /* Configuración: Vistas arriba de los Likes */
    .modal-stats-group {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    /* Logo más grande en la esquina derecha */
    .distribuidor-logo img {
        width: 85px;   /* Aumentado para mayor apreciación */
        height: 85px;
        border-width: 3px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    /* Agregamos un margen interno inferior a la columna de texto para que los textos largos no queden detrás del logo y los likes */
    .modal-info-col {
        padding-bottom: 100px;
    }
}

/* ==========================================================================
   EFECTO MOTION GRAPHICS: TÍTULOS DE PUBLICACIONES (DORADO / BRILLO)
   ========================================================================== */

/* Aplicamos la animación tanto en la lista (tarjetas) como dentro del modal */
.publication-header h4,
#modalTitle {
    /* Estado inicial */
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
    
    /* 1. goldenGlowTransition: Dura 1.2s, empieza a los 0.5s, se queda en el estado final (forwards).
      2. shimmerGoldContinuous: Un resplandor infinito que inicia después de que termine la primera (1.7s).
    */
    animation: 
        goldenGlowTransition 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards,
        shimmerGoldContinuous 4s linear 1.7s infinite;
}

/* Evitamos conflicto de colores si entra el modo oscuro antes de la animación */
.dark-mode .publication-header h4,
.dark-mode #modalTitle {
    color: var(--primary-blue);
}

/* Transición de Revelado: Efecto de impacto visual */
@keyframes goldenGlowTransition {
    0% {
        color: var(--primary-blue);
        text-shadow: none;
        transform: scale(1);
    }
    30% {
        /* Momento de flash de luz blanca/dorada pura (Estilo Motion Graphics) */
        color: #FFFFFF;
        text-shadow: 0 0 20px #FFD700, 
                     0 0 40px #FFA500, 
                     0 0 60px #FF8C00;
        transform: scale(1.02); /* Pequeño salto 3D (Pop) */
    }
    100% {
        /* Se asienta en el dorado atractivo final */
        color: #F1C40F; /* Amarillo dorado profesional */
        text-shadow: 0 2px 10px rgba(241, 196, 15, 0.4);
        transform: scale(1);
    }
}

/* Resplandor pasivo continuo para mantener la presencia */
@keyframes shimmerGoldContinuous {
    0%, 100% {
        text-shadow: 0 2px 10px rgba(241, 196, 15, 0.4);
        filter: brightness(1);
    }
    50% {
        /* El brillo aumenta sutilmente a la mitad del ciclo */
        text-shadow: 0 2px 18px rgba(241, 196, 15, 0.8), 
                     0 0 5px rgba(255, 255, 255, 0.3);
        filter: brightness(1.15);
    }
}