/* =============================================================================
   ACTIVIDADES · FICHA PÚBLICA CON LA ESTÉTICA DEL ESCAPARATE (prefijo afv_)
   includes/actividad_ficha_v2.php. Todo bajo html.afv: la ficha clásica no
   carga esta hoja. Viste la página y también los avisos (bootbox) y los modales
   del flujo de inscripción (DNI, contraseña, preguntas y ficheros, lista de
   espera, pago), que siguen siendo los mismos. --afv-acento lo pone la página
   con el color elegido en «Tu página pública».
   ========================================================================== */

@font-face { font-family: 'AfvSyne'; src: url('fonts/syne/Syne-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'AfvSyne'; src: url('fonts/syne/Syne-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'AfvSyne'; src: url('fonts/syne/Syne-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

html.afv {
    --afv-acento: #2563eb;
    --afv-acento-suave: rgba(37, 99, 235, .12);
    --afv-acento-suave: color-mix(in srgb, var(--afv-acento) 12%, transparent);
    --afv-acento-oscuro: color-mix(in srgb, var(--afv-acento) 72%, #000);
    --afv-fondo: #f5f6fa;
    --afv-tarjeta: #fff;
    --afv-texto: #0f172a;
    --afv-suave: #64748b;
    --afv-borde: rgba(15, 23, 42, .09);
    --afv-sombra: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 20px rgba(15, 23, 42, .07);
    --afv-sombra-alta: 0 2px 6px rgba(15, 23, 42, .08), 0 18px 44px rgba(15, 23, 42, .16);
    --afv-abierta: #12b76a;
    --afv-pronto: #f59e0b;
    --afv-cerrada: #94a3b8;
    --afv-titulos: 'AfvSyne', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --afv-letra: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--afv-fondo);
}
html.afv body {
    margin: 0;
    background: var(--afv-fondo) !important;
    color: var(--afv-texto);
    font-family: var(--afv-letra);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
html.afv *, html.afv *::before, html.afv *::after { box-sizing: border-box; }
.afv-pagina { min-height: 100vh; padding-bottom: 90px; }
.afv-pagina a { text-decoration: none; }
/* La hoja general de miSquad flota títulos y párrafos: aquí no */
html.afv .afv-pagina h1, html.afv .afv-pagina h2, html.afv .afv-pagina h3, html.afv .afv-pagina p, html.afv .afv-pagina ul, html.afv .afv-pagina ol, html.afv .afv-pagina dl { float: none; width: auto; }
.afv-pagina svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Barra superior ---------- */
.afv-barra { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--afv-borde); }
.afv-barra__dentro { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.afv-volver, .afv-privada { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px; color: var(--afv-texto) !important; font-family: var(--afv-titulos); font-weight: 700; font-size: 13px; white-space: nowrap; transition: background .2s; }
.afv-volver { background: var(--afv-acento-suave); color: var(--afv-acento) !important; }
.afv-volver:hover { background: var(--afv-acento); color: #fff !important; }
.afv-privada:hover { background: var(--afv-fondo); }
.afv-dueno { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.afv-escudo { position: relative; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--afv-borde); display: grid; place-items: center; overflow: hidden; font-family: var(--afv-titulos); font-weight: 800; font-size: 12px; color: var(--afv-acento); }
.afv-escudo img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: contain; background: #fff; }
.afv-dueno__nombre { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--afv-titulos); font-weight: 700; font-size: 13px; }
@media (max-width: 599px) {
    .afv-volver span, .afv-privada span { display: none; }
    .afv-volver, .afv-privada { width: 38px; padding: 0; justify-content: center; }
}

/* ---------- Aviso de la vuelta del pago ---------- */
.afv-aviso { max-width: 1180px; margin: 14px auto 0; padding: 0 16px; }
.afv-aviso__caja { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; }
.afv-aviso.is-ok .afv-aviso__caja { background: #ecfdf3; box-shadow: inset 0 0 0 1px #abefc6; color: #067647; }
.afv-aviso.is-ko .afv-aviso__caja { background: #fef3f2; box-shadow: inset 0 0 0 1px #fecdca; color: #b42318; }
.afv-aviso svg { width: 24px !important; height: 24px !important; }
.afv-aviso__caja > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.afv-aviso strong { font-family: var(--afv-titulos); font-size: 15px; }
.afv-aviso span { font-size: 14px; color: var(--afv-texto); }

/* ---------- Cabecera con el banner ---------- */
.afv-hero { position: relative; overflow: hidden; color: #fff; background: #0f172a; isolation: isolate; }
.afv-hero__fondo { position: absolute; inset: -40px; z-index: -2; background-size: cover; background-position: center; filter: blur(30px) saturate(1.3); transform: scale(1.1); opacity: .9; }
.afv-hero__fondo--ph { inset: 0; filter: none; transform: none; opacity: 1; background: radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .25), transparent 55%), linear-gradient(135deg, var(--afv-acento) 0%, var(--afv-acento-oscuro) 100%); }
.afv-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 10, 25, .78) 0%, rgba(5, 10, 25, .5) 65%, rgba(5, 10, 25, .3) 100%); }
.afv-hero__dentro { max-width: 1180px; margin: 0 auto; padding: 22px 16px 26px; display: flex; gap: 16px; align-items: flex-start; }
.afv-media { position: relative; overflow: hidden; background: rgba(255, 255, 255, .1); }
.afv-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.afv-poster { flex: 0 0 auto; width: 108px; aspect-ratio: 1 / 2; border-radius: 16px; box-shadow: 0 18px 44px rgba(0, 0, 0, .45); }
.afv-ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 10px; text-align: center; color: #fff; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .22), transparent 60%), linear-gradient(150deg, hsl(var(--h, 220) 78% 58%) 0%, hsl(calc(var(--h, 220) + 38) 70% 38%) 100%); }
.afv-ph__ini { font-family: var(--afv-titulos); font-weight: 800; font-size: 34px; line-height: 1; }
.afv-ph__grupo { font-family: var(--afv-titulos); font-weight: 700; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.afv-hero__txt { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.afv-sobre { font-family: var(--afv-titulos); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.afv-titulo { margin: 0; font-family: var(--afv-titulos); font-weight: 800; font-size: clamp(18px, 5vw, 46px); line-height: 1.08; letter-spacing: -.01em; color: #fff; overflow-wrap: break-word; }
@media (max-width: 599px) { .afv-poster { width: 80px; border-radius: 14px; } .afv-hero__dentro { gap: 14px; } .afv-ph__ini { font-size: 28px; } }
.afv-sub { margin: 0; max-width: 620px; font-size: 14px; opacity: .85; }
.afv-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.afv-etq { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #0f172a; font-family: var(--afv-titulos); font-weight: 700; font-size: 11.5px; white-space: nowrap; }
.afv-etq::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--afv-cerrada); }
.afv-etq--abierta::before { background: var(--afv-abierta); box-shadow: 0 0 0 3px rgba(18, 183, 106, .22); }
.afv-etq--pronto::before { background: var(--afv-pronto); }
.afv-precio { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-family: var(--afv-titulos); font-weight: 800; font-size: 13px; white-space: nowrap; }
.afv-precio.is-gratis { background: var(--afv-abierta); }
.afv-plazas { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; white-space: nowrap; }
.afv-plazas svg { width: 15px !important; height: 15px !important; }
.afv-hero .afv-plazas { color: rgba(255, 255, 255, .88); }
.afv-meta { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: rgba(255, 255, 255, .88); }
.afv-meta li { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.afv-meta svg { margin-top: 2px; width: 16px !important; height: 16px !important; }
@media (min-width: 720px) {
    .afv-hero__dentro { padding: 36px 24px 40px; gap: 34px; align-items: center; }
    .afv-poster { width: 200px; }
}
@media (min-width: 1000px) { .afv-poster { width: 240px; } }

/* ---------- Cuerpo ---------- */
.afv-cuerpo { max-width: 1180px; margin: 0 auto; padding: 18px 16px 10px; display: flex; flex-direction: column; gap: 16px; }
.afv-principal { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 900px) {
    .afv-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 22px; padding: 26px 24px 10px; }
    .afv-lado { grid-column: 2; grid-row: 1; position: sticky; top: 76px; }
    .afv-principal { grid-column: 1; grid-row: 1; }
}
.afv-card { background: var(--afv-tarjeta); border-radius: 18px; box-shadow: var(--afv-sombra); padding: 18px; }
.afv-card h2 { margin: 0 0 12px; font-family: var(--afv-titulos); font-weight: 800; font-size: 18px; line-height: 1.2; color: var(--afv-texto); text-transform: none; }
.afv-desc { font-size: 15px; line-height: 1.6; color: #334155; overflow-wrap: anywhere; }
.afv-desc img { max-width: 100%; height: auto; border-radius: 12px; }
.afv-desc p { margin: 0 0 10px; }

.afv-datos { margin: 0; display: flex; flex-direction: column; }
.afv-datos > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-top: 1px solid var(--afv-borde); }
.afv-datos > div:first-child { border-top: 0; padding-top: 0; }
.afv-datos dt { display: flex; align-items: center; gap: 8px; font-family: var(--afv-titulos); font-weight: 700; font-size: 13px; color: var(--afv-suave); }
.afv-datos dt svg { color: var(--afv-acento); width: 17px; height: 17px; }
.afv-datos dd { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--afv-texto); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; overflow-wrap: anywhere; }
.afv-datos dd small { font-size: 12.5px; font-weight: 500; color: var(--afv-suave); }
.afv-datos .afv-etq { background: var(--afv-fondo); height: 24px; font-size: 11px; }
@media (max-width: 420px) { .afv-datos > div { grid-template-columns: 1fr; gap: 4px; } }

.afv-bases { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.afv-bases h2 { margin-bottom: 4px; }
.afv-bases p { margin: 0; font-size: 13.5px; color: var(--afv-suave); }

/* Botones */
.afv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--afv-acento); color: #fff !important; font-family: var(--afv-titulos); font-weight: 700; font-size: 15px; white-space: nowrap; cursor: pointer; transition: filter .2s, transform .15s; box-shadow: 0 8px 20px var(--afv-acento-suave); }
.afv-btn:hover { filter: brightness(1.06); }
.afv-btn:active { transform: scale(.98); }
.afv-btn--sec { background: var(--afv-acento-suave); color: var(--afv-acento) !important; box-shadow: none; }
.afv-btn.is-off, .afv-btn:disabled { background: #e2e8f0; color: #94a3b8 !important; box-shadow: none; cursor: default; filter: none; transform: none; }

/* Tarjeta de inscripción */
.afv-cta { background: var(--afv-tarjeta); border-radius: 20px; box-shadow: var(--afv-sombra-alta); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.afv-cta__precio { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.afv-cta__precio strong { font-family: var(--afv-titulos); font-weight: 800; font-size: 30px; line-height: 1; }
.afv-cta__precio strong.is-gratis, .afv-movil strong.is-gratis { color: var(--afv-abierta); }
.afv-cta .afv-plazas, .afv-movil .afv-plazas { color: var(--afv-suave); }
.afv-plazas.is-pocas { color: #dc6803 !important; font-weight: 600; }
.afv-plazas.is-espera { color: var(--afv-acento) !important; font-weight: 600; }
.afv-pasos { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; counter-reset: none; }
.afv-pasos li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; color: var(--afv-suave); }
.afv-pasos b { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--afv-acento-suave); color: var(--afv-acento); font-family: var(--afv-titulos); font-weight: 800; font-size: 13px; }
.afv-pasos strong { color: var(--afv-texto); }
.afv-cta__msg { margin-top: 8px; font-size: 13px; font-weight: 600; color: #b42318; text-align: center; }
.afv-cta__nota { margin: 0; font-size: 12.5px; color: var(--afv-suave); text-align: center; }

/* Los botones de siempre (el JS les pone estilos en línea al cambiar de estado) */
html.afv #contenedor-btn-inscripcion, html.afv #contenedor-btn-lista-espera { text-align: center; margin: 0 !important; }
html.afv #contenedor-btn-inscripcion a, html.afv #contenedor-btn-lista-espera a {
    display: flex !important; align-items: center; justify-content: center; width: 100%; height: 52px !important; padding: 0 20px !important; margin: 0 !important;
    border: 0 !important; border-radius: 999px !important; background: var(--afv-acento) !important; color: #fff !important;
    font-family: var(--afv-titulos) !important; font-weight: 800 !important; font-size: 17px !important; text-decoration: none !important; text-transform: none !important;
    box-shadow: 0 10px 24px var(--afv-acento-suave) !important; opacity: 1 !important; transition: filter .2s, transform .15s !important; cursor: pointer;
}
html.afv #contenedor-btn-inscripcion a::after { content: '→'; margin-left: 10px; font-weight: 700; }
html.afv #contenedor-btn-inscripcion a:hover, html.afv #contenedor-btn-lista-espera a:hover { filter: brightness(1.06); }
html.afv #contenedor-btn-inscripcion a.disabled { background: #e2e8f0 !important; color: #94a3b8 !important; box-shadow: none !important; pointer-events: none !important; cursor: default; }
html.afv #contenedor-btn-inscripcion a.disabled::after { content: none; }
html.afv #contenedor-btn-lista-espera { margin-top: 2px !important; }
html.afv #contenedor-btn-lista-espera a { background: #fff7ed !important; color: #c2410c !important; box-shadow: inset 0 0 0 1.5px #fdba74 !important; height: 46px !important; font-size: 15px !important; }

.afv-pie { max-width: 1180px; margin: 0 auto; padding: 22px 16px 10px; text-align: center; font-size: 13px; color: var(--afv-suave); }

/* Barra fija del móvil */
.afv-movil { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -8px 30px rgba(15, 23, 42, .12); transition: transform .25s; }
.afv-movil.is-oculta { transform: translateY(110%); }
.afv-movil > div { min-width: 0; display: flex; flex-direction: column; }
.afv-movil strong { font-family: var(--afv-titulos); font-weight: 800; font-size: 20px; line-height: 1.1; }
.afv-movil span { font-size: 12px; color: var(--afv-suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.afv-movil .afv-btn { flex: 0 0 auto; height: 46px; }
@media (min-width: 900px) { .afv-movil { display: none; } .afv-pagina { padding-bottom: 30px; } }

/* Actividad no disponible */
.afv-vacia { min-height: 70vh; display: grid; place-items: center; padding: 30px 16px; }
.afv-vacia__caja { max-width: 520px; text-align: center; background: var(--afv-tarjeta); border-radius: 22px; box-shadow: var(--afv-sombra-alta); padding: 32px 22px; }
.afv-vacia__ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; background: var(--afv-acento-suave); color: var(--afv-acento); }
.afv-vacia__ic svg { width: 30px; height: 30px; }
.afv-vacia h1 { margin: 0 0 8px; font-family: var(--afv-titulos); font-weight: 800; font-size: 24px; color: var(--afv-texto); }
.afv-vacia p { margin: 0 0 20px; color: var(--afv-suave); }
.afv-vacia__botones { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* =========================================================================
   AVISOS Y MODALES DEL FLUJO (los mismos de siempre, vestidos)
   ========================================================================= */
html.afv .modal-backdrop.in { opacity: .5; background: #0f172a; }
html.afv .modal-dialog { width: auto !important; max-width: 640px; margin: 24px auto !important; padding: 0 12px; }
html.afv .modal-dialog.modal-lg { max-width: 920px; }
html.afv #modalDatosAfiliacion .modal-dialog, html.afv #modal_ver_documento .modal-dialog, html.afv #modal-documentacion .modal-dialog { max-width: 1000px; height: auto !important; }
html.afv .modal-content { border: 0; border-radius: 20px; box-shadow: 0 30px 80px rgba(15, 23, 42, .35); overflow: hidden; font-family: var(--afv-letra); color: var(--afv-texto); }
html.afv .modal-header { border-bottom: 1px solid var(--afv-borde); padding: 16px 20px; }
html.afv .modal-title, html.afv .bootbox .modal-title { font-family: var(--afv-titulos); font-weight: 800; font-size: 18px; color: var(--afv-texto); }
html.afv .modal-header .close { width: 34px; height: 34px; margin: -4px -6px 0 0; border-radius: 50%; opacity: .6; font-size: 22px; line-height: 34px; text-shadow: none; }
html.afv .modal-header .close:hover { opacity: 1; background: var(--afv-fondo); }
html.afv .modal-body { padding: 18px 20px; font-size: 15px; line-height: 1.55; }
html.afv .modal-body p { margin: 0 0 8px; }
html.afv .modal-body a { color: var(--afv-acento); font-weight: 600; }
html.afv .modal-footer { border-top: 1px solid var(--afv-borde); padding: 14px 20px; background: #f8fafc; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
html.afv .modal-footer .btn + .btn { margin-left: 0; }
html.afv .modal .btn, html.afv .bootbox .btn { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 0; font-family: var(--afv-titulos); font-weight: 700; font-size: 14px; text-transform: none; box-shadow: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
html.afv .modal .btn-primary, html.afv .modal .btn-success, html.afv .bootbox .btn-primary, html.afv .bootbox .btn-success { background: var(--afv-acento) !important; color: #fff !important; box-shadow: 0 8px 20px var(--afv-acento-suave); }
html.afv .modal .btn-default, html.afv .modal .btn-secondary, html.afv .bootbox .btn-default { background: #fff !important; color: var(--afv-texto) !important; box-shadow: inset 0 0 0 1px var(--afv-borde); }
html.afv .modal .btn-danger { background: #fef3f2 !important; color: #b42318 !important; }
html.afv .modal .btn-warning { background: #fff7ed !important; color: #c2410c !important; }
html.afv .modal .btn:hover, html.afv .bootbox .btn:hover { filter: brightness(1.05); }
html.afv .bootbox .bootbox-body p:first-child strong { font-family: var(--afv-titulos); font-weight: 800; font-size: 17px; }
html.afv .bootbox-input, html.afv .modal .form-control, html.afv .modal .input-campo, html.afv .modal select, html.afv .modal textarea, html.afv .modal input[type="text"], html.afv .modal input[type="email"], html.afv .modal input[type="password"], html.afv .modal input[type="number"], html.afv .modal input[type="date"] {
    height: auto; min-height: 46px; padding: 10px 14px !important; border: 1px solid #cbd5e1 !important; border-radius: 12px !important; background: #fff !important; box-shadow: none !important; font-size: 16px !important; color: var(--afv-texto) !important;
}
html.afv .modal textarea { min-height: 90px; }
html.afv .bootbox-input:focus, html.afv .modal .form-control:focus, html.afv .modal input:focus, html.afv .modal select:focus, html.afv .modal textarea:focus { border-color: var(--afv-acento) !important; box-shadow: 0 0 0 4px var(--afv-acento-suave) !important; outline: 0; }

/* Resumen y preguntas que pinta json/detalle_inscripcion_actividad.php */
html.afv .resumen-container { border: 0 !important; border-radius: 16px; background: #f8fafc !important; padding: 14px 16px !important; box-shadow: inset 0 0 0 1px var(--afv-borde); }
html.afv .resumen-titulo h4 { font-family: var(--afv-titulos); font-weight: 800; color: var(--afv-texto) !important; }
html.afv .resumen-titulo p { color: var(--afv-suave) !important; }
html.afv .resumen-container .fila { gap: 10px; }
html.afv .resumen-container .etiqueta, html.afv .campo-pregunta label { font-family: var(--afv-titulos); font-weight: 700 !important; font-size: 12.5px !important; color: var(--afv-suave) !important; text-transform: none; }
html.afv .resumen-container .fa, html.afv .modal-body .fa { color: var(--afv-acento); }
html.afv .campo-pregunta .obligatorio { color: #b42318 !important; }
html.afv .campo-pregunta { background: #f8fafc !important; border-radius: 14px !important; box-shadow: inset 0 0 0 1px var(--afv-borde); }
html.afv .preguntas-adicionales { border-radius: 16px; }
html.afv .dropzone, html.afv #modalDatosInscripcion .campo-pregunta .dropzone { border: 2px dashed #cbd5e1 !important; border-radius: 16px !important; background: #f8fafc !important; }
html.afv .dropzone:hover, html.afv .dropzone.dz-drag-hover { border-color: var(--afv-acento) !important; background: var(--afv-acento-suave) !important; }
html.afv .dropzone .dz-message .dz-button { color: var(--afv-acento) !important; font-weight: 700; }
html.afv .btn-guardar-respuestas { background: var(--afv-acento) !important; border-radius: 999px !important; font-family: var(--afv-titulos); font-weight: 700; }
html.afv .alert { border-radius: 12px; }

@media (max-width: 600px) {
    html.afv .modal { padding-left: 0 !important; padding-right: 0 !important; }
    html.afv .modal-dialog { margin: 0 !important; padding: 0; min-height: 100%; display: flex; align-items: flex-end; }
    html.afv .modal.in .modal-dialog { transform: none; }
    html.afv .modal-content { width: 100%; border-radius: 20px 20px 0 0; max-height: 100vh; overflow-y: auto; }
    html.afv .modal-footer { position: sticky; bottom: 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
    html.afv .modal-footer .btn { flex: 1 1 auto; }
    html.afv #modalDatosAfiliacion iframe { height: 70vh !important; }
}

@media (prefers-reduced-motion: reduce) {
    html.afv *, html.afv *::before, html.afv *::after { transition: none !important; animation: none !important; }
}

/* Con la capa móvil de miSquad (su barra va fija arriba) la barra de la ficha no se pega */
html.afv.mq-movil .afv-barra { position: static; }
@media (max-width: 399px) { html.afv .afv-titulo { font-size: 17.5px; } }
