/* =========================
   VARIABLES CSS
========================= */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #7c3aed;
    --accent-color: #06b6d4;
    --dark-bg: #0f172a;
    --light-bg: #f3f4f8;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* =========================
   FUENTE GENERAL
========================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}


/* =========================
   NAVBAR PREMIUM
========================= */
.navbar-premium {
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    backdrop-filter: blur(20px);
    padding: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(37, 99, 235, 0.08);
}

.navbar-premium.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), 0 2px 10px rgba(0, 0, 0, 0.05);
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.navbar-premium .container {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    transition: padding 0.4s ease;
}

.navbar-premium.scrolled .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Logo Premium */
.navbar-brand-premium {
    position: relative;
    padding: 0;
    transition: transform 0.3s ease;
}

.navbar-brand-premium:hover {
    transform: translateY(-2px);
}

.logo-container {
    position: relative;
    display: flex;
    align-items: center;
}

.logo-container::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(10px);
}

.navbar-brand-premium:hover .logo-container::before {
    opacity: 0.15;
}

.logo-navbar {
    max-height: 60px;
    width: auto;
    transition: all 0.4s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.navbar-premium.scrolled .logo-navbar {
    max-height: 50px;
}

/* Toggler Premium */
.navbar-toggler-premium {
    border: none;
    padding: 0.5rem;
    background: transparent;
    cursor: pointer;
    position: relative;
    width: 40px;
    height: 40px;
    display: none; /* Oculto por defecto en desktop */
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
}

/* Mostrar toggler solo en móvil */
@media (max-width: 992px) {
    .navbar-toggler-premium {
        display: flex;
    }
}

.navbar-toggler-premium:hover {
    background: rgba(37, 99, 235, 0.05);
    border-radius: 8px;
}

.navbar-toggler-premium:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    border-radius: 8px;
}

.toggler-line {
    display: block;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.navbar-toggler-premium:hover .toggler-line:nth-child(1) {
    width: 20px;
}

.navbar-toggler-premium:hover .toggler-line:nth-child(3) {
    width: 20px;
}

/* Navigation Premium */
.navbar-nav-premium {
    display: flex;
    gap: 0.3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item-premium {
    position: relative;
}

.nav-link-premium {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.nav-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon {
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Efecto hover en iconos */
.nav-icon-wrapper::before {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.nav-link-premium:hover .nav-icon-wrapper::before {
    opacity: 0.1;
    transform: scale(1);
}

.nav-link-premium:hover .nav-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--primary-color);
}

.nav-text {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Línea de highlight inferior */
.nav-highlight {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px 2px 0 0;
    transition: width 0.3s ease;
}

.nav-link-premium:hover {
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary-color);
}

.nav-link-premium:hover .nav-highlight {
    width: 70%;
}

/* Estado activo */
.nav-link-premium.active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link-premium.active .nav-highlight {
    width: 70%;
}

.nav-link-premium.active .nav-icon {
    color: var(--primary-color);
}

/* Botón CTA Premium (Pagos) */
.nav-link-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white !important;
    padding: 0.75rem 1.5rem;
    margin-left: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
}

.nav-link-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link-cta:hover::before {
    opacity: 1;
}

.nav-link-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
    color: white !important;
}

.nav-link-cta .nav-icon,
.nav-link-cta .nav-text {
    position: relative;
    z-index: 1;
    color: white !important;
}

.nav-link-cta:hover .nav-icon {
    color: white !important;
    transform: scale(1.15);
}

.nav-link-cta .nav-highlight {
    display: none;
}

/* Efecto de brillo en CTA */
.cta-shine {
    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;
}

.nav-link-cta:hover .cta-shine {
    left: 100%;
}

/* Responsive Premium */
@media (max-width: 992px) {
    .navbar-collapse {
        background: white;
        padding: 1.5rem;
        border-radius: 16px;
        margin-top: 1rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(37, 99, 235, 0.1);
    }
    
    .navbar-nav-premium {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nav-item-premium {
        width: 100%;
    }
    
    .nav-link-premium {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem 1.2rem;
    }
    
    .nav-link-cta {
        margin-left: 0;
        margin-top: 0.5rem;
        justify-content: center;
    }
    
    .nav-highlight {
        bottom: auto;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 0;
        border-radius: 0 2px 2px 0;
    }
    
    .nav-link-premium:hover .nav-highlight {
        height: 60%;
        width: 3px;
    }
}

/* Animación de entrada del menú móvil */
@media (max-width: 992px) {
    .navbar-collapse.show {
        animation: slideDownFade 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .navbar-collapse.collapsing {
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Desktop only */
@media (min-width: 993px) {
    .nav-text {
        display: inline;
    }
    
    /* Efecto de onda en hover */
    .nav-link-premium::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at center, rgba(37, 99, 235, 0.1), transparent 70%);
        opacity: 0;
        transform: scale(0);
        transition: all 0.5s ease;
        border-radius: 10px;
    }
    
    .nav-link-premium:hover::before {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animación para items del menú */
@media (min-width: 993px) {
    .nav-item-premium {
        animation: fadeInNav 0.5s ease backwards;
    }
    
    .nav-item-premium:nth-child(1) { animation-delay: 0.1s; }
    .nav-item-premium:nth-child(2) { animation-delay: 0.2s; }
    .nav-item-premium:nth-child(3) { animation-delay: 0.3s; }
    .nav-item-premium:nth-child(4) { animation-delay: 0.4s; }
    .nav-item-premium:nth-child(5) { animation-delay: 0.5s; }
    .nav-item-premium:nth-child(6) { animation-delay: 0.6s; }
    .nav-item-premium:nth-child(7) { animation-delay: 0.7s; }
}

@keyframes fadeInNav {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejora de accesibilidad */
.nav-link-premium:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: 2px;
}

/* Dropdown Menu */
.nav-item-premium {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

.nav-item-premium:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-dropdown-item:hover {
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary-color);
}

.nav-dropdown-item .material-symbols-outlined {
    font-size: 20px;
    color: var(--primary-color);
}

/* Print styles */
@media print {
    .navbar-premium {
        box-shadow: none;
        border-bottom: 1px solid #ddd;
    }
}
/* =========================
   HERO BANNER
========================= */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    color: white;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.4s backwards;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 0.9rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
}

.btn-hero-primary {
    background: white;
    color: var(--primary-color);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-hero-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
                      radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-section {
        height: 65vh;
        min-height: 450px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .btn-hero {
        width: 100%;
        max-width: 280px;
        padding: 0.8rem 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }
}

@media (min-width: 1400px) {
    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }
}

/* =========================
   SECCIONES MODERNAS
========================= */
.section-modern {
    padding: 5rem 0;
}

/* Sección carrusel de cursos */
.section-cursos-carousel {
    padding: 3rem 0;
}

.section-cursos-carousel .section-title {
    margin-bottom: 0.5rem;
}

.section-cursos-carousel .section-subtitle {
    margin-bottom: 2rem;
}

.cursos-carousel .item {
    padding: 0.5rem 0;
    height: 100%;
}

.cursos-carousel .owl-stage {
    display: flex;
}

.cursos-carousel .owl-item {
    display: flex;
}

.cursos-carousel .item .card-modern {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cursos-carousel .item .card-body-modern {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cursos-carousel .item .btn-card {
    margin-top: auto;
}

/* Flechas de navegación del carrusel */
.cursos-carousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0;
    margin: 0;
}

.cursos-carousel .owl-nav button.owl-prev,
.cursos-carousel .owl-nav button.owl-next {
    pointer-events: all;
    width: 44px;
    height: 44px;
    background: white !important;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    position: absolute;
}

.cursos-carousel .owl-nav button.owl-prev {
    left: -22px;
}

.cursos-carousel .owl-nav button.owl-next {
    right: -22px;
}

.cursos-carousel .owl-nav button:hover {
    background: var(--primary-color) !important;
    transform: scale(1.1);
}

.cursos-carousel .owl-nav button .material-symbols-outlined {
    font-size: 24px;
    color: var(--primary-color);
    line-height: 1;
}

.cursos-carousel .owl-nav button:hover .material-symbols-outlined {
    color: white;
}

/* Dots del carrusel */
.cursos-carousel .owl-dots {
    margin-top: 1.5rem;
    text-align: center;
}

.cursos-carousel .owl-dot span {
    width: 10px;
    height: 10px;
    background: #d0d0d0;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cursos-carousel .owl-dot.active span {
    background: var(--primary-color);
    width: 24px;
    border-radius: 5px;
}

/* Botón ver todos mejorado */
.section-cursos-carousel .text-center-btn {
    margin-top: 2rem;
    text-align: center;
}

.section-cursos-carousel .btn-hero-primary {
    background: linear-gradient(135deg, #1a1a4e, #8b3a8f);
    color: white;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 26, 78, 0.2);
}

.section-cursos-carousel .btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 26, 78, 0.35);
}

@media (max-width: 768px) {
    .cursos-carousel .owl-nav button.owl-prev {
        left: -10px;
    }
    .cursos-carousel .owl-nav button.owl-next {
        right: -10px;
    }
    .cursos-carousel .owl-nav button.owl-prev,
    .cursos-carousel .owl-nav button.owl-next {
        width: 36px;
        height: 36px;
    }
    .cursos-carousel .owl-nav button .material-symbols-outlined {
        font-size: 20px;
    }
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Separador entre secciones */
.section-modern,
.section-cursos-carousel,
.section-ia {
    border-top: 3px solid rgba(0, 0, 0, 0.06);
}

.section-bg-light {
    background-color: var(--light-bg);
}

.section-clientes {
    background: #ffffff;
}

.section-bg-white {
    background-color: #ffffff;
}

.section-bg-gradient {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* =========================
   STATS SECTION
========================= */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.5rem 0;
}

.stat-card {
    text-align: center;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon .material-symbols-outlined {
    font-size: 22px;
    color: #ffffff;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.85;
    font-weight: 500;
}

.stat-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* =========================
   SECCIÓN INTELIGENCIA ARTIFICIAL
========================= */
.section-ia {
    padding: 3rem 0;
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.section-ia::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: auto;
    aspect-ratio: 1;
    background: url('/img/iabg.svg') no-repeat bottom left;
    background-size: contain;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.section-ia .container {
    position: relative;
    z-index: 1;
}

.ia-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ia-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.ia-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

.ia-block {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef0f5;
}

.ia-block-scroll {
    display: flex;
    flex-direction: column;
}

.ia-block-scroll .ia-list {
    overflow-y: auto;
    max-height: 550px;
    padding-right: 0.5rem;
}

.ia-block-scroll .ia-list::-webkit-scrollbar {
    width: 4px;
}

.ia-block-scroll .ia-list::-webkit-scrollbar-track {
    background: #f5f5f8;
    border-radius: 4px;
}

.ia-block-scroll .ia-list::-webkit-scrollbar-thumb {
    background: #c5c5d5;
    border-radius: 4px;
}

.ia-block-scroll .ia-list::-webkit-scrollbar-thumb:hover {
    background: #8b3a8f;
}

.ia-block-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eef0f5;
}

.ia-block-title-lg {
    font-size: 1.3rem;
}

.ia-block-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Lista de cursos IA */
.ia-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ia-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f5f5f8;
    gap: 0.75rem;
}

.ia-list-item:last-child {
    border-bottom: none;
}

.ia-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ia-list-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.88rem;
    line-height: 1.3;
}

.ia-list-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.ia-list-date .material-symbols-outlined {
    font-size: 14px;
    color: var(--text-secondary);
}

.ia-list-btn {
    white-space: nowrap;
    padding: 0.3rem 0.85rem;
    background: linear-gradient(135deg, #1a1a4e, #8b3a8f);
    color: white;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ia-list-btn:hover {
    box-shadow: 0 3px 10px rgba(139, 58, 143, 0.3);
    color: white;
}

/* Cards de servicio IA - usa card-modern estándar */

@media (max-width: 768px) {
    .section-ia {
        padding: 2rem 0;
    }

    .ia-title {
        font-size: 1.5rem;
    }

    .ia-block {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }

    .ia-list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .ia-list-btn {
        margin-top: 0.4rem;
    }
}

/* =========================
   HERO BANNER CAROUSEL
========================= */
.hero-banner-section {
    width: 100%;
    background: #000;
    padding: 0;
    margin: 0;
    position: relative;
}

.hero-banner-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-banner-slide {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease-in-out;
}

.hero-banner-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-banner-link {
    display: block;
    width: 100%;
    overflow: hidden;
}

.hero-banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Indicadores */
.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.banner-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.banner-indicator.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Controles de navegación */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.banner-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

.banner-nav .material-symbols-outlined {
    font-size: 32px;
}

@media (max-width: 768px) {
    .banner-nav {
        width: 40px;
        height: 40px;
    }
    
    .banner-nav .material-symbols-outlined {
        font-size: 24px;
    }
    
    .banner-prev {
        left: 10px;
    }
    
    .banner-next {
        right: 10px;
    }
    
    .banner-indicators {
        bottom: 10px;
    }
    
    .banner-indicator {
        width: 8px;
        height: 8px;
    }
    
    .banner-indicator.active {
        width: 20px;
    }
}

/* =========================
   CARDS MODERNAS
========================= */
.card-modern {
    background: linear-gradient(135deg, #1a1a4e 0%, #8b3a8f 100%);
    color: white;
    position: relative;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/img/curso/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    pointer-events: none;
    border-radius: 16px;
    z-index: 1;
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.card-modern a {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: visible;
    background: transparent;
    border-radius: 16px 16px 0 0;
    z-index: 2;
}

.card-img-modern {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-mask-image: url('/img/curso/mk.png');
    mask-image: url('/img/curso/mk.png');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: transform 0.3s ease;
}

.card-modern:hover .card-img-modern {
    transform: scale(1.05);
}

.card-body-modern {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-top: none;
    position: relative;
    z-index: 2;
}

.card-title-modern {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.card-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
}

.card-info .material-symbols-outlined {
    font-size: 20px;
    color: #ffd700;
}

.badge-modalidad {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: auto;
    margin-bottom: 1rem;
}

.badge-envivo {
    background: #764ba2;
    color: white;
}

.badge-asincrono {
    background: #8b3a8f;
    color: white;
}

.badge-capacitacion {
    background: #9b4a9f;
    color: white;
}

.btn-card {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: white;
    color: #1a1a4e;
    text-decoration: none;
    border-radius: 50px !important;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    aspect-ratio: unset;
    width: auto;
    height: auto;
}

.btn-card:hover {
    background: #ffd700;
    color: #1a1a4e;
    transform: translateX(5px);
}

/* =========================
   CARRUSEL DE BANNERS
========================= */
.full-width-carousel .item {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.full-width-carousel .item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center center;
    display: block;
}

@media (max-width: 768px) {
    .full-width-carousel .item img {
        height: 200px;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .full-width-carousel .item img {
        height: 300px;
    }
}

@media (min-width: 992px) {
    .full-width-carousel .item img {
        height: 400px;
    }
}

/* =========================
   CLIENTES
========================= */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
    padding: 2rem 0;
}

.client-logo {
    width: 100%;
    height: 80px;
    object-fit: contain;
    filter: grayscale(0%) contrast(1.2);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%) contrast(1.4);
    opacity: 1;
    transform: scale(1.05);
}

/* =========================
   WHATSAPP FLOAT
========================= */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

/* Footer styles are now inline in includes/footer.php */

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-modern {
        padding: 3rem 0;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-card {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .stat-icon {
        width: 35px;
        height: 35px;
    }

    .stat-icon .material-symbols-outlined {
        font-size: 18px;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .hero-section {
        height: 60vh;
        min-height: 400px;
    }
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1320px;
    }
}

/* =========================
   UTILIDADES
========================= */
.text-center-btn {
    text-align: center;
    margin-top: 3rem;
}