/* =========================================================
   Quiénes Somos — FAEX
   Hoja de estilo EXCLUSIVA de quienes-somos.html (consumidor único).
   Modernización WEB-013A (2026-07-10): jerarquía, espacios, legibilidad,
   CTA y responsive 1440/390/320. No afecta otras páginas.
   ========================================================= */

/* Base */
body {
    background-color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    margin: 0;
    padding-top: 100px;
    /* altura del menú fijo */
}

main {
    max-width: 1160px;
    margin: 0 auto;
    padding: 20px 20px 40px;
    box-sizing: border-box;
}

main section {
    box-sizing: border-box;
    max-width: 100%;
}

/* ---------- Hero / encabezado principal (H1) ---------- */
.qs-hero {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(180deg, #f4f8fd 0%, #eef4fb 100%);
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 4px 14px rgba(0, 68, 148, 0.06);
}

.qs-hero h1 {
    font-size: 2.6em;
    line-height: 1.15;
    color: #004494;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.qs-hero-subtitle {
    font-size: 1.2em;
    color: #445;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ---------- Secciones tipo tarjeta ---------- */
section.about,
.mission-vision-section,
.evolution-section,
.qs-cta {
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

h2, h3 {
    color: #004494;
    margin-top: 0;
    margin-bottom: 16px;
}

/* ---------- Acerca de FAEX ---------- */
.about-container {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1 1 380px;
    min-width: 0;
    text-align: left;
}

.about-text h2 {
    color: #004494;
    font-size: 1.9em;
}

.about-lead {
    font-size: 1.15em;
    font-weight: 600;
    color: #1a237e;
    margin: 0 0 16px;
}

.about-text p {
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-image {
    flex: 1 1 300px;
    max-width: 380px;
    min-width: 0;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* ---------- Misión y Visión ---------- */
.mission-vision-section {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 24px;
    text-align: left;
}

.mission-vision {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    flex: 1 1 300px;
    min-width: 0;
    max-width: 420px;
}

.mission-vision h3 {
    border-left: 4px solid #007bff;
    padding-left: 12px;
    font-size: 1.35em;
}

.mission-vision-content p {
    line-height: 1.7;
    margin: 0;
}

.mission-vision-image {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1 1 200px;
    min-width: 0;
    max-width: 300px;
}

.mission-vision-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ---------- Evolución (antes .about-card, ahora .evolution-card) ---------- */
.evolution-card {
    background-color: #ffffff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    text-align: left;
    max-width: 920px;
    margin: 0 auto;
}

.evolution-card h3 {
    color: #004494;
    border-left: 4px solid #007bff;
    padding-left: 12px;
    font-size: 1.4em;
}

.evolution-card p {
    line-height: 1.7;
    margin-bottom: 16px;
}

.evolution-card p:last-child {
    margin-bottom: 0;
}

/* ---------- CTA hacia contacto por correo ---------- */
.qs-cta {
    text-align: center;
    background: linear-gradient(180deg, #eef4fb 0%, #e6f0fb 100%);
}

.qs-cta h2 {
    font-size: 1.7em;
    margin-bottom: 10px;
}

.qs-cta p {
    font-size: 1.1em;
    color: #445;
    margin: 0 auto 18px;
    max-width: 640px;
}

.qs-cta-btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: #004494;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    box-sizing: border-box;
    max-width: 100%;
    overflow-wrap: anywhere;
    transition: background-color 0.3s ease;
}

.qs-cta-btn:hover {
    background-color: #003371;
}

.qs-cta-alt {
    font-size: 1em !important;
    margin-top: 16px !important;
}

.qs-cta-alt a {
    color: #004494;
    font-weight: 600;
}

/* ---------- Footer (elemento <footer>) ---------- */
footer {
    background-color: #1a237e;
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    margin-top: 40px;
}

footer p {
    color: #ffffff;
    font-size: 1em;
    margin: 6px 0;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 6px;
}

footer a:hover {
    color: #e6f2ff;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .about-container,
    .mission-vision-section {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        text-align: left;
    }

    .about-image,
    .mission-vision,
    .mission-vision-image,
    .evolution-card {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    body {
        padding-top: 80px;
    }

    main {
        padding: 16px 12px 32px;
    }

    section.about,
    .mission-vision-section,
    .evolution-section,
    .qs-cta,
    .qs-hero {
        padding: 28px 16px;
    }

    .qs-hero h1 {
        font-size: 2em;
    }

    .qs-hero-subtitle,
    .about-text p,
    .qs-cta p {
        font-size: 1.05em;
    }

    .mission-vision,
    .evolution-card {
        padding: 20px 16px;
    }

    .qs-cta-btn {
        width: 100%;
    }
}
