/* Variables y Configuración Base */
:root {
    --bg-dark: #0f172a;
    --primary: #4f46e5;
    --primary-light: #818cf8;
    --accent: #10b981; /* Verde neón para conversiones */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --light-grey: #f8fafc;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.5;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Barra de navegación */
header {
    background-color: rgba(255, 255, 255, 0.9);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    backdrop-filter: blur(8px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--bg-dark);
}

.logo i {
    color: var(--primary);
    margin-right: 8px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
    display: flex;
    align-items: center; /* Centra verticalmente los iconos con el texto */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--bg-dark);
}

/* Hero Section */
.hero {
    background-color: #f5f7ff;
    padding: 140px 0 80px 0;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.badge {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 46px;
    font-weight: 700;
    color: var(--bg-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #3b31d4;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--white);
    color: var(--primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid rgba(79, 70, 229, 0.2);
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #ebeffd;
}

.hero-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Cursos Section */
.cursos {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--bg-dark);
    margin-bottom: 50px;
    font-weight: 700;
}

.section-title.white {
    color: var(--white);
}

.grid-cursos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    transition: transform 0.2s, box-shadow 0.2s;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.course-img {
    position: relative;
    height: 200px;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--primary);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.course-badge.en-tendencia {
    background-color: #f59e0b;
}

.course-body {
    padding: 24px;
}

.course-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.course-body h3 {
    font-size: 18px;
    color: var(--bg-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.course-body p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rating {
    font-size: 13px;
    color: #f59e0b;
    font-weight: 600;
    margin-bottom: 20px;
}

.rating span {
    color: var(--text-muted);
    font-weight: 400;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: var(--bg-dark);
}

.price del {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 5px;
}

.btn-enroll {
    text-decoration: none;
    background-color: var(--accent);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s;
}

.btn-enroll:hover {
    background-color: #059669;
}

/* Beneficios Section */
.beneficios-section {
    background-color: var(--bg-dark);
    padding: 80px 0;
}

.grid-beneficios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    text-align: center;
}

.benefit-item {
    color: var(--white);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(255,255,255,0.05);
    color: var(--primary-light);
    font-size: 24px;
    line-height: 60px;
    border-radius: 12px;
    margin: 0 auto 20px;
}

.benefit-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.benefit-item p {
    color: #94a3b8;
    font-size: 14px;
}

/* Testimonios */
.testimonios {
    padding: 80px 0;
}

.grid-testimonios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.testimonio-card {
    background-color: var(--light-grey);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.comment {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info h4 {
    font-size: 15px;
    color: var(--bg-dark);
}

.user-info span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Footer & WhatsApp */
footer {
    background-color: #0b111e;
    color: #64748b;
    text-align: center;
    padding: 25px 0;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.btn-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    line-height: 55px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: transform 0.2s;
}

.btn-whatsapp:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .badge {
        margin: 0 auto 20px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }
    .grid-testimonios {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 32px;
    }
    .menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        padding: 20px 0;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 12px 0;
        text-align: center;
    }


    /* Nuevos estilos para Redes Sociales */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-socials a, .nav-socials a {
    color: #94a3b8;
    font-size: 18px;
    margin-left: 15px;
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
}

.footer-socials a:hover, .nav-socials a:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* Ajuste responsive para móviles */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-socials a {
        margin: 0 10px;
    }
}
}

/* Corrección de iconos en versión Notebook/Escritorio */
.nav-links .nav-socials a {
    color: var(--text-main) !important; /* Evita que se pongan azules */
    font-size: 16px;
    padding: 5px;
    transition: color 0.2s, transform 0.2s;
}

.nav-links .nav-socials a:hover {
    color: var(--primary) !important; /* Color morado al pasar el mouse */
    transform: translateY(-2px);
}

/* Separación extra solo para los iconos en el menú superior */
.nav-links .nav-socials {
    margin-left: 15px; 
}


/* SOLUCIÓN DEFINITIVA PARA EL FOOTER (Notebook y Escritorio) */
footer .footer-content {
    display: flex !important;
    flex-direction: row !important; /* Los pone uno al lado del otro */
    justify-content: space-between !important; /* Texto a la izquierda, iconos a la derecha */
    align-items: center !important; /* Los centra verticalmente */
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilo para los iconos del footer */
footer .footer-socials {
    display: flex !important;
    gap: 20px !important; /* Separa los iconos entre sí para que no estén amontonados */
}

footer .footer-socials a {
    color: #94a3b8 !important; /* Gris claro elegante que combina con el fondo oscuro */
    font-size: 20px !important; /* Tamaño ideal para que se vean bien */
    text-decoration: none !important;
    transition: color 0.2s, transform 0.2s;
}

/* Efecto al pasar el mouse por encima */
footer .footer-socials a:hover {
    color: #818cf8 !important; /* Se vuelven morado claro al pasar el mouse */
    transform: translateY(-3px);
}

/* Ajuste automático para celulares (Responsive) */
@media (max-width: 768px) {
    footer .footer-content {
        flex-direction: column !important; /* En celular se apilan uno abajo del otro */
        gap: 15px !important;
        text-align: center;
    }
    footer .footer-socials {
        justify-content: center !important;
    }
}


#buy-now {
    position: fixed;
    bottom: 30px;      /* Distancia desde el borde inferior de la pantalla */
    left: 50%;         /* Lo posiciona al centro horizontalmente */
    transform: translateX(-50%); /* Centrado perfecto según su propio ancho */
    z-index: 10000;
}

#buy-now a {
    color: #ffffff;
    background: #007bff; /* Azul llamativo (puedes usar #1e70e6 o el que prefieras) */
    display: inline-block;
    font-size: 18px;     /* Texto más grande */
    font-weight: bold;
    padding: 15px 30px;  /* Más relleno para hacerlo más robusto */
    text-align: center;
    white-space: nowrap; /* Evita que el texto se parta en dos líneas */
    line-height: 1em;
    text-decoration: none;
    animation: shadow-pulse-blue 1.5s infinite; /* Animación suavizada con azul */
    border-radius: 50px; /* Bordes bien redondeados modernos */
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4); /* Sombra suave azul base */
    transition: background 0.3s ease, transform 0.2s ease;
}

/* Efecto al pasar el mouse por encima (Hover) */
#buy-now a:hover {
    background: #0056b3; /* Azul un poco más oscuro al hacer hover */
    transform: scale(1.05); /* Se agranda un toque al pasar el mouse */
}

#buy-now a img {
    width: 64px;
    margin-left: 3px;
}