/* FICON - Estilos del formulario de inscripción */

:root {
    --fm-blue: #1f5ea8;
    --fm-cyan: #6f9bc4;
    --fm-green: #5f819f;   /* azul pizarra del cartel */
    --fm-yellow: #e0b27a;  /* madera clara */
    --fm-orange: #c98a4b;  /* madera */
    --fm-red: #c0392b;     /* errores */
    --fm-pink: #e7a9b0;    /* aislamiento rosa del cartel */
    --fm-ink: #1e2a38;
}

body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--fm-ink);
    background: linear-gradient(180deg, #f5f8fb 0%, #e4eaf0 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Franja multicolor inspirada en el cartel */
.fm-stripe {
    height: 8px;
    background: linear-gradient(90deg,
        var(--fm-blue) 0 16.66%, var(--fm-orange) 16.66% 33.33%,
        var(--fm-green) 33.33% 50%, var(--fm-yellow) 50% 66.66%,
        var(--fm-pink) 66.66% 83.33%, var(--fm-cyan) 83.33% 100%);
}

.fm-header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}
.fm-header img { height: 56px; width: auto; }

.fm-banner img {
    width: 100%;
    height: clamp(200px, 40vw, 440px);
    display: block;
    object-fit: cover;
    object-position: 50% 45%;
}

.fm-section { position: relative; padding: 2.5rem 0 3rem; }

/* Formas geométricas decorativas (tejado del logotipo y colores del cartel) */
.fm-shape { position: absolute; z-index: 0; pointer-events: none; }
.fm-shape.s1 { width: 160px; height: 80px; border-radius: 160px 160px 0 0; background: var(--fm-yellow); left: -40px; top: 120px; transform: rotate(90deg); }
.fm-shape.s2 { width: 140px; height: 70px; border-radius: 0 0 140px 140px; background: var(--fm-cyan); right: -30px; top: 40px; }
.fm-shape.s3 { width: 150px; height: 100px; background: var(--fm-blue); clip-path: polygon(50% 0, 100% 100%, 0 100%); opacity: .85; right: 6%; bottom: 0; }
.fm-shape.s4 { width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, var(--fm-pink) 0 22%, transparent 22% 38%, var(--fm-pink) 38% 54%, transparent 54% 70%, var(--fm-pink) 70%); left: 5%; bottom: 30px; opacity: .9; }

.fm-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border: 0;
    border-radius: 1.25rem;
    box-shadow: 0 18px 50px rgba(29, 79, 156, .15);
    overflow: hidden;
}

.fm-title {
    font-weight: 900;
    letter-spacing: -.5px;
    line-height: 1.05;
    text-transform: uppercase;
}
.fm-title .c1 { color: var(--fm-blue); }
.fm-title .c2 { color: var(--fm-orange); }
.fm-title .c3 { color: var(--fm-green); }
.fm-title .c4 { color: var(--fm-pink); }

.fm-info {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.fm-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .85rem;
    border-radius: 50rem;
    font-weight: 700;
    font-size: .9rem;
    color: #fff;
}
.fm-chip.blue { background: var(--fm-blue); }
.fm-chip.red { background: var(--fm-orange); }
.fm-chip.green { background: var(--fm-green); }

.form-label { font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.form-label .bar {
    display: inline-block;
    width: 14px; height: 7px;
    border-radius: 14px 14px 0 0;
    margin-right: .4rem;
    vertical-align: middle;
}

.form-control {
    border: 2px solid #e1e4ea;
    border-radius: .75rem;
    padding: .8rem 1rem;
    font-size: 1rem; /* evita zoom automático en iOS */
    background-color: #fafbfc;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form-control:focus {
    border-color: var(--fm-cyan);
    background-color: #fff;
    box-shadow: 0 0 0 .25rem rgba(111, 155, 196, .3);
}
.form-control.is-valid { border-color: var(--fm-green); }
.form-control.is-invalid { border-color: var(--fm-red); }

.btn-fm {
    position: relative;
    border: 0;
    border-radius: 50rem;
    padding: .95rem 1.5rem;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(90deg, var(--fm-blue), var(--fm-green));
    box-shadow: 0 8px 20px rgba(31, 94, 168, .3);
    transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn-fm:hover, .btn-fm:focus { color: #fff; filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(31, 94, 168, .35); }
.btn-fm:active { transform: translateY(0); }
.btn-fm:disabled { opacity: .75; }

.fm-success-icon {
    width: 84px; height: 84px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    background: var(--fm-green);
    color: #fff;
    font-size: 2.6rem;
    font-weight: 900;
}

.fm-footer { font-size: .85rem; color: #6b7280; }

.fm-site-footer {
    padding: 1.5rem 0;
    background: #fff;
    color: var(--fm-ink);
    font-size: .85rem;
}
.fm-legal-links a { color: var(--fm-blue); text-underline-offset: .2em; }
.fm-legal-links a:hover { color: var(--fm-ink); }
.fm-legal-links a:focus-visible {
    outline: 2px solid var(--fm-blue);
    outline-offset: 4px;
}
.fm-credit { flex-shrink: 0; }
.fm-credit img { display: block; width: 90px; height: auto; }

/* Móviles */
@media (max-width: 575.98px) {
    .fm-header img { height: 44px; }
    .fm-banner img {
        height: 200px;
        object-position: 62% 50%;
    }
    .fm-section { padding: 0 0 2rem; }
    .fm-card {
        margin-top: -1.5rem;
        border-radius: 1.25rem 1.25rem .75rem .75rem;
    }
    .fm-title { font-size: 1.6rem; }
    .fm-chip { font-size: .8rem; padding: .35rem .7rem; }
    .fm-shape { display: none; }
    .btn-fm { width: 100%; }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .fm-shape.s1, .fm-shape.s4 { display: none; }
}

/* Pantallas grandes: banner con altura limitada */
@media (min-width: 992px) {
    .fm-banner img { height: clamp(300px, 30vw, 440px); }
}

@media (prefers-reduced-motion: reduce) {
    .btn-fm, .form-control { transition: none; }
}

/* Fecha en la cabecera */
.fm-date { color: var(--fm-blue); }

/* Colores de los marcadores de cada campo */
.bar-blue { background: var(--fm-blue); }
.bar-orange { background: var(--fm-orange); }
.bar-green { background: var(--fm-green); }
.bar-yellow { background: var(--fm-yellow); }
.bar-red { background: var(--fm-pink); }