@font-face {
  font-family: "Fira Sans";
  src: url("fonts/fira-sans-black.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #242623;
  --asphalt: #2e302d;
  --muted: #575a54;
  --cream: #f4f3ee;
  --paper: #fffefa;
  --white: #fff;
  --orange: #cb6326;
  --burnt: #af480f;
  --bright: #fb8c4b;
  --line: #d7d8cf;
  --display: "Fira Sans", "Public Sans", Arial, sans-serif;
  --body: "Public Sans", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --measure: 78rem;
  --space: clamp(3.5rem, 6.4vw, 6.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.3rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 var(--body); }
:where(p, h1, h2, h3, ul, dl, dd, figure) { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--burnt); outline-offset: 4px; }
::selection { background: var(--orange); color: var(--white); }
.wrap { width: min(var(--measure), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: var(--space); }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.02; letter-spacing: -.035em; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(3.3rem, 7vw, 6.8rem); }
h2 { font-size: clamp(2.35rem, 4.1vw, 4.15rem); }
h3 { font-size: clamp(1.45rem, 2.1vw, 2rem); }
h1 > span, h2 > span { color: var(--orange); }
.icon { flex: none; width: 1.3rem; height: 1.3rem; }
.button, .phone-button {
  min-height: 3rem; display: inline-flex; justify-content: center; align-items: center;
  gap: .65rem; border: 0; border-radius: .2rem; padding: .74rem 1.35rem;
  font-size: .96rem; font-weight: 700; line-height: 1.3;
  transition: background-color .18s ease, color .18s ease;
}
.button-dark, .phone-button { background: var(--ink); color: var(--white); }
.button-dark:hover, .phone-button:hover { background: var(--burnt); }
.button-light { color: var(--ink); background: var(--paper); }
.button-light:hover { background: var(--bright); }
.text-link { display: inline-block; color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: .31em; text-decoration-thickness: 2px; }
.text-link:hover { color: var(--burnt); }
.skip { position: absolute; top: .3rem; left: .5rem; z-index: 6; padding: .6rem; background: var(--white); transform: translateY(-155%); }
.skip:focus { transform: none; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(255 255 255 / 50%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 5.3rem; display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); }
.brand { flex: none; display: inline-flex; align-items: center; gap: .85rem; }
.brand img { width: 5.4rem; height: auto; clip-path: ellipse(49.7% 49% at 50% 50%); }
.brand > span { padding-left: .85rem; border-left: 1px solid var(--line); font-weight: 700; font-size: .84rem; line-height: 1.18; }
#navegacion { display: flex; gap: clamp(1rem, 2.3vw, 2.45rem); align-items: center; margin-inline: auto; }
#navegacion a { position: relative; padding-block: .65rem; font-size: .93rem; font-weight: 700; }
#navegacion a:hover { color: var(--burnt); }
#navegacion [aria-current="page"]::after { content: ""; position: absolute; inset: auto 0 .27rem; height: 3px; background: var(--orange); }
.phone-button { min-height: 2.75rem; padding: .6rem 1rem; }
.phone-button .icon { color: var(--bright); width: 1.05rem; height: 1.05rem; }
.phone-button:hover .icon { color: var(--white); }
.menu-toggle { border: 0; background: var(--cream); border-radius: .2rem; align-items: center; justify-content: center; gap: .4rem; min-height: 2.75rem; padding-inline: .7rem; font-weight: 700; }

.hero { background: var(--cream); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: .95fr 1.14fr; align-items: stretch; }
.hero-copy { padding-block: clamp(3.8rem, 6.9vw, 7rem); position: relative; z-index: 1; align-self: center; }
.hero h1 { font-size: clamp(4.25rem, 6.8vw, 7.25rem); line-height: .93; letter-spacing: -.035em; word-spacing: .025em; text-transform: uppercase; }
.hero h1 em { display: inline-block; font-style: normal; color: var(--burnt); transform: skewX(-8deg); transform-origin: left bottom; }
.hero-copy p { max-width: 28rem; margin: 1.65rem 1.6rem 1.7rem 0; font-size: clamp(1.04rem, 1.3vw, 1.22rem); line-height: 1.55; }
.hero-copy .button { min-height: 3.1rem; padding-inline: 1.55rem; }
.hero-figure { position: relative; min-width: 0; display: grid; align-items: center; }
.asphalt {
  position: absolute; inset: 0 min(-1 * var(--gutter), (var(--measure) - 100vw) / 2) 0 1%;
  background: var(--asphalt); clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
}
.asphalt i {
  position: absolute; border: 2px solid #61645c; width: 80%; aspect-ratio: 1;
  border-radius: 50%; top: -55%; right: -24%; transform: rotate(-32deg) scaleY(1.25);
}
.asphalt i:nth-child(2) { width: 91%; right: -29.5%; top: -63%; border-width: clamp(.9rem, 2.3vw, 2.4rem); border-color: #494c45; }
.asphalt i:nth-child(3) { width: 106%; right: -37%; top: -75%; border-color: #575b52; }
.practice-car { position: relative; width: 110%; max-width: none; height: auto; margin-left: -4%; margin-top: 1%; overflow: visible; filter: drop-shadow(1rem 1.35rem .65rem rgba(0,0,0,.28)); }
.hero-figure figcaption { position: absolute; bottom: 1.15rem; right: 0; color: #f2f2e9; display: flex; align-items: center; gap: .8rem; font-size: .83rem; }
.checks { display: inline-block; width: 2rem; height: 1rem; transform: skewX(-13deg); background: repeating-conic-gradient(currentColor 0 25%, transparent 0 50%) 0 0 / .8rem .8rem; color: var(--bright); }
.quick-links { background: var(--white); }
.quick-links .wrap { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.quick-links a { display: flex; align-items: center; gap: 1rem; padding: 1.45rem 0; font-size: clamp(1rem, 1.35vw, 1.2rem); font-weight: 700; line-height: 1.35; }
.quick-links a:not(:first-child) { padding-left: 6%; }
.quick-links .icon { width: 1.65rem; height: 1.65rem; color: var(--burnt); }
.quick-links small { display: block; font-size: .84rem; font-weight: 400; color: var(--muted); margin-bottom: .15rem; }
.quick-links a:hover span { color: var(--burnt); }

.catalogue, .two-col, .schedule, .page-lead { display: grid; grid-template-columns: 4fr 6fr; gap: 8%; }
.section-lead p, .page-lead p, .two-col > div > p, .two-col > p, .teaching > p { color: var(--muted); }
.section-lead p { max-width: 24rem; margin-top: 1rem; }
.section-lead .text-link { margin-top: 1.4rem; }
.course-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1.25rem .25rem; border-bottom: 1px solid var(--line); }
.course-row:first-child { border-top: 2px solid var(--ink); }
.course-row h3 { font-size: clamp(1.35rem, 1.95vw, 1.9rem); }
.course-row h3 a:hover { color: var(--burnt); text-decoration: underline; }
.course-row p { color: var(--muted); font-size: .94rem; margin-top: .25rem; }
.vehicle-mark { display: grid; place-items: center; color: var(--burnt); }
.vehicle-mark .icon { width: 2.2rem; height: 2.2rem; }
.row-price { text-align: right; white-space: nowrap; }
.row-price strong { font-family: var(--display); font-size: clamp(1.3rem, 1.7vw, 1.7rem); display: block; line-height: 1.15; }
.row-price span { color: var(--muted); font-size: .9rem; }
.license-section { padding-block: var(--space); background: var(--ink); color: var(--white); }
.license-section h2 { color: var(--bright); }
.license-section .two-col > div > p { max-width: 37rem; color: var(--paper); font-size: 1.16rem; }
.license-section .button { margin-top: 1.6rem; }
.license-section :focus-visible, .call-panel :focus-visible { outline-color: var(--bright); }

.page-lead { align-items: end; grid-template-columns: 1.1fr 1fr; gap: 6%; padding-bottom: clamp(2.5rem, 4.8vw, 5rem); }
.page-lead h1 { font-size: clamp(3.5rem, 6.5vw, 6.7rem); }
.page-lead p { font-size: clamp(1.05rem, 1.35vw, 1.25rem); max-width: 40rem; }
.package-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: clamp(.8rem, 1.6vw, 1.7rem); padding-bottom: var(--space); }
.package { background: var(--cream); border-top: .32rem solid var(--orange); padding: clamp(1.25rem, 2.4vw, 2.2rem); }
.package .vehicle-mark { justify-content: start; margin-bottom: 1.4rem; }
.package h2 { font-size: clamp(1.8rem, 2.6vw, 2.65rem); }
.course-desc { min-height: 3.7em; color: var(--muted); margin-top: .5rem; }
.package-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .55rem; }
.package-price strong { font-family: var(--display); font-size: clamp(2.2rem, 3.2vw, 3.15rem); line-height: 1; letter-spacing: -.035em; }
.package-price span, .class-days { color: var(--muted); }
.class-days { margin: .45rem 0 1.2rem; }
.package .button { width: 100%; }
.package h3 { font: 700 1rem/1.4 var(--body); letter-spacing: 0; margin: 1.8rem 0 .65rem; }
.breakdown { padding: 0; list-style: none; }
.breakdown li { display: flex; gap: .8rem; padding-block: .53rem; border-top: 1px solid var(--line); }
.breakdown strong { flex: 0 0 2.2rem; color: var(--burnt); }
.package details { margin-top: .75rem; border-top: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 700; cursor: pointer; padding-block: 1rem; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; font: 400 1.7rem/1 var(--body); color: var(--burnt); }
details[open] > summary::after { content: "−"; }
summary:hover { color: var(--burnt); }
.syllabus { padding: 0 0 .25rem 1.1rem; }
.syllabus li + li { margin-top: .4rem; }
.payment { background: var(--ink); padding-block: clamp(2rem, 4vw, 4rem); }
.payment .two-col { align-items: center; }
.payment h2 { color: var(--white); }
.payment .two-col p { color: var(--white); font-size: 1.17rem; }
.schedule-content { min-width: 0; }
.day-picker { display: flex; gap: .35rem; margin-bottom: 1.3rem; }
.day-picker button { padding: .65rem 1.1rem; background: var(--cream); border: 1px solid var(--line); border-radius: .2rem; font-weight: 700; min-height: 2.75rem; }
.day-picker button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.period + .period { margin-top: 1.5rem; }
.day-picker:not([hidden]) ~ .period { margin-top: 0; }
.day-picker:not([hidden]) ~ .period > h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.period > p { margin: .5rem 0 1rem; }
.time-slots { display: grid; grid-template-columns: 1fr 1fr; list-style: none; padding: 0; gap: .5rem; }
.time-slots li { padding: .65rem 1rem; background: var(--cream); }
.saturday > div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-block: .55rem; }
.saturday dd { font-weight: 700; }
.note { font-size: .95rem; color: var(--muted); }
.faq-band, .visit-panel { background: var(--cream); }
.faqs details, .map-disclosure { border-top: 1px solid var(--line); }
.faqs details:last-child, .map-disclosure { border-bottom: 1px solid var(--line); }
.faqs details p { margin: 0 2rem 1rem 0; }
.faqs details .text-link { margin-bottom: 1rem; }

.about-section { display: grid; grid-template-columns: 1.05fr 1fr; align-items: start; gap: 6%; padding-bottom: var(--space); }
.street-photo > div { overflow: hidden; aspect-ratio: 2.1; }
.street-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 65.5%; }
.street-photo figcaption { margin-top: .75rem; color: var(--muted); font-size: .9rem; }
.teaching h2 { font-size: clamp(2rem, 3.1vw, 3.1rem); }
.teaching h3 { margin-top: 1.6rem; font-size: 1.45rem; }
.teaching > p { margin-top: .55rem; }
.teaching .text-link { margin-top: 1.4rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.contact-grid section { padding: clamp(1.5rem, 4vw, 4.25rem); }
.contact-grid h2, .form-section h2 { font-size: clamp(1.8rem, 2.75vw, 3rem); }
.call-panel { color: var(--white); background: var(--ink); }
.call-panel > p { margin-top: .8rem; color: #e2e3dc; }
.numbers { display: grid; justify-items: start; margin-top: 1rem; }
.numbers a { display: inline-flex; align-items: center; gap: .9rem; padding-block: .38rem; font: 900 clamp(1.5rem, 2.35vw, 2.25rem)/1.25 var(--display); letter-spacing: -.015em; }
.numbers .icon { color: var(--bright); }
.numbers a:hover, .call-panel .text-link { color: var(--bright); }
.call-panel .text-link { margin-top: 1.25rem; }
.visit-panel address { font-size: 1.15rem; font-style: normal; margin: 1.3rem 0 1.6rem; }
.visit-panel .button { margin-right: 1rem; }
.visit-panel .text-link { margin-top: 1rem; font-size: .94rem; }
#office-hours { margin: -1rem 0 1rem; }
.map-section { padding-block: 1.5rem var(--space); }
.map-disclosure summary { padding: 1.2rem .2rem; }
.map-section iframe, .form-section iframe { border: 0; width: 100%; display: block; height: 24rem; }
.form-section { padding-top: 3rem; }
.form-section iframe { height: 48rem; margin-top: 1rem; }
.wa-widget {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 6;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: .65rem;
}
.wa-launcher {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 3px 12px rgb(36 38 35 / 22%);
}
.wa-launcher:hover { background: var(--burnt); }
.wa-panel {
  width: min(21rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 6rem - env(safe-area-inset-bottom));
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: .5rem;
  padding: 1rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 6px 24px rgb(36 38 35 / 18%);
}
.wa-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.wa-heading h2 { font-size: 1.35rem; text-align: left; }
.wa-close { flex: none; width: 2rem; height: 2rem; padding: 0; border: 0; background: transparent; font: 1.5rem/1 var(--body); }
.wa-panel form { display: grid; }
.wa-panel label { font-size: .9rem; font-weight: 700; }
.wa-panel input, .wa-panel textarea { width: 100%; padding: .55rem .65rem; border: 1px solid var(--muted); border-radius: .2rem; margin: .2rem 0 .85rem; font: 1rem/1.4 var(--body); }
.wa-panel textarea { resize: vertical; }
.course-inquiry { margin: auto; max-height: calc(100dvh - 2rem); }
.course-inquiry::backdrop { background: rgb(36 38 35 / 55%); }
.footer { background: var(--asphalt); color: var(--cream); }
.footer-inner {
  display: grid;
  grid-template-areas: "brand nav social" "brand nav credit";
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: 1rem;
}
.footer-brand { grid-area: brand; display: flex; align-items: center; gap: .75rem; }
.footer-logo { flex: none; width: 3.5rem; height: auto; clip-path: ellipse(49.7% 49% at 50% 50%); }
.footer-brand p { font-size: .8125rem; line-height: 1.4; }
.footer nav, .footer-social { display: flex; flex-wrap: wrap; gap: .1rem 1rem; }
.footer nav { grid-area: nav; justify-content: center; }
.footer-social { grid-area: social; justify-content: flex-end; }
.footer a { display: inline-flex; align-items: center; min-height: 1.5rem; font-size: .875rem; font-weight: 700; }
.footer a:hover { color: var(--bright); text-decoration: underline; }
.footer a:focus-visible { outline-color: var(--bright); }
.footer .footer-credit { grid-area: credit; justify-self: end; color: #b8b8b8; font-size: .6rem; font-weight: 400; text-underline-offset: .18em; text-decoration: underline; }
.footer .footer-credit:is(:hover, :focus-visible) { color: var(--bright); }

@media (max-width: 58rem) {
  .hero h1 { font-size: clamp(3.65rem, 7.1vw, 4.6rem); }
  .hero-copy { padding-block: 3.6rem; }
  .brand > span { display: none; }
  .catalogue, .schedule, .two-col { gap: 5%; grid-template-columns: 4fr 6fr; }
  .package-grid { gap: .65rem; }
  .package { padding: 1.05rem; }
  .course-desc { min-height: 5.5em; }
}

@media (max-width: 45rem) {
  html { scroll-padding-top: 5.5rem; }
  :root { --gutter: clamp(1.15rem, 5.2vw, 2rem); }
  .header-inner { flex-wrap: wrap; gap: .6rem; min-height: 4.5rem; padding-block: .55rem; }
  .brand { margin-right: auto; }
  .brand img { width: 4.5rem; }
  .brand > span { display: block; font-size: .82rem; padding-left: .55rem; }
  .brand { gap: .55rem; }
  .menu-toggle:not([hidden]) { display: inline-flex; }
  .phone-button { padding: .55rem; min-width: 2.75rem; }
  .phone-button .icon { color: var(--white); width: 1.15rem; height: 1.15rem; }
  .phone-button span { display: none; }
  #navegacion { flex-basis: 100%; order: 1; display: grid; grid-template-columns: 1fr 1fr; gap: .2rem; padding-block: .35rem; }
  #navegacion a { padding: .65rem .5rem; }
  #navegacion [aria-current="page"] { color: var(--burnt); }
  #navegacion [aria-current="page"]::after { display: none; }
  .header-inner.has-menu #navegacion { display: none; }
  .header-inner.has-menu #navegacion.is-open {
    display: grid; position: absolute; z-index: 4; top: 100%; inset-inline: 0;
    padding: .6rem var(--gutter); border-bottom: 1px solid var(--line); background: var(--white);
  }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding: 2.6rem 0 1.6rem; }
  .hero h1 { font-size: clamp(3.65rem, 12.9vw, 5.4rem); }
  .hero-copy p { max-width: 30rem; margin: 1.05rem 0 1.2rem; }
  .hero-copy .button { min-height: 2.9rem; }
  .hero-figure { margin-inline: calc(-1 * var(--gutter)); padding-bottom: 1.9rem; }
  .asphalt { inset: 0; clip-path: polygon(0 21%, 100% 1%, 100% 100%, 0 100%); }
  .practice-car { width: min(91%, 32rem); margin: -.5rem auto -.25rem; }
  .hero-figure figcaption { bottom: .7rem; right: var(--gutter); font-size: .82rem; }
  .checks { width: 1.8rem; height: .8rem; }
  .quick-links a { display: grid; align-content: start; gap: .5rem; padding: 1rem 0; font-size: .91rem; }
  .quick-links small { font-size: .82rem; }
  .quick-links a:not(:first-child) { padding-left: .4rem; }
  .quick-links .icon { width: 1.4rem; height: 1.4rem; }
  .catalogue, .two-col, .schedule, .page-lead, .about-section, .contact-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .course-row { gap: .75rem; }
  .course-row p { line-height: 1.4; }
  .vehicle-mark .icon { width: 1.8rem; height: 1.8rem; }
  .package-grid { grid-template-columns: 1fr; gap: 1rem; }
  .package { padding: 1.5rem; }
  .package .vehicle-mark { float: right; }
  .package .course-desc { min-height: auto; margin-bottom: 1.3rem; }
  .page-lead h1 { font-size: clamp(3.35rem, 12.2vw, 5rem); }
  .page-lead { gap: .9rem; }
  .time-slots { grid-template-columns: 1fr; }
  .footer-inner {
    grid-template-areas: "brand brand" "nav nav" "social credit";
    grid-template-columns: 1fr auto;
    gap: .5rem .75rem;
  }
  .footer nav, .footer-social { justify-content: start; column-gap: .75rem; }
  .footer .footer-credit { margin-right: max(0px, calc(5rem - var(--gutter))); }
}

@media (max-width: 22rem) {
  .brand > span { display: none; }
  .course-row { grid-template-columns: 1fr auto; }
  .course-row .vehicle-mark { display: none; }
  .quick-links a { font-size: .85rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .practice-car { animation: estacionar .6s cubic-bezier(.2,.7,.3,1) both; }
  @keyframes estacionar { from { transform: translateX(.85rem); } to { transform: translateX(0); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::after, *::before { transition-duration: 0s !important; animation-duration: 0s !important; }
}

@media print {
  .masthead, .quick-links, .footer, .button, .day-picker, .menu-toggle, .wa-widget { display: none !important; }
  .period[hidden] { display: block !important; }
  .package, .course-row { break-inside: avoid; }
  .section { padding-block: 1.5rem; }
}

@media (min-width: 45.001rem) {
  .menu-toggle { display: none; }
  .phone-button {
    padding-inline: 0;
    background: transparent;
    color: var(--orange);
    font: 900 clamp(1.25rem, 1.9vw, 1.8rem)/1 var(--display);
    white-space: nowrap;
    gap: .35em;
  }
  .phone-button:hover, .phone-button:focus-visible { background: transparent; color: #000; }
  .phone-button .icon { width: .96em; height: .96em; color: inherit; }
  .phone-button:hover .icon { color: inherit; }
  .footer-inner {
    grid-template-areas: "brand nav social" "credit credit credit";
    grid-template-rows: 1fr auto;
    min-height: calc(5rem + 140px);
    padding-block: 3rem .75rem;
    row-gap: .75rem;
  }
  .footer-logo { width: 5.25rem; }
  .footer .footer-credit { justify-self: center; }
}
