/* =========================================================
   DeSayas · Dirección visual: "Cuaderno de apuntes"
   Papel crema, naranja y celeste del logo, serif editorial
   + anotaciones a mano (subrayados, círculos, post-its).
   ========================================================= */
:root {
  --paper: #FBF7EF;
  --paper-2: #F4EDDF;
  --ink: #1D2433;
  --ink-2: #4A5266;
  --line: #E6DCC8;
  --orange: #F07A1A;
  --orange-ink: #C25A06;    /* naranja accesible sobre crema */
  --orange-soft: #FFE3C8;
  --sky: #74C6EE;
  --sky-soft: #D9F0FB;
  --navy: #14324A;
  --wa: #1FAF55;
  --wa-ink: #138A3F;
  --red: #D8402F;

  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand: "Caveat", "Segoe Print", cursive;

  --r: 18px;
  --shadow: 0 1px 2px rgba(29,36,51,.06), 0 10px 30px -12px rgba(29,36,51,.22);
  --ease: cubic-bezier(.2,.8,.2,1);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* textura de papel con cuadrícula muy sutil */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(rgba(116,198,238,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116,198,238,.09) 1px, transparent 1px);
  background-size: 28px 28px;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 em { font-style: italic; font-weight: 400; color: var(--orange-ink); }
h3 { font-size: 1.35rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.hand { font-family: var(--f-hand); font-weight: 700; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 999; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.35em;
  background: var(--bg); color: var(--fg);
  border: 2px solid var(--bg); border-radius: 999px;
  font: 600 1rem/1.1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.btn .arrow { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px var(--bg); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { --bg: var(--orange-ink); }
.btn--primary:hover { --bg: #A84D04; }
.btn--wa { --bg: var(--wa-ink); }
.btn--ghost { --fg: var(--ink); background: transparent; border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn--light { --bg: #fff; --fg: var(--navy); }
.btn--link { background: none; border-color: transparent; color: var(--ink); padding-inline: .4em; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.btn--link:hover { box-shadow: none; }
.btn--sm { min-height: 44px; padding: .55em 1em; font-size: .93rem; }
.btn--lg { min-height: 56px; padding: 1em 1.6em; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Cabecera ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,239,.82);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(29,36,51,.4); }
.nav__inner { max-width: var(--wrap); margin: auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__txt b { font: 700 1.2rem var(--f-display); letter-spacing: -.01em; }
.brand__txt small { font-size: .74rem; color: var(--ink-2); letter-spacing: .02em; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { position: relative; padding: 10px 12px; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-2); transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover, .nav__links a.is-current { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); }
.nav__cta { display: flex; gap: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(28px, 6vw, 72px); }
.hero__grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.hero__title { font-size: clamp(2.9rem, 8.2vw, 6.2rem); font-weight: 800; line-height: .98; letter-spacing: -.035em; margin-bottom: 26px; }
.hl-wrap { display: block; font-style: italic; font-weight: 600; }
.hl { position: relative; display: inline-block; color: var(--orange-ink); }
.hl::before { content: ""; position: absolute; left: -.08em; right: -.08em; bottom: .08em; height: .38em; background: var(--orange-soft); z-index: -1; border-radius: 4px; transform: skew(-6deg) scaleX(0); transform-origin: left; transition: transform .9s .5s var(--ease); }
.is-in .hl::before, .hl.is-in::before { transform: skew(-6deg) scaleX(1); }
.hl--blue { color: var(--sky); }
.hl--blue::before { background: rgba(116,198,238,.22); transform: skew(-6deg) scaleX(1); }
.scribble { position: absolute; left: -4%; bottom: -.16em; width: 108%; height: .32em; overflow: visible; }
.scribble path { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 700; stroke-dashoffset: 700; transition: stroke-dashoffset 1.3s 1s var(--ease); }
.hero__title.is-in .scribble path { stroke-dashoffset: 0; }
.hero__lead { font-size: clamp(1.06rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 30px 0 26px; }
.rating { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: .95rem; color: var(--ink-2); padding: 8px 4px; }
.rating__stars { color: #F5A524; letter-spacing: 2px; font-size: 1.1rem; }
.rating b { color: var(--ink); }

.hero__art { position: relative; min-height: 520px; }
.photo { position: relative; margin: 0; background: #fff; padding: 12px 12px 46px; box-shadow: var(--shadow); border-radius: 4px; }
.photo img { border-radius: 2px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 1.45rem; color: var(--ink-2); }
.photo--hero { width: 84%; margin-left: auto; transform: rotate(2.4deg); }
.tape { position: absolute; top: -14px; width: 96px; height: 28px; background: rgba(116,198,238,.55); backdrop-filter: blur(1px); }
.tape--l { left: 18px; transform: rotate(-8deg); }
.tape--r { right: 18px; transform: rotate(6deg); background: rgba(240,122,26,.4); }
.exam {
  position: absolute; left: 0; bottom: -10px; width: 62%;
  background: #fff; border-radius: 6px; padding: 18px 20px 22px;
  box-shadow: var(--shadow); transform: rotate(-4deg);
  background-image: linear-gradient(transparent 31px, rgba(116,198,238,.35) 32px);
  background-size: 100% 32px; background-position: 0 14px;
}
.exam::before { content: ""; position: absolute; top: 0; bottom: 0; left: 30px; width: 2px; background: rgba(216,64,47,.35); }
.exam__head { display: flex; justify-content: space-between; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); padding-left: 22px; margin-bottom: 6px; }
.exam__lines { list-style: none; margin: 0; padding: 0 0 0 22px; }
.exam__lines li { display: flex; justify-content: space-between; align-items: center; height: 32px; font-family: var(--f-hand); font-size: 1.32rem; color: #2B3A67; }
.tick { font-style: normal; color: var(--red); font-weight: 700; font-family: var(--f-hand); font-size: 1.5rem; opacity: 0; transform: scale(.4); transition: .4s var(--ease); }
.exam.is-in .tick { opacity: 1; transform: none; }
.exam.is-in li:nth-child(1) .tick { transition-delay: .9s; }
.exam.is-in li:nth-child(2) .tick { transition-delay: 1.1s; }
.exam.is-in li:nth-child(3) .tick { transition-delay: 1.3s; }
.exam.is-in li:nth-child(4) .tick { transition-delay: 1.5s; }
.grade {
  position: absolute; right: -26px; top: -34px; width: 104px; height: 104px;
  display: grid; place-items: center; border: 4px solid var(--red); border-radius: 50%;
  color: var(--red); font: 700 2.7rem/1 var(--f-hand); transform: rotate(-12deg) scale(0);
  background: rgba(255,255,255,.7);
  transition: transform .6s 1.8s cubic-bezier(.3,1.6,.5,1);
}
.exam.is-in .grade { transform: rotate(-12deg) scale(1); }
.exam__note { position: absolute; right: 16px; bottom: -6px; color: var(--red); font-size: 1.5rem; transform: rotate(-6deg); margin: 0; }
.sticky-note {
  position: absolute; right: -6px; bottom: 34px; width: 150px; padding: 16px 14px;
  background: #FFE48A; box-shadow: 0 10px 20px -10px rgba(0,0,0,.35); transform: rotate(5deg);
}
.sticky-note p { margin: 0; font-size: 1.3rem; line-height: 1.1; color: #3B3320; }

/* ---------- Ticker ---------- */
.ticker { margin-top: clamp(48px, 7vw, 90px); background: var(--ink); color: var(--paper); overflow: hidden; transform: rotate(-1deg); margin-inline: -20px; }
.ticker__track { display: flex; gap: 28px; width: max-content; padding: 16px 0; animation: tick 38s linear infinite; font: italic 500 1.35rem var(--f-display); white-space: nowrap; }
.ticker i { color: var(--orange); font-style: normal; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Manifiesto ---------- */
.manifesto { padding-block: clamp(80px, 12vw, 150px); text-align: center; max-width: 980px; }
.manifesto__kicker { color: var(--orange-ink); font-size: 1.6rem; margin-bottom: 10px; }
.manifesto__text { font: 400 clamp(1.6rem, 3.8vw, 2.75rem)/1.28 var(--f-display); letter-spacing: -.015em; }
mark { background: linear-gradient(transparent 58%, var(--orange-soft) 58%); color: inherit; padding: 0 .08em; }
mark.mk-blue { background: linear-gradient(transparent 58%, var(--sky-soft) 58%); }
.circled { position: relative; white-space: nowrap; font-style: italic; }
.circled svg { position: absolute; inset: -22% -10%; width: 120%; height: 144%; overflow: visible; }
.circled path { fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.4s .4s var(--ease); }
.manifesto__text.is-in .circled path { stroke-dashoffset: 0; }
.manifesto__sign { margin-top: 28px; color: var(--ink-2); font-size: .98rem; }

/* ---------- Encabezados de sección ---------- */
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head--row { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.sec-head--row .sec-sub { max-width: 38ch; margin: 0; }
.sec-num { font: 700 .82rem var(--f-body); letter-spacing: .14em; color: var(--orange-ink); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.sec-num::after { content: ""; width: 36px; height: 2px; background: currentColor; }
.sec-num--light { color: var(--sky); }
.sec-sub { color: var(--ink-2); margin-top: 16px; font-size: 1.08rem; }

/* ---------- Niveles ---------- */
.levels { padding-bottom: clamp(80px, 10vw, 130px); }
.tabs { position: relative; display: flex; gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; z-index: 1; border: 0; background: none; padding: 12px 20px; min-height: 46px; border-radius: 999px; font: 600 .98rem var(--f-body); color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: color .3s; }
.tab.is-active { color: #fff; }
.tab__ink { position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; background: var(--ink); border-radius: 999px; transition: transform .45s var(--ease), width .45s var(--ease); }
.panels { margin-top: 26px; }
.panel {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 60px);
  background: #fff; border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(26px, 4.5vw, 56px); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.panel::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: var(--sky-soft); z-index: 0; }
.panel > * { position: relative; z-index: 1; }
.panel.is-active { animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
.panel__tag { color: var(--orange-ink); font-size: 1.55rem; margin: 0 0 6px; }
.panel h3 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 16px; }
.panel p { color: var(--ink-2); max-width: 46ch; margin-bottom: 26px; }
.checklist { list-style: none; margin: 0; padding: 0; align-self: center; }
.checklist li { position: relative; padding: 16px 0 16px 44px; border-bottom: 1px dashed var(--line); font-weight: 500; }
.checklist li:last-child { border: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 14px; width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 6px; }
.checklist li::after { content: "✓"; position: absolute; left: 5px; top: 7px; font: 700 1.7rem/1 var(--f-hand); color: var(--orange); }
.pending-note { font-size: .82rem; color: var(--ink-2); margin-top: 14px; opacity: .8; }

/* ---------- UCLM ---------- */
.uni { position: relative; background: var(--navy); color: #EAF3F9; padding-block: clamp(80px, 11vw, 140px); overflow: hidden; }
.uni__bg { position: absolute; inset: 0; pointer-events: none; font: italic 400 clamp(3rem, 9vw, 7rem) var(--f-display); color: rgba(116,198,238,.08); }
.uni__bg span { position: absolute; }
.uni__bg span:nth-child(1) { left: 4%; top: 8%; }
.uni__bg span:nth-child(2) { right: 8%; top: 4%; }
.uni__bg span:nth-child(3) { left: 40%; bottom: 4%; }
.uni__bg span:nth-child(4) { right: 3%; bottom: 20%; }
.uni__bg span:nth-child(5) { left: 2%; bottom: 10%; }
.uni__bg span:nth-child(6) { left: 52%; top: 12%; }
.uni__bg span:nth-child(7) { right: 30%; bottom: 40%; }
.uni__bg span:nth-child(8) { left: 26%; top: 40%; }
.uni__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.uni h2 { color: #fff; margin-bottom: 22px; }
.uni__lead { font-size: 1.15rem; color: #C5D7E5; max-width: 40ch; margin-bottom: 30px; }
.uni__steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.uni__steps li { counter-increment: s; position: relative; padding: 22px 0 22px 74px; border-top: 1px solid rgba(255,255,255,.12); color: #C5D7E5; }
.uni__steps li:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.uni__steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 16px; font: italic 600 2.2rem var(--f-display); color: var(--sky); }
.uni__steps b { color: #fff; }

/* ---------- Método ---------- */
.method { padding-block: clamp(80px, 11vw, 140px); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px 30px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow); }
.card__icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 16px; margin-bottom: 22px; }
.card__icon svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card--a .card__icon { background: var(--orange-soft); }
.card--b .card__icon { background: var(--sky-soft); }
.card--c .card__icon { background: #FFF1B8; }
.card--d .card__icon { background: #E3F5E6; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: .98rem; margin: 0; }
.card__pending { display: inline-block; margin-top: 14px; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--orange-ink); border: 1px dashed currentColor; border-radius: 999px; padding: 3px 10px; }

/* ---------- Aula ---------- */
.space { padding-bottom: clamp(80px, 11vw, 140px); }
.gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 14px; }
.g { margin: 0; overflow: hidden; border-radius: var(--r); background: var(--paper-2); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.g:hover img { transform: scale(1.05); }
.g--1 { grid-row: span 2; }
.g--4 { grid-column: span 2; }

/* ---------- Reseñas ---------- */
.reviews { background: var(--paper-2); padding-block: clamp(80px, 11vw, 140px); border-block: 1px solid var(--line); }
.reviews__top { display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; margin-bottom: 40px; }
.reviews__top .sec-head { margin: 0; }
.score { text-align: center; background: #fff; border-radius: 50%; width: 240px; height: 240px; display: grid; place-content: center; box-shadow: var(--shadow); border: 2px dashed var(--orange); }
.score p { margin: 0; }
.score__num { font: 800 4.6rem/1 var(--f-display); letter-spacing: -.04em; }
.score__stars { color: #F5A524; font-size: 1.3rem; letter-spacing: 3px; margin: 6px 0 !important; }
.score__txt { font-size: .86rem; color: var(--ink-2); line-height: 1.35; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.note { position: relative; padding: 30px 22px 24px; min-height: 160px; box-shadow: 0 12px 22px -14px rgba(29,36,51,.4); transition: transform .35s var(--ease); }
.note:nth-child(odd) { transform: rotate(-1.4deg); }
.note:nth-child(even) { transform: rotate(1.2deg); }
.note:hover { transform: rotate(0) translateY(-4px) scale(1.02); z-index: 2; }
.note p { margin: 0; font: 400 1.18rem/1.35 var(--f-display); }
.note b { font-weight: 600; }
.note--y { background: #FFF0A8; }
.note--b { background: var(--sky-soft); }
.note--w { background: #fff; }
.note--o { background: var(--orange-soft); }
.note__pin { position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a7a, var(--red)); box-shadow: 0 3px 4px rgba(0,0,0,.25); }
.reviews__src { margin-top: 34px; font-size: .85rem; color: var(--ink-2); text-align: center; }

/* ---------- Visítanos ---------- */
.visit { padding-block: clamp(80px, 11vw, 140px); }
.visit__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 5vw, 70px); align-items: stretch; }
.addr { display: flex; gap: 14px; font-style: normal; font-size: 1.12rem; margin-bottom: 18px; }
.addr__pin { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--orange-soft); display: grid; place-items: center; }
.addr__pin svg { width: 22px; fill: var(--orange-ink); }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .92rem; margin-bottom: 18px; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: #aaa; }
.status.is-open .status__dot { background: #22B35E; box-shadow: 0 0 0 0 rgba(34,179,94,.6); animation: pulse 2s infinite; }
.status.is-closed .status__dot { background: var(--red); }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,179,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,179,94,0); } }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 28px; font-size: .98rem; }
.hours th, .hours td { padding: 11px 0; border-bottom: 1px dashed var(--line); text-align: left; }
.hours th { font-weight: 500; color: var(--ink-2); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--ink); font-weight: 700; }
.hours tr.is-today th::before { content: "→ "; color: var(--orange); }
.hours tr.is-off td { color: #9A9180; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.map { position: relative; border-radius: 26px; overflow: hidden; min-height: 460px; box-shadow: var(--shadow); border: 8px solid #fff; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.8) contrast(1.02); }
.map__tag { position: absolute; left: 16px; bottom: 14px; margin: 0; background: #FFE48A; padding: 6px 14px; font-size: 1.35rem; transform: rotate(-3deg); box-shadow: 0 6px 12px -6px rgba(0,0,0,.35); }

/* ---------- CTA final ---------- */
.final { padding-bottom: clamp(80px, 10vw, 120px); }
.final__box { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; background: var(--ink); color: #fff; border-radius: 32px; padding: clamp(28px, 6vw, 72px); max-width: calc(var(--wrap) - 2 * var(--gutter)); position: relative; overflow: hidden; }
.final__box::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--orange); opacity: .16; left: -120px; bottom: -180px; }
.final h2 { color: #fff; }
.final__hand { display: block; color: var(--orange); font-size: .55em; font-weight: 700; margin-top: 10px; transform: rotate(-2deg); letter-spacing: 0; }
.final__copy p { color: #C9CFDB; margin-top: 18px; font-size: 1.08rem; }
.picker { position: relative; background: #fff; color: var(--ink); border-radius: 22px; padding: 26px; }
.picker fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.picker legend, .field span { font-weight: 600; font-size: .9rem; margin-bottom: 10px; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font: 500 .94rem var(--f-body); color: var(--ink); cursor: pointer; transition: .2s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.field { display: block; margin-bottom: 18px; }
.field input { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font: 400 1rem var(--f-body); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px var(--sky-soft); }
.picker__preview { margin: 14px 0 0; font-size: .86rem; color: var(--ink-2); font-style: italic; text-align: center; }

/* ---------- Pie ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 50px 40px; }
.foot__grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.foot__brand { display: flex; align-items: center; gap: 18px; }
.foot__brand img { width: 88px; border-radius: 50%; background: #fff; }
.foot__brand p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot__links a { padding: 10px 0; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; transition: border-color .2s; }
.foot__links a:hover { border-color: var(--orange); }
.foot__legal { grid-column: 1 / -1; font-size: .82rem; color: var(--ink-2); margin: 10px 0 0; }

/* ---------- Dock móvil ---------- */
.dock { display: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.photo--hero.reveal { transform: rotate(2.4deg) translateY(22px); }
.photo--hero.reveal.is-in { transform: rotate(2.4deg); }
.exam.reveal { transform: rotate(-4deg) translateY(30px); transition-delay: .25s; }
.exam.reveal.is-in { transform: rotate(-4deg); }
.sticky-note.reveal { transform: rotate(5deg) translateY(30px); transition-delay: .5s; }
.sticky-note.reveal.is-in { transform: rotate(5deg); }
.note.reveal.is-in:nth-child(odd) { transform: rotate(-1.4deg); }
.note.reveal.is-in:nth-child(even) { transform: rotate(1.2deg); }
.note.reveal.is-in:hover { transform: rotate(0) translateY(-4px) scale(1.02); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .notes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero__grid, .uni__grid, .visit__grid, .final__box, .panel { grid-template-columns: 1fr; }
  .hero__art { min-height: 0; padding: 20px 0 120px; }
  .photo--hero { width: 92%; }
  .exam { width: 74%; bottom: 0; }
  .reviews__top { grid-template-columns: 1fr; justify-items: start; }
  .score { width: 190px; height: 190px; }
  .score__num { font-size: 3.6rem; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 160px 160px; }
  .g--1 { grid-row: auto; grid-column: span 2; }
  .g--4 { grid-column: span 2; }
  .map { min-height: 340px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 84px; }
  .hide-sm { display: none; }
  .nav__cta .btn--wa { display: none; }
  .brand__txt small { display: none; }
  .hero__title { font-size: clamp(2.7rem, 13vw, 3.6rem); }
  .hero__actions .btn--lg { width: 100%; }
  .hero__actions .btn--link { margin-inline: auto; }
  .rating { flex-wrap: wrap; gap: 4px 10px; font-size: .88rem; }
  .sticky-note { width: 118px; right: 0; bottom: 70px; padding: 10px; }
  .sticky-note p { font-size: 1.1rem; }
  .exam { padding: 14px 14px 18px; width: 84%; }
  .exam__lines li { font-size: 1.08rem; }
  .exam__head { font-size: .6rem; }
  .grade { width: 78px; height: 78px; font-size: 2.1rem; right: -10px; top: -28px; border-width: 3px; }
  .ticker__track { font-size: 1.1rem; padding: 12px 0; }
  .tabs { width: auto; margin-inline: calc(-1 * var(--gutter)); border-radius: 0; border-inline: 0; padding-inline: var(--gutter); }
  .tab { padding: 10px 16px; }
  .cards, .notes { grid-template-columns: 1fr; }
  .note { min-height: 0; }
  .gallery { grid-template-rows: 200px 130px 130px; gap: 10px; }
  .uni__steps li { padding-left: 60px; }
  .foot__grid { grid-template-columns: 1fr; }
  .visit__actions .btn { flex: 1 1 100%; }

  .dock {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251,247,239,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .dock.is-visible { transform: none; }
  .dock a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 14px; font-weight: 700; text-decoration: none; font-size: .98rem; }
  .dock svg { width: 20px; height: 20px; fill: currentColor; }
  .dock__call { flex: 0 0 auto; padding: 0 18px; border: 2px solid var(--ink); color: var(--ink); }
  .dock__wa { flex: 1; background: var(--wa-ink); color: #fff; box-shadow: 0 8px 18px -8px var(--wa-ink); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .scribble path, .circled path { stroke-dashoffset: 0; }
  .tick { opacity: 1; transform: none; }
  .grade { transform: rotate(-12deg); }
}

/* --- Ajustes tras revisión --- */
html, body { overflow-x: clip; }
.panel[hidden] { display: none; }
.nav__links a, .nav__cta .btn { white-space: nowrap; }
.hero__title { font-weight: 700; letter-spacing: -.022em; }
.brand__txt small { white-space: nowrap; }
.exam { bottom: -70px; }
.dock a { white-space: nowrap; }
@media (max-width: 640px) { .exam { bottom: 0; } }

/* =========================================================
   v2 · Enfoque ADE UCLM
   ========================================================= */
:root {
  --ink: #14283D;
  --navy: #102A43;
  --c1: #F07A1A; --c1-soft: #FFE6CF; --c1-ink: #A84D04;
  --c2: #4FB3E6; --c2-soft: #DDF1FB; --c2-ink: #0F6A96;
  --c3: #1E3A5F; --c3-soft: #DCE4EF;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero__title { font-size: clamp(3rem, 8.6vw, 6.6rem); }
.hero__title .hl { font-style: normal; }
.hero__lead b { color: var(--ink); font-weight: 600; }
.hero__lead { max-width: 36ch; }

/* Filtro "Ver mi curso" */
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter__lbl { font-weight: 600; font-size: .92rem; color: var(--ink-2); margin-right: 4px; }
.fchip { min-height: 44px; min-width: 52px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 600 .95rem var(--f-body); color: var(--ink); cursor: pointer; transition: .25s var(--ease); }
.fchip:hover { border-color: var(--ink); }
.fchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.fchip--c1[aria-pressed="true"] { background: var(--c1-ink); border-color: var(--c1-ink); }
.fchip--c2[aria-pressed="true"] { background: var(--c2-ink); border-color: var(--c2-ink); }
.fchip--c3[aria-pressed="true"] { background: var(--c3); border-color: var(--c3); }
.filter--inline { margin-bottom: 22px; }
[data-curso]:not(.fchip) { transition: opacity .35s var(--ease), filter .35s, transform .35s var(--ease); }
.is-dim { opacity: .22; filter: grayscale(.8); }

/* Asignaturas por curso */
.subjects { padding-bottom: clamp(70px, 9vw, 120px); }
.years { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.year { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.year__head { display: flex; align-items: baseline; gap: 8px; padding: 20px 24px; color: #fff; font-weight: 600; }
.year__num { font: 700 2.4rem/1 var(--f-display); letter-spacing: -.03em; }
.year__price { margin-left: auto; font-size: .85rem; background: rgba(255,255,255,.2); padding: 4px 10px; border-radius: 999px; }
.year--c1 .year__head { background: var(--c1-ink); }
.year--c2 .year__head { background: var(--c2-ink); }
.year--c3 .year__head { background: var(--c3); }
.year__list { list-style: none; margin: 0; padding: 6px 24px 10px; }
.subj { padding: 18px 0; border-bottom: 1px dashed var(--line); }
.subj:last-child { border: 0; }
.subj h3 { font-size: 1.28rem; line-height: 1.2; margin-bottom: 8px; }
.subj__when { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: .9rem; color: var(--ink-2); }
.subj__when svg { flex: none; width: 17px; height: 17px; margin-top: 3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Horario */
.timetable { padding-block: clamp(70px, 9vw, 120px); background: var(--paper-2); border-block: 1px solid var(--line); }
.tt { border-collapse: separate; border-spacing: 8px; table-layout: fixed; margin: -8px; width: calc(100% + 16px); }
.tt thead th { font: 600 1.05rem var(--f-display); text-align: left; padding: 4px 6px 8px; }
.tt thead th:first-child { width: 84px; }
.tt tbody th { text-align: right; vertical-align: top; padding: 10px 8px 0 0; font: 700 .95rem var(--f-body); font-variant-numeric: tabular-nums; }
.tt tbody th span { display: block; font-weight: 400; color: var(--ink-2); font-size: .8rem; }
.tt td { height: 92px; padding: 0; }
.tt tr.is-short td, .tt tr.is-short th { height: 50px; }
.tt__empty { border: 1.5px dashed var(--line); border-radius: 14px; text-align: center; color: #9A8F78; }
.slot { height: 100%; min-height: inherit; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 4px; border-left: 5px solid; transition: transform .25s var(--ease), box-shadow .25s, opacity .35s, filter .35s; }
.slot:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.slot b { font: 600 1.02rem/1.2 var(--f-display); }
.slot span { font-size: .8rem; font-weight: 600; opacity: .9; font-variant-numeric: tabular-nums; }
.slot--c1 { background: var(--c1-soft); border-color: var(--c1); color: #6B3000; }
.slot--c2 { background: var(--c2-soft); border-color: var(--c2); color: #0B4C6C; }
.slot--c3 { background: var(--c3); border-color: var(--c2); color: #fff; }
.days { display: none; }
.legend { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 8px; }
.sw { width: 16px; height: 16px; border-radius: 5px; }
.sw--c1 { background: var(--c1); } .sw--c2 { background: var(--c2); } .sw--c3 { background: var(--c3); }

/* Precios + calculadora */
.pricing { padding-block: clamp(70px, 9vw, 130px); }
.pricing__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 32px 0 18px; }
.price { border-radius: 20px; padding: 22px 22px 22px 28px; background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; }
.price::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--c1); }
.price--c3::before { background: var(--c3); }
.price p { margin: 0; }
.price__lbl { font-weight: 600; color: var(--ink-2); font-size: .92rem; }
.price__num { font: 600 1.4rem var(--f-display); }
.price__num b { font-size: 3.4rem; letter-spacing: -.04em; line-height: 1.1; }
.price__num small { display: block; font: 500 .82rem var(--f-body); color: var(--ink-2); }
.discounts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.discounts li { background: #FFF0A8; padding: 8px 14px; border-radius: 10px; font-size: .95rem; transform: rotate(-1deg); }
.discounts li:nth-child(2) { transform: rotate(1deg); }
.discounts b { color: #B3261E; }
.calc { background: #fff; border-radius: 26px; padding: clamp(22px, 3.5vw, 34px); box-shadow: var(--shadow); border: 1px solid var(--line); position: relative; }
.calc::before { content: "€"; position: absolute; top: -22px; right: 26px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--c1); color: #fff; font: 700 1.6rem var(--f-display); transform: rotate(-10deg); box-shadow: var(--shadow); }
.calc h3 { font-size: 1.7rem; }
.calc__hint { color: var(--ink-2); margin: 4px 0 14px; font-size: .95rem; }
.cgroup { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.cgroup legend { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 0 0 6px; }
.cgroup--c1 legend { color: var(--c1-ink); } .cgroup--c2 legend { color: var(--c2-ink); } .cgroup--c3 legend { color: var(--c3); }
.cbox { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; margin-bottom: 6px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.cbox:hover { border-color: #CDBF9F; }
.cbox input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cbox__mark { flex: none; width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 7px; position: relative; transition: background .2s; }
.cbox__mark::after { content: ""; position: absolute; left: 6px; top: 1px; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.cbox input:checked + .cbox__mark { background: var(--ink); }
.cbox input:checked + .cbox__mark::after { transform: rotate(45deg) scale(1); }
.cbox input:focus-visible + .cbox__mark { outline: 3px solid var(--sky); outline-offset: 2px; }
.cbox:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.cbox__txt { flex: 1; font-weight: 500; font-size: .96rem; line-height: 1.3; }
.cbox__price { font-weight: 600; color: var(--ink-2); font-size: .9rem; white-space: nowrap; }
.calc__sum { margin: 18px 0; padding: 16px 0 0; border-top: 2px dashed var(--line); }
.calc__row { display: flex; justify-content: space-between; color: var(--ink-2); font-size: .95rem; padding: 3px 0; }
.calc__row[hidden] { display: none; }
.calc__row--disc { color: #138A3F; font-weight: 600; }
.calc__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; font-weight: 600; }
.calc__total b { font: 700 2.4rem/1.1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; display: inline-block; }
.calc__total b.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.08); color: var(--c1-ink); } }
.calc__next { margin: 6px 0 0; font-family: var(--f-hand); font-size: 1.3rem; color: var(--c1-ink); }
.calc__fine { margin: 12px 0 0; font-size: .8rem; color: var(--ink-2); text-align: center; }

/* FAQ */
.faq { padding-block: clamp(70px, 9vw, 120px); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.faq .sec-sub a { color: var(--c1-ink); font-weight: 600; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; min-height: 56px; font: 600 1.25rem/1.3 var(--f-display); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--c1-soft); color: var(--c1-ink); font: 600 1.4rem var(--f-body); transition: transform .3s var(--ease), background .3s; }
.qa[open] summary::after { transform: rotate(45deg); background: var(--ink); color: #fff; }
.qa p { color: var(--ink-2); margin: 0 0 22px; max-width: 60ch; animation: panelIn .4s var(--ease); }
.tag-pending { display: inline-block; margin-left: 4px; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--c1-ink); border: 1px dashed currentColor; border-radius: 999px; padding: 2px 8px; vertical-align: middle; }

/* Contacto */
.mail { display: inline-block; margin-top: 6px; color: var(--c1-ink); font-weight: 600; font-size: .98rem; word-break: break-all; }
.hours__title { font: 700 .8rem var(--f-body); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin: 6px 0 4px; }
.final__actions { display: grid; gap: 10px; position: relative; z-index: 1; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { border-color: #fff; box-shadow: none; }
.final__box::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--c2); opacity: .14; right: -80px; top: -110px; }

.grade { right: -44px; top: -58px; }
.circled { margin-inline: .3em .15em; }
.circled svg { inset: auto; left: -12%; top: -18%; width: 124%; height: 146%; }
.circled { padding: 0 .12em; margin-inline-end: .05em; }
@media (max-width: 1080px) { .years { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grade { right: -6px; top: -44px; } }
@media (max-width: 860px) {
  .pricing__grid, .faq__grid { grid-template-columns: 1fr; }
  .week { display: none; }
  .days { display: block; }
  .days__tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 18px; margin-bottom: 16px; }
  .dtab { min-height: 56px; border: 0; border-radius: 13px; background: none; cursor: pointer; font: 700 1.05rem var(--f-display); color: var(--ink-2); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: .25s var(--ease); }
  .dtab small { font: 500 .66rem var(--f-body); opacity: .8; }
  .dtab[aria-selected="true"] { background: var(--ink); color: #fff; }
  .dlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
  .dslot { display: flex; gap: 14px; align-items: stretch; border-radius: 16px; padding: 14px 16px; border-left: 6px solid; animation: panelIn .4s var(--ease) both; }
  .dslot:nth-child(2) { animation-delay: .05s; } .dslot:nth-child(3) { animation-delay: .1s; }
  .dslot time { flex: none; width: 54px; font: 700 1.05rem/1.1 var(--f-body); font-variant-numeric: tabular-nums; }
  .dslot time span { display: block; font-weight: 400; font-size: .8rem; opacity: .8; margin-top: 4px; }
  .dslot b { display: block; font: 600 1.08rem/1.25 var(--f-display); }
  .dslot div span { font-size: .82rem; font-weight: 600; opacity: .85; }
}
@media (max-width: 720px) { .years { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .hero__title { font-size: clamp(2.9rem, 14vw, 3.8rem); }
  .sec-head--row { align-items: flex-start; }
  .filter .filter__lbl { width: 100%; }
  .fchip { flex: 1; }
  .prices { gap: 10px; }
  .price { padding: 16px 14px 16px 20px; }
  .price__num b { font-size: 2.6rem; }
  .cbox { padding: 10px 12px; gap: 10px; }
  .cbox__txt { font-size: .92rem; }
  .qa summary { font-size: 1.1rem; }
  .final__box { border-radius: 24px; }
}

/* =========================================================
   v3 · Cuatrimestres + 16 años
   ========================================================= */
/* Distintivo "16 años preparando ADE" */
.proof { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.badge16 { position: relative; display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 20px 8px 10px; transform: rotate(-2deg); }
.badge16__num { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--c1-ink); color: #fff; font: 700 1.7rem/1 var(--f-display); letter-spacing: -.03em; box-shadow: 0 6px 14px -6px var(--c1-ink); }
.badge16__txt { font-size: 1.55rem; line-height: 1; color: var(--ink); max-width: 7.2em; }
.badge16__ring { position: absolute; inset: -6px -10px -8px -8px; width: calc(100% + 18px); height: calc(100% + 14px); overflow: visible; pointer-events: none; }
.badge16__ring path { fill: none; stroke: var(--c1); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 1.2s 1.2s var(--ease); }
.proof.is-in .badge16__ring path { stroke-dashoffset: 0; }
.proof .rating { padding: 0; }
.exp { font-weight: 600; color: var(--c1-ink); background: linear-gradient(transparent 60%, var(--c1-soft) 60%); }

/* Selector de cuatrimestre */
.cuat { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; margin-bottom: 20px; background: var(--ink); border-radius: 999px; isolation: isolate; }
.cuat::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: #fff; z-index: -1; transition: transform .45s var(--ease); }
.cuat[data-active="2"]::before { transform: translateX(100%); }
.cuat__btn { min-height: 46px; padding: 10px 22px; border: 0; background: none; border-radius: 999px; font: 600 .98rem var(--f-body); color: rgba(255,255,255,.75); cursor: pointer; white-space: nowrap; transition: color .3s; }
.cuat__btn sup { font-size: .62em; }
.cuat__btn[aria-pressed="true"] { color: var(--ink); }
.cuat__btn:hover:not([aria-pressed="true"]) { color: #fff; }
.calc .cuat { display: grid; margin: 10px 0 4px; }
.calc .cuat__btn { padding: 10px 12px; font-size: .92rem; }
.swap { animation: panelIn .45s var(--ease); }

/* Tarjetas de asignaturas */
.year__count { margin-left: auto; font-size: .82rem; background: rgba(255,255,255,.2); padding: 4px 10px; border-radius: 999px; }
.subj__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.subj__top h3 { margin: 0; }
.subj__price { flex: none; font-weight: 700; font-size: .85rem; padding: 4px 10px; border-radius: 8px; background: var(--paper-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.subj__price.is-ask { background: #FFF0A8; color: #6B5300; }
.subj__ask { margin-top: 12px; }

/* Horario semanal en rejilla de 30 minutos */
.wk { display: grid; grid-template-columns: 64px repeat(4, 1fr); grid-template-rows: auto repeat(var(--rows), 46px); column-gap: 10px; }
.wk__corner { grid-row: 1; grid-column: 1; }
.wk__day { grid-row: 1; font: 600 1.05rem var(--f-display); padding: 0 4px 12px; }
.wk__time { grid-column: 1; font: 700 .9rem var(--f-body); text-align: right; padding-right: 6px; transform: translateY(-.6em); font-variant-numeric: tabular-nums; }
.wk__time.is-half { font-weight: 400; color: var(--ink-2); font-size: .78rem; }
.wk__col { border-radius: 14px; background:
  repeating-linear-gradient(to bottom, transparent 0 45px, rgba(20,40,61,.08) 45px 46px), rgba(255,255,255,.45);
  border: 1.5px dashed var(--line); }
.wk .slot { z-index: 1; margin: 3px 0; height: auto; }
.wk .slot.is-short { padding: 6px 12px; flex-direction: row; align-items: center; }
.wk__note { margin: 18px 0 0; font-size: .92rem; color: var(--ink-2); background: #FFF0A8; padding: 10px 14px; border-radius: 12px; display: inline-block; transform: rotate(-.5deg); }
.wk__note a { color: var(--c1-ink); font-weight: 600; }
.dempty { color: var(--ink-2); padding: 18px; border: 1.5px dashed var(--line); border-radius: 16px; text-align: center; }

/* Precios */
.prices { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.price--c2::before { background: var(--c2); }
.price__num .from { display: inline; font-size: .82rem; margin-right: 4px; }
.price__num b.is-ask { font-size: 1.5rem; letter-spacing: 0; display: block; padding: 10px 0 6px; }
.cbox__price { font-variant-numeric: tabular-nums; }
.cbox--ask .cbox__price { background: #FFF0A8; color: #6B5300; padding: 2px 8px; border-radius: 6px; font-size: .8rem; }
.calc__row--ask { color: #6B5300; font-weight: 600; gap: 12px; }
.calc__row--ask span:first-child { text-align: left; }
.calc__row--ask span:last-child { white-space: nowrap; }

@media (max-width: 640px) {
  .proof { gap: 10px; }
  .badge16__num { width: 48px; height: 48px; font-size: 1.5rem; }
  .badge16__txt { font-size: 1.4rem; }
  .cuat { display: grid; width: 100%; }
  .cuat__btn { padding: 10px 8px; font-size: .92rem; }
  .subj__top { flex-direction: column; gap: 6px; }
}

/* v3 ajustes */
.wk__time.is-half, .wk__time { font-weight: 600; color: var(--ink-2); font-size: .82rem; }
.calc__total b small { display: block; font: 600 .82rem var(--f-body); color: #6B5300; letter-spacing: 0; text-align: right; }
.calc__total b { text-align: right; }
@media (min-width: 861px) {
  .hero__title { font-size: clamp(3rem, 6.4vw, 5.6rem); }
  .hero__actions { margin: 26px 0 22px; }
}

/* Distintivo 16 años: círculo solo alrededor del texto */
.badge16 { gap: 18px; padding: 10px 26px 10px 0; transform: rotate(-1.5deg); }
.badge16__txt { white-space: nowrap; max-width: none; position: relative; z-index: 1; }
.badge16__ring { inset: auto; left: 56px; top: 50%; width: calc(100% - 50px); height: 64px; transform: translateY(-50%); }
@media (max-width: 640px) { .badge16__ring { left: 50px; width: calc(100% - 44px); height: 58px; } .badge16__txt { font-size: 1.32rem; } }
.badge16 { padding-right: 34px; }
.badge16__ring { left: 44px; width: calc(100% - 30px); height: 78px; }
@media (max-width: 640px) { .badge16__ring { left: 40px; width: calc(100% - 26px); height: 70px; } }

.calc__total b small.pre { display: inline; margin-right: 6px; color: var(--ink-2); font-size: .9rem; }

/* Crédito del desarrollador */
.foot__credit { grid-column: 1 / -1; margin: 0; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .76rem; color: var(--ink-2); opacity: .75; letter-spacing: .01em; }
.foot__credit a { color: inherit; font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; padding: 6px 0; transition: color .2s, border-color .2s; }
.foot__credit a:hover, .foot__credit a:focus-visible { color: var(--c1-ink); border-color: currentColor; }
.foot__credit a span { display: inline-block; font-size: .9em; transition: transform .2s var(--ease); }
.foot__credit a:hover span { transform: translate(2px,-2px); }

/* ---------- v4: ascensor, FAQ, mapa bajo demanda, pie legal ---------- */
.lift { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .95rem; font-weight: 600; color: var(--ink); }
.lift svg { width: 18px; height: 18px; fill: none; stroke: var(--c1-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qa__btn { margin: -8px 0 22px; }

.map__gate { position: absolute; inset: 0; display: grid; place-items: center; background: #EFE8D8; overflow: hidden; }
.map__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__art .m-street { fill: none; stroke: #fff; stroke-width: 10; stroke-linecap: round; }
.map__art .m-main { fill: none; stroke: #FFE6CF; stroke-width: 18; stroke-linecap: round; }
.map__art .m-river { fill: none; stroke: #CBE9F7; stroke-width: 26; stroke-linecap: round; }
.map__pin { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -100%); width: 54px; height: 54px; filter: drop-shadow(0 8px 10px rgba(20,40,61,.3)); animation: pinDrop .8s var(--ease) both; }
.map__pin svg { width: 100%; height: 100%; fill: var(--c1-ink); }
@keyframes pinDrop { from { transform: translate(-50%, -160%); opacity: 0; } }
.map__cta { position: relative; z-index: 1; margin-top: 120px; display: grid; justify-items: center; gap: 10px; padding: 16px 20px; background: rgba(251,247,239,.92); border-radius: 18px; box-shadow: var(--shadow); max-width: 290px; text-align: center; }
.map__note { margin: 0; font-size: .78rem; color: var(--ink-2); line-height: 1.4; }
.map__note a { color: var(--c1-ink); font-weight: 600; }
.map__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; animation: panelIn .5s var(--ease); }
.map__tag { z-index: 2; }

.foot__legalnav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: -8px; }
.foot__legalnav a { font-size: .85rem; color: var(--ink-2); padding: 8px 0; text-decoration: none; border-bottom: 1px solid transparent; }
.foot__legalnav a:hover { color: var(--ink); border-color: var(--c1); }

/* ---------- Páginas legales ---------- */
.legal { padding-block: clamp(40px, 7vw, 90px) clamp(60px, 9vw, 120px); }
.legal__wrap { max-width: 760px; margin: 0 auto; padding-inline: var(--gutter); }
.legal__back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--c1-ink); text-decoration: none; margin-bottom: 18px; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 8px; }
.legal__date { color: var(--ink-2); font-size: .9rem; margin-bottom: 36px; }
.legal h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin: 38px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--c1-ink); font-weight: 600; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.legal dt { font-weight: 600; color: var(--ink); }
.legal dd { margin: 0; color: var(--ink-2); }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.legal th, .legal td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--paper-2); color: var(--ink); }
.legal .table-scroll { overflow-x: auto; }
@media (max-width: 640px) {
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 10px; }
  .legal body, body.is-legal { padding-bottom: 0; }
}

.map__tag { top: 14px; bottom: auto; }

/* ---------- v5: pie en columnas + enlace a reseñas ---------- */
.reviews__link { display: inline-block; margin-left: 6px; padding: 6px 0; font-weight: 600; color: var(--c1-ink); text-decoration: none; border-bottom: 1px solid transparent; }
.reviews__link:hover { border-color: currentColor; }

.foot { padding-block: clamp(48px, 7vw, 72px) 28px; }
.foot__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px clamp(24px, 4vw, 56px); align-items: start; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.foot__brand { display: flex; align-items: flex-start; gap: 16px; }
.foot__brand img { width: 72px; height: 72px; flex: none; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.foot__brand p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--ink-2); }
.foot__brand b { font: 600 1.1rem var(--f-display); color: var(--ink); }
.foot__col { display: flex; flex-direction: column; align-items: flex-start; }
.foot__title { font: 700 .74rem var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--c1-ink); margin: 0 0 8px; }
.foot__col a { padding: 6px 0; font-size: .95rem; font-weight: 500; text-decoration: none; color: var(--ink); border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.foot__col a:hover { border-color: var(--c1); }
.foot__bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; flex-wrap: wrap; padding-top: 20px; }
.foot__copy { margin: 0; font-size: .8rem; color: var(--ink-2); }
.foot__bottom .foot__credit { border: 0; padding: 0; margin: 0; grid-column: auto; }

@media (max-width: 860px) {
  .foot__top { grid-template-columns: 1fr 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .foot__top { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot__col:last-child { grid-column: auto; }
  .foot__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- v6: "Por qué solo ADE" con texto del cliente ---------- */
.manifesto__title { font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.1; max-width: 22ch; margin: 0 auto 36px; }
.manifesto__title em { display: block; font-style: italic; font-weight: 400; color: var(--c1-ink); }
.manifesto__quote { position: relative; margin: 0 auto; max-width: 860px; padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 52px); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); text-align: left; transform: rotate(-.4deg);
  background-image: linear-gradient(transparent calc(1.6em - 1px), rgba(116,198,238,.22) calc(1.6em - 1px)); background-size: 100% 1.6em; }
.manifesto__quote::before { content: "\201C"; position: absolute; top: -34px; left: 22px; font: 700 6rem/1 var(--f-display); color: var(--c1); }
.manifesto__quote::after { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(10px, 2.2vw, 30px); width: 2px; background: rgba(216,64,47,.28); }
.manifesto__text { margin: 0; font: 400 clamp(1.18rem, 2.3vw, 1.6rem)/1.6 var(--f-display); letter-spacing: -.005em; }
.manifesto__text p { margin: 0 0 .8em; }
.manifesto__text p:last-child { margin: 0; }
.manifesto__quote .manifesto__sign { margin-top: 22px; text-align: right; }
.manifesto__quote.is-in .circled path { stroke-dashoffset: 0; }
@media (max-width: 640px) {
  .manifesto__quote { transform: none; }
  .manifesto__quote .circled { white-space: normal; }
  .manifesto__quote .circled svg { display: none; }
  .manifesto__quote .circled { background: linear-gradient(transparent 60%, rgba(216,64,47,.18) 60%); }
}
.nw { white-space: nowrap; }
.manifesto__quote .circled { margin: 0 .1em 0 .2em; padding: 0 .08em; }
@media (max-width: 640px) { .nw { white-space: normal; } .manifesto__quote .circled { margin: 0; padding: 0; } }
@media (min-width: 641px) { .manifesto__quote .circled { margin: 0 .5em 0 .45em; } }
@media (min-width: 641px) { .manifesto__quote .circled { margin: 0 .2em 0 .25em; padding: 0 .3em; } .manifesto__quote .circled svg { left: -2%; width: 104%; top: -16%; height: 140%; } }
@media (min-width: 641px) { .manifesto__quote .circled { margin: 0 .4em 0 .45em; padding: 0 .1em; } .manifesto__quote .circled svg { left: -9%; width: 118%; top: -18%; height: 146%; } }
