/* VARIABLES y RESET BÁSICO */
:root {
    --primary-color: #007BFF; /* Azul profesional y confiable */
    --secondary-color: #343A40; /* Gris oscuro para texto */
    --accent-color: #28A745; /* Verde para CTAs de impacto */
    --background-light: #F8F9FA;
    --background-dark: #212529;
    --font-family: 'Montserrat', sans-serif;
    --max-width: 1200px;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 0;
}

h2, h3 {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
}

/* --- ESTILOS DE BOTONES (CTAs) --- */
.cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-align: center;
}

.primary-cta {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}
.primary-cta:hover {
    background-color: #0056b3;
}

.secondary-cta {
    background-color: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
}
.secondary-cta:hover {
    background-color: #1e7e34;
}

/* --- CABECERA Y NAVEGACIÓN --- */
.header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav a {
    text-decoration: none;
    color: var(--secondary-color);
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s;
}

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

.cta-nav {
    padding: 8px 15px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    color: var(--primary-color) !important;
}

/* --- SECCIÓN HERO --- */
.hero {
    background: var(--background-dark); /* Fondo oscuro profesional */
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: white;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #CED4DA;
}

/* --- SECCIÓN SERVICIOS --- */
.servicios {
    text-align: center;
    padding: 60px 0;
    background-color: var(--background-light);
}

.servicios h3 {
    font-size: 2rem;
}

.servicio-cards {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex: 1;
    max-width: 350px;
    transition: transform 0.3s;
    border-top: 4px solid var(--primary-color);
}

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

.card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* --- SECCIÓN CTA MEDIA --- */
.cta-mid {
    background: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta-mid p {
    font-size: 1.4rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* --- SECCIÓN ESPECIALIZACIÓN --- */
.especializacion {
    padding: 60px 0;
    text-align: center;
}

.value-proposition {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 40px;
}

.feature {
    flex: 1;
    padding: 20px;
    text-align: left;
    border-left: 3px solid var(--primary-color);
}

.feature h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

/* --- SECCIÓN CONTACTO Y FORMULARIO --- */
.contacto {
    background-color: var(--background-light);
    padding: 80px 0;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 30px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #CED4DA;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

/* --- PIE DE PÁGINA --- */
footer {
    background-color: var(--background-dark);
    color: white;
    padding: 20px 0;
    font-size: 0.9rem;
}

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

.social-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 10px;
}
.social-links a:hover {
    text-decoration: underline;
}

/* ================================== */
/* RESPONSIVIDAD MÓVIL       */
/* ================================== */
@media (max-width: 992px) {
    .servicio-cards {
        flex-direction: column;
    }
    .card {
        max-width: 100%;
    }
    .value-proposition {
        flex-direction: column;
        text-align: center;
    }
    .feature {
        border-left: none;
        border-bottom: 3px solid var(--primary-color);
        padding-bottom: 15px;
    }
}

@media (max-width: 768px) {
    /* Ocultar navegación en móvil para simplificar (se usaría un menú hamburguesa en una web completa) */
    .header .nav {
        display: none;
    }
    .header .container {
        justify-content: center; /* Centrar el logo cuando no hay nav */
    }

    .hero h2 {
        font-size: 2rem;
    }
    .hero {
        padding: 80px 0;
    }

    /* Ajuste de padding en general */
    .container {
        padding: 15px 0;
    }
}
