/* ==========================================================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================================================== */
/* Variables CSS */
:root {
    /* Colores principales */
    --primary-color: #1a1a1a;
    --secondary-color: #4a4a4a;
    --accent-color: #0056b3;
    --accent-light: #4d94ff;
    --light-color: #f8f9fa;
    --border-color: #e0e0e0;
    --text-light: #6c757d;
    --white: #ffffff;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #0056b3, #003d82);
    --gradient-secondary: linear-gradient(135deg, #4d94ff, #1a75ff);
    
    /* Sombras */
    --shadow-soft: 0 8px 25px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
    
    /* Colores de estado */
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    
    /* Tipografía */
    --font-primary: 'DIN Pro', 'Inter', sans-serif;
}

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    color: var(--primary-color);
    background-color: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Contenedor principal */
.container {
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   COMPONENTES DE NAVEGACIÓN
   ========================================================================== */
/* ==========================================================================
   DROPDOWN PROFESIONAL PREMIUM
   ========================================================================== */

/* Contenedor principal */
.nav-item-dropdown {
    position: relative;
}

/* Enlace con flecha elegante */
.nav-link-with-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.dropdown-arrow {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0.7;
    margin-left: 2px;
}

.nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--accent-color);
}

/* Menú desplegable premium */
.professional-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(-15px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 14px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Flecha superior estilo premium */
.professional-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 50%, 
        transparent 50%);
    transform: translateX(-50%) rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-item-dropdown:hover .professional-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Item premium */
.dropdown-item-pro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 1px solid rgba(224, 224, 224, 0.1);
}

.dropdown-item-pro:last-child {
    border-bottom: none;
}

/* Efecto hover premium */
.dropdown-item-pro:hover {
    background: linear-gradient(90deg, 
        rgba(0, 86, 179, 0.1) 0%, 
        rgba(77, 148, 255, 0.05) 100%);
    color: var(--accent-color);
    padding-left: 28px;
    transform: translateX(2px);
}

/* Línea decorativa al hover */
.dropdown-item-pro::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, 
        var(--accent-color), 
        var(--accent-light));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.dropdown-item-pro:hover::before {
    transform: scaleY(1);
}

/* Icono flecha elegante */
.arrow-icon {
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
    color: var(--accent-light);
}

.dropdown-item-pro:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}

/* Efecto pulso sutil en el enlace principal */
.nav-item-dropdown > a:hover {
    color: var(--accent-color);
}

.nav-item-dropdown > a:hover::after {
    width: 100%;
    background: linear-gradient(90deg, 
        var(--accent-color), 
        var(--accent-light));
}

/* Subtle animation on dropdown appear */
@keyframes dropdownAppear {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-15px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.nav-item-dropdown:hover .professional-dropdown {
    animation: dropdownAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Efecto de brillo sutil al hacer hover */
.dropdown-item-pro::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropdown-item-pro:hover::after {
    opacity: 1;
}

   
/* Navbar Flotante */
.floating-navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 12px 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 95%;
    max-width: 1200px;
    min-width: 300px;
}

.floating-navbar.hidden {
    transform: translateX(-50%) translateY(-120px);
    opacity: 0;
}

.floating-navbar.scrolled {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    padding: 10px 30px;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.2rem;
    color: #2c3e50;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-img {
    height: 35px;
    width: auto;
    border-radius: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #3498db;
    transform: translateY(-1px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 4px;
    left: 0;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Overlay para móvil */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Ajustes de espaciado para el navbar fijo */
body {
    padding-top: 80px;
}


/* ==========================================================================
   MENÚ HAMBURGUESA RESPONSIVO
   ========================================================================== */

/* Botón hamburguesa */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

.hamburger-btn:hover span {
    background: var(--accent-color);
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--accent-color);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--accent-color);
}

/* Estilos responsivos para el menú principal */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    /* Ocultar navbar normal en móvil */
    .floating-navbar .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.98) 0%,
            rgba(248, 249, 250, 0.98) 100%);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        padding: 100px 30px 40px;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
        margin: 0;
        transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 999;
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        overflow-y: auto;
    }

    .floating-navbar .nav-menu.active {
        right: 0;
    }

    .floating-navbar .nav-menu li {
        width: 100%;
        margin: 0;
        padding: 0;
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .floating-navbar .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Animación escalonada para los items del menú */
    .floating-navbar .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .floating-navbar .nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .floating-navbar .nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .floating-navbar .nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
    .floating-navbar .nav-menu.active li:nth-child(5) { transition-delay: 0.3s; }
    .floating-navbar .nav-menu.active li:nth-child(6) { transition-delay: 0.35s; }
    .floating-navbar .nav-menu.active li:nth-child(7) { transition-delay: 0.4s; }

    .floating-navbar .nav-menu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--primary-color);
        text-decoration: none;
        border-radius: 12px;
        margin-bottom: 8px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        background: transparent;
        border: 2px solid transparent;
    }

    .floating-navbar .nav-menu a:hover {
        background: linear-gradient(135deg, 
            rgba(0, 86, 179, 0.1) 0%,
            rgba(77, 148, 255, 0.05) 100%);
        color: var(--accent-color);
        transform: translateX(5px);
        border-color: rgba(0, 86, 179, 0.2);
        box-shadow: 0 5px 20px rgba(0, 86, 179, 0.1);
    }

    .floating-navbar .nav-menu a::after {
        display: none;
    }

    /* Estilos específicos para el dropdown en móvil */
    .mobile-dropdown {
        position: relative;
    }

    .mobile-dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding-left: 20px !important;
        margin-top: 5px !important;
        display: none;
        animation: none !important;
    }

    .mobile-dropdown-menu::before {
        display: none !important;
    }

    .mobile-dropdown.active .mobile-dropdown-menu {
        display: block;
    }

    .mobile-dropdown .dropdown-item-pro {
        padding: 15px 20px !important;
        background: rgba(0, 86, 179, 0.05) !important;
        border-radius: 10px !important;
        margin-bottom: 5px !important;
        border: 1px solid rgba(0, 86, 255, 0.1) !important;
    }

    .mobile-dropdown .dropdown-item-pro:hover {
        background: rgba(0, 86, 179, 0.15) !important;
        transform: translateX(5px) !important;
    }

    .mobile-dropdown .nav-link-with-arrow {
        position: relative;
    }

    .mobile-dropdown .dropdown-arrow {
        transition: transform 0.3s ease;
    }

    .mobile-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    /* Botón de login en móvil */
    .nav-actions {
        display: none;
    }

    .nav-actions-mobile {
        display: flex;
        margin-top: 30px;
        padding: 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-actions-mobile .btn-login {
        width: 100%;
        justify-content: center;
        padding: 16px;
        font-size: 1rem;
        border-radius: 12px;
        background: var(--gradient-primary);
        box-shadow: 0 8px 25px rgba(0, 86, 179, 0.3);
    }

    /* Overlay para fondo oscuro */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 998;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Ajustes para el navbar en móvil */
    .floating-navbar {
        top: 15px;
        padding: 12px 20px;
        width: 90%;
    }

    .nav-logo span {
        font-size: 1rem;
    }

    .logo-img {
        height: 32px;
    }

    body {
        padding-top: 70px;
    }

    /* Header del menú móvil */
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 0 30px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
    }

    .mobile-menu-logo {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-menu-logo img {
        height: 30px;
        width: auto;
        border-radius: 6px;
    }

    .mobile-menu-logo span {
        font-weight: 800;
        font-size: 1.1rem;
        color: var(--primary-color);
    }
}

/* Ajustes para tablet más pequeños */
@media (max-width: 480px) {
    .floating-navbar .nav-menu {
        width: 90%;
        padding: 80px 20px 30px;
    }

    .floating-navbar {
        width: 92%;
        top: 10px;
    }

    .nav-logo span {
        font-size: 0.9rem;
    }

    .logo-img {
        height: 28px;
    }

    .floating-navbar .nav-menu a {
        padding: 16px 18px;
        font-size: 1rem;
    }

    .mobile-dropdown .dropdown-item-pro {
        padding: 14px 18px !important;
        font-size: 0.95rem;
    }
}

/* Animación de entrada del menú */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Soporte para dispositivos con notch y safe areas */
@media (max-width: 768px) {
    .floating-navbar {
        top: max(15px, env(safe-area-inset-top));
    }

    .floating-navbar .nav-menu {
        padding-top: max(100px, calc(70px + env(safe-area-inset-top)));
    }
}

/* Modo oscuro para móvil */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    .floating-navbar .nav-menu {
        background: linear-gradient(135deg, 
            rgba(30, 30, 30, 0.98) 0%,
            rgba(40, 40, 40, 0.98) 100%);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .floating-navbar .nav-menu a {
        color: #ecf0f1;
    }

    .floating-navbar .nav-menu a:hover {
        background: linear-gradient(135deg, 
            rgba(0, 86, 179, 0.2) 0%,
            rgba(77, 148, 255, 0.1) 100%);
        color: var(--accent-light);
    }

    .mobile-dropdown .dropdown-item-pro {
        background: rgba(0, 86, 179, 0.1) !important;
        border-color: rgba(77, 148, 255, 0.2) !important;
    }

    .menu-overlay {
        background: rgba(0, 0, 0, 0.85);
    }

    .mobile-menu-header {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-logo span {
        color: #ecf0f1;
    }
}

/* Para reducir movimiento en preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .floating-navbar .nav-menu,
    .floating-navbar .nav-menu li,
    .floating-navbar .nav-menu a,
    .hamburger-btn span,
    .menu-overlay {
        transition: none;
    }
}
/* ==========================================================================
   COMPONENTES DE BOTONES
   ========================================================================== */

/* Botón primario */
.btn-primary {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 1.2rem 2.4rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
}

/* Botón outline */
.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 1.2rem 2.4rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    background-color: var(--light-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Botón outline blanco */
.btn-outline-white {
    display: inline-block;
    background-color: transparent;
    color: var(--white);
    padding: 1.2rem 2.4rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    border: 2px solid var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Botón de enlace */
.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: #004494;
    transform: translateX(5px);
}

/* Botón de login */
.btn-login {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    border: none;
    cursor: pointer;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
}

/* Botón de YouTube */
.btn-youtube {
    display: inline-block;
    background-color: #ff0000;
    color: white;
    padding: 1.2rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
    text-align: center;
    width: 100%;
}

.btn-youtube:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 0, 0, 0.4);
}

/* ==========================================================================
   HERO SECTION PREMIUM
   ========================================================================== */
.hero-with-image {
    position: relative;
    height: 85vh;
    min-height: 700px;
    margin-top: -80px;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 86, 179, 0.6) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: -1;
}

.hero-with-image .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    color: white;
    position: relative;
    z-index: 2;
    padding: 4rem 0;
    margin-left: .5%;
    margin-top: -7%;
    animation: fadeInUp 1s ease 0.2s forwards;
}

.hero-with-image .hero-content h1 {
    font-size: 6.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.hero-with-image .hero-content p {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    line-height: 1.5;
}

/* Estadísticas del Hero */
.hero-stats {
    display: flex;
    gap: 4rem;
    margin: 5rem 0;
    animation: fadeInUp 1s ease 0.8s both;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    min-width: 250px;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 3.5rem;
    color: #4d94ff;
    opacity: 0.9;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Botones del Hero */
.hero-with-image .hero-buttons {
    display: flex;
    gap: 2.5rem;
    justify-content: flex-start;
    animation: fadeInUp 1s ease 1s both;
}

.hero-with-image .btn-primary {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    color: white;
    padding: 1.5rem 3.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(0, 86, 179, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.hero-with-image .btn-primary:hover {
    background: linear-gradient(135deg, #4d94ff 0%, #1a75ff 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 86, 179, 0.4);
    border-color: white;
}

.hero-with-image .btn-outline-white {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1.5rem 3.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    display: inline-block;
}

.hero-with-image .btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-with-image .hero-content h1 {
        font-size: 5.5rem;
    }
}

@media (max-width: 992px) {
    .hero-with-image .hero-content h1 {
        font-size: 4.5rem;
    }
    
    .hero-with-image .hero-content p {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-item {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-with-image {
        height: 70vh;
        min-height: 600px;
    }
    
    .hero-with-image .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-with-image .hero-content p {
        font-size: 1.8rem;
    }
    
    .hero-with-image .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-with-image .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-with-image .hero-content p {
        font-size: 1.6rem;
    }
    
    .stat-number {
        font-size: 3.5rem;
    }
    
    .hero-with-image .btn-primary,
    .hero-with-image .btn-outline-white {
        padding: 1.2rem 2.5rem;
        font-size: 1.4rem;
    }
}
/* ==========================================================================
   SECCIONES DE CONTENIDO PRINCIPAL
   ========================================================================== */

/* Sección: ¿Qué es Medicina Resolutiva? */
.what-is-medicine {
    padding: 8rem 0;
    background-color: var(--white);
}

.medicine-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.medicine-video {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.medicine-video video {
    width: 100%;
    height: auto;
    display: block;
}

.medicine-text h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--primary-color);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.medicine-text p {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* Sección: La Mesa Resolutiva */
.mesa-resolutiva {
    padding: 8rem 0;
    background-color: var(--light-color);
}

.mesa-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.mesa-text h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.subtitle {
    font-size: 1.8rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.6rem;
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 3rem;
}

.podcast-info {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.podcast-label {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.podcast-info h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.host {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.platform-badges {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.spotify-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background-color: #1DB954;
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.spotify-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(29, 185, 84, 0.4);
    background-color: #1ed760;
}

.youtube-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background-color: #FF0000;
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.youtube-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 0, 0, 0.4);
    background-color: #ff3333;
}

.mesa-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.mesa-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   COMPONENTES DE CARRUSEL
   ========================================================================== */

/* Títulos de sección */
.section-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 7rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-color);
    position: relative;
    font-family: var(--font-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.3);
}

/* Contenedor del carrusel */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
}

.carousel-container {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 2.5rem;
    padding: 2rem 1rem;
}

/* Navegación del carrusel */
.carousel-nav {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: none;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
    color: var(--primary-color);
    font-size: 1.6rem;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.carousel-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.4s ease;
    z-index: -1;
}

.carousel-nav:hover {
    color: white;
    transform: scale(1.15);
    box-shadow: 
        0 12px 30px rgba(0, 86, 179, 0.4),
        0 6px 20px rgba(0, 86, 179, 0.3);
    border-color: var(--accent-light);
}

.carousel-nav:hover::before {
    left: 0;
}

.carousel-nav.prev {
    margin-right: 2.5rem;
}

.carousel-nav.next {
    margin-left: 2.5rem;
}

/* Indicadores del carrusel */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin: 4rem 0;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.4s ease;
}

.indicator.active {
    transform: scale(1.4);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.4);
}

.indicator.active::before {
    left: 0;
}

.indicator:hover {
    transform: scale(1.2);
}

/* Botón Ver Todos */
.view-all-container {
    text-align: center;
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.7rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 1.5rem 3rem;
    border: 3px solid var(--accent-color);
    border-radius: 30px;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.15);
}

.view-all-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.5s ease;
    z-index: -1;
}

.view-all-link:hover {
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(0, 86, 179, 0.4),
        0 8px 25px rgba(0, 86, 179, 0.3);
    border-color: transparent;
}

.view-all-link:hover::before {
    left: 0;
}

/* ==========================================================================
   CARRUSEL DE EPISODIOS RECIENTES
   ========================================================================== */

.recent-episodes {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 8rem 0;
    position: relative;
}

.recent-episodes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
}

.recent-episodes .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Tarjetas de Episodio */
.episode-card {
    flex: 0 0 calc(33.333% - 1.67rem);
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 6px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    backdrop-filter: blur(10px);
}

.episode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 2;
}

.episode-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-light);
}

.episode-card:hover::before {
    transform: scaleX(1);
}

.episode-video {
    height: 220px;
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.episode-video::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.1));
}

.episode-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.95);
}

.episode-card:hover .episode-video iframe {
    filter: brightness(1.05);
}
.episode-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    z-index: 2;
    border: 2px solid white;
}

.episode-content {
    padding: 2.5rem;
    position: relative;
}

.episode-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.8rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.episode-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 0.5px;
}

.episode-date {
    font-size: 1.3rem;
    color: var(--text-light);
    font-weight: 700;
}

.episode-title {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 1.8rem;
    color: var(--primary-color);
    line-height: 1.3;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.episode-description {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    line-height: 1.7;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* Estadísticas del episodio */
.episode-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
}

.stat i {
    color: var(--accent-color);
    font-size: 1.3rem;
}

.episode-actions {
    display: flex;
    justify-content: center;
}

.episode-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.episode-btn::before {
    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.6s ease;
}

.episode-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 10px 25px rgba(255, 0, 0, 0.4),
        0 6px 20px rgba(255, 0, 0, 0.3);
}

.episode-btn:hover::before {
    left: 100%;
}

/* ==========================================================================
   SECCIÓN NEWSLETTER
   ========================================================================== */

.newsletter-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.newsletter-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--white);
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.newsletter-content > p {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4rem;
    line-height: 1.6;
    font-family: var(--font-primary);
    font-weight: 400;
}

.newsletter-form {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    background: white;
    padding: 0.8rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.newsletter-form:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-light);
}

.newsletter-form input {
    flex: 1;
    padding: 1.5rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.5rem;
    font-family: var(--font-primary);
    background: var(--light-color);
    transition: all 0.3s ease;
    outline: none;
}

.newsletter-form input::placeholder {
    color: var(--text-light);
    font-weight: 500;
}

.newsletter-form input:focus {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.1);
}

.newsletter-form button {
    padding: 1.5rem 3rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.3);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.newsletter-form button:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.4);
}

.newsletter-note {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

/* ==========================================================================
   CARRUSEL DE WEBINARS Y EVENTOS
   ========================================================================== */

.webinar-carousel-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.webinar-carousel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
}

.webinar-carousel-section .container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
}
.clickable-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clickable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    cursor: pointer;
}

.clickable-card:hover .webinar-title {
    color: #007bff; /* O el color principal de tu sitio */
}

.status-badge {
    display: inline-block;
    /* Mantén tus estilos actuales aquí */
}

/* Tarjetas de Webinar */
.webinar-card {
    flex: 0 0 calc(33.333% - 1.67rem);
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 6px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    backdrop-filter: blur(10px);
} 

.webinar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.webinar-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-light);
}

.webinar-card:hover::before {
    transform: scaleX(1);
}

/* Imagen del Webinar */
.webinar-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.webinar-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.1));
}

.webinar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.95);
}

.webinar-card:hover .webinar-image img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

/* Círculo de fecha */
.webinar-date-circle {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    text-align: center;
    box-shadow: 
        0 8px 25px rgba(0, 86, 179, 0.4),
        0 4px 15px rgba(0, 86, 179, 0.3);
    z-index: 2;
    transition: all 0.3s ease;
    border: 3px solid white;
}

.webinar-card:hover .webinar-date-circle {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 30px rgba(0, 86, 179, 0.5),
        0 6px 20px rgba(0, 86, 179, 0.4);
}

.webinar-day {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.webinar-month {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 3px;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Contenido del Webinar */
.webinar-content {
    padding: 2.5rem;
    position: relative;
}

/* Badge de tipo de evento */
.event-type-badge {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.event-type-badge::before {
    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.5s ease;
}

.event-type-badge:hover::before {
    left: 100%;
}

.event-type-badge.webinar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.event-type-badge.international {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.event-type-badge.workshop {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.event-type-badge.congress {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

/* Título del Webinar */
.webinar-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ubicación */
.webinar-location {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    background: rgba(0, 86, 179, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.webinar-location i {
    color: var(--accent-color);
    font-size: 1.6rem;
}

/* Descripción */
.webinar-description {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 2.2rem;
    line-height: 1.7;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* Información de Doctores */
.webinar-doctors {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    border-left: 4px solid var(--accent-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.webinar-doctors::before {
    content: '👥 Expertos';
    position: absolute;
    top: -10px;
    left: 1.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doctor {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    padding: 0.5rem 0;
}

.doctor:last-child {
    margin-bottom: 0;
}

.doctor-prefix {
    font-weight: 800;
    color: var(--accent-color);
    margin-right: 0.6rem;
    font-size: 1.4rem;
}

.doctor-name {
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.3px;
}

/* Status del evento */
.event-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.status-badge {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex: 1;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.status-badge:hover::before {
    left: 100%;
}

.status-badge.closed {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    cursor: not-allowed;
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.status-badge.open {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.status-badge.open:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.4);
}

.status-badge.soon {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    cursor: not-allowed;
}

.status-badge.limited {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
}

.status-badge.limited:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(230, 126, 34, 0.4);
}

/* ==========================================================================
   SECCIÓN SOBRE EL DR. OROZCO
   ========================================================================== */

.about-doctor {
    padding: 8rem 0;
    background-color: var(--white);
}

.doctor-profile {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: start;
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.doctor-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.doctor-image img {
    width: 100%;
    height: auto;
    display: block;
}

.doctor-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.doctor-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.doctor-role {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--primary-color);
    line-height: 1.4;
    border-left: 4px solid var(--accent-color);
    padding-left: 2rem;
}

.doctor-description {
    margin-bottom: 3rem;
}

.doctor-description p {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    line-height: 1.7;
    background: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-light);
}

/* ==========================================================================
   COMPONENTE FOOTER
   ========================================================================== */

.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 8rem 0 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.footer-logo span {
    font-size: 2.4rem;
    font-weight: 800;
}

.footer-section p {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 35rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    background-color: #333;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.8rem;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-section h4 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 1.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 3rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 1.4rem;
    color: #999;
}

/* ==========================================================================
   COMPONENTES ESPECIALES - POPUP NEWSLETTER
   ========================================================================== */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 0;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    animation: popupIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popupIn {
    0% { 
        opacity: 0; 
        transform: scale(0.8) translateY(-20px); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

.popup-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    color: #6c757d;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.popup-close:hover {
    background: #0056b3;
    color: white;
    transform: rotate(90deg);
}

.popup-content {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 400px;
}

.popup-image {
    background: linear-gradient(135deg, #00239C 0%, #0077C8 100%);
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

.popup-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    display: block;
}

.popup-image h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: block;
}

.popup-text {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-text h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1a1a1a;
    text-align: center;
    display: block;
}

.popup-text p {
    font-size: 1.5rem;
    color: #4a4a4a;
    margin-bottom: 2.5rem;
    text-align: center;
    line-height: 1.6;
    display: block;
}

.popup-form {
    margin-bottom: 2rem;
    display: block;
}

.popup-form .form-group {
    position: relative;
    margin-bottom: 1.5rem;
    display: block;
}

.popup-form input {
    width: 100%;
    padding: 1.5rem 1.5rem 1.5rem 4rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.4rem;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: block;
    font-family: inherit;
}

.popup-form input:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
    transform: translateY(-2px);
}

.popup-form input::placeholder {
    color: #9ca3af;
    font-size: 1.4rem;
}

.input-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.6rem;
    transition: color 0.3s ease;
    pointer-events: none;
}

.popup-form input:focus + .input-icon {
    color: #0056b3;
}

.popup-submit-btn {
    width: 100%;
    padding: 1.4rem 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #0056b3, #003d82);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

.popup-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.3);
    background: linear-gradient(135deg, #004494, #002d69);
}

.popup-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-text, .btn-loading {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.popup-note {
    font-size: 1.3rem !important;
    color: #6c757d !important;
    margin-bottom: 1.5rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-align: center;
}

.popup-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.3rem;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: none;
}

.popup-option:hover {
    color: #4a4a4a;
}

.popup-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.popup-option input[type="checkbox"]:checked + .checkmark {
    background: #0056b3;
    border-color: #0056b3;
}

.popup-option input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
}

/* ==========================================================================
   RESPONSIVE PARA POPUP
   ========================================================================== */

@media (max-width: 768px) {
    .popup-overlay {
        padding: 1rem;
    }
    
    .popup-container {
        max-width: 95%;
        margin: 0 auto;
    }
    
    .popup-content {
        min-height: 350px;
        grid-template-columns: 1fr;
    }
    
    .popup-image {
        padding: 2rem 1.5rem;
        min-height: 120px;
    }
    
    .popup-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .popup-image h3 {
        font-size: 1.8rem;
    }
    
    .popup-text {
        padding: 2rem;
    }
    
    .popup-text h3 {
        font-size: 1.8rem;
    }
    
    .popup-text p {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }
    
    .popup-form input {
        padding: 1.2rem 1.2rem 1.2rem 3.5rem;
        font-size: 1.3rem;
    }
    
    .input-icon {
        left: 1.2rem;
        font-size: 1.4rem;
    }
    
    .popup-submit-btn {
        padding: 1.2rem 1.5rem;
        font-size: 1.4rem;
    }
    
    .popup-close {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        top: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .popup-overlay {
        padding: 0.5rem;
    }
    
    .popup-container {
        max-width: 100%;
        border-radius: 16px;
    }
    
    .popup-image {
        padding: 1.5rem;
        min-height: 100px;
    }
    
    .popup-icon {
        font-size: 2.5rem;
    }
    
    .popup-image h3 {
        font-size: 1.6rem;
    }
    
    .popup-text {
        padding: 1.5rem;
    }
    
    .popup-text h3 {
        font-size: 1.6rem;
    }
    
    .popup-text p {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .popup-form input {
        padding: 1rem 1rem 1rem 3rem;
        font-size: 1.2rem;
    }
    
    .input-icon {
        left: 1rem;
        font-size: 1.3rem;
    }
    
    .popup-submit-btn {
        padding: 1rem 1.2rem;
        font-size: 1.3rem;
    }
    
    .popup-note {
        font-size: 1.2rem !important;
    }
    
    .popup-option {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   ANIMACIONES ADICIONALES PARA POPUP
   ========================================================================== */

@keyframes popupOut {
    0% { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
    100% { 
        opacity: 0; 
        transform: scale(0.8) translateY(-20px); 
    }
}

.popup-container.closing {
    animation: popupOut 0.3s ease forwards;
}

/* Efecto de pulso para el icono */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.popup-icon {
    animation: pulse 2s ease-in-out infinite;
}

/* ==========================================================================
   ESTILOS PARA ESTADOS DE FORMULARIO
   ========================================================================== */

.popup-form .form-group.error input {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.popup-form .form-group.success input {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.popup-form .form-message {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    display: none;
}

.popup-form .form-message.error {
    display: block;
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.popup-form .form-message.success {
    display: block;
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

/* Loading state mejorado */
.btn-loading .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   MEJORAS DE ACCESIBILIDAD
   ========================================================================== */

.popup-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.popup-container:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

.popup-close:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

.popup-form input:focus {
    outline: none;
}

/* Soporte para modo oscuro */
@media (prefers-color-scheme: dark) {
    .popup-container {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .popup-text h3 {
        color: #f7fafc;
    }
    
    .popup-text p {
        color: #e2e8f0;
    }
    
    .popup-form input {
        background: #4a5568;
        border-color: #718096;
        color: #f7fafc;
    }
    
    .popup-form input::placeholder {
        color: #a0aec0;
    }
    
    .popup-close {
        background: rgba(45, 55, 72, 0.9);
        color: #e2e8f0;
    }
}
/* ==========================================================================
   CARRUSEL COMPACTO CONTINUO
   ========================================================================== */

.cards-carousel-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0;
}

.carousel-track {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-card {
    flex: 0 0 220px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.carousel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #2196F3);
}

.carousel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-badge {
    background: linear-gradient(135deg, #4CAF50, #2196F3);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #2c3e50;
    line-height: 1.2;
}

.card-description {
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 12px;
    font-size: 0.8rem;
    font-weight: 400;
}

.card-episode {
    color: #4CAF50;
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-episode::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #4CAF50;
    border-radius: 50%;
    display: inline-block;
}

/* Controles compactos */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
    color: #4CAF50;
    font-size: 0.9rem;
}

.carousel-btn:hover {
    background: #4CAF50;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: -45px;
}

.carousel-btn-next {
    right: -45px;
}

/* ==========================================================================
   DISEÑO RESPONSIVE
   ========================================================================== */

/* Tablet landscape (1024px) */
@media (max-width: 1024px) {
    .floating-navbar {
        padding: 12px 25px;
        width: 92%;
    }
    
    .nav-menu {
        gap: 18px;
    }
    
    .nav-menu a {
        font-size: 0.85rem;
    }
    
    .nav-logo {
        font-size: 1.1rem;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .btn-login {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
    
    .medicine-content,
    .mesa-content,
    .doctor-profile {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .episode-card,
    .webinar-card {
        flex: 0 0 calc(50% - 1.25rem);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .medicine-text,
    .mesa-text {
        text-align: center;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}

/* Tablet portrait (768px) */
@media (max-width: 768px) {
    html {
        font-size: 55%;
        font-family: var(--font-primary);
    }
    
    .floating-navbar {
        padding: 10px 20px;
        width: 90%;
        border-radius: 15px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 50%;
        transform: translateX(-50%) translateY(-20px);
        width: 85%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-radius: 20px;
        padding: 25px;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
        flex-direction: column;
        gap: 20px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 999;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .nav-menu a {
        font-size: 1rem;
        padding: 12px 0;
        text-align: center;
        width: 100%;
        display: block;
    }
    .nav-logo span {
        font-size: 1rem;
    }
    
    .btn-login {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    body {
        padding-top: 70px;
    }
    .section-title {
        font-size: 2.8rem;
    }
    
    .platform-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .spotify-badge,
    .youtube-badge {
        width: 100%;
        justify-content: center;
    }
    
    .episode-card,
    .webinar-card {
        flex: 0 0 calc(100% - 1rem);
    }
    
    .episode-content,
    .webinar-content {
        padding: 2rem;
    }
    
    .episode-title,
    .webinar-title {
        font-size: 1.7rem;
    }
    
    .carousel-nav {
        width: 55px;
        height: 55px;
    }
    
    .carousel-nav.prev {
        margin-right: 1.5rem;
    }
    
    .carousel-nav.next {
        margin-left: 1.5rem;
    }
    
    .view-all-link {
        font-size: 1.5rem;
        padding: 1.2rem 2.5rem;
    }
    
    .doctor-profile {
        padding: 2rem;
    }
    
    .popup-overlay {
        padding: 1rem;
    }
    
    .popup-container {
        max-width: 100%;
    }
    
    .popup-text {
        padding: 2rem;
    }
    
    .popup-image {
        padding: 2rem 1.5rem;
    }
    
    .popup-text h3 {
        font-size: 2rem;
    }
    
    .popup-image h3 {
        font-size: 2rem;
    }
    
    .carousel-card {
        flex: 0 0 200px;
        padding: 15px;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .carousel-btn-prev {
        left: -35px;
    }
    
    .carousel-btn-next {
        right: -35px;
    }
}

/* Móvil grande (480px) */
@media (max-width: 480px) {
    .floating-navbar {
        padding: 8px 15px;
        width: 92%;
        border-radius: 12px;
        top: 15px;
    }
    
    .nav-logo span {
        font-size: 0.9rem;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .btn-login {
        padding: 7px 14px;
        font-size: 0.8rem;
    }
    
    .nav-menu {
        top: 65px;
        width: 90%;
        padding: 20px;
    }
    
    .nav-menu a {
        font-size: 0.95rem;
        padding: 10px 0;
    }
    
    body {
        padding-top: 65px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .doctor-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .doctor-badge {
        width: fit-content;
    }
    
    .doctor-role {
        font-size: 1.7rem;
    }
    
    .doctor-description p {
        font-size: 1.4rem;
    }
    
    .popup-text {
        padding: 1.5rem;
    }
    
    .popup-image {
        padding: 1.5rem;
    }
    
    .popup-icon {
        font-size: 3rem;
    }
    
    .popup-text h3 {
        font-size: 1.8rem;
    }
    
    .popup-form input {
        padding: 1.2rem 1.2rem 1.2rem 3.5rem;
    }
    
    .input-icon {
        left: 1.2rem;
        font-size: 1.4rem;
    }
    
    .carousel-card {
        flex: 0 0 180px;
        padding: 12px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-description {
        font-size: 0.75rem;
    }
    
    .event-status {
        flex-direction: column;
    }
    
    .status-badge {
        width: 100%;
    }
    
    .carousel-nav {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    
    .view-all-link {
        font-size: 1.3rem;
        padding: 1rem 2rem;
    }
}

/* Móvil pequeño (360px) */
@media (max-width: 360px) {
    .floating-navbar {
        padding: 6px 12px;
    }
    
    .nav-logo span {
        font-size: 0.85rem;
    }
    
    .logo-img {
        height: 25px;
    }
    
    .btn-login {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .nav-logo {
        gap: 8px;
    }
}

/* Para pantallas muy pequeñas, ocultar texto del logo */
@media (max-width: 320px) {
    .nav-logo span {
        display: none;
    }
    
    .floating-navbar {
        padding: 8px 15px;
    }
}

/* Asegurar que el navbar sea visible en dispositivos con notch */
@media (max-width: 768px) and (orientation: portrait) {
    .floating-navbar {
        top: max(15px, env(safe-area-inset-top));
    }
}

/* Mejorar visibilidad en modo oscuro */
@media (prefers-color-scheme: dark) {
    .floating-navbar {
        background: rgba(30, 30, 30, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu a {
        color: #ecf0f1;
    }
    
    .nav-logo {
        color: #ecf0f1;
    }
}

/* Mejorar accesibilidad para reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    .floating-navbar,
    .nav-menu a,
    .btn-login {
        transition: none;
    }
}