/* ==========================================================================
   Tutorías de matemáticas
   Azul noche + amarillo resaltador, ilustraciones por materia.
   Tipografías: STIX Two Text (títulos, con aire de libro de matemáticas) y Lexend (texto).
   ========================================================================== */

:root {
  --navy-950: #0B1130;
  --navy-900: #111A45;
  --navy-800: #1A2357;
  --navy-700: #283380;
  --navy-600: #3A469B;
  --ink: #1A2357;
  --text: #2A3047;
  --muted: #646B85;
  --line: #E4E8F2;
  --line-2: #CDD4E5;
  --bg: #F5F7FC;
  --card: #FFFFFF;

  --yellow: #FFC93C;
  --yellow-600: #F2B300;
  --yellow-soft: #FFF4D1;
  --indigo: #4C5FD5;
  --indigo-soft: #EEF0FF;
  --teal: #0E9384;
  --teal-soft: #E2F6F2;
  --amber: #D98A00;
  --amber-soft: #FFF5DC;
  --rose: #D6336C;
  --rose-soft: #FDEBF2;
  --red: #D93D42;
  --red-soft: #FDECEC;
  --green: #12805C;
  --green-soft: #E2F5EC;

  --display: 'STIX Two Text', 'STIX Two', Cambria, Georgia, serif;
  --sans: 'Lexend', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --sh-sm: 0 1px 2px rgba(17, 26, 69, .06), 0 1px 3px rgba(17, 26, 69, .06);
  --sh-md: 0 6px 16px -6px rgba(17, 26, 69, .14), 0 2px 6px -2px rgba(17, 26, 69, .06);
  --sh-lg: 0 30px 60px -20px rgba(11, 17, 48, .35), 0 12px 24px -12px rgba(11, 17, 48, .18);

  --container: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; }
h1, h2 { font-family: var(--display); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 2.4vw + 1rem, 2.6rem); line-height: 1.12; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: 0 0 .8em; }
a { color: var(--indigo); text-underline-offset: 3px; }
code { font-size: .9em; background: var(--indigo-soft); color: var(--ink); padding: 1px 6px; border-radius: 5px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

/* ---------------- Botones ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  font: 500 .95rem/1.2 var(--sans);
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .875rem; border-radius: 10px; }
.btn-sm .i { width: 17px; height: 17px; }
.btn-lg { min-height: 52px; padding: 12px 24px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--navy-800); color: #fff; box-shadow: 0 6px 14px -6px rgba(26, 35, 87, .6); }
.btn-primary:hover:not(:disabled) { background: var(--navy-700); }
.btn-accent { background: var(--yellow); color: var(--navy-900); box-shadow: 0 10px 24px -10px rgba(255, 201, 60, .8); font-weight: 600; }
.btn-accent:hover { background: #FFD45F; }
.btn-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-light:hover { background: rgba(255, 255, 255, .16); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover:not(:disabled) { border-color: var(--ink); background: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover:not(:disabled) { background: var(--indigo-soft); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #BF2F34; }
.btn-ghost-danger { background: transparent; color: var(--red); }
.btn-ghost-danger:hover:not(:disabled) { background: var(--red-soft); }
.btn-soft-ok { background: var(--green-soft); color: var(--green); }
.btn-soft-ok:hover:not(:disabled) { background: #CDEEDD; }
.btn-whatsapp { background: #1FA855; color: #fff; }
.btn-whatsapp:hover { background: #178A45; }

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.icon-btn:hover { background: rgba(26, 35, 87, .08); }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; display: inline-block; vertical-align: -3px; }
.spinner.dark { border-color: var(--line-2); border-top-color: var(--ink); margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Insignias y alertas ---------------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 500; padding: 3px 10px; border-radius: 999px; line-height: 1.5; white-space: nowrap; }
.badge .i { width: 14px; height: 14px; }
.badge-ok { background: var(--green-soft); color: var(--green); }
.badge-bad { background: var(--red-soft); color: var(--red); }
.badge-info { background: var(--indigo-soft); color: var(--indigo); }
.badge-warn { background: var(--yellow-soft); color: #8A5A00; }
.badge-accent { background: var(--yellow); color: var(--navy-900); }
.badge-outline { border: 1.5px solid var(--line-2); color: var(--ink); background: #fff; }

.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); font-size: .925rem; margin: 0 0 14px; }
.alert .i { margin-top: 1px; }
.alert .btn { margin-left: auto; }
.alert-error, .alert-danger { background: var(--red-soft); color: #9F2328; }
.alert-info { background: var(--indigo-soft); color: var(--ink); }
.alert-danger { align-items: center; }

/* ---------------- Formularios ---------------- */
.field { margin: 0 0 16px; min-width: 0; border: 0; padding: 0; }
fieldset.field { margin: 0 0 16px; }
.field-label { display: block; font-weight: 500; font-size: .925rem; margin-bottom: 6px; color: var(--ink); padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
.hint { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="date"], input[type="time"], input[type="search"], select, textarea {
  width: 100%; min-height: 46px;
  font: 400 1rem var(--sans); color: var(--text);
  background: #fff;
  border: 1.5px solid var(--line-2); border-radius: var(--r-md);
  padding: 10px 14px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #9AA1B8; }
input:hover, select:hover, textarea:hover { border-color: #AEB7CF; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(76, 95, 213, .16); }

.input-icon { position: relative; }
.input-icon > .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8C93AB; pointer-events: none; }
.input-icon > input { padding-left: 44px; }
.input-icon.has-action > input { padding-right: 52px; }
.input-action { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 9px; cursor: pointer; }
.input-action:hover { background: var(--bg); color: var(--ink); }
.input-suffix { display: flex; align-items: stretch; }
.input-suffix input { border-top-right-radius: 0; border-bottom-right-radius: 0; max-width: 110px; }
.input-suffix span { display: flex; align-items: center; padding: 0 14px; background: var(--bg); border: 1.5px solid var(--line-2); border-left: 0; border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--muted); font-size: .9rem; white-space: nowrap; }

/* Interruptor */
.switch {
  appearance: none; -webkit-appearance: none; position: relative; flex: none;
  width: 46px; height: 26px; margin: 0; border-radius: 999px;
  background: #C9CFDF; cursor: pointer; transition: background-color .2s;
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s;
}
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(20px); }
.switch:disabled { opacity: .45; cursor: not-allowed; }
.switch:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.switch-label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; color: var(--ink); }
.switch-wrap { display: inline-flex; }
.toggle-row { display: flex; flex-wrap: wrap; gap: 12px 28px; }

/* ---------------- Tarjetas ---------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.card.pad { padding: 24px; }
.card-head { margin-bottom: 18px; }
.card-head h2 { font-family: var(--sans); font-size: 1.15rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-head p { margin: 4px 0 0; font-size: .925rem; }

/* ---------------- Aviso de modo local ---------------- */
.local-banner {
  display: flex; align-items: center; gap: 12px;
  background: var(--yellow-soft); color: #5C4300; border-bottom: 1px solid #F3DE9E;
  padding: 10px max(24px, calc((100vw - var(--container)) / 2 + 24px));
  font-size: .9rem;
}
.local-banner p { margin: 0; flex: 1; }
.local-banner .icon-btn { width: 34px; height: 34px; }

/* ==========================================================================
   PÁGINA PÚBLICA
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 26, 69, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .5); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 11px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--display); font-size: 1.25rem; font-weight: 600; }
.brand-text span { font-size: .8rem; color: var(--muted); }
.site-header .brand, .site-header .brand-text span { color: #fff; }
.site-header .brand-text span { opacity: .7; }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { color: rgba(255, 255, 255, .82); text-decoration: none; font-size: .95rem; padding: 8px 14px; border-radius: 10px; }
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.header-cta { background: var(--yellow); color: var(--navy-900); box-shadow: none; }
.header-cta:hover { background: #FFD45F !important; }

/* Portada */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: #fff;
  padding: 72px 0 96px;
}
.hero-glow { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 380px at 85% 30%, rgba(76, 95, 213, .45), transparent 70%),
    radial-gradient(420px 300px at 10% 100%, rgba(255, 201, 60, .14), transparent 70%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 3.6vw + 1rem, 4rem); line-height: 1.04; letter-spacing: -.02em; font-weight: 600; max-width: 14ch; }
.hero-lead { font-size: 1.125rem; line-height: 1.65; color: rgba(255, 255, 255, .8); max-width: 50ch; margin: 22px 0 32px; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-subjects { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-subjects a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  color: rgba(255, 255, 255, .9); font-size: .875rem; padding: 7px 14px 7px 10px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .04);
}
.hero-subjects a:hover { background: rgba(255, 255, 255, .12); }
.hero-subjects i { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .12); }

.hero-art { position: relative; min-height: 440px; }
.art-board {
  position: absolute; inset: 20px 30px 60px 0;
  background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-lg); overflow: hidden;
  transform: rotate(-2deg);
}
.art-board svg { width: 100%; height: 100%; display: block; }
.art-formula {
  position: absolute; left: 22px; top: 18px; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--display); font-style: italic; font-size: 1.05rem; color: var(--ink);
  background: rgba(255, 255, 255, .92); padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line);
}
.art-formula sub { font-size: .65em; }
.frac { display: inline-flex; flex-direction: column; text-align: center; font-size: .82em; line-height: 1.2; }
.frac span:first-child { border-bottom: 1.5px solid currentColor; padding: 0 3px 1px; }
.art-ticket {
  position: absolute; right: 0; bottom: 0; width: 270px;
  background: #fff; color: var(--text); border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  padding: 16px 18px; transform: rotate(2deg);
  animation: floatIn .7s cubic-bezier(.2, .8, .3, 1.1) 1.9s both;
}
.art-ticket-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px dashed var(--line-2); }
.art-ticket-head strong { display: block; color: var(--ink); font-size: .975rem; }
.art-ticket-head small { color: var(--muted); font-size: .8rem; letter-spacing: .04em; }
.art-check { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.art-check .i { stroke-width: 3; }
.art-ticket-row { display: flex; align-items: center; gap: 10px; font-size: .875rem; padding: 4px 0; }
.art-ticket-row .i { width: 17px; height: 17px; color: var(--indigo); }
.art-chip {
  position: absolute; font-family: var(--display); font-size: 1.05rem; color: var(--navy-900);
  background: var(--yellow); padding: 6px 14px; border-radius: 999px; box-shadow: var(--sh-md);
  animation: floatIn .6s ease-out both;
}
.art-chip-1 { left: -18px; top: 46%; animation-delay: 1.3s; }
.art-chip-2 { right: 6px; top: 0; background: #fff; animation-delay: 1.5s; }
.art-chip-3 { left: 18%; bottom: 8px; background: #E2F6F2; animation-delay: 1.7s; }
.hero-art .h-curve { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.45, .05, .3, 1) .3s forwards; }
.hero-art .h-area { opacity: 0; animation: fade .8s ease-out 1.4s forwards; }
.hero-art .h-tangent { opacity: 0; animation: fade .5s ease-out 1.6s forwards; }
.hero-art .h-point { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pop .4s cubic-bezier(.3, 1.6, .5, 1) 1.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes floatIn { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

/* Secciones */
.section { padding: 88px 0; }
.section-tint { background: #EEF1F9; }
.section-head { margin-bottom: 40px; max-width: 720px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 12px 0 0; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Cómo funciona */
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.how::before { content: ''; position: absolute; top: 36px; left: 16%; right: 16%; border-top: 2px dashed var(--line-2); z-index: 0; }
.how-item { position: relative; text-align: center; padding: 0 12px; }
.how-icon { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; margin-bottom: 18px; box-shadow: 0 0 0 8px var(--bg); }
.how-icon .i { width: 32px; height: 32px; stroke-width: 1.8; }
.how-indigo { background: var(--indigo-soft); color: var(--indigo); }
.how-amber { background: var(--amber-soft); color: var(--amber); }
.how-teal { background: var(--teal-soft); color: var(--teal); }
.how-n { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.how-item h3 { margin-bottom: 8px; }
.how-item p { color: var(--muted); max-width: 32ch; margin: 0 auto; }

/* Materias */
.subject-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.subject-card {
  display: grid; grid-template-columns: 44% 1fr; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-sm);
  transition: box-shadow .2s, transform .2s;
}
.subject-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.subject-media { background: var(--soft); display: grid; place-items: center; padding: 16px; }
.subject-media img { width: 100%; height: auto; }
.subject-body { padding: 24px 24px 22px; display: flex; flex-direction: column; }
.subject-body h3 { font-family: var(--display); font-size: 1.5rem; margin-bottom: 6px; }
.subject-body p { color: var(--muted); font-size: .95rem; }
.tags { list-style: none; padding: 0; margin: 2px 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .78rem; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--ink); }
.tags .tag-more { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); }
.btn-subject { margin-top: auto; align-self: flex-start; background: var(--c); color: #fff; }
.btn-subject:hover { filter: brightness(.92); }

/* Reserva */
.booking-section { background: linear-gradient(180deg, var(--bg), #fff); }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.wizard { padding: 0; overflow: hidden; }
.stepper { list-style: none; margin: 0; padding: 20px 24px 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stepper li { position: relative; }
.stepper li + li::before { content: ''; position: absolute; top: 20px; right: calc(50% + 26px); left: calc(-50% + 26px); height: 2px; background: var(--line); }
.stepper li.done + li::before, .stepper li.done + li.current::before { background: var(--green); }
.stepper button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--muted); }
.stepper button:disabled { cursor: default; }
.stepper-dot { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); color: var(--muted); transition: all .2s; }
.stepper-label { font-size: .82rem; font-weight: 500; text-align: center; }
.stepper li.current .stepper-dot { background: var(--navy-800); border-color: var(--navy-800); color: #fff; box-shadow: 0 0 0 5px rgba(26, 35, 87, .12); }
.stepper li.current .stepper-label { color: var(--ink); }
.stepper li.done .stepper-dot { background: var(--green); border-color: var(--green); color: #fff; }
.stepper li.done .stepper-dot .i { stroke-width: 3; }
.stepper li.done .stepper-label { color: var(--green); }
.stepper li.done button:hover .stepper-dot { box-shadow: 0 0 0 5px var(--green-soft); }
.progress { height: 4px; background: var(--line); }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--indigo), var(--yellow)); transition: width .35s ease; }

.wstep { padding: 28px 28px 8px; animation: stepIn .35s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.wstep h3 { font-family: var(--display); font-size: 1.6rem; margin-bottom: 20px; outline: none; }

.pick { display: block; position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  border: 2px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.pick:hover .pick-card { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--sh-md); }
.pick-media { display: block; background: var(--soft); padding: 8px 10px; }
.pick-media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; }
.pick-name { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); padding: 12px 14px 14px; line-height: 1.3; font-size: .95rem; }
.pick-check {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff;
  transform: scale(0); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1);
}
.pick-check .i { width: 16px; height: 16px; stroke-width: 3; }
.pick input:checked + .pick-card { border-color: var(--c); box-shadow: 0 0 0 4px var(--soft), var(--sh-md); }
.pick input:checked + .pick-card .pick-check { transform: scale(1); }
.pick input:focus-visible + .pick-card { outline: 3px solid var(--yellow); outline-offset: 3px; }
.pick-subjects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.pick-modality { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pick-wide .pick-text { padding: 14px 16px 18px; }
.pick-wide .pick-name { padding: 0; font-size: 1.1rem; }
.pick-wide .pick-name .i { color: var(--c); }
.pick-info { display: block; color: var(--muted); font-size: .9rem; margin-top: 4px; }

.topic-block { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  font: 400 .875rem var(--sans); color: var(--ink); background: #fff;
  border: 1.5px solid var(--line-2); border-radius: 999px; padding: 6px 14px; cursor: pointer;
  transition: all .15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.when { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: start; }
.cal-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; background: #fff; }
.cal-legend { display: flex; gap: 16px; margin: 12px 0 0; font-size: .8rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-free { background: var(--indigo-soft); border: 1.5px solid var(--indigo); }
.lg-few { background: var(--yellow-soft); border: 1.5px solid var(--yellow-600); }
.slots-title { font-weight: 500; color: var(--ink); margin-bottom: 14px; }
.slots-title::first-letter { text-transform: uppercase; }
.slot-group + .slot-group { margin-top: 18px; }
.slot-group-name { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); margin: 0 0 8px; }
.slot-group-name .i { width: 18px; height: 18px; color: var(--amber); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.slot {
  font: 500 .925rem var(--sans); color: var(--ink); background: #fff;
  min-height: 46px; border: 1.5px solid var(--line-2); border-radius: var(--r-md); cursor: pointer;
  font-variant-numeric: tabular-nums; transition: all .15s;
}
.slot:hover:not(:disabled) { border-color: var(--indigo); background: var(--indigo-soft); }
.slot[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; box-shadow: 0 6px 14px -6px rgba(26, 35, 87, .6); }
.slot:disabled { color: #A9AFC2; background: repeating-linear-gradient(135deg, #F7F8FC 0 6px, #EFF1F7 6px 8px); border-color: transparent; text-decoration: line-through; cursor: not-allowed; font-weight: 400; }
.skeleton-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.skeleton-slots span { height: 46px; border-radius: var(--r-md); background: linear-gradient(90deg, #EEF1F7, #F7F8FC, #EEF1F7); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field-wide { grid-column: 1 / -1; }

.wizard-foot { display: flex; align-items: center; gap: 14px; padding: 18px 28px 24px; margin-top: 14px; border-top: 1px solid var(--line); background: #FAFBFE; }
.wizard-foot #btn-next { margin-left: auto; }
.wizard-error { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--red); font-size: .9rem; }

/* Calendario */
.cal { user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { margin: 0; font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.cal-nav { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.cal-nav:hover:not(:disabled) { border-color: var(--ink); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; font-size: .75rem; color: var(--muted); padding: 4px 0 6px; font-weight: 500; }
.cal-day {
  position: relative; aspect-ratio: 1; min-height: 38px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font: 500 .925rem var(--sans); color: var(--ink); background: var(--indigo-soft);
  border: 1.5px solid transparent; border-radius: 10px; cursor: pointer; font-variant-numeric: tabular-nums;
  transition: background-color .12s, border-color .12s;
}
.cal-day:hover:not(:disabled) { border-color: var(--indigo); }
.cal-day.is-few { background: var(--yellow-soft); }
.cal-day:disabled { background: transparent; color: #B4BACB; font-weight: 400; cursor: default; }
.cal-day.is-loading { color: transparent; background: #F1F3F8; }
.cal-day.is-today .cal-num { position: relative; }
.cal-day.is-today .cal-num::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.cal-day.is-selected, .cal-day.is-selected:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; box-shadow: 0 6px 14px -6px rgba(26, 35, 87, .7); }
.cal-marks { position: absolute; bottom: 4px; display: flex; gap: 3px; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.dot-booked { background: var(--indigo); }
.dot-partial { border: 1.5px solid var(--red); background: #fff; }
.dot-blocked { background: var(--red); }

/* Resumen */
.summary { position: sticky; top: calc(var(--header-h) + 16px); overflow: hidden; }
.summary-media { background: var(--bg); padding: 14px 24px; transition: background-color .3s; }
.summary-media img { width: 100%; max-height: 150px; object-fit: contain; }
.summary-body { padding: 18px 22px 22px; }
.summary-body h3 { font-family: var(--display); font-size: 1.35rem; margin-bottom: 8px; }
.summary-list { list-style: none; margin: 0; padding: 0; }
.summary-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-list li:last-child { border-bottom: 0; }
.summary-list .i { color: var(--indigo); margin-top: 2px; }
.summary-list small { display: block; font-size: .75rem; color: var(--muted); }
.summary-list b { display: block; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; line-height: 1.4; }
.summary-list b.is-empty { color: #A9AFC2; font-weight: 400; }

/* Confirmación */
.confirmation:focus { outline: none; }
.confirm { max-width: 860px; margin: 0 auto; overflow: hidden; animation: stepIn .4s ease both; }
.confirm-head { display: flex; gap: 18px; align-items: center; padding: 28px 30px; background: linear-gradient(120deg, var(--green-soft), #F3FBF7); }
.confirm-head h3 { font-family: var(--display); font-size: 1.8rem; margin-bottom: 4px; }
.confirm-head p { margin: 0; color: var(--muted); }
.confirm-check { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; box-shadow: 0 0 0 8px rgba(18, 128, 92, .14); animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.confirm-check .i { width: 32px; height: 32px; stroke-width: 3; }
.confirm-body { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 26px 30px; }
.confirm-code { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; border: 2px dashed var(--line-2); border-radius: var(--r-lg); background: #FBFCFE; }
.confirm-code span { font-size: .85rem; }
.confirm-code strong { font-family: var(--display); font-size: 2.2rem; letter-spacing: .12em; color: var(--ink); background: var(--yellow); padding: 2px 12px; border-radius: 8px; }
.confirm-details { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.confirm-details li { display: flex; gap: 12px; align-items: flex-start; }
.confirm-details small { display: block; color: var(--muted); font-size: .78rem; }
.cd-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--indigo-soft); color: var(--indigo); flex: none; }
.confirm-details li[style] .cd-icon { background: var(--soft); color: var(--c); }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 30px 26px; border-top: 1px solid var(--line); }

/* Consultar reserva */
.lookup { display: grid; grid-template-columns: 1fr 1.25fr; overflow: hidden; }
.lookup-intro { padding: 36px; background: linear-gradient(160deg, var(--indigo-soft), #F7F8FE); }
.lookup-intro img { width: 220px; height: auto; margin: -10px 0 10px -12px; }
.lookup-intro h2 { margin-bottom: 10px; font-size: clamp(1.7rem, 1.6vw + 1rem, 2.2rem); }
.lookup-intro p { color: var(--muted); max-width: 40ch; }
.lookup-main { padding: 36px; }
.lookup-form { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0 14px; align-items: end; }
.lookup-form .btn { grid-column: 1 / -1; justify-self: start; }
#lookup-result:not(:empty) { margin-top: 22px; }
.lookup-card { display: flex; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.lookup-card-media { flex: none; width: 120px; border-radius: 12px; background: var(--soft); padding: 6px; }
.lookup-card-body p { margin: 4px 0 8px; }
.lookup-when { font-weight: 600; color: var(--ink); }

/* Pie */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .7); padding: 40px 0; font-size: .925rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { border-radius: 12px; }
.footer-brand strong { color: #fff; font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.footer-brand p { margin: 2px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.footer-nav a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-admin { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; }
.footer-admin .i { width: 16px; height: 16px; }

/* Avisos flotantes */
#toast-host { position: fixed; z-index: 300; right: 20px; bottom: 20px; display: grid; gap: 10px; width: min(92vw, 380px); }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: var(--r-md);
  background: var(--navy-900); color: #fff; box-shadow: var(--sh-lg); font-size: .925rem;
  opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s;
}
.toast.in { opacity: 1; transform: none; }
.toast-ok .i { color: #6EE7B7; }
.toast-error { background: #7F1D22; }

/* ==========================================================================
   INICIO DE SESIÓN
   ========================================================================== */
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; }
.login-art {
  position: relative; display: grid; place-items: center; padding: 48px; color: #fff; overflow: hidden;
  background:
    radial-gradient(500px 380px at 70% 20%, rgba(76, 95, 213, .5), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--navy-900);
}
.login-art-inner { max-width: 420px; }
.login-art img { width: 300px; margin-bottom: 28px; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.login-art h2 { color: #fff; font-size: 2.2rem; margin-bottom: 12px; }
.login-art p { color: rgba(255, 255, 255, .78); font-size: 1.05rem; }
.login-panel { display: grid; place-items: center; padding: 40px 24px; }
.login-form { width: min(100%, 400px); display: grid; gap: 18px; }
.login-form h1 { font-size: 2.2rem; margin-bottom: 4px; }
.login-form .field { margin: 0; }
.back-link { display: inline-flex; align-items: center; gap: 4px; justify-self: center; color: var(--muted); text-decoration: none; font-size: .9rem; }
.back-link:hover { color: var(--ink); }

/* ==========================================================================
   PANEL DEL DOCENTE
   ========================================================================== */
.admin-shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; background: var(--bg); }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 28px;
  padding: 22px 16px; color: #fff;
  background:
    radial-gradient(300px 260px at 0% 100%, rgba(76, 95, 213, .35), transparent 70%),
    var(--navy-900);
}
.brand-light, .brand-light .brand-text span { color: #fff; }
.brand-light .brand-text span { opacity: .65; }
.sidebar .brand { padding: 4px 8px; }
.side-nav { display: grid; gap: 4px; }
.side-nav a, .side-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
  color: rgba(255, 255, 255, .72); text-decoration: none; font: 400 .95rem var(--sans);
  background: none; border: 0; cursor: pointer; width: 100%; text-align: left;
}
.side-nav a:hover, .side-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side-nav a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; font-weight: 500; box-shadow: inset 3px 0 0 var(--yellow); }
.side-nav a[aria-current="page"] .i { color: var(--yellow); }
.side-foot { margin-top: auto; display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }

.admin-main { padding: 28px 36px 64px; min-width: 0; }
.admin-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.admin-top h1 { font-size: 2.1rem; line-height: 1.1; }
.admin-top p { margin: 6px 0 0; }
.admin-top-right { display: flex; align-items: center; gap: 12px; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); color: var(--navy-900); font-weight: 600; font-size: .95rem; }
.mobile-only { display: none; }

/* Indicadores */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi { display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.kpi-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex: none; }
.kpi-icon .i { width: 24px; height: 24px; }
.kpi strong { display: block; font-family: var(--display); font-size: 1.9rem; line-height: 1; color: var(--ink); }
.kpi span { display: block; font-size: .825rem; color: var(--muted); margin-top: 4px; line-height: 1.3; }
.kpi-indigo .kpi-icon { background: var(--indigo-soft); color: var(--indigo); }
.kpi-amber .kpi-icon { background: var(--amber-soft); color: var(--amber); }
.kpi-teal .kpi-icon { background: var(--teal-soft); color: var(--teal); }
.kpi-rose .kpi-icon { background: var(--rose-soft); color: var(--rose); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.toolbar-right { display: flex; flex-wrap: wrap; gap: 10px; }
.toolbar .search input { width: 280px; min-height: 42px; }
.tabs-pill { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; background: var(--bg); border-radius: 12px; }
.tabs-pill button { font: 500 .875rem var(--sans); color: var(--muted); background: none; border: 0; padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.tabs-pill button:hover { color: var(--ink); }
.tabs-pill button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); }

.agenda-list { padding: 4px 18px 18px; }
.day-group { margin-top: 18px; }
.day-head { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; padding: 8px 4px; margin-bottom: 8px; }
.day-head .i { color: var(--indigo); }
.day-count { margin-left: auto; font-weight: 400; font-size: .85rem; color: var(--muted); }
.bk {
  position: relative; display: grid; grid-template-columns: 74px 84px minmax(0, 1fr) auto; gap: 16px; align-items: start;
  padding: 16px 16px 16px 20px; margin-bottom: 10px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: box-shadow .15s;
}
.bk::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); }
.bk:hover { box-shadow: var(--sh-md); }
.bk.is-cancelled { opacity: .7; }
.bk.is-cancelled h4 { text-decoration: line-through; }
.bk-time { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.bk-time strong { font-size: 1.35rem; color: var(--ink); line-height: 1.1; font-weight: 600; }
.bk-time span { font-size: .8rem; color: var(--muted); }
.bk-time small { font-size: .75rem; color: var(--muted); margin-top: 6px; }
.bk-thumb { background: var(--soft); border-radius: 12px; padding: 4px; }
.bk-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 2px; }
.bk-title h4 { font-size: 1.05rem; }
.bk-what { margin: 0 0 8px; font-size: .95rem; }
.bk-what b { color: var(--c); font-weight: 600; }
.bk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: .85rem; }
.bk-meta a, .bk-meta span:not(.badge) { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); text-decoration: none; }
.bk-meta a:hover { color: var(--indigo); text-decoration: underline; }
.bk-meta .i { width: 16px; height: 16px; }
.bk-notes { display: flex; gap: 8px; margin: 10px 0 0; padding: 10px 12px; background: var(--yellow-soft); border-radius: 10px; font-size: .875rem; max-width: 70ch; }
.bk-notes .i { width: 17px; height: 17px; color: #A06A00; margin-top: 2px; }
.bk-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 138px; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state img { margin: 0 auto 14px; width: 180px; }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { max-width: 42ch; margin: 0 auto; }

/* Disponibilidad */
.disp-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: start; }
.disp-grid + .disp-grid { margin-top: 20px; }
.disp-grid.two { grid-template-columns: 1fr 1fr; }
.stack { display: grid; gap: 20px; }
.admin .cal-day, #admin-cal .cal-day { background: var(--bg); }
#admin-cal .cal-day.is-off { background: transparent; color: #A4ABC0; border: 1.5px dashed var(--line-2); }
#admin-cal .cal-day.is-past { opacity: .55; }
#admin-cal .cal-day.is-blocked { background: repeating-linear-gradient(135deg, #fff 0 5px, var(--red-soft) 5px 9px); color: var(--red); }
#admin-cal .cal-day.is-selected { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.legend { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .825rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend .dot { width: 8px; height: 8px; }

.day-panel-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.day-panel-head h2 { font-family: var(--sans); font-size: 1.25rem; font-weight: 600; }
.day-stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.st { font-size: .78rem; padding: 2px 10px; border-radius: 999px; }
.st-free { background: var(--green-soft); color: var(--green); }
.st-blocked { background: var(--red-soft); color: var(--red); }
.st-booked { background: var(--indigo-soft); color: var(--indigo); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hour {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  min-height: 58px; padding: 8px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff;
}
.hour-time { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hour-state { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; }
.hour-state .i { width: 18px; height: 18px; }
.hour.is-free .hour-state { color: var(--green); }
.hour.is-blocked { background: repeating-linear-gradient(135deg, #fff 0 8px, #FEF4F4 8px 12px); border-color: #F5D0D1; }
.hour.is-blocked .hour-state { color: var(--red); }
.hour.is-blocked .hour-time { color: var(--muted); text-decoration: line-through; }
.hour.is-past { background: #FAFBFD; }
.hour.is-past .hour-state, .hour.is-past .hour-time { color: #A4ABC0; }
.hour.is-booked { background: var(--soft); border-color: transparent; }
.hour-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hour-info > span { min-width: 0; }
.hour-info img { width: 54px; border-radius: 8px; background: #fff; padding: 2px; flex: none; }
.hour-info b { display: block; color: var(--ink); font-weight: 600; font-size: .95rem; }
.hour-info small { display: block; color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.weekly { display: grid; gap: 8px; }
.wk-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; padding: 8px 12px; border-radius: var(--r-md); background: var(--bg); }
.wk-times { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; color: var(--muted); }
.wk-times input { min-height: 40px; padding: 6px 10px; }
.wk-row.is-off .wk-times { opacity: .4; }
.mode-card p { font-size: .925rem; }
.mode-card h2 .i { color: var(--indigo); }

.bottom-nav { display: none; }

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 1100px) {
  .booking-layout { grid-template-columns: 1fr; }
  .summary { position: static; display: grid; grid-template-columns: 220px 1fr; }
  .summary-media { display: grid; place-items: center; }
  .summary-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .pick-subjects { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .disp-grid, .disp-grid.two { grid-template-columns: 1fr; }
  #admin-cal { max-width: 420px; }
  .bk { grid-template-columns: 70px minmax(0, 1fr) auto; }
  .bk-thumb { display: none; }
}
@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { min-height: 380px; max-width: 560px; }
  .main-nav { display: none; }
  .header-cta { margin-left: auto; }
  .subject-grid { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; gap: 28px; }
  .how::before { display: none; }
  .when { grid-template-columns: 1fr; }
  .cal-card { max-width: 380px; }
  .lookup { grid-template-columns: 1fr; }
  .confirm-body { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: 1fr; }
  .login-art { display: none; }

  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .admin-main { padding: 20px 16px 96px; }
  .mobile-only { display: inline-grid; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--navy-900); padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; color: rgba(255, 255, 255, .65); text-decoration: none; font-size: .75rem; border-radius: 10px; }
  .bottom-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); }
  .bottom-nav a[aria-current="page"] .i { color: var(--yellow); }
  #toast-host { bottom: 84px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  .header-cta { padding: 6px 12px; }
  .brand-text span { display: none; }
  .hero h1 { font-size: 2.35rem; }
  .hero-art { min-height: 320px; }
  .art-board { inset: 10px 10px 70px 0; }
  .art-ticket { width: 230px; padding: 12px 14px; }
  .art-chip-1 { left: -6px; }
  .art-formula { font-size: .9rem; }
  .subject-card { grid-template-columns: 1fr; }
  .subject-media { padding: 12px 24px; }
  .stepper { padding: 16px 10px 12px; }
  .stepper-label { font-size: .72rem; }
  .stepper-dot { width: 36px; height: 36px; }
  .stepper li + li::before { top: 17px; }
  .wstep { padding: 22px 16px 4px; }
  .wstep h3 { font-size: 1.35rem; }
  .pick-subjects { gap: 10px; }
  .pick-name { font-size: .85rem; padding: 10px; }
  .fields { grid-template-columns: 1fr; }
  .slot-grid, .skeleton-slots { grid-template-columns: repeat(2, 1fr); }
  .wizard-foot { padding: 14px 16px 18px; flex-wrap: wrap; }
  .wizard-error { order: -1; width: 100%; }
  .summary { grid-template-columns: 1fr; }
  .summary-media { display: none; }
  .summary-list { grid-template-columns: 1fr; }
  .lookup-intro, .lookup-main { padding: 24px 20px; }
  .lookup-form { grid-template-columns: 1fr; }
  .lookup-card-media { width: 84px; }
  .confirm-head { padding: 22px 18px; flex-direction: column; align-items: flex-start; }
  .confirm-body, .confirm-actions { padding-left: 18px; padding-right: 18px; }
  .confirm-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .local-banner { padding: 10px 16px; font-size: .825rem; }

  .admin-top h1 { font-size: 1.7rem; }
  .kpis { gap: 10px; }
  .kpi { padding: 14px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .toolbar { padding: 12px; }
  .toolbar-right, .toolbar .search, .toolbar .search input { width: 100%; }
  .toolbar-right .btn { width: 100%; }
  .agenda-list { padding: 4px 10px 12px; }
  .bk { grid-template-columns: 1fr; gap: 10px; padding: 14px 14px 14px 18px; }
  .bk-time { flex-direction: row; align-items: baseline; gap: 6px; }
  .bk-time small { margin: 0 0 0 auto; }
  .bk-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .hour { grid-template-columns: 76px 1fr auto; gap: 10px; padding: 8px 10px; }
  .hour.is-booked { grid-template-columns: 76px 1fr; }
  .hour.is-booked .badge { display: none; }
  .hour-info > span { min-width: 0; }
.hour-info img { display: none; }
  .row-2 { grid-template-columns: 1fr; }
  .wk-row { grid-template-columns: 1fr; }
  .card.pad { padding: 18px; }
}
