/* =========================
   VARIABLES CSS
========================= */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #7c3aed;
    --accent-color: #06b6d4;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --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: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.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; }
}

@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;
}

/* 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;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

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

.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), var(--secondary-color));
    color: white;
    padding: 4rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* =========================
   CARDS MODERNAS
========================= */
.card-modern {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.card-img-modern {
    width: 100%;
    height: 220px;
    object-fit: cover;
    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;
}

.card-title-modern {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.card-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.card-info .material-symbols-outlined {
    font-size: 20px;
    color: var(--primary-color);
}

.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: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge-asincrono {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.badge-capacitacion {
    background: linear-gradient(135deg, #fb9393 0%, #575af5 100%);
    color: white;
}

.btn-card {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-card:hover {
    background: var(--primary-dark);
    color: white;
    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(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

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

/* =========================
   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 MODERNO
========================= */
.footer-modern {
    background: var(--dark-bg);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-info .material-symbols-outlined {
    font-size: 20px;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

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

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

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

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

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

    .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;
}