/* Portal Blindaje Empresarial — estilos compartidos.
   Diseño: especificaciones/AgileNext_autodiagnostico.html (pantallas de
   autodiagnóstico e inicio de sesión). Paleta: la de agilenext.mx, que manda
   sobre la del handoff. */
:root {
  --navy: #07222F; --navy2: #0D435F; --azul: #14658E; --azul-h: #105172;
  --cielo: #34A8E2; --naranja: #E76B37; --naranja2: #EC895F;
  --texto: #1d2939; --gris: #4B5563; --fondo: #F5F7FA; --linea: #D0D7E2;
  --crit: #C0392B; --warn: #B9770E; --ok: #1E8E5A;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif; color: var(--texto); background: #fff; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3, .btn, .kicker, .marca { font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif; }
a { color: var(--azul); }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }
.wrap.ancho { max-width: 1040px; }
main { flex: 1; }

/* Encabezado y pie */
.barra { background: var(--navy); color: #fff; }
.barra .wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.marca { color: #fff; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: .2px; }
.marca span { color: var(--naranja2); }
.barra .ht { color: #c8d8ea; font-size: 14px; border-left: 1px solid rgba(255,255,255,.25); padding-left: 14px; }
.barra .der { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.barra .der a, .barra .der button { color: #c8d8ea; font-size: 14px; text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit; padding: 0; }
.barra .der a:hover, .barra .der button:hover { color: #fff; }
.pie { background: var(--navy); color: #9FB0C4; font-size: 13px; text-align: center; padding: 22px 16px; margin-top: 40px; }
.pie a { color: #c8d8ea; }
.lema { font-family: 'Manrope', sans-serif; font-weight: 700; color: var(--cielo); margin-top: 6px; }

/* Encabezados de página */
.hero { padding: 32px 0 4px; }
.kicker { font-weight: 700; font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--azul); margin: 0 0 8px; }
.hero h1 { color: var(--navy); font-size: clamp(24px, 4vw, 30px); line-height: 1.2; margin: 0 0 8px; font-weight: 800; }
.hero p { color: var(--gris); font-size: 16.5px; margin: 0; }
/* Portada con imagen (la foto de la página de Blindaje Empresarial del sitio) */
.hero.con-imagen { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 36px; align-items: center; padding-top: 40px; }
.hero.con-imagen h1 { font-size: clamp(26px, 4vw, 36px); }
.figura { margin: 0; }
.figura img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 72% center; border-radius: 14px; box-shadow: 0 14px 34px rgba(13, 67, 95, .18); }
@media (max-width: 760px) {
  .hero.con-imagen { grid-template-columns: 1fr; gap: 22px; padding-top: 28px; }
  .figura img { aspect-ratio: 16 / 9; }
}
/* Logotipo institucional (versión blanca sobre la barra navy) */
.marca { display: inline-flex; align-items: center; }
.marca img { display: block; height: 36px; width: auto; }

/* Pasos */
.pasos { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 20px 0 6px; font-size: 13px; font-weight: 700; color: var(--gris); }
.paso { display: flex; gap: 7px; align-items: center; }
.paso .b { width: 24px; height: 24px; border-radius: 50%; background: #EEF2F5; color: var(--gris); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.paso.on .b { background: var(--azul); color: #fff; }
.paso.hecho .b { background: var(--ok); color: #fff; }
.sep { flex: 0 0 22px; height: 2px; background: #EEF2F5; border-radius: 2px; }

/* Tarjetas y formularios */
.tarjeta { margin: 16px 0; border: 1px solid var(--linea); border-radius: 12px; padding: 20px 22px; background: #fff; }
.tarjeta h2 { font-size: 16px; color: var(--azul); margin: 0 0 12px; font-weight: 800; }
.fila { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0; }
@media (max-width: 560px) { .fila { grid-template-columns: 1fr; } }
.campo { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 600; }
label.campo input, label.campo select { padding: 11px 12px; border: 1px solid var(--linea); border-radius: 8px; font-size: 15px; font-family: inherit; background: #fff; color: var(--texto); min-height: 44px; }
label.campo input:focus, label.campo select:focus { outline: 2px solid var(--cielo); outline-offset: 1px; border-color: var(--azul); }
.req { color: var(--crit); }
.legal { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 14px 0 0; }
.legal input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--azul); flex: none; }
.oculto-bot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; background: var(--azul); color: #fff; border: 0; padding: 0 24px; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--azul-h); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.cta { background: var(--naranja); }
.btn.cta:hover { background: #c45b2f; }
.btn.sec { background: #fff; color: var(--azul); border: 1.5px solid var(--azul); }
.btn.sec:hover { background: var(--fondo); }
.btn.bloque { width: 100%; }
.acciones { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.nota { font-size: 13px; color: var(--gris); }
.enlace { background: none; border: 0; color: var(--azul); font-weight: 700; cursor: pointer; font-family: inherit; font-size: 14px; padding: 0; text-decoration: underline; }

.aviso { display: none; border-radius: 8px; padding: 10px 14px; font-size: 14px; margin: 12px 0 0; }
.aviso.visible { display: block; }
.aviso.error { background: #FDECEC; border: 1px solid #F2B8B5; color: var(--crit); }
.aviso.ok { background: #EDF7F1; border: 1px solid #BFE3CD; color: var(--ok); }

.centro { text-align: center; padding: 30px 18px; }
.centro .ic { width: 64px; height: 64px; border-radius: 50%; background: #E4F2FA; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 28px; }
.centro h2 { color: var(--navy); font-size: 22px; }
.codigo { letter-spacing: 10px; font-size: 26px !important; text-align: center; font-weight: 800; font-family: 'Manrope', sans-serif !important; }

[hidden] { display: none !important; }

/* Autodiagnóstico: preguntas */
.progreso { position: sticky; top: 0; z-index: 5; background: #fff; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.progreso .barra-p { height: 8px; background: #EEF2F5; border-radius: 99px; overflow: hidden; }
.progreso .barra-p i { display: block; height: 100%; background: var(--azul); width: 0; transition: width .25s; }
.progreso .txt { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; color: var(--gris); margin-bottom: 6px; }
.pregunta { border: 1px solid var(--linea); border-radius: 12px; padding: 16px 18px; margin: 12px 0; }
.pregunta.respondida { border-color: #BFE3CD; background: #FAFDFB; }
.pregunta .n { font-family: 'Manrope', sans-serif; font-weight: 800; color: var(--azul); font-size: 13px; }
.pregunta p { margin: 4px 0 12px; font-size: 16.5px; }
.opciones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opciones button { min-height: 44px; border: 1.5px solid var(--linea); background: #fff; border-radius: 8px; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15px; color: var(--texto); cursor: pointer; }
.opciones button:hover { border-color: var(--azul); }
.opciones button[aria-pressed="true"] { background: var(--azul); border-color: var(--azul); color: #fff; }

/* Resultado */
.resultado-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: center; }
@media (max-width: 760px) { .resultado-top { grid-template-columns: 1fr; } }
.radar svg { width: 100%; height: auto; display: block; }
.leyenda { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; font-size: 13px; color: var(--gris); margin-top: 6px; }
.leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.leyenda .sw { width: 14px; height: 14px; border-radius: 3px; background: rgba(226,75,74,.22); border: 2px solid #C0392B; }
.leyenda .ln { width: 22px; border-top: 2.5px dashed var(--cielo); }
.global { text-align: center; }
.global .pct { font-family: 'Manrope', sans-serif; font-size: 64px; font-weight: 800; line-height: 1; }
.global .etq { font-size: 13px; color: var(--gris); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; margin-top: 6px; }
.veredicto { display: inline-block; margin-top: 12px; padding: 6px 16px; border-radius: 99px; font-family: 'Manrope', sans-serif; font-weight: 800; color: #fff; }
.mensaje { font-size: 16px; margin-top: 14px; }
.capas { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.capa { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--linea); border-radius: 10px; padding: 10px 14px; font-size: 14.5px; }
.capa b { font-family: 'Manrope', sans-serif; }
.punto { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.ciegos { background: #FFF6E5; border: 1px solid #F3D9A4; border-radius: 10px; padding: 12px 16px; font-size: 15px; }
.cierre { background: linear-gradient(180deg, var(--navy) 0%, var(--navy2) 100%); color: #fff; border-radius: 14px; padding: 26px 24px; margin: 22px 0; }
.cierre h2 { color: #fff; margin: 0 0 8px; font-size: 21px; }
.cierre p { color: rgba(255,255,255,.88); margin: 0 0 16px; }
.cierre .btn.cta { color: #fff; }
.acciones.centrada { justify-content: center; }
.evtag { display: inline-flex; align-items: center; gap: 6px; background: #EDF7F1; border: 1px solid #BFE3CD; color: var(--ok); border-radius: 99px; padding: 5px 14px; font-weight: 700; margin: 0 0 12px; }
@media (max-width: 560px) {
  .barra .ht, #quien { display: none; }
  .barra .der { gap: 12px; }
}
/* Teléfono: lada + 10 dígitos */
.tel { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 8px; }
.tel select, .tel input { padding: 11px 12px; border: 1px solid var(--linea); border-radius: 8px; font-size: 15px; font-family: inherit; background: #fff; color: var(--texto); min-height: 44px; }
.tel input { letter-spacing: 1px; }
.tel select:focus, .tel input:focus { outline: 2px solid var(--cielo); outline-offset: 1px; border-color: var(--azul); }
.previa-tel { font-size: 13px; color: var(--gris); margin: 6px 0 0; min-height: 18px; }
.previa-tel.ok { color: var(--ok); font-weight: 600; }
/* Los select toman el ancho de su opción más larga: se les obliga a respetar la columna. */
.fila > * { min-width: 0; }
.campo select, .campo input, .tel select, .tel input { width: 100%; min-width: 0; max-width: 100%; }
