/**
 * Archivo principal de Estilos CSS.
 * 
 * BENEFICIOS DE ESTA ARQUITECTURA (Separación de Preocupaciones):
 * 1. Mantenimiento: Separar HTML y CSS permite cambios globales de diseño desde un solo archivo.
 * 2. Rendimiento y SEO: El archivo CSS externo se guarda en caché por el navegador del usuario.
 *    Esto reduce el peso del HTML (First Byte más rápido) mejorando la velocidad de carga (LCP),
 *    lo cual es fundamental para el SEO.
 * 3. Escalabilidad: Es posible incorporar posteriormente preprocesadores (SASS/LESS) u organizar
 *    por componentes en la carpeta sin alterar el marcado HTML original.
 */

/* CSS Custom Properties */
:root {
    --primary-color: #4fa3d1;
    --dark-color: #111827;
    --dark-gray: #1F2937;
    --light-bg: #F9FAFB;
    --white: #FFFFFF;
    --text-dark: #374151;
    --text-muted: #6B7280;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark-color);
    line-height: 1.2;
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.cta-primary {
    background-color: var(--primary-color);
    color: var(--dark-color);
    box-shadow: 0 4px 6px -1px rgba(255, 176, 0, 0.4), 0 2px 4px -1px rgba(255, 176, 0, 0.2);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(255, 176, 0, 0.5), 0 4px 6px -2px rgba(255, 176, 0, 0.3);
    background-color: #fca300;
}

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

.btn-dark:hover {
    background-color: #000000;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* -----------------------------------
           HEADER SECTION
        ------------------------------------ */
.site-header {
    background-color: var(--primary-color);
    padding: 2rem 0 4rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 2rem;
}

.social-links ul {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--dark-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.header-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.header-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.header-content p {
    font-size: 1.25rem;
    color: var(--dark-gray);
    font-weight: 500;
}

/* Form Card Styling */
.form-card {
    background-color: var(--dark-color);
    padding: 1.2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    color: var(--white);
}

.form-card h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #D1D5DB;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #4B5563;
    border-radius: var(--border-radius-sm);
    background-color: #1F2937;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 163, 209, 0.3);
    /* Resplandor azul que transmite confianza */
    background-color: #263242;
    /* Cambio sutil para saber dónde se está escribiendo */
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9CA3AF;
}

/* -----------------------------------
           BODY SECTION (Learning)
        ------------------------------------ */
.learning-section {
    padding: 6rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background-color: var(--light-bg);
}

.featured-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.featured-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.learning-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.learning-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.features-list {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.feature-icon-wrapper {
    background-color: rgba(255, 176, 0, 0.2);
    color: var(--primary-color);
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
}

/* -----------------------------------
           SERVICES SECTION
        ------------------------------------ */
.services-section {
    background-color: var(--primary-color);
    padding: 4rem 0;
    text-align: center;
}

.services-section h2 {
    font-size: 2.25rem;
    margin-bottom: 3rem;
}

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

.service-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--dark-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.service-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-item p {
    font-size: 1rem;
    color: var(--dark-gray);
    font-weight: 500;
}

/* -----------------------------------
           CONTACT SECTION
        ------------------------------------ */
.contact-section {
    padding: 2rem 0;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.final-urgency {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: stretch;
    margin-bottom: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--light-bg);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid #E5E7EB;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.info-list i {
    color: var(--primary-color);
    font-size: 1.5rem;
    width: 24px;
    text-align: center;
}

.final-cta-container {
    text-align: center;
}

/* -----------------------------------
           FOOTER
        ------------------------------------ */
.site-footer {
    background-color: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #374151;
}

.site-footer p {
    color: #9CA3AF;
    font-size: 0.9rem;
}

/* -----------------------------------
           RESPONSIVE DESIGN
        ------------------------------------ */
@media (max-width: 992px) {
    .header-body {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .learning-section {
        grid-template-columns: 1fr;
    }

    .learning-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .features-list li {
        justify-content: center;
        text-align: left;
        width: fit-content;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2.25rem;
    }

    .learning-content h2,
    .final-urgency {
        font-size: 2rem;
    }

    .header-top {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF;
    box-shadow: 2px 2px 15px rgba(37, 211, 102, 0.5);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}