/* Ficha de matrícula, formularios internos y términos (solo en esas páginas). */
.ficha-seccion { max-width: 920px; margin: 0 auto; color: var(--color-azul, #000623); }
.ficha-intro { font-size: 17px; margin-bottom: 24px; }
.ficha-intro span, .ficha-label span, .ficha-campo label span, .ficha-check span { color: var(--color-rojo, #cd1b28); }

.ficha-progreso { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; counter-reset: paso; }
.ficha-progreso li { flex: 1; padding-top: 10px; border-top: 4px solid #dde2ec; font-size: 14px; font-weight: 600; color: #8d93ad; counter-increment: paso; }
.ficha-progreso li::before { content: counter(paso) ". "; }
.ficha-progreso li.activo { border-color: var(--color-rojo, #cd1b28); color: var(--color-azul, #000623); }
.ficha-form:not(.con-js) [data-accion="atras"], .ficha-form:not(.con-js) [data-accion="siguiente"] { display: none; }

.ficha-paso { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.ficha-paso legend { font-size: 22px; font-weight: 700; margin-bottom: 16px; float: none; width: auto; }
.ficha-subtitulo { font-size: 18px; font-weight: 700; margin: 20px 0 12px; }

.ficha-pregunta { margin-bottom: 22px; }
.ficha-label { font-weight: 600; margin-bottom: 8px; }
.ficha-opciones { display: flex; flex-wrap: wrap; gap: 10px; }
.ficha-opcion { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 2px solid #dde2ec; border-radius: 8px; cursor: pointer; font-weight: 500; background: #fff; }
.ficha-opcion:has(input:checked) { border-color: var(--color-azul, #000623); background: #eef1f6; }
.ficha-opcion input { accent-color: var(--color-rojo, #cd1b28); width: 18px; height: 18px; }

.ficha-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.ficha-campo { display: flex; flex-direction: column; gap: 6px; }
.ficha-campo.ancho { grid-column: 1 / -1; }
.ficha-campo label { font-weight: 600; font-size: 15px; }
.ficha-campo input, .ficha-campo select { height: 48px; padding: 0 14px; border: 2px solid #dde2ec; border-radius: 8px; font: inherit; color: inherit; background: #fff; }
.ficha-campo input:focus, .ficha-campo select:focus { outline: none; border-color: var(--color-azul, #000623); }
.ficha-campo small { color: #6b7187; font-size: 13px; }

.con-error input, .con-error .ficha-opcion { border-color: var(--color-rojo, #cd1b28) !important; }
.con-error > .ficha-label, .con-error > label { color: var(--color-rojo, #cd1b28); }

.ficha-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-size: 15px; line-height: 1.5; }
.ficha-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--color-rojo, #cd1b28); flex: none; }
.ficha-check a { color: var(--color-rojo, #cd1b28) !important; text-decoration: underline; font-weight: 600; }

.ficha-botones { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.ficha-boton { display: inline-block; padding: 14px 28px; border: 0; border-radius: 8px; background: var(--color-rojo, #cd1b28); color: #fff !important; font-weight: 700; font-size: 16px; cursor: pointer; }
.ficha-boton.secundario { background: #eef1f6; color: var(--color-azul, #000623) !important; }
.ficha-boton[disabled] { opacity: .6; cursor: wait; }
.ficha-aviso { margin-top: 12px; color: var(--color-rojo, #cd1b28); font-weight: 600; text-align: right; }

.ficha-ok, .ficha-error { padding: 20px 24px; border-radius: 10px; margin-bottom: 24px; }
.ficha-ok { background: #e8f6ee; border-left: 5px solid #1f9d55; }
.ficha-ok a:not(.ficha-boton) { color: #1f9d55 !important; text-decoration: underline; }
.ficha-error { background: #fdecee; border-left: 5px solid var(--color-rojo, #cd1b28); }
.ficha-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ficha-internos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ficha-interno { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 2px solid #dde2ec; border-radius: 10px; }
.ficha-interno h2 { font-size: 19px; font-weight: 700; margin: 0; }
.ficha-ayuda { font-size: 13px; color: #6b7187; margin: 0; }
.ficha-clave input[type="password"] { height: 44px; padding: 0 12px; border: 2px solid #dde2ec; border-radius: 8px; margin: 8px 8px 8px 0; }
.ficha-clave input[type="submit"] { padding: 10px 20px; border: 0; border-radius: 8px; background: var(--color-rojo, #cd1b28); color: #fff; font-weight: 700; }

.ficha-legal h2 { font-size: 22px; font-weight: 700; margin: 0 0 16px; }
.ficha-legal h3 { font-size: 18px; font-weight: 700; margin: 24px 0 10px; }
.ficha-legal p { line-height: 1.7; margin-bottom: 14px; }

@media (max-width: 991px) {
  .ficha-internos { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ficha-grid { grid-template-columns: 1fr; }
  .ficha-progreso li { font-size: 12px; }
  .ficha-opcion { width: 100%; }
  .ficha-botones { justify-content: stretch; }
  .ficha-botones .ficha-boton { flex: 1; }
  .ficha-aviso { text-align: left; }
}

/* Mejoras (regiones, RUT, menores, borrador, resumen) */
.ficha-msg { color: var(--color-rojo, #cd1b28); font-size: 13px; font-weight: 600; min-height: 0; }
.ficha-msg:empty { display: none; }
.ficha-nota { margin: 10px 0 0; padding: 10px 14px; background: #fff6e5; border-radius: 8px; font-size: 14px; }
.ficha-opcion.desactivada { opacity: .45; cursor: not-allowed; }
.ficha-recuperado { margin: 0 0 20px; padding: 12px 16px; background: #eef1f6; border-radius: 8px; font-size: 14px; }
.ficha-link { background: none; border: 0; padding: 0; color: var(--color-rojo, #cd1b28); text-decoration: underline; font-weight: 600; cursor: pointer; }
.ficha-resumen { margin: 24px 0 8px; padding: 16px 20px; background: #eef1f6; border-radius: 10px; }
.ficha-resumen .ficha-subtitulo { margin-top: 0; }
.ficha-resumen dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
.ficha-resumen dt { color: #6b7187; font-weight: 500; }
.ficha-resumen dd { margin: 0; font-weight: 600; }
.ficha-siguientes { margin: 12px 0 16px 20px; line-height: 1.7; }
.ficha-siguientes a { color: #1f9d55 !important; text-decoration: underline; }

/* El tema agrega a todo <button> un ::after (efecto de barrido) y line-height 50px: anularlo aquí. */
.ficha-seccion button::after, .ficha-seccion input[type="submit"]::after { display: none !important; content: none !important; }
.ficha-seccion button { line-height: 1.2; overflow: visible; }
.ficha-boton { letter-spacing: .5px; transition: background .2s; }
.ficha-boton:hover { background: var(--color-red-variante, #9a1620); }
.ficha-boton.secundario:hover { background: #dde2ec; }
.con-error select { border-color: var(--color-rojo, #cd1b28) !important; }
.ficha-msg { line-height: 1.4; letter-spacing: 0; }
.ficha-campo small { line-height: 1.4; }
.ficha-check-texto { display: block; }
.ficha-link { text-transform: none; letter-spacing: 0; line-height: inherit; }
.ficha-campo { min-width: 0; }
.ficha-campo input, .ficha-campo select { width: 100%; min-width: 0; box-sizing: border-box; max-width: 100%; }
.ficha-progreso li { line-height: 1.35; }

/* Sexo y uniforme (solo mujeres) */
.ficha-sexo { margin-top: 22px; }
.ficha-uniforme { margin-top: 8px; padding: 18px 20px; border: 2px solid #dde2ec; border-radius: 10px; }
.ficha-uniforme .ficha-subtitulo { margin-top: 0; margin-bottom: 4px; }
.ficha-ayuda-uniforme { font-size: 14px; color: #6b7187; margin-bottom: 14px; }
.ficha-tallas .ficha-opcion { padding: 10px 14px; min-width: 64px; justify-content: center; }
.ficha-estatura { max-width: 220px; margin-bottom: 4px; }
@media (max-width: 600px) { .ficha-tallas .ficha-opcion { width: auto; } .ficha-estatura { max-width: none; } }

/* Página sin distracciones: encabezado y pie mínimos (utilidades/header-ficha.php, footer-ficha.php) */
body:has(.ficha-header) { background: #f5f7fb; }
.ficha-header { background: #fff; border-bottom: 1px solid #e3e7ef; }
.ficha-header-in { max-width: 920px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ficha-logo { display: inline-flex; align-items: center; gap: 8px; }
.ficha-logo img { height: 38px; width: auto; }
.ficha-logo img + img { height: 20px; }
.ficha-ayuda-wa { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid #dde2ec; border-radius: 999px; font-size: 14px; color: var(--color-azul, #000623) !important; white-space: nowrap; transition: border-color .2s; text-transform: none; letter-spacing: 0; text-decoration: none; }
.ficha-ayuda-wa svg { color: #1f9d55; }
.ficha-ayuda-wa:hover { border-color: #1f9d55; }
.ficha-pagina .ficha-seccion { background: #fff; border-radius: 14px; margin: 32px auto; padding: 36px 40px; box-shadow: 0 2px 16px rgba(0, 6, 35, .06); }
.ficha-titulo { font-size: 30px; font-weight: 700; margin: 0 0 10px; color: var(--color-azul, #000623); }
.ficha-footer { max-width: 920px; margin: 0 auto; padding: 8px 20px 36px; text-align: center; font-size: 13px; color: #8d93ad; }
.ficha-footer p { margin: 0 0 4px; letter-spacing: 0; line-height: 1.5; }
@media (max-width: 600px) {
  .ficha-header-in { padding: 10px 16px; }
  .ficha-logo img { height: 32px; }
  .ficha-logo { min-width: 0; gap: 6px; }
  .ficha-logo img { height: 30px; }
  .ficha-logo img + img { height: auto; width: 112px; }
  .ficha-ayuda-wa { padding: 7px 12px; font-size: 13px; }
  .ficha-ayuda-wa .wa-largo { display: none; }
  .ficha-pagina .ficha-seccion { margin: 0; border-radius: 0; padding: 24px 16px; box-shadow: none; }
  .ficha-titulo { font-size: 24px; }
}

/* Pago al contado destacado */
.ficha-opcion.ficha-destacada { border-color: #f0c24b; background: #fffaf0; }
.ficha-opcion.ficha-destacada:has(input:checked) { border-color: #d9a21b; background: #fff3d6; }
.ficha-estrella { color: #e0a419; font-size: 18px; line-height: 1; }
.ficha-etiqueta { padding: 3px 8px; border-radius: 999px; background: var(--color-rojo, #cd1b28); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; }

/* Legibilidad: el tema pone letter-spacing amplio y texto fino en todo; en un formulario cansa. */
.ficha-pagina .ficha-seccion, .ficha-pagina .ficha-seccion p, .ficha-pagina .ficha-seccion label,
.ficha-pagina .ficha-seccion li, .ficha-pagina .ficha-seccion legend, .ficha-pagina .ficha-seccion input,
.ficha-pagina .ficha-seccion select, .ficha-titulo { letter-spacing: 0; }
.ficha-intro { line-height: 1.55; }
.ficha-campo input, .ficha-campo select { font-size: 16px; font-weight: 400; } /* 16px: además evita el zoom de iPhone */
.ficha-campo input::placeholder { color: #9aa0b4; font-weight: 400; }
.ficha-campo label, .ficha-label { font-size: 15px; font-weight: 600; }
.ficha-opcion { font-size: 15px; }
.ficha-boton { letter-spacing: .3px; }

/* Formularios internos (/formularios/): elegir la acción y un solo formulario */
.ficha-acciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.ficha-accion { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 18px 48px; border: 2px solid #dde2ec; border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .2s, background .2s; }
.ficha-accion input { position: absolute; left: 18px; top: 20px; width: 18px; height: 18px; accent-color: var(--color-rojo, #cd1b28); }
.ficha-accion-titulo { font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--color-azul, #000623); letter-spacing: 0; }
.ficha-accion-texto { font-size: 13px; line-height: 1.45; color: #6b7187; letter-spacing: 0; }
.ficha-accion:has(input:checked) { border-color: var(--color-azul, #000623); background: #eef1f6; }
.ficha-accion-retirado:has(input:checked) { border-color: var(--color-rojo, #cd1b28); background: #fdecee; }
.ficha-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.ficha-mover .ficha-botones { margin-top: 24px; }
.ficha-mover .ficha-ayuda { margin-top: 8px; }
.ficha-mover [hidden] { display: none !important; }
.ficha-clave form > p:not(:has(input)) { display: none; } /* el texto de WordPress: ya lo dice la intro */
.ficha-clave form > p { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0; letter-spacing: 0; }
.ficha-clave label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.ficha-clave input[type="password"] { height: 48px; min-width: 260px; margin: 0; font-size: 16px; }
.ficha-clave input[type="submit"] { height: 48px; padding: 0 24px; cursor: pointer; }
@media (max-width: 760px) {
  .ficha-acciones, .ficha-grid-3 { grid-template-columns: 1fr; }
  .ficha-clave input[type="password"] { min-width: 0; width: 100%; }
  .ficha-clave label { width: 100%; }
}
.ficha-opcion.ficha-destacada { white-space: nowrap; flex-wrap: wrap; row-gap: 6px; }

/* «?» en la esquina del 20%: al pasar el mouse o tocarlo muestra «Oferta por tiempo limitado» */
.ficha-opcion.ficha-destacada { overflow: visible; }
.ficha-etiqueta-caja { position: relative; display: inline-flex; margin-right: 6px; }
.ficha-ayuda { position: absolute; top: -8px; right: -9px; width: 18px; height: 18px; border-radius: 50%; background: #000623; color: #fff;
  border: 2px solid #fffaf0; font-size: 11px; font-weight: 700; line-height: 14px; text-align: center; cursor: help; outline: none; }
.ficha-ayuda:focus-visible { box-shadow: 0 0 0 2px #d9a21b; }
.ficha-globo { position: absolute; bottom: calc(100% + 9px); right: -8px; white-space: nowrap; visibility: hidden; opacity: 0; transform: translateY(4px);
  transition: opacity .15s, transform .15s, visibility .15s; background: #000623; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .2px;
  line-height: 1; padding: 7px 10px; border-radius: 6px; box-shadow: 0 3px 10px rgba(0, 6, 35, .18); pointer-events: none; z-index: 5; }
.ficha-globo::after { content: ''; position: absolute; top: 100%; right: 11px; border: 5px solid transparent; border-top-color: #000623; }
.ficha-ayuda:hover .ficha-globo, .ficha-ayuda:focus .ficha-globo, .ficha-ayuda.abierta .ficha-globo { visibility: visible; opacity: 1; transform: none; }

/* Interlineado: el tema pone 30px a todo; en la ficha se usa uno normal */
.ficha-pagina .ficha-seccion p, .ficha-pagina .ficha-seccion li, .ficha-pagina .ficha-seccion td, .ficha-pagina .ficha-seccion th,
.ficha-pagina .ficha-seccion dt, .ficha-pagina .ficha-seccion dd { line-height: 1.5; }
.ficha-pagina .ficha-seccion h2 { line-height: 1.25; }

/* Celular: el botón principal arriba y a lo ancho, «Atrás» debajo */
@media (max-width: 600px) {
  .ficha-botones { flex-direction: column-reverse; align-items: stretch; }
  .ficha-botones .ficha-boton { width: 100%; flex: none; }
}

/* Pantalla «Recibimos tu ficha» */
.ficha-ok { padding: 28px 30px; border-left: 0; border: 1px solid #cdebd9; border-radius: 12px; }
.ficha-ok-cabeza { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.ficha-ok-icono { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #1f9d55; color: #fff; }
.ficha-ok h2 { margin: 4px 0 6px; font-size: 24px; color: var(--color-azul, #000623); }
.ficha-ok-cabeza p { margin: 0; }
.ficha-pasos { list-style: none; counter-reset: paso; margin: 0 0 22px; padding: 0; }
.ficha-pasos li { counter-increment: paso; position: relative; padding: 0 0 16px 44px; }
.ficha-pasos li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid #1f9d55;
  color: #1f9d55; font-weight: 700; font-size: 14px; line-height: 24px; text-align: center; }
.ficha-pasos li:not(:last-child)::after { content: ''; position: absolute; left: 13px; top: 32px; bottom: 4px; width: 2px; background: #bfe3cd; }
.ficha-pasos li strong { display: block; font-size: 16px; margin-bottom: 2px; }
.ficha-pasos li span { display: block; color: #3d4466; }
.ficha-pasos a { color: #1f9d55 !important; text-decoration: underline; }
.ficha-ok-cta { background: #fff; border-radius: 10px; padding: 18px 20px; }
.ficha-ok-cta > p:first-child { margin: 0 0 14px; }
.ficha-ok-botones { display: flex; gap: 12px; flex-wrap: wrap; }
.ficha-boton-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #1f9d55; }
.ficha-boton-wa:hover { background: #17824a; }
.ficha-ok-botones .ficha-boton { text-align: center; }
.ficha-ok-mail { margin: 12px 0 0; font-size: 14px; color: #5b6285; }
@media (max-width: 600px) {
  .ficha-ok { padding: 20px 16px; }
  .ficha-ok h2 { font-size: 21px; }
  .ficha-ok-botones { flex-direction: column; }
  .ficha-ok-botones .ficha-boton { width: 100%; }
  .ficha-ok-cta { padding: 16px; }
}

/* Nada se sale del ancho en celular */
html:has(.ficha-pagina), body:has(.ficha-pagina) { overflow-x: hidden; max-width: 100%; }
.ficha-pagina, .ficha-pagina * { box-sizing: border-box; }
.ficha-pagina .ficha-seccion input, .ficha-pagina .ficha-seccion select, .ficha-pagina .ficha-seccion textarea { max-width: 100%; min-width: 0; }
/* iPhone da a los campos de fecha un ancho mínimo propio y se salían de la caja */
.ficha-pagina input[type="date"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; background: #fff; text-align: left; line-height: 44px; }
.ficha-pagina input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.ficha-pagina input[type="date"]::-webkit-calendar-picker-indicator { opacity: .6; }
.ficha-campo { min-width: 0; }
/* Botón de WhatsApp del header: el tema le daba interlineado de 30px y podía achicarse */
.ficha-header-in { min-width: 0; }
.ficha-ayuda-wa { flex: none; line-height: 1.2; }
.ficha-ayuda-wa span { line-height: 1.2; }
.ficha-seccion .ficha-boton { line-height: 1.3; }
.ficha-boton-wa svg { flex: none; width: 22px; height: 22px; }

/* «?» al lado del 20% (no encima): gris suave, para no quitarle peso a la etiqueta */
.ficha-etiqueta-caja { align-items: center; gap: 6px; margin-right: 0; }
.ficha-ayuda { position: relative; top: auto; right: auto; width: 20px; height: 20px; flex: none; background: transparent; color: #7a809b;
  border: 1.5px solid #c3c8d8; font-size: 12px; line-height: 17px; }
.ficha-ayuda:hover, .ficha-ayuda.abierta, .ficha-ayuda:focus { color: #000623; border-color: #000623; }
.ficha-globo { right: -10px; }
.ficha-globo::after { right: 14px; }
