:root {
  color-scheme: light;
  --ink: #152131;
  --muted: #4a5767;
  --blue: #1351ac;
  --line: #dce2ea;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f6f7fa;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid #1460cf; outline-offset: 4px; }
p, h1, h2, h3, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
.shell { width: min(1176px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 5; padding: 12px; background: white; }
.skip:focus { top: 1rem; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-inner { min-height: 70px; }
.logo { flex-shrink: 0; }
.logo img { width: clamp(138px, 17vw, 178px); height: auto; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; color: var(--muted); font-size: .89rem; font-weight: 650; }
nav a:hover, .help:hover { text-decoration: underline; text-underline-offset: 4px; }
.account { position: relative; }
.account summary { cursor: pointer; }
.account-links { position: absolute; top: 28px; right: 0; z-index: 3; display: grid; gap: 12px; width: min(265px, calc(100vw - 32px)); padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 12px 32px #15213118; }
.account-links strong { display: block; color: var(--ink); }
.account-links span, .account-links > p:last-child { display: block; margin-top: 2px; font-size: .78rem; line-height: 1.4; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 47px; padding: 10px 18px; border-radius: 999px; font-size: .9rem; font-weight: 750; line-height: 1.3; text-align: center; }
.primary { background: var(--blue); color: #fff; }
.primary:hover { background: #0f3d82; }
.small { min-height: 40px; font-size: .83rem; }
.services, .next { scroll-margin-top: 16px; }
.intro { text-align: center; padding: 36px 0 28px; }
h1 { font-size: clamp(2.25rem, 4.6vw, 4.55rem); font-weight: 770; line-height: 1.02; letter-spacing: -.067em; }
.intro p { margin: 14px auto 0; max-width: 60ch; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.17rem); line-height: 1.45; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { --card-ink: #17314c; display: flex; min-width: 0; flex-direction: column; overflow: clip; border: 1px solid #dce5f1; border-radius: 27px; background: #eaf2fd; color: var(--card-ink); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px #14203219; }
.driver { --card-ink: #543821; background: #faf0e5; border-color: #eadbc9; }
.tests { --card-ink: #17483e; background: #eaf5f0; border-color: #d6e7df; }
.card-visual { position: relative; overflow: hidden; height: clamp(150px, 15.8vw, 217px); background: #d7e5f5; }
.card-visual img { width: 100%; height: 100%; object-fit: cover; }
.courses .card-visual img { object-position: center 43%; }
.driver .card-visual { background: #e9d6be; }
.tests .card-visual { display: grid; place-items: center; background: radial-gradient(ellipse at 65% 35%, #c7eee0 0%, #9dcfbe 77%); }
.tests .card-visual img { width: 86%; height: auto; border: 5px solid #fff; border-radius: 13px; box-shadow: 0 12px 25px #17483e37; transform: rotate(-5deg); }
.card-copy { display: flex; flex: 1; flex-direction: column; padding: clamp(16px, 2.05vw, 25px); }
.card-category, .eyebrow { font-size: .73rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; line-height: 1.4; }
.card-copy h2 { margin-top: 6px; font-size: clamp(1.38rem, 2.65vw, 2.28rem); line-height: 1.05; letter-spacing: -.055em; }
.card-copy p:not(.card-category) { margin: 9px 0 15px; color: var(--muted); font-size: .96rem; line-height: 1.48; }
.card-action { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; font-size: .91rem; font-weight: 750; }
.arrow { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #fff9; font-size: 1.08rem; }
.courses .arrow { background: var(--blue); color: #fff; }
.next { margin-top: clamp(35px, 4.6vw, 61px); }
.next-intro { margin-bottom: clamp(17px, 2.2vw, 27px); text-align: center; }
.next-intro h2 { font-size: clamp(1.8rem, 3.65vw, 3.65rem); font-weight: 770; line-height: 1.04; letter-spacing: -.061em; text-wrap: balance; }
.next-intro p { margin: 10px auto 0; max-width: 48ch; color: var(--muted); font-size: clamp(.95rem, 1.45vw, 1.12rem); line-height: 1.45; text-wrap: pretty; }
.next-event {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2.8vw, 36px);
  padding: clamp(15px, 2.4vw, 28px);
  border: 1px solid #243b59;
  border-radius: 25px;
  background: linear-gradient(125deg, #142237, #142b46 63%, #193552);
  color: #fff;
}
.next-calendar { min-width: 133px; padding: 13px 19px 12px; border: 1px solid #ffffff30; border-radius: 16px; background: #ffffff10; }
.next-month { color: #d3e5fc; font-size: .8rem; font-weight: 700; }
.next-days { display: flex; align-items: baseline; gap: .08em; margin-top: 4px; font-size: clamp(2.1rem, 4.05vw, 3.5rem); font-weight: 750; line-height: 1; letter-spacing: -.075em; white-space: nowrap; }
.next-days span { color: #a9cfff; font-weight: 550; }
.next-copy h3 { font-size: clamp(1.3rem, 2.45vw, 2.13rem); line-height: 1.09; letter-spacing: -.045em; }
.next-copy p { margin-top: 6px; color: #d9e6f6; line-height: 1.4; }
.next-copy .next-price { margin-top: 11px; }
.next-price strong { color: #fff; font-size: 1.14rem; font-weight: 750; }
.next-price span { margin-left: 3px; font-size: .85rem; }
.next-booking { display: grid; gap: 5px; }
.next-booking .button { justify-content: space-between; background: #fff; color: #172f50; }
.next-booking .button:hover { background: #e0eeff; }
.next-event a:focus-visible { outline-color: #fff; }
.next-help { justify-self: center; padding: 6px; color: #e0ecfa; font-size: .83rem; font-weight: 650; }
.service-directory { margin-top: clamp(39px, 6vw, 84px); padding: clamp(19px, 4vw, 46px); border: 1px solid var(--line); border-radius: 25px; background: #fff; }
.directory-intro { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 57px); }
.directory-editorial h2 { max-width: 24ch; font-size: clamp(1.65rem, 3.05vw, 3rem); line-height: 1.07; letter-spacing: -.055em; text-wrap: balance; }
.directory-editorial p { max-width: 64ch; margin-top: 14px; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.12rem); line-height: 1.68; }
.directory-editorial a { color: var(--blue); font-weight: 710; text-decoration: underline; text-decoration-color: #6489bf; text-underline-offset: .19em; text-decoration-thickness: 1px; }
.directory-editorial a:hover { text-decoration-thickness: 2px; }
.directory-note { padding: clamp(17px, 2.8vw, 32px); border: 1px solid #dce8f8; border-radius: 19px; background: linear-gradient(155deg, #eaf2fd, #f2f6fb); }
.directory-note strong { color: #193552; font-size: clamp(1.12rem, 1.7vw, 1.48rem); line-height: 1.19; letter-spacing: -.026em; }
.directory-note p + p { margin-top: 11px; color: var(--muted); line-height: 1.55; }
.site-footer {
  padding-bottom: 24px;
  border-top: 1px solid #dce3eb;
  background: #e7eef7;
  color: #34465a;
  font-size: .89rem;
  line-height: 1.5;
}
.footer-top {
  padding-top: clamp(28px, 4.6vw, 62px);
  border-bottom: 1px solid #cfd9e5;
  background: #fafbfd;
}
.footer-identity {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 22px 40px;
  padding-bottom: 26px;
}
.footer-brand img { width: 130px; }
.footer-brand p { max-width: 53ch; margin-top: 10px; }
.footer-contact address { font-style: normal; }
.footer-contact-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 7px; }
.footer-contact-links a { color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .22em; }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, .85fr) minmax(0, 1fr);
  gap: 22px clamp(20px, 4vw, 52px);
  padding-block: 25px 30px;
}
.footer-inner nav { display: grid; align-content: start; justify-items: start; gap: 9px 20px; }
.footer-inner h3 { margin-bottom: 3px; color: var(--ink); font-size: .95rem; letter-spacing: -.015em; }
.footer-cap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-cap h3 { grid-column: 1 / -1; }
.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 11px 22px;
  padding-top: 16px;
  border-top: 1px solid #cfd9e5;
  font-size: .79rem;
}
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-legal small { display: block; margin-top: 3px; font-size: .75rem; }
@media (max-width: 860px) {
  .shell { width: calc(100% - 36px); }
  .header-inner nav { gap: 13px; }
  .next-event { grid-template-columns: auto minmax(0, 1fr); }
  .next-booking { grid-column: 2; justify-items: start; }
  .next-help { justify-self: start; }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 28px); }
  .header-inner { position: relative; min-height: 60px; flex-wrap: wrap; gap: 0 8px; padding: 7px 0 5px; }
  .logo img { width: 124px; }
  .header-inner nav { order: 1; flex: 1 0 100%; justify-content: space-between; gap: 3px 9px; font-size: .76rem; }
  .header-inner nav > a, .account summary { padding: 8px 0; }
  .account { position: static; }
  .account-links { top: 100%; }
  .account summary { font-size: .76rem; }
  .small { min-height: 36px; padding-inline: 10px; font-size: .74rem; }
  .small span { display: none; }
  .intro { text-align: left; padding: 23px 0 17px; }
  .intro p { margin: 8px 0 0; }
  .desktop-break { display: none; }
  .cards { grid-template-columns: 1fr; }
  .cards { gap: 10px; }
  .card { display: grid; grid-template-columns: minmax(94px, 34%) minmax(0, 1fr); border-radius: 18px; }
  .card-visual { height: 100%; min-height: 112px; }
  .card-copy { padding: 12px; }
  .card-copy h2 { margin-top: 3px; font-size: 1.29rem; }
  .card-copy p:not(.card-category) { margin: 5px 0 6px; font-size: .84rem; }
  .card-category { font-size: .65rem; }
  .card-action { font-size: .79rem; }
  .arrow { flex-basis: 26px; width: 26px; height: 26px; font-size: .9rem; }
  .tests .card-visual img { width: 92%; border-width: 2px; border-radius: 6px; }
  .next-event { grid-template-columns: auto minmax(0, 1fr); gap: 12px; border-radius: 19px; }
  .next-calendar { min-width: 75px; padding: 9px; border-radius: 11px; align-self: start; }
  .next-month { font-size: .68rem; }
  .next-days { font-size: 1.9rem; }
  .next-copy p { font-size: .85rem; }
  .next-copy .next-price { margin-top: 6px; }
  .next-booking { grid-column: 1 / -1; grid-template-columns: 1fr; gap: 4px; justify-items: stretch; }
  .next-help { justify-self: center; }
  .directory-intro { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 850px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .footer-cap { grid-column: 1 / -1; padding-bottom: 20px; border-bottom: 1px solid #cfd9e5; }
  .footer-inner nav { row-gap: 5px; }
  .footer-inner nav:last-child { grid-column: 1 / -1; }
  .site-footer nav a, .footer-contact-links a { min-height: 30px; padding-block: 4px; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }

.benefits { margin-top: clamp(44px, 7vw, 95px); scroll-margin-top: 20px; }
.benefits-intro { max-width: 830px; margin: 0 auto clamp(20px, 3.3vw, 39px); text-align: center; }
.benefits-kicker { margin-bottom: 10px; color: var(--blue); font-size: .77rem; font-weight: 760; letter-spacing: .09em; text-transform: uppercase; }
.benefits-intro h2 { font-size: clamp(1.85rem, 4vw, 3.64rem); font-weight: 770; line-height: 1.04; letter-spacing: -.06em; text-wrap: balance; }
.benefits-intro > p:last-child { margin: 13px auto 0; max-width: 68ch; color: var(--muted); line-height: 1.6; text-wrap: pretty; }
.benefits-intro a { color: var(--blue); font-weight: 710; text-decoration: underline; text-underline-offset: .19em; }
.benefits-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 15px; }
.benefit {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 212px;
  padding: clamp(19px, 2.35vw, 31px);
  border: 1px solid var(--line);
  border-radius: 23px;
  isolation: isolate;
  background: #fff;
}
.benefit h3 { font-size: clamp(1.25rem, 2.15vw, 2rem); line-height: 1.11; letter-spacing: -.042em; text-wrap: balance; }
.benefit p { max-width: 41ch; margin-top: 7px; color: var(--muted); font-size: .98rem; line-height: 1.52; }
.benefit-approved { grid-column: span 4; background: linear-gradient(145deg, #f4f8fd, #e8f0fc); border-color: #dae6f5; }
.benefit-students { grid-column: span 3; justify-content: center; background: #162b46; border-color: #162b46; color: #fff; }
.benefit-students h3 span { display: block; margin-bottom: 4px; color: #c2dcff; font-size: clamp(2.85rem, 5.2vw, 4.8rem); line-height: .95; letter-spacing: -.075em; }
.benefit-students p, .benefit-transport p { color: #e0eafa; }
.benefit-transport { grid-column: span 5; justify-content: flex-end; overflow: hidden; background: #172538; border-color: #273b54; color: #fff; }
.benefit-transport img, .benefit-transport::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.benefit-transport img { object-fit: cover; object-position: center 43%; }
.benefit-transport::after { content: ""; background: linear-gradient(0deg, #0e1c2cf5 5%, #0d1b2bad 48%, #14243c12 100%); }
.benefit-transport h3 { text-wrap: wrap; }
.benefit-online { grid-column: span 5; flex-direction: row; align-items: center; overflow: hidden; background: #edf6f1; border-color: #dceadf; }
.benefit-online img { width: 41%; height: auto; border-radius: 9px; border: 3px solid #fff; box-shadow: 0 8px 20px #153d3325; transform: rotate(-5deg); }
.benefit-location { grid-column: span 4; }
.benefit-support { grid-column: span 3; background: #fbf2e8; border-color: #eddfd1; }
.benefit-mark { position: relative; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: #dceaff; color: #194886; font-size: 1.42rem; font-weight: 720; }
.mark-pin::before { content: ""; width: 13px; height: 13px; border: 2px solid currentColor; border-radius: 64% 64% 64% 24%; transform: translateY(-1px) rotate(-45deg); }
.mark-pin::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: currentColor; transform: translateY(-2px); }
.mark-chat { color: #7a462c; background: #f3dfcd; }
.mark-chat::before { content: ""; width: 18px; height: 13px; border: 2px solid currentColor; border-radius: 5px; }
.mark-chat::after { content: ""; position: absolute; top: 25px; left: 13px; width: 5px; height: 5px; background: #f3dfcd; border-bottom: 2px solid currentColor; border-left: 2px solid currentColor; transform: skewY(-35deg); }
@media (max-width: 840px) {
  .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit { grid-column: auto; min-height: 185px; }
}
@media (max-width: 520px) {
  .benefits-grid { grid-template-columns: 1fr; gap: 10px; }
  .benefit { min-height: 0; gap: 13px; border-radius: 18px; }
  .benefit-transport { min-height: 196px; }
  .benefit-online img { width: 35%; }
}

.aula-showcase {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(24px, 4.1vw, 53px);
  margin-top: clamp(42px, 6.5vw, 92px);
  padding: clamp(22px, 4vw, 52px);
  border: 1px solid #dce8e2;
  border-radius: 28px;
  background: linear-gradient(125deg, #fff 28%, #f8fcfa 74%, #eef6f2);
  scroll-margin-top: 19px;
}
.aula-kicker { color: #17634e; font-size: .78rem; font-weight: 750; letter-spacing: .085em; text-transform: uppercase; }
.aula-editorial h2 { margin-top: 9px; font-size: clamp(1.9rem, 3.8vw, 3.65rem); line-height: 1.04; font-weight: 770; letter-spacing: -.063em; text-wrap: balance; }
.aula-lead { max-width: 45ch; margin-top: 14px; color: var(--muted); font-size: clamp(1rem, 1.42vw, 1.16rem); line-height: 1.57; }
.aula-cta { width: fit-content; margin-top: 19px; color: #fff; background: #1a614f; }
.aula-cta:hover { background: #104b3b; }
.aula-presencial { margin-top: 23px; padding-top: 14px; border-top: 1px solid #dfe8e4; color: var(--muted); font-size: .9rem; line-height: 1.59; }
.aula-presencial a { color: #1c5d4e; font-weight: 700; text-decoration: underline; text-underline-offset: .18em; }
.aula-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.aula-demo { min-width: 0; margin: 0; padding: 0; border: 0; }
.aula-screen {
  display: grid;
  place-items: center;
  aspect-ratio: 1.53;
  padding: clamp(13px, 2.3vw, 30px);
  overflow: hidden;
  border: 1px solid #c3dfd4;
  border-radius: 22px;
  background: radial-gradient(ellipse at 80% 0%, #eefbf5, transparent 68%), linear-gradient(140deg, #d9ede4, #b9dbcd);
}
.aula-panel { display: none; width: 100%; max-height: 100%; height: auto; object-fit: contain; border-radius: clamp(7px, 1.15vw, 14px); box-shadow: 0 12px 25px #1a4e3b29; }
.panel-prioridad { width: 76%; }
#aula-simuladores:checked ~ .aula-screen .panel-simuladores,
#aula-historial:checked ~ .aula-screen .panel-historial,
#aula-temas:checked ~ .aula-screen .panel-temas,
#aula-prioridad:checked ~ .aula-screen .panel-prioridad { display: block; }
.aula-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.aula-controls label { display: grid; align-items: center; min-height: 41px; padding: 7px 8px; border: 1px solid #d8e5df; border-radius: 10px; background: #fff; color: #365248; font-size: .8rem; font-weight: 690; line-height: 1.3; text-align: center; cursor: pointer; }
.aula-controls label:hover { border-color: #6a9d8b; }
#aula-simuladores:checked ~ .aula-controls [for="aula-simuladores"],
#aula-historial:checked ~ .aula-controls [for="aula-historial"],
#aula-temas:checked ~ .aula-controls [for="aula-temas"],
#aula-prioridad:checked ~ .aula-controls [for="aula-prioridad"] { border-color: #225d4e; background: #225d4e; color: #fff; }
#aula-simuladores:focus-visible ~ .aula-controls [for="aula-simuladores"],
#aula-historial:focus-visible ~ .aula-controls [for="aula-historial"],
#aula-temas:focus-visible ~ .aula-controls [for="aula-temas"],
#aula-prioridad:focus-visible ~ .aula-controls [for="aula-prioridad"] { outline: 2px solid #1460cf; outline-offset: 2px; }
@media (max-width: 780px) {
  .aula-showcase { grid-template-columns: 1fr; align-items: start; border-radius: 21px; }
  .aula-demo { width: 100%; max-width: 570px; }
  .aula-screen { border-radius: 16px; }
}

.tachograph-feature {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  min-height: 351px;
  margin-top: clamp(38px, 6vw, 84px);
  overflow: hidden;
  border: 1px solid #e8decf;
  border-radius: 27px;
  background: #fbf5ec;
  scroll-margin-top: 20px;
}
.tachograph-photo { position: relative; min-width: 0; min-height: 230px; background: #26303c; }
.tachograph-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 56% center; }
.tachograph-copy { align-self: center; padding: clamp(22px, 4.2vw, 57px); }
.tachograph-copy h2 { max-width: 22ch; font-size: clamp(1.7rem, 3.25vw, 3.4rem); font-weight: 770; line-height: 1.05; letter-spacing: -.062em; text-wrap: balance; }
.tachograph-copy p { margin-top: 15px; color: #584e46; font-size: clamp(.99rem, 1.35vw, 1.12rem); line-height: 1.64; }
.tachograph-copy b { color: #744222; }
.tachograph-cta { margin-top: 20px; background: #743e20; color: #fff; }
.tachograph-cta:hover { background: #562e18; }
@media (max-width: 760px) {
  .tachograph-feature { grid-template-columns: 1fr; border-radius: 21px; }
  .tachograph-photo { min-height: clamp(180px, 52vw, 300px); }
  .tachograph-copy h2 { max-width: 25ch; }
}

.service-catalogue { margin-top: clamp(42px, 6.5vw, 88px); scroll-margin-top: 20px; }
.catalogue-intro { text-align: center; }
.catalogue-intro h2 { margin: 0 auto; max-width: 24ch; font-size: clamp(1.9rem, 4vw, 3.65rem); font-weight: 770; line-height: 1.04; letter-spacing: -.06em; text-wrap: balance; }
.catalogue-intro p { max-width: 67ch; margin: 12px auto 0; color: var(--muted); line-height: 1.58; text-wrap: pretty; }
.catalogue-search { max-width: 510px; margin: 19px auto 22px; }
.catalogue-search label { display: block; margin-bottom: 5px; color: var(--ink); font-size: .84rem; font-weight: 720; text-align: center; }
.catalogue-search input { width: 100%; min-height: 47px; padding: 10px 15px; border: 1px solid #bdccdd; border-radius: 11px; background: #fff; color: var(--ink); font: inherit; }
.catalogue-search input:focus-visible { outline: 2px solid #1460cf; outline-offset: 2px; }
.catalogue-status { margin-top: 7px; color: var(--muted); font-size: .9rem; }
.catalogue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 12px; margin-top: 20px; }
.catalogue-group { --group-ink: #194882; --group-bg: #e9f1fd; overflow: clip; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.routes-aula { --group-ink: #1e5547; --group-bg: #e9f5ed; }
.routes-tarjeta { --group-ink: #714321; --group-bg: #faf0e6; }
.catalogue-group h3 { margin: 0; padding: 15px 17px; background: var(--group-bg); color: var(--group-ink); font-size: 1.13rem; letter-spacing: -.025em; }
.catalogue-group ul { margin: 0; padding: 0 14px; list-style: none; }
.catalogue-group li + li { border-top: 1px solid #e7ebf1; }
.catalogue-group a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 13px 3px; }
.catalogue-group a:focus-visible { outline-offset: -2px; }
.catalogue-group h4 { margin: 0; color: var(--group-ink); font-size: .99rem; line-height: 1.3; letter-spacing: -.016em; }
.catalogue-group a:hover h4 { text-decoration: underline; text-underline-offset: 3px; }
.catalogue-group a p { margin: 4px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.47; }
.catalogue-arrow { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: var(--group-ink); background: var(--group-bg); font-size: .92rem; }
@media (max-width: 850px) {
  .catalogue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 590px) {
  .catalogue-grid { grid-template-columns: 1fr; }
  .catalogue-group { border-radius: 17px; }
}

.cap-faq {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(22px, 4.5vw, 62px);
  margin-top: clamp(42px, 6.5vw, 88px);
  padding: clamp(22px, 4vw, 52px);
  border: 1px solid #dce5f1;
  border-radius: 28px;
  background: linear-gradient(145deg, #e9f1fc 0%, #f2f6fb 70%, #f7faff);
  scroll-margin-top: 20px;
}
.cap-faq-intro h2 { max-width: 19ch; font-size: clamp(1.85rem, 3.8vw, 3.65rem); font-weight: 770; line-height: 1.045; letter-spacing: -.061em; text-wrap: balance; }
.cap-faq-intro p { max-width: 42ch; margin-top: 14px; color: var(--muted); font-size: clamp(.97rem, 1.35vw, 1.09rem); line-height: 1.63; }
.cap-faq-list { display: grid; gap: 7px; min-width: 0; }
.cap-faq-list details { border: 1px solid #dce5f0; border-radius: 14px; background: #fff; }
.cap-faq-list details[open] { border-color: #9db9dd; box-shadow: 0 7px 18px #1838630a; }
.cap-faq-list summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 57px; padding: 12px 14px 12px 17px; border-radius: 13px; list-style: none; color: var(--ink); font-size: clamp(.94rem, 1.39vw, 1.09rem); font-weight: 720; line-height: 1.32; cursor: pointer; }
.cap-faq-list summary::-webkit-details-marker { display: none; }
.cap-faq-list summary:hover { color: var(--blue); }
.cap-faq-list details[open] summary { color: #1c4e8c; }
.cap-faq-list details p { max-width: 63ch; padding: 0 17px 15px; color: var(--muted); font-size: .94rem; line-height: 1.58; }
.cap-faq-toggle { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #ebf2fd; color: #1c4e8c; }
.cap-faq-toggle::before, .cap-faq-toggle::after { content: ""; position: absolute; width: 11px; height: 2px; border-radius: 1px; background: currentColor; }
.cap-faq-toggle::after { transform: rotate(90deg); }
.cap-faq-list details[open] .cap-faq-toggle { background: #1c4e8c; color: #fff; }
.cap-faq-list details[open] .cap-faq-toggle::after { display: none; }
@media (max-width: 760px) {
  .cap-faq { grid-template-columns: 1fr; border-radius: 21px; }
  .cap-faq-intro h2 { max-width: 24ch; }
}

.closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(205px, 292px);
  align-items: center;
  gap: clamp(22px, 5.4vw, 74px);
  margin: clamp(38px, 5.4vw, 72px) 0 clamp(24px, 4.8vw, 61px);
  padding: clamp(22px, 4.5vw, 60px);
  border: 1px solid #25425e;
  border-radius: 28px;
  background: radial-gradient(ellipse at 98% 0%, #284d73, transparent 65%), #15283e;
  color: #fff;
  scroll-margin-top: 20px;
}
.closing-copy h2 { max-width: 23ch; font-size: clamp(1.8rem, 3.7vw, 3.85rem); font-weight: 770; letter-spacing: -.059em; line-height: 1.04; text-wrap: balance; }
.closing-copy p { max-width: 56ch; margin-top: 13px; color: #dbe8f5; font-size: clamp(.96rem, 1.4vw, 1.1rem); line-height: 1.57; }
.closing-actions { display: grid; gap: 8px; min-width: 0; }
.closing-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 51px; padding: 10px 14px 10px 16px; border: 1px solid #9ac3e470; border-radius: 12px; background: #ffffff0e; color: #fff; font-size: .98rem; font-weight: 720; }
.closing-actions .closing-link:hover { background: #ffffff26; text-decoration: none; }
.closing-link span { display: grid; flex: 0 0 25px; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #ffffff1a; }
.closing-link:focus-visible { outline-color: #fff; }
.closing-actions .closing-main { border-color: #fff; background: #fff; color: #183758; }
.closing-actions .closing-main:hover { background: #e4efff; }
.closing-main span { background: #e9f1fd; color: #174d89; }
@media (max-width: 690px) {
  .closing { grid-template-columns: 1fr; border-radius: 21px; }
  .closing-copy h2 { max-width: 25ch; }
}

.menu-toggle, .small .header-cta-short { display: none; }
@media (max-width: 650px) {
  .intro,
  .cap-faq-intro,
  .closing-copy { text-align: center; }
  .intro h1,
  :is(.intro, .next-intro, .benefits-intro, .catalogue-intro, .cap-faq-intro, .closing-copy) > p {
    text-wrap: balance;
  }
  :is(.cap-faq-intro, .closing-copy) > :is(h2, p) { margin-inline: auto; }
  .header-inner:has(.menu-toggle:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    min-height: 64px;
    padding-block: 8px;
  }
  .header-inner:has(.menu-toggle:not([hidden])) .logo { min-width: 0; }
  .header-inner > .small { min-height: 44px; max-width: 46vw; }
  .menu-toggle:not([hidden]) {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f6f8fb;
    color: var(--ink);
    cursor: pointer;
  }
  .menu-toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
  .menu-toggle[aria-expanded="true"] { background: #e9f0fa; color: var(--blue); }
  .menu-toggle[aria-expanded="true"] .menu-lines,
  .menu-toggle[aria-expanded="false"] .menu-close { display: none; }
  .header-inner:has(.menu-toggle:not([hidden])) #main-menu {
    display: none;
    position: absolute;
    z-index: 4;
    inset: calc(100% + 4px) 0 auto;
    max-height: calc(100dvh - 85px);
    overflow-y: auto;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 32px #15213124;
    color: var(--ink);
    font-size: .93rem;
  }
  .header-inner:has(.menu-toggle[aria-expanded="true"]) #main-menu { display: block; }
  #main-menu > a, #main-menu .account summary {
    display: block;
    min-height: 44px;
    padding: 11px 4px;
    font-size: inherit;
  }
  #main-menu > a { border-bottom: 1px solid #e7edf4; }
  #main-menu .account summary { display: list-item; color: var(--blue); }
  #main-menu .account-links { position: static; width: auto; margin-bottom: 8px; box-shadow: none; }
}

@media (max-width: 340px) {
  .header-inner > .small {
    padding: 0 10px;
    border-block: 5px solid transparent;
    background-clip: padding-box;
    font-size: .74rem;
  }
  .small .header-cta-full { display: none; }
  .small .header-cta-short { display: inline; }
}

@media (max-width: 650px) {
  .cards { gap: 18px; }
  .card {
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    box-shadow: 0 5px 16px #15213108;
  }
  .card-visual { height: 172px; min-height: 0; }
  .courses .card-visual img { object-position: center 48%; }
  .card-copy { padding: 20px 21px 15px; }
  .card-category { font-size: .65rem; letter-spacing: .1em; }
  .card-copy h2 {
    margin-top: 7px;
    font-size: 1.85rem;
    line-height: 1.08;
    letter-spacing: -.045em;
  }
  .card-copy p:not(.card-category) {
    margin: 10px 0 18px;
    font-size: .94rem;
    line-height: 1.55;
  }
  .card-action {
    min-height: 51px;
    padding-top: 12px;
    border-top: 1px solid #17314c20;
    font-size: .87rem;
  }
  .arrow { flex-basis: 36px; width: 36px; height: 36px; font-size: 1.05rem; }
  .tests .card-visual img { width: 88%; border-width: 4px; border-radius: 10px; }
}

@media (max-width: 650px) {
  .next-event {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(145deg, #142237, #193552);
    box-shadow: 0 10px 24px #14223714;
  }
  .next-calendar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    padding: 0 0 20px;
    border: 0;
    border-bottom: 1px solid #ffffff26;
    border-radius: 0;
    background: transparent;
  }
  .next-month { max-width: 9ch; font-size: .91rem; line-height: 1.4; font-weight: 550; }
  .next-days { margin: 0; gap: .12em; font-size: clamp(2.6rem, 14.35vw, 3.5rem); letter-spacing: -.065em; }
  .next-copy { padding-top: 21px; }
  .next-copy h3 { max-width: 19ch; font-size: 1.65rem; line-height: 1.13; }
  .next-copy p { margin-top: 9px; font-size: .91rem; }
  .next-copy .next-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 19px;
    padding-bottom: 19px;
  }
  .next-price strong { font-size: 1.85rem; letter-spacing: -.04em; }
  .next-price span { font-size: .82rem; color: #bfd0e5; }
  .next-booking { grid-column: auto; gap: 9px; padding-top: 17px; border-top: 1px solid #ffffff26; }
  .next-booking .button { min-height: 48px; border-radius: 14px; background: #fff; color: #17314c; font-size: .9rem; }
  .next-booking .button:hover { background: #e9f1fc; }
  .next-help { padding: 9px 4px 0; font-size: .8rem; }
}

@media (max-width: 650px) {
  .service-directory {
    margin-top: 36px;
    padding: 27px 22px 23px;
    border-radius: 24px;
    background: #fff;
  }
  .directory-intro { gap: 24px; }
  .directory-editorial h2 {
    max-width: none;
    padding-top: 16px;
    border-top: 3px solid #1351ac;
    font-size: 1.7rem;
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -.045em;
    text-align: left;
    text-wrap: balance;
  }
  .directory-editorial p {
    margin-top: 19px;
    font-size: .98rem;
    line-height: 1.82;
    text-align: left;
    text-wrap: pretty;
  }
  .directory-editorial a {
    font-weight: 650;
    text-decoration-color: #a2bde2;
    text-underline-offset: .2em;
  }
  .directory-note {
    padding: 19px 0 0 16px;
    border: 0;
    border-top: 1px solid #dce5f1;
    border-left: 2px solid #b2c9e9;
    border-radius: 0;
    background: transparent;
  }
  .directory-note strong {
    display: block;
    max-width: 25ch;
    font-size: 1.05rem;
    line-height: 1.4;
    letter-spacing: -.02em;
  }
  .directory-note p + p { margin-top: 9px; font-size: .87rem; line-height: 1.7; }
}

@media (max-width: 650px) {
  .benefits-intro { margin-bottom: 25px; }
  .benefits-intro h2 { font-size: 1.85rem; line-height: 1.12; letter-spacing: -.045em; }
  .benefits-intro > p:last-child { font-size: .94rem; line-height: 1.7; }
  .benefits-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .benefit {
    min-height: 0;
    padding: 22px;
    gap: 16px;
    border-radius: 23px;
    text-align: left;
  }
  .benefit h3 { font-size: 1.22rem; line-height: 1.2; letter-spacing: -.03em; text-wrap: pretty; }
  .benefit p { margin-top: 8px; font-size: .91rem; line-height: 1.65; }
  .benefit-approved,
  .benefit-location,
  .benefit-support {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
  }
  .benefit-mark { width: 38px; height: 38px; border-radius: 12px; }
  .benefit-students { padding: 27px 25px; }
  .benefit-students h3 { font-size: 1.12rem; font-weight: 600; }
  .benefit-students h3 span { margin-bottom: 10px; font-size: 4.2rem; font-weight: 750; letter-spacing: -.06em; }
  .benefit-students p { max-width: 29ch; margin-top: 13px; color: #d7e5f7; }
  .benefit-transport { min-height: 238px; padding-top: 100px; }
  .benefit-transport::after { background: linear-gradient(0deg, #0e1c2c 0%, #0e1c2cd9 48%, #14243c12 100%); }
  .benefit-online { flex-direction: column; align-items: stretch; gap: 20px; }
  .benefit-online img { align-self: center; width: 87%; border-radius: 12px; transform: rotate(-3deg); }
}

@media (max-width: 650px) {
  .aula-showcase {
    gap: 0;
    margin-top: 38px;
    padding: 26px 22px 22px;
    border-radius: 24px;
    background: linear-gradient(155deg, #fff 10%, #eef7f2);
  }
  .aula-editorial { display: contents; }
  .aula-kicker { order: 0; font-size: .67rem; letter-spacing: .1em; }
  .aula-editorial h2 {
    order: 1;
    margin-top: 12px;
    font-size: 1.95rem;
    line-height: 1.12;
    letter-spacing: -.045em;
    text-align: left;
  }
  .aula-lead { order: 2; margin-top: 16px; font-size: .96rem; line-height: 1.75; }
  .aula-cta {
    order: 3;
    width: 100%;
    min-height: 48px;
    margin-top: 20px;
    border-radius: 14px;
    justify-content: space-between;
    font-size: .91rem;
  }
  .aula-demo { order: 4; margin-top: 25px; }
  .aula-screen {
    aspect-ratio: 1.34;
    padding: 10px;
    border-radius: 17px;
    background: radial-gradient(ellipse at 70% 0%, #d6eee3, #9fcab9);
  }
  .aula-panel { border-radius: 9px; }
  .panel-prioridad { width: 96%; }
  .aula-controls { gap: 7px; margin-top: 12px; }
  .aula-controls label { min-height: 47px; padding: 8px; border-radius: 12px; font-size: .74rem; font-weight: 650; }
  .aula-presencial {
    order: 5;
    margin-top: 23px;
    padding-top: 18px;
    font-size: .86rem;
    line-height: 1.75;
  }
}

@media (max-width: 650px) {
  .tachograph-feature {
    margin-top: 38px;
    min-height: 0;
    border-radius: 24px;
    background: #fbf5ec;
    box-shadow: 0 5px 16px #54382108;
  }
  .tachograph-photo { min-height: 192px; }
  .tachograph-photo img { object-position: 58% center; }
  .tachograph-copy { padding: 24px 22px 22px; }
  .tachograph-copy h2 {
    max-width: none;
    font-size: 1.85rem;
    line-height: 1.14;
    letter-spacing: -.045em;
    text-align: left;
  }
  .tachograph-copy p {
    margin-top: 17px;
    font-size: .96rem;
    line-height: 1.78;
    text-align: left;
  }
  .tachograph-copy b { font-weight: 700; }
  .tachograph-cta {
    width: 100%;
    min-height: 48px;
    justify-content: space-between;
    gap: 12px;
    margin-top: 23px;
    padding: 13px 15px;
    border-radius: 14px;
    font-size: .84rem;
    text-align: left;
  }
}

@media (max-width: 650px) {
  .service-catalogue { margin-top: 39px; }
  .catalogue-intro h2 { font-size: 1.85rem; line-height: 1.13; letter-spacing: -.045em; }
  .catalogue-intro p { margin-top: 15px; font-size: .94rem; line-height: 1.7; }
  .catalogue-search {
    margin: 24px 0;
    padding: 18px 15px;
    border: 1px solid #dce5f1;
    border-radius: 20px;
    background: #fff;
  }
  .catalogue-search label { margin-bottom: 11px; font-size: .86rem; }
  .catalogue-search input {
    min-height: 48px;
    padding: 12px;
    border-color: #d2dce9;
    border-radius: 12px;
    background: #f6f8fc;
    font-size: .83rem;
  }
  .catalogue-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 0; }
  .catalogue-group { border-radius: 23px; box-shadow: 0 4px 14px #15213106; }
  .catalogue-group h3 {
    padding: 19px 20px;
    border-bottom: 1px solid #1521310a;
    font-size: 1.07rem;
    line-height: 1.3;
    letter-spacing: -.02em;
  }
  .catalogue-group ul { padding: 0 19px; }
  .catalogue-group a { align-items: start; gap: 13px; padding: 20px 0; }
  .catalogue-group h4 { font-size: 1.03rem; line-height: 1.35; letter-spacing: -.025em; }
  .catalogue-group a p { margin-top: 8px; font-size: .88rem; line-height: 1.65; }
  .catalogue-arrow { margin-top: 1px; width: 29px; height: 29px; border-radius: 10px; font-size: .98rem; }
  .catalogue-status { font-size: .82rem; line-height: 1.5; }
}

@media (max-width: 650px) {
  .cap-faq {
    margin-top: 40px;
    padding: 0;
    gap: 25px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .cap-faq-intro { padding-inline: 10px; text-align: center; }
  .cap-faq-intro h2 { max-width: 22ch; font-size: 1.85rem; line-height: 1.13; letter-spacing: -.045em; }
  .cap-faq-intro p { margin-top: 15px; font-size: .94rem; line-height: 1.7; }
  .cap-faq-list { gap: 11px; }
  .cap-faq-list details { overflow: clip; border-radius: 19px; }
  .cap-faq-list details[open] { border-color: #a6bfdf; box-shadow: 0 6px 18px #18386309; }
  .cap-faq-list summary {
    align-items: start;
    gap: 14px;
    min-height: 70px;
    padding: 20px 17px;
    border-radius: 18px;
    font-size: .98rem;
    font-weight: 680;
    line-height: 1.48;
    letter-spacing: -.015em;
  }
  .cap-faq-toggle { width: 27px; height: 27px; margin-top: 1px; border-radius: 9px; }
  .cap-faq-list details[open] summary { background: #f0f5fc; }
  .cap-faq-list details p { margin-top: 17px; padding: 0 19px 21px; font-size: .93rem; line-height: 1.78; }
}

@media (max-width: 650px) {
  .closing {
    margin-top: 38px;
    margin-bottom: 30px;
    padding: 29px 22px 22px;
    gap: 25px;
    border-radius: 24px;
    background: radial-gradient(ellipse at 100% 0%, #284d73, transparent 65%), #15283e;
    box-shadow: 0 8px 24px #15283e13;
  }
  .closing-copy h2 {
    max-width: none;
    font-size: 1.85rem;
    line-height: 1.16;
    letter-spacing: -.045em;
    text-wrap: balance;
  }
  .closing-copy p { margin-top: 17px; font-size: .94rem; line-height: 1.75; }
  .closing-actions {
    gap: 11px;
    padding-top: 22px;
    border-top: 1px solid #ffffff26;
  }
  .closing-link {
    min-height: 55px;
    padding: 12px 16px;
    border-color: #ffffff35;
    border-radius: 15px;
    font-size: .94rem;
    font-weight: 650;
  }
  .closing-link span { flex-basis: 29px; width: 29px; height: 29px; background: transparent; font-size: 1.15rem; }
  .closing-actions .closing-main { min-height: 59px; font-weight: 750; }
  .closing-main span { background: #e9f1fd; }
}

@media (max-width: 650px) {
  .site-footer .shell { width: calc(100% - 44px); }
  .footer-top { padding-top: 30px; }
  .footer-identity { display: grid; gap: 23px; padding-bottom: 26px; }
  .footer-brand img { width: 145px; margin-inline: auto; }
  .footer-brand p { margin-top: 16px; font-size: .88rem; line-height: 1.75; }
  .footer-contact { padding-top: 20px; border-top: 1px solid #dce3eb; }
  .footer-contact address { font-size: .86rem; line-height: 1.7; }
  .footer-contact-links { display: grid; grid-template-columns: 1fr auto; gap: 0 14px; margin-top: 13px; }
  .footer-contact-links a { display: flex; align-items: center; min-height: 44px; font-size: .87rem; }
  .footer-contact-links a[href^="mailto:"] { grid-column: 1; grid-row: 2; font-weight: 550; }
  .footer-contact-links a[href*="wa.me"] { grid-column: 2; grid-row: 1 / 3; align-self: center; gap: 8px; color: #1c5d4e; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 8px 0; }
  .footer-inner nav { grid-column: auto; gap: 0; padding-block: 21px; border-bottom: 1px solid #cfd9e5; }
  .footer-inner h3 { margin-bottom: 10px; font-size: .92rem; font-weight: 750; }
  .footer-inner nav a { display: flex; align-items: center; min-height: 44px; padding-block: 10px; font-size: .87rem; line-height: 1.5; }
  .footer-cap { grid-template-columns: minmax(0, 1fr); }
  .footer-inner nav:last-child { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 17px; border-bottom: 0; }
  .footer-inner nav:last-child h3 { grid-column: 1 / -1; }
  .footer-legal { display: grid; gap: 17px; padding-top: 22px; font-size: .76rem; line-height: 1.7; }
  .footer-legal small { margin-top: 9px; font-size: .71rem; }
  .footer-legal nav { gap: 0 22px; }
  .site-footer .footer-legal nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: .77rem; }
}

@media (max-width: 650px) {
 .small .header-cta-full { display: inline; }
 .header-inner > .logo { order: 0; }
 .header-inner > .small { order: 1; }
 .header-inner > .menu-toggle { order: 2; }
 .header-inner > #main-menu { order: 3; }
}
@media (max-width: 340px) {
 .small .header-cta-full { display: none; }
 .small .header-cta-short { display: inline; }
}
