/* INGENIO · Inscripción — colores y tipografías del manual de marca */
@font-face { font-family: "Metropolis"; font-weight: 400; font-display: swap; src: url("../assets/fonts/metropolis-400.woff2") format("woff2"); }
@font-face { font-family: "Metropolis"; font-weight: 600; font-display: swap; src: url("../assets/fonts/metropolis-600.woff2") format("woff2"); }

:root {
  --indigo: #3C3489; --indigo-9: #26205E; --indigo-1: #F1F0F9;
  --amber: #EF9F27; --amber-6: #D9861A; --amber-1: #FDF3E2;
  --teal: #1D9E75; --teal-1: #E3F4EE;
  --gray: #5F5E5A; --ink: #16151A; --line: #E4E2DC; --bg: #F7F6F3; --red: #C83E3E;
  --f-title: "Poppins", system-ui, sans-serif;
  --f-body: "Metropolis", "Poppins", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--f-body); font-size: 16.5px; line-height: 1.55; color: var(--gray); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .h3 { font-family: var(--f-title); color: var(--ink); line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); }
h3, .h3 { font-size: 1.1rem; }
.h3 { margin-top: 1.6rem; }
a { color: var(--indigo); }
b, strong { color: var(--ink); font-weight: 600; }
em { font-style: normal; color: var(--gray); font-size: .9em; }
.wrap { width: min(100% - 2rem, 820px); margin-inline: auto; }
.hl { color: var(--indigo); }
.hint { font-size: .88rem; color: var(--gray); margin: .4rem 0 0; }
.hp { position: absolute; left: -9999px; }

/* Encabezado */
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__word { font-family: var(--f-title); font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.brand__word .in { color: var(--indigo); }
.top__tag { font-family: var(--f-title); font-weight: 600; font-size: .85rem; color: #fff; background: var(--teal); padding: .35rem .9rem; border-radius: 999px; }
.demo { background: var(--amber-1); color: var(--ink); text-align: center; font-size: .9rem; padding: .6rem 1rem; border-bottom: 1px solid #F3D9A8; }
.demo code { background: #fff; padding: 0 .3rem; border-radius: 4px; }

.main { padding: 1.8rem 0 3rem; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; counter-reset: s; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600; text-align: center; color: #A3A19B; position: relative; }
.steps li span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-family: var(--f-title); color: #A3A19B; position: relative; z-index: 1; }
.steps li:not(:first-child)::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.steps li.is-active { color: var(--indigo); }
.steps li.is-active span { border-color: var(--indigo); color: var(--indigo); box-shadow: 0 0 0 4px rgba(60,52,137,.12); }
.steps li.is-done { color: var(--teal); }
.steps li.is-done span { background: var(--teal); border-color: var(--teal); color: #fff; }
.steps li.is-done::before, .steps li.is-active::before { background: var(--teal); }

/* Paneles */
.panel { background: #fff; border-radius: 22px; padding: clamp(1.3rem, 4vw, 2.4rem); box-shadow: 0 1px 2px rgba(22,21,26,.04), 0 10px 30px rgba(60,52,137,.07); border-top: 6px solid var(--indigo); }
.eyebrow { font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin: 0 0 .6rem; display: flex; align-items: center; gap: .5rem; }
.eyebrow::before { content: ""; width: 24px; height: 4px; border-radius: 2px; background: var(--amber); }
.lead { font-size: 1.1rem; margin: 0 0 1rem; }
.lead--sm { font-size: 1rem; margin-bottom: 1.4rem; }

.groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.group { border: 1px solid var(--line); border-radius: 14px; padding: .9rem; display: flex; flex-direction: column; gap: .1rem; background: var(--teal-1); border-color: #C6E7DB; }
.group strong { font-family: var(--f-title); font-size: .95rem; }
.group span { font-size: .88rem; }
.group b { margin-top: .4rem; font-family: var(--f-title); color: var(--indigo); }
.group small { font-weight: 400; color: var(--gray); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 1.4rem 0 1rem; }
.facts div { background: var(--indigo-1); border-radius: 14px; padding: .9rem 1rem; display: flex; flex-direction: column; }
.facts small { font-size: .8rem; }
.facts strong { font-family: var(--f-title); color: var(--indigo); font-size: 1.25rem; }
.facts span { font-size: .85rem; }

/* Campos */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.span2 { grid-column: span 2; }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; color: var(--ink); }
input, select, textarea { font: inherit; font-weight: 400; color: var(--ink); width: 100%; padding: .75rem .9rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); transition: border-color .2s, box-shadow .2s, background .2s; }
input:focus, select:focus { outline: none; border-color: var(--indigo); background: #fff; box-shadow: 0 0 0 4px rgba(60,52,137,.12); }
.is-invalid { border-color: var(--red) !important; background: #FFF6F6; }

/* Alumnos */
.kid { border: 1.5px solid var(--line); border-radius: 18px; padding: 1.1rem 1.2rem 1.2rem; margin: 0 0 1rem; }
.kid legend { padding: 0 .5rem; display: flex; align-items: center; gap: .7rem; }
.kid__n { font-family: var(--f-title); font-weight: 700; color: var(--indigo); }
.kid__remove { border: 0; background: none; color: var(--red); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; }
.kid__info:empty { display: none; }
.kid__info { margin-top: 1rem; border-radius: 12px; padding: .7rem .9rem; font-size: .92rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; }
.kid__info--ok { background: var(--teal-1); color: var(--ink); }
.kid__info--warn { background: var(--amber-1); color: var(--ink); display: block; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; color: #0F6B4E; background: #fff; border-radius: 999px; padding: .05rem .5rem; }

/* Autorizaciones */
.box { border: 1.5px solid var(--line); border-radius: 18px; padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.box p { margin: 0 0 .9rem; }
.choice { display: flex; gap: .7rem; flex-wrap: wrap; }
.radio, .check { display: flex; align-items: center; gap: .6rem; font-weight: 600; cursor: pointer; }
.radio { border: 1.5px solid var(--line); border-radius: 12px; padding: .6rem 1rem; }
.radio input, .check input, .plan input { width: 20px; height: 20px; accent-color: var(--indigo); margin: 0; flex: none; }
.radio:has(input:checked) { border-color: var(--indigo); background: var(--indigo-1); }

/* Planes */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.plan { display: flex; align-items: flex-start; gap: .8rem; border: 2px solid var(--line); border-radius: 18px; padding: 1.1rem; cursor: pointer; }
.plan:has(input:checked) { border-color: var(--indigo); background: var(--indigo-1); }
.plan__body { display: flex; flex-direction: column; font-weight: 400; }
.plan__body strong { font-family: var(--f-title); font-size: 1.1rem; }
.plan__body small { color: var(--gray); }
.plan__amt { font-family: var(--f-title); font-size: 1.6rem; color: var(--indigo); margin-top: .5rem; }

/* Resumen */
.table-wrap { overflow-x: auto; }
.summary { width: 100%; border-collapse: collapse; font-size: .93rem; }
.summary th, .summary td { padding: .65rem .5rem; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.summary th:nth-child(-n+2), .summary td:nth-child(-n+2) { text-align: left; }
.summary th { font-size: .78rem; color: var(--gray); font-weight: 600; }
.totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 1rem 0 1.4rem; }
.totals div { background: var(--indigo-1); border-radius: 14px; padding: .8rem 1rem; }
.totals small { display: block; font-size: .8rem; }
.totals strong { font-family: var(--f-title); color: var(--indigo); font-size: 1.2rem; }

.pay { background: var(--amber-1); border: 1.5px solid #F3D9A8; border-radius: 18px; padding: 1.1rem 1.2rem; }
.pay dl { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; margin: .4rem 0 0; }
.pay dt { font-size: .8rem; }
.pay dd { margin: 0; font-weight: 600; color: var(--ink); }
.pay__amt { font-family: var(--f-title); font-size: 1.5rem; color: var(--indigo) !important; }
.copy { font: inherit; font-size: .8rem; font-weight: 600; border: 1.5px solid var(--indigo); color: var(--indigo); background: #fff; border-radius: 999px; padding: .1rem .6rem; margin-left: .3rem; cursor: pointer; }
.file { margin-top: 1.2rem; }
.file input { background: #fff; }
.error { color: var(--red); background: #FFF0F0; border-radius: 12px; padding: .7rem .9rem; margin: 1rem 0 0; font-weight: 600; }

/* Botones */
.actions { display: flex; justify-content: space-between; gap: .8rem; margin-top: 1.6rem; }
.actions--start { justify-content: flex-start; }
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-title); font-weight: 600; font-size: 1rem; padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s; }
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: var(--amber-6); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(239,159,39,.35); }
.btn--amber:disabled { opacity: .6; cursor: wait; transform: none; }
.btn--ghost { border-color: var(--indigo); color: var(--indigo); background: #fff; }
.btn--add { border: 2px dashed var(--teal); color: var(--teal); background: var(--teal-1); width: 100%; }

/* Final */
.panel--done { text-align: center; border-top-color: var(--teal); }
.bit { width: 110px; margin: 0 auto .6rem; display: block; }
.code { font-family: var(--f-title); font-weight: 700; font-size: 2.2rem; letter-spacing: .12em; color: var(--indigo); margin: 0 0 .8rem; }

.foot { padding: 1.5rem 0 2rem; font-size: .85rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

@media (max-width: 720px) {
  .groups { grid-template-columns: 1fr 1fr; }
  .facts, .totals, .plans { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .grid2, .pay dl { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .steps li { font-size: 0; gap: 0; }
  .steps li span { font-size: .85rem; }
  .actions { flex-direction: column-reverse; }
  .actions .btn { width: 100%; }
}
