/*
 * Sitio de postulación a ferias — estilos.
 * Territoria Consultores, 2026-10-05. Parte de los estilos del asistente de formalización
 * (2026-09-29), más los del formulario y los archivos múltiples.
 * Imagen corporativa (naranja #F47920 como acento, texto #404040, fondo #F5F5F5) y el mismo
 * estilo de tarjetas y subida de la postulación a licitaciones del sitio.
 */

:root {
    --naranja: #F47920;
    --naranja-oscuro: #d86715;
    --texto: #404040;
    --suave: #777;
    --fondo: #F5F5F5;
    --blanco: #fff;
    --ok: #218838;
    --ok-fondo: #f3faf4;
    --obs: #c75c10;
    --obs-fondo: #fff6ee;
    --err: #c0392b;
    --err-fondo: #fdf4f3;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--fondo);
    color: var(--texto);
    font-family: 'Inter', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

h1, h2 { font-family: 'Montserrat', Arial, sans-serif; color: var(--texto); line-height: 1.25; margin: 0 0 8px; }
h1 { font-size: 24px; }
h2 { font-size: 19px; }
a { color: var(--naranja-oscuro); }

/* Barra superior con el logo y línea naranja */
.barra { background: var(--blanco); border-bottom: 3px solid var(--naranja); }
.barra-interior { max-width: 820px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.logo { height: 44px; width: auto; }
.salir { font-family: 'Montserrat', Arial, sans-serif; font-weight: 600; font-size: 14px; color: var(--suave); text-decoration: none; }
.salir:hover { color: var(--naranja); }

.contenido { max-width: 820px; margin: 0 auto; padding: 24px 16px 40px; }

.tarjeta { background: var(--blanco); border-radius: 16px; box-shadow: 0 8px 30px rgba(0, 0, 0, .06); padding: 26px 28px; margin-bottom: 22px; }
.bajada { color: var(--suave); margin: 0 0 16px; }

/* Avisos */
.aviso { padding: 14px 18px; border-radius: 10px; margin: 12px 0; font-size: 15px; }
.aviso.info { background: rgba(244, 121, 32, .1); color: var(--obs); }
.aviso.alerta { background: var(--err-fondo); color: var(--err); }
.aviso.error { background: rgba(192, 57, 43, .1); color: var(--err); font-weight: 600; }
.aviso.exito { background: rgba(45, 184, 75, .12); color: var(--ok); font-weight: 600; }
.aviso.neutro { background: #eee; color: var(--suave); }

/* Botones */
.boton {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--naranja); color: var(--blanco); border: 0; border-radius: 999px;
    padding: 13px 28px; font-family: 'Montserrat', Arial, sans-serif; font-weight: 700; font-size: 15px;
    cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.boton:hover { background: var(--naranja-oscuro); transform: translateY(-1px); }
.boton:disabled { background: #c9c9c9; cursor: not-allowed; transform: none; }
.boton-chico { padding: 8px 16px; font-size: 13px; white-space: nowrap; }
.boton-chico.deshabilitado { opacity: .5; pointer-events: none; }

/* Ingreso */
.form-rut label { display: block; font-family: 'Montserrat', Arial, sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: #666; margin-bottom: 6px; }
.form-rut input { width: 100%; max-width: 320px; padding: 13px 15px; border: 1.5px solid #ddd; border-radius: 8px; font-size: 18px; font-family: inherit; letter-spacing: .5px; }
.form-rut input:focus { outline: none; border-color: var(--naranja); }
.ayuda { color: var(--suave); font-size: 14px; margin: 6px 0 16px; }
.pasos { margin-top: 26px; border-top: 1px solid #eee; padding-top: 18px; }
.pasos ol { padding-left: 20px; margin: 0; }
.pasos li { margin-bottom: 6px; }

.opciones { display: grid; gap: 10px; }
.opcion { width: 100%; text-align: left; background: var(--fondo); border: 1.5px solid transparent; border-radius: 10px; padding: 14px 18px; cursor: pointer; font-family: inherit; color: var(--texto); }
.opcion:hover { border-color: var(--naranja); }
.opcion-titulo { display: block; font-weight: 600; font-size: 16px; }
.opcion-sub { display: block; color: var(--suave); font-size: 14px; }

/* Tarjetas de documentos (como en la postulación a licitaciones) */
.doc { background: var(--fondo); border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; transition: background .2s ease, outline .2s ease; }
.doc.estado-ok { outline: 1.5px solid var(--ok); background: var(--ok-fondo); }
.doc.estado-obs { outline: 1.5px solid var(--naranja); background: var(--obs-fondo); }
.doc.estado-err { outline: 2px solid var(--err); background: var(--err-fondo); }
.doc-cabecera { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.doc-nombre { font-weight: 600; }
.doc-tipo { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--suave); background: #e7e7e7; border-radius: 999px; padding: 1px 8px; margin-left: 4px; vertical-align: 2px; }
.doc-descripcion { color: var(--suave); font-size: 14px; margin-top: 4px; }
.doc-archivo { font-size: 13px; margin-top: 10px; color: var(--texto); word-break: break-all; }
.doc-estado { font-size: 14px; margin-top: 8px; font-weight: 600; }
.estado-ok .doc-estado { color: var(--ok); }
.estado-obs .doc-estado { color: var(--obs); }
.estado-err .doc-estado { color: var(--err); }
.estado-neutro .doc-estado, .estado-subiendo .doc-estado { color: #555; }
.doc-estado .nota { font-weight: 400; color: var(--suave); font-size: 13px; }

/* Semáforo por documento y resumen (verde listo, amarillo observado, rojo pendiente) */
.punto { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px; margin-right: 6px; }
.punto.verde { background: #2DB84B; }
.punto.amarillo { background: #f5b301; }
.punto.rojo { background: #d93025; }
.punto.gris { background: #b5b5b5; }
.semaforo { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; border-radius: 999px; padding: 2px 10px 2px 8px; margin-bottom: 6px; }
.semaforo.s-verde { background: rgba(45, 184, 75, .14); color: #1e7e34; }
.semaforo.s-amarillo { background: rgba(245, 179, 1, .18); color: #8a6100; }
.semaforo.s-rojo { background: rgba(217, 48, 37, .12); color: #b3261e; }
.semaforo.s-gris { background: #ececec; color: #777; }
.resumen-semaforo { background: var(--fondo); border-radius: 10px; padding: 10px 14px; margin: 10px 0; font-size: 15px; }
.resumen-semaforo .punto { margin-left: 12px; }
.resumen-semaforo .punto:first-child { margin-left: 0; }

/* Guías paso a paso y aviso de que todo queda guardado */
.aviso.guardado { background: #eef7ff; color: #2c4a63; }
.guia { margin-top: 10px; font-size: 14px; }
.guia summary { cursor: pointer; color: var(--naranja-oscuro); font-weight: 600; list-style-position: inside; }
.guia summary:hover { text-decoration: underline; }
.guia-cuerpo { background: var(--blanco); border-radius: 8px; padding: 12px 16px; margin-top: 8px; border: 1px solid #e6e6e6; }
.guia-cuerpo h3 { font-family: 'Montserrat', Arial, sans-serif; font-size: 14px; margin: 12px 0 4px; color: var(--texto); }
.guia-cuerpo p, .guia-cuerpo li { margin: 4px 0; }
.guia-cuerpo ol, .guia-cuerpo ul { padding-left: 20px; margin: 4px 0; }
.guia-nota { background: var(--fondo); border-radius: 6px; padding: 8px 10px; }
.guia-enlaces { font-size: 13px; color: var(--suave); }
.guia-pdf { margin: 6px 0 16px; }

/* Barra de avance */
.progreso { margin-top: 10px; }
.progreso-barra { background: #e2e2e2; border-radius: 999px; height: 6px; overflow: hidden; }
.progreso-relleno { background: var(--naranja); height: 100%; width: 0%; transition: width .25s ease; }
.progreso.analizando .progreso-relleno { width: 100% !important; animation: latido 1.2s ease-in-out infinite; }
@keyframes latido { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.pct { font-variant-numeric: tabular-nums; }

.ruedita {
    display: inline-block; width: 14px; height: 14px; vertical-align: -2px;
    border: 2.5px solid rgba(244, 121, 32, .25); border-top-color: var(--naranja);
    border-radius: 50%; animation: girar .7s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

.reintentar { margin-left: 6px; background: var(--err); color: var(--blanco); border: 0; border-radius: 6px; padding: 4px 10px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: 'Montserrat', Arial, sans-serif; }
.reintentar:hover { background: #a52e21; }

.envio { margin-top: 24px; border-top: 1px solid #eee; padding-top: 20px; }

.pie { text-align: center; color: #999; font-size: 13px; padding: 10px 16px 30px; }
.pie a { color: #999; }

@media (max-width: 560px) {
    .tarjeta { padding: 20px 18px; }
    .doc-cabecera { flex-direction: column; }
    h1 { font-size: 21px; }
}

/* ---------------- Sitio de postulación (2026-10-05) ---------------- */
a.opcion-enlace { display: block; text-decoration: none; }
.opcion-fecha { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--suave); }
.opcion-fecha.abierta { color: var(--ok); }
.descripcion { margin: 8px 0 12px; }
.enlace-bases { font-weight: 600; }

.pregunta { padding: 14px 0; border-top: 1px solid #eee; }
.pregunta:first-of-type { border-top: 0; }
.pregunta-titulo { display: block; font-weight: 600; margin-bottom: 4px; }
.pregunta-ayuda { color: var(--suave); font-size: 14px; margin: 0 0 6px; }
.pregunta-error { color: var(--err); font-size: 14px; font-weight: 600; margin: 6px 0 0; }
.pregunta.con-error .entrada { border-color: var(--err); }
.obligatorio { color: var(--err); }
input.entrada, textarea.entrada, select.entrada {
    width: 100%; padding: 11px 13px; border: 1.5px solid #ddd; border-radius: 8px;
    font-size: 16px; font-family: inherit; color: var(--texto); background: var(--blanco);
}
textarea.entrada { resize: vertical; min-height: 96px; }
input.entrada:focus, textarea.entrada:focus, select.entrada:focus { outline: none; border-color: var(--naranja); }
input.entrada:disabled, textarea.entrada:disabled, select.entrada:disabled { background: #f7f7f7; color: #555; }
.radios { display: flex; gap: 22px; padding: 4px 0; }
.radio { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.radio input { width: 18px; height: 18px; accent-color: var(--naranja); }
.estado-guardado { font-size: 13px; margin-left: 6px; }
.estado-guardado.ok { color: var(--ok); }
.estado-guardado.error { color: var(--err); font-weight: 600; }

.doc-formato { color: var(--suave); font-size: 13px; margin-top: 4px; }
.archivos { margin-top: 8px; }
.archivo { background: var(--blanco); border-radius: 8px; padding: 10px 12px; margin-top: 8px; border: 1px solid #e6e6e6; }
.archivo.estado-ok { border-color: var(--ok); }
.archivo.estado-obs { border-color: var(--naranja); background: var(--obs-fondo); }
.archivo.estado-err { border-color: var(--err); background: var(--err-fondo); }
.archivo-linea { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.archivo-nombre { font-size: 14px; word-break: break-all; }
.archivo-estado { font-size: 14px; font-weight: 600; margin-top: 6px; }
.archivo.estado-ok .archivo-estado { color: var(--ok); }
.archivo.estado-obs .archivo-estado { color: var(--obs); }
.archivo.estado-err .archivo-estado { color: var(--err); }
.archivo.estado-neutro .archivo-estado, .archivo.estado-subiendo .archivo-estado { color: #555; }
.archivo-estado .nota { font-weight: 400; color: var(--suave); font-size: 13px; }
.quitar, .descartar { background: none; border: 1px solid #ccc; color: var(--suave); border-radius: 6px; padding: 3px 10px; font-size: 12px; cursor: pointer; font-family: inherit; white-space: nowrap; }
.quitar:hover, .descartar:hover { border-color: var(--err); color: var(--err); }
.boton-chico.deshabilitado { opacity: .45; pointer-events: none; }
.boton-secundario { background: var(--blanco); color: var(--naranja-oscuro); border: 2px solid var(--naranja); }
.boton-secundario:hover { background: var(--obs-fondo); }
.envio-otra { margin-top: 14px; }

/* Enlaces a redes sociales: una casilla por enlace (2026-10-05) */
.enlace-fila { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.enlace-fila .entrada { flex: 1; }
.agregar-enlace { background: none; border: 1.5px dashed var(--naranja); color: var(--naranja-oscuro); border-radius: 8px; padding: 7px 14px; font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.agregar-enlace:hover { background: var(--obs-fondo); }

/* Miniaturas de las fotos (2026-10-05) */
.miniatura { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid #ddd; flex: none; background: #eee; }
.archivo-linea .archivo-nombre { flex: 1; }

/* Corrección pedida por el equipo (2026-10-27) */
.doc.doc-pedido { outline: 2px solid var(--naranja); background: var(--obs-fondo); }
.doc-pedido-texto { color: var(--obs); font-size: 14px; font-weight: 600; margin-top: 6px; }
.lista-correccion { margin: 8px 0 8px 1.2em; padding: 0; }
.lista-correccion li { margin-bottom: 4px; }

/* Región y comuna con buscador (2026-10-28) */
.region-comuna { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.buscador { position: relative; }
.buscador-rotulo { display: block; font-size: 13px; color: var(--suave); margin-bottom: 4px; }
.buscador-lista { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 4px 0; list-style: none;
    background: var(--blanco); border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.12); max-height: 260px; overflow-y: auto; }
.buscador-lista li { padding: 8px 12px; cursor: pointer; font-size: 15px; }
.buscador-lista li:hover, .buscador-lista li.marcada { background: var(--obs-fondo); color: var(--naranja-oscuro); }
.buscador-lista li.sin-resultado { color: var(--suave); cursor: default; background: none; }
@media (max-width: 640px) { .region-comuna { grid-template-columns: 1fr; } }

/* ---------------- Formulario más claro (Rodrigo, 2026-10-28) ---------------- */
/* Portada: «Formulario de postulación» y el nombre de la convocatoria. */
.portada { padding-top: 0; overflow: hidden; }
.portada-banda { background: linear-gradient(135deg, #F47920 0%, #d86715 100%); color: #fff; margin: 0 -28px 18px; padding: 26px 28px 22px; }
.portada-etiqueta { margin: 0 0 6px; font-family: 'Montserrat', Arial, sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; opacity: .92; }
.tarjeta:not(.portada) .portada-etiqueta { color: var(--naranja); }
.portada-titulo { color: #fff; font-size: 30px; margin: 0; }
.portada-fechas { margin: 10px 0 0; font-size: 15px; font-weight: 600; opacity: .95; }

/* Secciones numeradas */
h2.seccion { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.seccion-numero { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--naranja); color: #fff; font-size: 16px; flex: none; }

/* Cada pregunta y cada documento en su recuadro, bien separados. */
.pregunta { background: #fafafa; border: 1.5px solid #e3e3e3; border-radius: 12px; padding: 16px 18px; margin: 0 0 14px; }
.pregunta:first-of-type { border-top: 1.5px solid #e3e3e3; }
.pregunta-titulo { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.pregunta-numero { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: #e9e9e9; color: #555; font-size: 13px; font-weight: 700; flex: none; margin-top: 1px; }
.doc { background: #fafafa; border: 1.5px solid #dcdcdc; border-radius: 12px; padding: 18px 20px; margin-bottom: 18px; }
.doc-nombre { display: flex; gap: 10px; align-items: flex-start; }
.doc-descripcion, .doc-formato { margin-left: 34px; }
.doc-pedido-texto { margin-left: 34px; }
.doc-acciones { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #d6d6d6; display: flex; }
.doc-acciones .boton-adjuntar { padding: 10px 20px; font-size: 14px; }

/* Errores al enviar: ⚠ en cada punto, recuadro rojo y lista con enlaces. */
.pregunta.con-error, .doc.con-error { border-color: var(--err); background: var(--err-fondo); box-shadow: 0 0 0 3px rgba(192, 57, 43, .12); }
.pregunta.con-error .pregunta-numero, .doc.con-error .pregunta-numero { background: var(--err); color: #fff; }
.pregunta-error { background: #fff; border: 1px solid rgba(192, 57, 43, .35); border-radius: 8px; padding: 8px 12px; }
.resumen-faltantes { border: 2px solid var(--err); font-size: 15px; }
.resumen-faltantes .resumen-titulo { font-weight: 700; }
.resumen-faltantes ul { margin: 8px 0 0 1.2em; padding: 0; }
.resumen-faltantes li { margin: 3px 0; }
.resumen-faltantes a { color: var(--err); font-weight: 600; }

/* Página de fotos desde la planilla */
.foto-planilla { margin: 18px 0; text-align: center; }
.foto-planilla img { max-width: 100%; max-height: 80vh; border-radius: 10px; border: 1px solid #ddd; }
.foto-planilla-pie { font-size: 14px; color: var(--suave); margin-top: 6px; }

@media (max-width: 560px) {
    .portada-banda { margin: 0 -18px 16px; padding: 20px 18px 18px; }
    .portada-titulo { font-size: 24px; }
    .doc-descripcion, .doc-formato, .doc-pedido-texto { margin-left: 0; }
}

/*
 * Sitio Caimanes (mlp.territoriaconsultores.cl) — estilos propios, sobre los del sitio de ferias.
 * Territoria Consultores, 2026-11-03. Basados en el prototipo validado por la Jefa Metodológica
 * (página de postulación v5 y autodiagnóstico v2): colores fijos aunque el navegador esté en
 * modo oscuro, opción elegida en negro y pestañas que se recorren en cualquier orden.
 */
/*
 * Imagen de Los Pelambres (Manual de normas gráficas Antofagasta Minerals; Rodrigo, 2026-11-03).
 * Colores: equivalencias en pantalla de la paleta Pantone del manual (3145 C, 1795 C, 124 C, 325 C y
 * Cool Gray 10 C para los textos). Tipografía: el manual pide Aaux Pro (comunicación externa) o
 * Calibri; ninguna se puede servir libre en la web, así que se usan si el equipo las tiene y si no
 * Arial. Las variables reemplazan el naranja de Territoria en todo el sitio Caimanes.
 */
.sitio-caimanes {
    --naranja: #00778B;          /* Pantone 3145 C: color principal */
    --naranja-oscuro: #005B6B;
    --rojo-mlp: #D22630;         /* Pantone 1795 C */
    --dorado-mlp: #EAAA00;       /* Pantone 124 C */
    --agua-mlp: #64CCC9;         /* Pantone 325 C */
    --texto: #4D4F53;            /* Pantone Cool Gray 10 C, algo más oscuro para leer bien */
    --obs: #005B6B;
    --obs-fondo: #eef7f8;
    --letra-titulo: 'Aaux Pro', 'AauxPro OSF', Calibri, Carlito, Arial, sans-serif;
    --letra-texto: Calibri, Carlito, 'Segoe UI', Arial, sans-serif;
    font-family: var(--letra-texto);
    font-size: 16.5px;
}
.sitio-caimanes h1, .sitio-caimanes h2, .sitio-caimanes h3, .sitio-caimanes .boton, .sitio-caimanes .paso { font-family: var(--letra-titulo); }
.sitio-caimanes a.boton, .sitio-caimanes a.boton:hover { text-decoration: none; }
/* Franja con los colores del isotipo bajo el encabezado. */
.sitio-caimanes .barra { border-bottom: 0; box-shadow: none; background: #fff; }
.sitio-caimanes .barra::after { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--rojo-mlp) 0%, var(--dorado-mlp) 25%, var(--agua-mlp) 55%, var(--naranja) 100%); }
.sitio-caimanes .portada-caimanes { background: linear-gradient(135deg, #fff 0%, #eef7f8 100%); border-top-color: var(--naranja); }
.sitio-caimanes .aviso.info { background: #eef7f8; }
.sitio-caimanes .aviso.guardado { background: #eef7f8; border-color: #b9dde2; color: #234; }

:root { color-scheme: light; }
.sitio-caimanes input[type=text], .sitio-caimanes input[type=email], .sitio-caimanes input[type=tel],
.sitio-caimanes select, .sitio-caimanes textarea { color: #222; -webkit-text-fill-color: #222; caret-color: #222; background: #fff; }
.sitio-caimanes option { color: #222; background: #fff; }
.sitio-caimanes input:-webkit-autofill { -webkit-text-fill-color: #222; box-shadow: 0 0 0 40px #fff inset; }

.marca-caimanes { font-family: var(--letra-titulo); font-weight: 700; font-size: 15px; line-height: 1.25; color: var(--texto); text-decoration: none; }
.logo-mlp { height: 46px; width: auto; display: block; }
@media (max-width: 560px) { .logo-mlp { height: 32px; } .marca-caimanes { font-size: 13px; } }

/* Bienvenida */
.etiqueta-fecha { display: inline-block; background: var(--naranja); color: #fff; font-size: 13px; font-weight: 700; border-radius: 20px; padding: 3px 12px; margin-bottom: 12px; }
.portada-caimanes { background: linear-gradient(135deg, #fff 0%, #eef7f8 100%); border-top: 5px solid var(--naranja); }
.portada-caimanes h1 { font-size: 30px; }
.fila-botones { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.grilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.item { border: 1px solid #e3e3e3; border-radius: 10px; padding: 14px; }
.item b { display: block; margin-bottom: 4px; }
.icono { font-size: 22px; display: block; margin-bottom: 6px; }
.linea-tiempo { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--naranja); }
.linea-tiempo li { position: relative; padding: 0 0 16px 20px; }
.linea-tiempo li::before { content: ""; position: absolute; left: -9px; top: 5px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--naranja); }
.linea-tiempo .cuando { font-weight: 700; color: var(--naranja-oscuro); font-size: 14px; }
.dos-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 680px) { .dos-col { grid-template-columns: 1fr; } .portada-caimanes h1 { font-size: 24px; } }
ul.check { list-style: none; padding: 0; margin: 0; }
ul.check li { padding: 4px 0 4px 28px; position: relative; }
ul.check li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 700; }
details.pf { border: 1px solid #e3e3e3; border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
details.pf summary { cursor: pointer; font-weight: 600; }

/* ¿Puedo postular? y preguntas de las Bases: la opción elegida queda en negro */
.verif { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.verif label { border: 1px solid #bbb; border-radius: 20px; padding: 6px 16px; cursor: pointer; font-size: 14px; background: #fff; color: #222; }
.verif input, .quiz input { position: absolute; opacity: 0; width: 0; height: 0; }
.verif label:has(input:checked) { background: #222; color: #fff; border-color: #222; font-weight: 700; }
.quiz { border: 1px solid #e3e3e3; border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.quiz label { display: block; border: 1px solid #ccc; border-radius: 8px; padding: 8px 12px; margin: 6px 0; cursor: pointer; background: #fff; color: #222; }
.quiz label:has(input:checked) { background: #222; color: #fff; border-color: #222; }

/* Bases */
.caja-bases { border: 1px solid #ccc; border-radius: 10px; height: 380px; overflow-y: auto; padding: 18px; background: #fcfcfc; font-size: 15px; }
.caja-bases h3 { margin: 18px 0 6px; font-size: 17px; }
.caja-bases h3:first-child { margin-top: 0; }
.progreso-lectura { height: 6px; background: #eee; border-radius: 3px; margin: 8px 0; }
.progreso-lectura div { height: 100%; width: 0; background: var(--naranja); border-radius: 3px; transition: width .2s; }
.casilla { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.casilla input { margin-top: 5px; width: 18px; height: 18px; flex: none; }

/* Formulario por pestañas */
.sitio-caimanes .pasos { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; border: 0; padding: 0; }
.sitio-caimanes .paso { flex: 1; min-width: 120px; text-align: center; font-size: 13px; padding: 9px 6px; border-radius: 8px; background: #eee; color: #555; border: 0; cursor: pointer; font-family: inherit; }
.sitio-caimanes .paso:hover { background: #e2e2e2; }
.sitio-caimanes .paso.listo { background: #d9eef1; color: var(--naranja-oscuro); }
.sitio-caimanes .paso.activo { background: var(--naranja); color: #fff; font-weight: 700; }
.pasos-caja { padding: 18px 22px; }
.fila-siguiente { display: flex; justify-content: flex-end; margin-top: 8px; }
.subtitulo-declaraciones { font-size: 16px; margin: 20px 0 10px; }
.declaracion { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-weight: 600; }
.declaracion input { width: 18px; height: 18px; }
.sd-caja { margin-top: 10px; }
.sd-rotulo { display: block; font-size: 14px; color: var(--suave); margin-bottom: 4px; }
.sitio-caimanes ::placeholder { color: #9a9a9a; -webkit-text-fill-color: #9a9a9a; opacity: 1; }

/* Autodiagnóstico: alternativas como tarjetas; la elegida en negro (Rodrigo, 2026-11-02). */
.alternativas label { display: block; border: 1px solid #ccc; border-radius: 8px; padding: 9px 12px; margin: 6px 0; cursor: pointer; background: #fff; color: #222; }
.alternativas input { position: absolute; opacity: 0; width: 0; height: 0; }
.alternativas label:has(input:checked) { background: #222; color: #fff; border-color: #222; }
.alternativas label:has(input:disabled) { cursor: default; }
.alternativas label:has(input:focus-visible) { outline: 2px solid var(--naranja); outline-offset: 2px; }
.pregunta[hidden] { display: none; }
