/* Reset y Variables del Sistema de Diseño */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Montserrat:wght@700;800&display=swap');

:root {
    --primary-color: #1a2a40; /* Azul Cobalto Oscuro */
    --accent-color: #00c2cb;  /* Cian / Turquesa vibrante */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --text-muted: #d1d5db;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-white);
    color: var(--primary-color);
    line-height: 1.5;
    font-size: 1rem; /* 16px */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Tipografía */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

h1.hero-title {
    font-size: 3.5rem; /* ~56px */
    line-height: 1.1;
    font-weight: 800;
}

h2.section-title {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem; /* 20px */
    line-height: 1.6;
}

/* Contenedor Base */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 50px; /* pill-shape */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--bg-white);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.btn-accent:hover {
    background-color: #00a8b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 194, 203, 0.4);
}

/* =========================================
   1. Header (Navegación Fija)
   ========================================= */
.header {
    background-color: var(--bg-white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03); /* sombra súper ligera */
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    height: 85px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

.main-nav a:hover {
    color: var(--accent-color);
}

/* =========================================
   2. Hero Section
   ========================================= */
.hero {
    padding-top: 2rem;
    padding-bottom: 5rem;
    background-color: var(--bg-white);
}

.hero-container {
    display: flex;
    align-items: flex-start; /* Alinea arriba */
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.hero-content .hero-title {
    margin-bottom: 1.5rem;
}

.hero-content .hero-subtitle {
    margin-bottom: 2rem;
    color: #4b5563; /* Gris oscuro para lectura */
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.feature-icon {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.hero-image-wrapper {
    flex: 1;
}

.hero-placeholder {
    width: 100%;
    height: 400px;
    background-color: #e5e7eb; /* gris claro */
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-weight: 600;
}

/* =========================================
   3. Sección de Módulos
   ========================================= */
.modules {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: var(--bg-light);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.module-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.module-card:hover {
    transform: translateY(-5px);
}

.module-img-placeholder {
    width: 100%;
    height: 180px;
    background-color: #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.module-card h3 {
    font-size: 1.25rem;
}

/* =========================================
   4. Sección de Testimonios
   ========================================= */
.testimonials {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: var(--bg-white);
    text-align: center;
}

.testimonials .section-title {
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.logo-placeholder {
    width: 150px;
    height: 60px;
    background-color: var(--bg-light);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 600;
}

/* =========================================
   5. Sección CTA Final y Formulario
   ========================================= */
.cta-final {
    background-color: var(--bg-light);
    padding: 4rem 0;
    text-align: center;
}

.cta-final .section-title {
    margin-bottom: 2rem;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: left;
}

.contact-form-wrapper p {
    margin-bottom: 1.5rem;
    color: #4b5563;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--primary-color);
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 194, 203, 0.1);
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

/* =========================================
   6. Footer
   ========================================= */
.footer {
    background-color: var(--primary-color);
    color: var(--text-muted);
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer h4 {
    color: var(--bg-white);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo-container img {
    filter: brightness(0) invert(1); /* Vuelve el logo blanco */
    margin-bottom: 1rem;
}

.footer-brand p {
    font-weight: 600;
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--bg-white);
    font-size: 1.25rem;
    opacity: 0.8;
}

.social-icons a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--bg-white);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

/* =========================================
   7. Pricing
   ========================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #edf2f7;
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid var(--accent-color);
    box-shadow: 0 15px 40px rgba(0, 194, 203, 0.15);
    padding: 3.5rem 2rem;
}

.featured-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent-color);
    color: var(--bg-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 1.5rem;
}

.plan-name {
    color: #718096;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.plan-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 0.5rem 0 1rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.plan-price .currency {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    margin-right: 0.2rem;
}

.plan-price .period {
    font-size: 1rem;
    color: #718096;
    font-weight: 400;
    align-self: flex-end;
    margin-bottom: 0.8rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    margin-bottom: 1rem;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li i {
    color: var(--accent-color);
    width: 20px;
}

/* Responsive básico */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
    .pricing-card.featured {
        padding: 2.5rem 2rem;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-features {
        text-align: left;
    }
    .main-nav {
        display: none; /* Idealmente menú móvil */
    }
    .modules-grid {
        grid-template-columns: 1fr 1fr;
    }
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    h1.hero-title {
        font-size: 2.2rem;
    }
    h2.section-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .modules-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .hero-features {
        grid-template-columns: 1fr;
        margin-top: 2rem;
    }
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    .logo-container img {
        height: 50px; /* Logo un poco más pequeño en móviles */
    }
    .btn-sm {
        padding: 8px 16px; /* Botón más compacto para que quepa bien */
        font-size: 0.8rem;
    }
    .hero {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .modules, .testimonials, .cta-final {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}
