/* APTOS · Turnos — mismos colores y tipografías que aptossrl.com */
:root {
  --navy: #1E2A5E; --navy-900: #141C42; --navy-700: #2A3873;
  --orange: #E57706; --orange-600: #C96604; --orange-50: #FFF4E8;
  --red: #D63C1E; --red-50: #FDECE8;
  --green: #1C8C5A; --green-50: #E6F5EE;
  --ink: #1B2140; --muted: #5B6383; --line: #E2E6F0; --tint: #F3F5FA; --white: #fff;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 10px 30px -14px rgba(20, 28, 66, .28);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.55; color: var(--ink); background: var(--tint); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.05; margin: 0 0 .4em; color: var(--navy); letter-spacing: .2px; }
h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
h2 { font-size: 1.6rem; }
p { margin: 0 0 .9em; }
code { background: var(--tint); padding: 1px 6px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
.angosto { max-width: 760px; }
.muted { color: var(--muted); }
.chico { font-size: .88rem; }
.inline { display: inline; margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

/* ---------- Barra superior ---------- */
.top { background: var(--navy); color: #fff; }
.top__in { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.top__logo img { height: 40px; width: auto; }
.top__tag { font-family: var(--font-head); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .08em; color: #FFB066; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.25); }
.top__nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.top__nav a, .top__nav .linkbtn { color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; }
.top__nav .linkbtn:hover, .top__nav a:hover { color: #FFB066; }
@media (max-width: 560px) { .top__tag { display: none; } .top__nav a { display: none; } }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 800 .97rem var(--font-body); text-decoration: none; border: 2px solid transparent; border-radius: 999px; padding: .68rem 1.25rem; cursor: pointer; transition: background .2s, transform .15s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--lg { padding: .95rem 1.6rem; font-size: 1.08rem; }
.btn--block { width: 100%; }
.btn--naranja { background: var(--orange); color: #fff; box-shadow: 0 10px 22px -12px rgba(229,119,6,.9); }
.btn--naranja:hover { background: var(--orange-600); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }
.btn--suave { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--suave:hover { border-color: var(--navy); }
.btn--rojo { background: var(--red); color: #fff; }
.btn--wa { background: #1FA855; color: #fff; }
.btn--wa:hover { background: #178a45; }
.linkbtn { background: none; border: 0; padding: 0; font: 700 .93rem var(--font-body); color: var(--navy); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn--naranja { color: var(--orange-600); }
.linkbtn--rojo { color: var(--red); }

/* ---------- Tarjetas y avisos ---------- */
.tarjeta { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; border: 1px solid rgba(226,230,240,.7); }
.tarjeta__titulo { font-size: 1.5rem; text-transform: uppercase; margin-bottom: 18px; }
.aviso { border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; font-weight: 600; }
.aviso ul { margin: 6px 0 0; padding-left: 20px; font-weight: 500; }
.aviso--ok { background: var(--green-50); color: #11603C; }
.aviso--error { background: var(--red-50); color: #9A2812; }
.aviso--info { background: var(--orange-50); color: #8A4A05; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: .6rem; }
.eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 3px; background: currentColor; }
.eyebrow--claro { color: #FFB066; }
.chip { display: inline-block; font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.chip--verde { background: var(--green-50); color: var(--green); }
.chip--rojo { background: var(--red-50); color: var(--red); }
.chip--gris { background: var(--tint); color: var(--muted); }
.barra { height: 6px; border-radius: 6px; background: var(--tint); overflow: hidden; margin-top: 6px; }
.barra i { display: block; height: 100%; background: var(--orange); border-radius: 6px; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 14px; }
.form label, .campos label { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--navy); }
label small { font-weight: 600; color: var(--muted); }
input, select, textarea { width: 100%; font: 500 1rem var(--font-body); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .85rem; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(30,42,94,.1); }
textarea { resize: vertical; }
.form--fila { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); align-items: end; }

/* ---------- Login ---------- */
.centro { display: grid; place-items: center; padding: 40px 16px; }
.tarjeta--login { width: 100%; max-width: 400px; text-align: left; }
.login__logo { height: 54px; width: auto; margin: 0 auto 18px; }
.tarjeta--login h1 { text-align: center; font-size: 2rem; text-transform: uppercase; }

/* ---------- Panel ---------- */
.panel { padding-block: 28px 48px; }
.panel__grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 24px; align-items: start; }
.panel__grid--abajo { grid-template-columns: 1fr 1fr; margin-top: 24px; }
@media (max-width: 900px) { .panel__grid, .panel__grid--abajo { grid-template-columns: 1fr; } }
.dias { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.dias legend { font-weight: 700; font-size: .92rem; color: var(--navy); margin-bottom: 6px; padding: 0; }
.dias__lista { display: grid; gap: 10px; }
.dia { display: grid; grid-template-columns: 1.4fr 1fr 1fr 28px; gap: 8px; align-items: end; background: var(--tint); padding: 10px; border-radius: var(--radius-sm); }
.dia label { font-size: .78rem; gap: 4px; }
.dia input { padding: .55rem .5rem; font-size: .93rem; }
.dia__quitar { border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; height: 38px; }
.dia__quitar:hover { color: var(--red); }
.dias__lista .dia:only-child .dia__quitar { visibility: hidden; }
.dias > .linkbtn { justify-self: start; }

.vacio { color: var(--muted); padding: 30px 0; text-align: center; }
.colegios { list-style: none; margin: 0; padding: 0; }
.colegio { display: grid; grid-template-columns: minmax(0, 1fr) 130px auto; gap: 18px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.colegio:first-child { border-top: 0; padding-top: 0; }
.colegio--pasado { opacity: .62; }
.colegio__nombre { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.colegio__nombre:hover { color: var(--orange-600); }
.colegio__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .92rem; margin: 2px 0 8px; }
.colegio__nums strong, .cab-colegio__nums strong { font-family: var(--font-head); font-size: 2rem; color: var(--navy); line-height: 1; margin-right: 6px; }
.colegio__nums span, .cab-colegio__nums span { color: var(--muted); font-size: .88rem; }
.colegio__acciones { display: flex; gap: 8px; }
@media (max-width: 720px) { .colegio { grid-template-columns: 1fr; gap: 10px; } }

.volver { display: inline-block; margin-bottom: 14px; font-weight: 700; text-decoration: none; color: var(--muted); }
.volver:hover { color: var(--navy); }
.cab-colegio { display: grid; grid-template-columns: minmax(0, 1fr) 200px auto; gap: 24px; align-items: center; margin-bottom: 20px; }
.cab-colegio h1 { text-transform: uppercase; margin-bottom: .15em; }
.cab-colegio p { margin-bottom: .5em; }
.cab-colegio__acciones { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 860px) { .cab-colegio { grid-template-columns: 1fr; } .cab-colegio__acciones { flex-direction: row; flex-wrap: wrap; } }
.link-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.link-box > div:first-child { flex: 1 1 420px; }
.link-box__fila { display: flex; gap: 8px; }
.link-box__fila input { font-weight: 700; color: var(--navy); background: var(--tint); }
.link-box__extra { display: flex; flex-wrap: wrap; gap: 8px; }

.jornada { margin-bottom: 20px; padding: 0; overflow: hidden; }
.jornada__cab { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 24px 14px; }
.jornada__cab h2 { margin-bottom: .15em; }
.jornada__cab p { margin: 0; }
.jornada__editar { min-width: 0; }
.jornada__editar[open] { flex-basis: 100%; }
.jornada__editar summary { list-style: none; cursor: pointer; }
.jornada__editar summary::-webkit-details-marker { display: none; }
.jornada__editar .form { margin: 12px 0; }
.tabla-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--line); }
.agenda { width: 100%; border-collapse: collapse; font-size: .9rem; }
.agenda th { text-align: left; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--tint); padding: 10px 12px; white-space: nowrap; }
.agenda td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.agenda td.hora { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--navy); white-space: nowrap; }
.agenda td.obs { max-width: 240px; }
.agenda tr.sigue td { border-top-style: dashed; }
.agenda tr.libre td { color: #A4AAC0; font-style: italic; padding-block: 6px; }
.agenda tr.libre td.hora { color: #A4AAC0; font-style: normal; font-size: 1rem; }
.icono-borrar { border: 0; background: var(--red-50); color: var(--red); width: 28px; height: 28px; border-radius: 50%; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.icono-borrar:hover { background: var(--red); color: #fff; }
.zona-peligro { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.zona-peligro summary { cursor: pointer; }
.zona-peligro .form { margin-top: 12px; }

/* ---------- Página pública ---------- */
.hero-colegio { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; padding: 34px 0 64px; position: relative; overflow: hidden; }
.hero-colegio::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(229,119,6,.35), transparent 70%); }
.hero-colegio .wrap { max-width: 760px; position: relative; z-index: 1; }
.hero-colegio h1 { color: #fff; text-transform: uppercase; }
.hero-colegio__datos { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-weight: 600; color: #D9DEF0; }
.publico__main { margin-top: -40px; padding-bottom: 40px; position: relative; z-index: 2; }
.paso { margin-bottom: 16px; }
.paso__titulo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; text-transform: uppercase; margin-bottom: 16px; }
.paso__titulo span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 1.15rem; flex: none; }
.dia-titulo { font-size: 1.25rem; margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.dia-titulo:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.horarios { display: grid; gap: 8px; }
.horarios__fila { display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: center; }
.horarios__hora { font-family: var(--font-head); font-weight: 700; color: var(--muted); font-size: 1rem; }
.horarios__chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 520px) { .horarios__chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } .horarios__fila { grid-template-columns: 1fr; gap: 4px; } }
.slot { position: relative; display: block; }
.slot input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.slot span { display: block; text-align: center; padding: 10px 0; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 800; color: var(--navy); background: #fff; transition: all .15s; font-variant-numeric: tabular-nums; }
.slot:hover span { border-color: var(--navy); }
.slot input:checked + span { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 8px 18px -10px rgba(229,119,6,.9); }
.slot input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.slot span em { display: block; font-style: normal; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--orange-600); margin-top: -2px; }
.slot input:checked + span em { color: #fff; }
.slot--ocupado span { background: var(--tint); color: #B4B9CC; border-color: transparent; text-decoration: line-through; }
.slot--ocupado input { cursor: not-allowed; }
.leyenda { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .84rem; margin: 14px 0 0; }
.slot-mini { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line); background: #fff; display: inline-block; }
.slot-mini--ocupado { background: var(--tint); border-color: var(--tint); margin-left: 10px; }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.campos__ancho { grid-column: 1 / -1; }
@media (max-width: 560px) { .campos { grid-template-columns: 1fr; } }
.dos { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.capacidad { background: var(--orange-50); color: #7A4204; border-radius: var(--radius-sm); padding: 12px 14px; font-size: .9rem; line-height: 1.4; }
.capacidad strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--orange-600); }
.capacidad:empty { display: none; }
.consentimiento { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: .92rem; color: var(--ink); background: var(--tint); padding: 14px; border-radius: var(--radius-sm); margin-bottom: 16px; cursor: pointer; }
.consentimiento input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--orange); }
.elegido { text-align: center; color: var(--navy); margin-bottom: 12px; }
.trampa { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.mensaje { margin-top: 32px; }
.publico__main .mensaje { margin-top: 0; }

.comprobante { margin-top: 32px; text-align: center; }
.comprobante__ok { width: 64px; height: 64px; border-radius: 50%; background: var(--green-50); color: var(--green); display: grid; place-items: center; font-size: 2rem; font-weight: 800; margin: 0 auto 14px; }
.comprobante h1 { text-transform: uppercase; }
.comprobante__datos { text-align: left; margin: 20px 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.comprobante__datos div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.comprobante__datos div:first-child { border-top: 0; }
.comprobante__datos dt { color: var(--muted); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.comprobante__datos dd { margin: 0; font-weight: 600; }
.comprobante__datos .destacado { background: var(--orange-50); }
.comprobante__datos .destacado strong { font-family: var(--font-head); font-size: 1.8rem; color: var(--orange-600); }
.codigo { font-family: ui-monospace, Consolas, monospace; letter-spacing: .15em; font-weight: 800; }
.comprobante__acciones { display: grid; gap: 10px; }

.pie { padding: 22px 0; color: var(--muted); font-size: .84rem; text-align: center; }
.pie a { color: var(--muted); }

@media print {
  .top, .pie, .comprobante__acciones { display: none; }
  body { background: #fff; }
  .tarjeta { box-shadow: none; border: 0; }
}
.elegido--falta { color: var(--red); }

input, select, textarea { min-width: 0; }
.panel__grid > *, .form > *, .dia > * { min-width: 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 2px; }
.tabs button { flex: 1 0 auto; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font: 800 .95rem var(--font-body); padding: .6rem 1rem; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.con-tabs .dia-titulo { display: none; }
.dia { grid-template-columns: 1fr 1fr 28px; }
.dia label:first-child { grid-column: 1 / 3; }
.dia__quitar { grid-column: 3; grid-row: 1 / 3; align-self: center; }
.dos { grid-template-columns: 1.6fr 1fr; }
.hero-colegio__bajada { color: #D9DEF0; font-weight: 600; max-width: 560px; margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.buscador { display: block; margin-bottom: 14px; }
.buscador input { font-size: 1.05rem; padding: .85rem 1rem; }
.lista-colegios { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lista-colegios a { display: grid; gap: 2px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--muted); font-size: .93rem; transition: border-color .15s, box-shadow .15s; }
.lista-colegios a:hover { border-color: var(--orange); box-shadow: 0 10px 22px -16px rgba(229,119,6,.9); }
.lista-colegios strong { font-family: var(--font-head); font-size: 1.4rem; color: var(--navy); }
.lista-colegios em { font-style: normal; font-weight: 800; color: var(--orange-600); margin-top: 6px; }
.ayuda { margin: 18px 0 0; }
.pie__credito { display: block; margin-top: 4px; }
.pie__credito a { font-weight: 700; text-decoration: none; }
