/* ═══════════════════════════════════════════════════════════════
 * /formacion — estilos
 * Archivo: public/assets/css/formacion.css
 *
 * Patrón consistente con .ns-* (nosotros). Mismas variables,
 * misma paleta, misma estructura.
 *
 * Solo contiene estilos para las secciones implementadas hoy:
 *   • Hero
 *   • Intro
 *
 * Cuando se agreguen más secciones (diagnóstico del catálogo,
 * conceptos, matemáticas, casos de uso, cierre), agregar aquí
 * los estilos correspondientes.
 * ═══════════════════════════════════════════════════════════════ */

.page-formacion {
    color: #2c2c2a;
    line-height: 1.65;
}

/* ─────────────────── Pretitulos y headers ──────────────────── */
.fm-pretitulo {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #1C579D;
    margin-bottom: 0.7rem;
}
.fm-pretitulo--light { color: #B5D4F4; }

.fm-section-titulo {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #042C53;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.fm-section-header {
    margin-bottom: 3rem;
}

.fm-section {
    padding: 4.5rem 0;
}

.fm-text-lg {
    font-size: 1.05rem;
    color: #2c2c2a;
    margin-bottom: 1.4rem;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* ─────────────────── Hero ──────────────────────────────────── */
.fm-hero {
    background: linear-gradient(135deg, #042C53 0%, #1C579D 100%);
    color: #ffffff;
    padding: 5rem 0 4.5rem;
    text-align: center;
}
.fm-hero-titulo {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: #ffffff;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}
.fm-hero-descripcion {
    font-size: 1.1rem;
    color: #d6e4f3;
    max-width: 820px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* ─────────────────── Intro ─────────────────────────────────── */
.fm-intro-content {
    max-width: 820px;
    margin: 0 auto;
}
/* ─────────────────── Variantes de sección y header ──────────── */
.fm-section--alt {
    background-color: #f8f7f2;
}
 
.fm-section-intro {
    font-size: 1.05rem;
    color: #444441;
    max-width: 760px;
    margin: 0 auto 2.5rem;
    text-align: center;
}
 
.fm-pretitulo--light {
    color: #B5D4F4;
}
 
/* ─────────────────── Bonus: NO ES / SÍ ES ──────────────────── */
.fm-bonus-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.8rem 2rem;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border-top: 5px solid #B4B2A9;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fm-bonus-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
 
.fm-bonus-card-header {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E8E6DD;
}
 
.fm-bonus-card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #042C53;
    margin: 0;
}
 
.fm-bonus-icon {
    font-size: 2rem;
    flex-shrink: 0;
}
 
.fm-bonus-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
 
.fm-bonus-list li {
    padding: 0.55rem 0 0.55rem 1.5rem;
    position: relative;
    font-size: 0.98rem;
    color: #2c2c2a;
    line-height: 1.55;
    border-bottom: 1px dashed #E8E6DD;
}
.fm-bonus-list li:last-child {
    border-bottom: none;
}
.fm-bonus-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
 
/* Variante NO ES — rojo */
.fm-bonus-card--no { border-top-color: #E10713; }
.fm-bonus-card--no .fm-bonus-icon { color: #E10713; }
.fm-bonus-card--no .fm-bonus-list li::before { background-color: #E10713; }
 
/* Variante SÍ ES — verde */
.fm-bonus-card--si { border-top-color: #0D9D31; }
.fm-bonus-card--si .fm-bonus-icon { color: #0D9D31; }
.fm-bonus-card--si .fm-bonus-list li::before { background-color: #0D9D31; }
 
/* ─────────────────── Definiciones formales ─────────────────── */
.fm-def-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.8rem 2rem;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border-left: 4px solid #1C579D;
}
 
.fm-def-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E8E6DD;
}
 
.fm-def-icon {
    font-size: 2rem;
    color: #1C579D;
    flex-shrink: 0;
}
 
.fm-def-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #042C53;
    margin: 0 0 0.3rem;
}
 
.fm-def-fuente {
    display: block;
    font-size: 0.82rem;
    color: #5F5E5A;
    font-style: italic;
    line-height: 1.4;
}
 
.fm-def-quote {
    margin: 0;
    padding: 0;
    font-size: 0.98rem;
    color: #2c2c2a;
    line-height: 1.7;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    font-style: italic;
    color: #444441;
    quotes: "«" "»";
}
.fm-def-quote::before {
    content: open-quote;
    font-size: 1.4rem;
    color: #1C579D;
    margin-right: 0.2rem;
    vertical-align: -0.15rem;
}
.fm-def-quote::after {
    content: close-quote;
    font-size: 1.4rem;
    color: #1C579D;
    margin-left: 0.2rem;
    vertical-align: -0.15rem;
}
 
/* ─────────────────── CTA a SLCINGE ─────────────────────────── */
.fm-cta {
    background-color: #f8f7f2;
}
 
.fm-cta-box {
    background: linear-gradient(135deg, #042C53 0%, #1C579D 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 3.5rem 3rem;
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(4, 44, 83, 0.15);
}
 
.fm-cta-box h2 {
    color: #ffffff;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 700;
    margin: 0 0 1rem;
}
 
.fm-cta-box p {
    color: #d6e4f3;
    font-size: 1.05rem;
    margin: 0 auto 2rem;
    max-width: 700px;
    line-height: 1.65;
    text-align: left;
}
 
.fm-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.9rem;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    background-color: #ffffff;
    color: #042C53;
    border: 2px solid #ffffff;
    transition: all 0.2s ease;
}
.fm-cta-btn:hover {
    background-color: #d6e4f3;
    border-color: #d6e4f3;
    color: #042C53;
}
.fm-cta-btn .material-symbols-rounded {
    font-size: 1.15rem;
}
 
@media (max-width: 600px) {
    .fm-cta-box { padding: 2.5rem 1.5rem; }
    .fm-cta-box p { text-align: justify; hyphens: auto; }
    .fm-cta-btn { width: 100%; justify-content: center; }
}
