/* CoberturaSLC · Interfaz de la herramienta */
@font-face { font-family: 'Arimo'; font-weight: 400; src: url('../fonts/arimo-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Arimo'; font-weight: 700; src: url('../fonts/arimo-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'League Spartan'; font-weight: 700; src: url('../fonts/league-spartan-latin-700-normal.woff2') format('woff2'); }

:root {
  --azul: #3B7DC4; --azul-osc: #2C66A6; --azul-claro: #67A0DE; --amarillo: #FFC400;
  --tinta: #22262E; --gris: #6B7280; --linea: #DCE3ED; --fondo: #F3F6FA; --blanco: #fff; --rojo: #C9372C;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Arimo', Arial, sans-serif; color: var(--tinta); background: var(--fondo); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 28px 16px 40px; }

/* Barra superior */
.top { background: #fff; box-shadow: 0 1px 0 var(--linea); }
.top-in { max-width: 1100px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 16px; }
.top-logo { height: 42px; }
.top-tt { flex: 1; display: flex; flex-direction: column; border-left: 1px solid var(--linea); padding-left: 16px; }
.top-tt strong { font-family: 'League Spartan', sans-serif; font-size: 22px; line-height: 1; color: var(--azul); }
.top-tt span { font-size: 13px; color: var(--gris); margin-top: 3px; }
.top-af { height: 30px; }
.top-bar { display: flex; height: 4px; }
.top-bar i:nth-child(1) { flex: 76; background: var(--azul); }
.top-bar i:nth-child(2) { flex: 18; background: var(--azul-claro); }
.top-bar i:nth-child(3) { flex: 6; background: var(--amarillo); }

.card { background: #fff; border: 1px solid var(--linea); border-radius: 16px; box-shadow: 0 6px 24px rgba(30, 60, 110, .06); }
.vista { display: none; }
.vista.activa { display: block; animation: ent .25s ease; }
@keyframes ent { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Bienvenida */
.hero { max-width: 720px; margin: 24px auto; padding: 44px 40px; text-align: center; }
.pill { display: inline-block; background: #EEF4FB; color: var(--azul); font-weight: 700; font-size: 12px; letter-spacing: .4px; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-family: 'League Spartan', sans-serif; font-size: 38px; margin: 18px 0 10px; }
.hero p { color: #4A5160; font-size: 16px; line-height: 1.6; margin: 0 auto 28px; max-width: 560px; }
.pasos { list-style: none; padding: 0; margin: 32px 0 0; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; color: var(--gris); font-size: 14px; }
.pasos li { display: flex; align-items: center; gap: 8px; }
.pasos b { width: 24px; height: 24px; border-radius: 50%; background: #EEF4FB; color: var(--azul); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }

/* Botones */
.btn { font: inherit; font-weight: 700; font-size: 15px; border-radius: 10px; padding: 11px 20px; border: 1px solid transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: background .15s, box-shadow .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .btn-link:focus-visible { outline: 3px solid rgba(59, 125, 196, .35); outline-offset: 2px; }
.btn-pri { background: var(--azul); color: #fff; }
.btn-pri:hover { background: var(--azul-osc); }
.btn-sec { background: #fff; color: var(--tinta); border-color: var(--linea); }
.btn-sec:hover { background: #F5F8FC; }
.btn-lg { font-size: 17px; padding: 15px 28px; border-radius: 12px; box-shadow: 0 6px 16px rgba(59, 125, 196, .25); }
.btn-link { background: none; border: 0; color: var(--azul); font: inherit; font-weight: 700; cursor: pointer; padding: 4px 0; }

/* Formulario */
.form { max-width: 720px; margin: 0 auto; padding: 28px 32px 32px; }
.form-cab { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.form-cab h2 { margin: 0; font-family: 'League Spartan', sans-serif; font-size: 26px; flex: 1; }
.fecha-hoy { font-size: 13px; color: var(--gris); background: var(--fondo); border-radius: 8px; padding: 6px 10px; }
.campo { display: block; margin-top: 20px; }
.lab { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.lab em { color: var(--rojo); font-style: normal; }
.opc { font-weight: 400; color: var(--gris); }
input[type=text] { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--linea); border-radius: 10px; background: #fff; color: var(--tinta); }
input[type=text]:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(59, 125, 196, .18); }
.input-pre { display: flex; align-items: stretch; }
.input-pre span { display: flex; align-items: center; padding: 0 14px; background: var(--fondo); border: 1px solid var(--linea); border-right: 0; border-radius: 10px 0 0 10px; font-weight: 700; color: var(--gris); }
.input-pre input { border-radius: 0 10px 10px 0; }
.err { display: none; color: var(--rojo); font-size: 13px; margin-top: 6px; }
.campo.mal .err { display: block; }
.campo.mal input { border-color: var(--rojo); }

.tipos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grupo-fam { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: .4px; margin-top: 6px; }
.grupo-fam:first-child { margin-top: 0; }
.opcion { position: relative; }
.opcion input { position: absolute; opacity: 0; pointer-events: none; }
.opcion span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 46px; padding: 8px; border: 1px solid var(--linea); border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.opcion span:hover { border-color: var(--azul-claro); }
.opcion input:checked + span { border-color: var(--azul); background: #EEF4FB; color: var(--azul-osc); box-shadow: inset 0 0 0 1px var(--azul); }
.opcion input:focus-visible + span { outline: 3px solid rgba(59, 125, 196, .35); outline-offset: 2px; }
.campo.mal .opcion span { border-color: #E9B4AF; }
.fam-info { margin-top: 10px; background: #EEF4FB; border-left: 3px solid var(--amarillo); border-radius: 6px; padding: 9px 12px; font-size: 14px; color: #2E4C70; }

.gps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gps .opcion span { flex-direction: column; gap: 8px; min-height: 104px; padding: 14px; }
.gps img { max-height: 34px; max-width: 90%; }
.gps small { font-weight: 400; color: var(--gris); font-size: 13px; }

.acciones { display: flex; justify-content: flex-end; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* Resultado */
.res { padding: 22px 24px 24px; }
.res-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.res-cab h2 { margin: 0; font-family: 'League Spartan', sans-serif; font-size: 26px; color: var(--azul); }
.res-cab p { margin: 6px 0 0; color: #4A5160; font-size: 14px; line-height: 1.5; }
.res-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.visor { border: 1px solid var(--linea); border-radius: 12px; overflow: hidden; background: #525659; }
.visor iframe { display: block; width: 100%; height: 75vh; min-height: 480px; border: 0; }

/* Cargando */
.cargando { position: fixed; inset: 0; background: rgba(243, 246, 250, .85); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 50; }
.cargando[hidden] { display: none; }
.cargando p { font-weight: 700; color: var(--azul); }
.spin { width: 44px; height: 44px; border-radius: 50%; border: 4px solid #D6E3F3; border-top-color: var(--azul); animation: g 0.8s linear infinite; }
@keyframes g { to { transform: rotate(360deg); } }

.pie-app { text-align: center; color: var(--gris); font-size: 12px; padding: 16px; }

@media (max-width: 640px) {
  .hero { padding: 32px 20px; }
  .hero h1 { font-size: 30px; }
  .form { padding: 22px 18px 24px; }
  .tipos { grid-template-columns: repeat(2, 1fr); }
  .gps { grid-template-columns: 1fr; }
  .top-af { display: none; }
  .top-logo { height: 34px; }
  .res-btns .btn { flex: 1 1 100%; }
  .acciones .btn { flex: 1; }
}
