:root {
  --blanco: #FFFFFF;
  --hueso: #F7F4EF;
  --tinta: #111111;
  --texto: #444444;
  --gris: #6B6B6B;
  --piedra: #E2DED6;
  --pimenton: #C8412A;
  --pimenton-oscuro: #A8341F;
  --cantabrico: #2F5D5A;
  --serif: "Petrona", Georgia, "Times New Roman", serif;
  --sans: "Encode Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4.5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--blanco); color: var(--tinta); font-family: var(--sans); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--pimenton); outline-offset: 3px; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

/* Logo */
.logo { display: inline-flex; align-items: baseline; gap: 14px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 30px; text-decoration: none; white-space: nowrap; }
.logo .con { color: var(--pimenton); }
.logo-small { font-size: 22px; }

/* Buttons */
.button { display: inline-block; background: var(--pimenton); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; padding: 14px 24px; border-radius: 999px; transition: background .15s ease; }
.button:hover { background: var(--pimenton-oscuro); }
.button-light { background: var(--hueso); color: var(--pimenton); }
.button-light:hover { background: #fff; }
.link { color: #fff; font-weight: 500; font-size: 16px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: var(--blanco); }
.nav-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav nav { display: flex; align-items: center; gap: 36px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; color: var(--tinta); cursor: pointer; }
.nav nav a:not(.button) { text-decoration: none; font-size: 16px; }
.nav nav a:not(.button):hover { color: var(--pimenton); }

/* Hero */
.hero { position: relative; height: min(780px, 90vh); min-height: 560px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img { object-fit: cover; object-position: 50% 54%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(17,17,17,.6) 0%, rgba(17,17,17,.25) 35%, rgba(17,17,17,0) 60%); }
.hero-text { position: relative; z-index: 1; width: 100%; padding-bottom: 72px; display: grid; gap: 24px; }
.hero h1 { font-size: clamp(44px, 6vw, 80px); max-width: 15ch; }
.hero p { font-size: 20px; color: var(--hueso); max-width: 28em; }
.actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Places */
.places { padding-top: 112px; padding-bottom: 56px; display: grid; gap: 40px; }
.places h2 { font-size: clamp(34px, 4vw, 56px); }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.strip figure { margin: 0; display: grid; gap: 10px; }
.strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.strip figcaption { font-size: 14px; color: var(--gris); }

/* Lessons */
.lessons { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding-top: 80px; padding-bottom: 80px; }
.col { border-top: 1.5px solid var(--tinta); padding-top: 28px; display: grid; gap: 20px; align-content: start; scroll-margin-top: 100px; }
.col h2 { font-size: 40px; }
.col > p:not(.label) { color: var(--texto); }
.label { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.label-red { color: var(--pimenton); }
.label-green { color: var(--cantabrico); }
.prices { margin: 12px 0 0; }
.prices div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--piedra); }
.prices dt { font-size: 17px; }
.prices dd { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 26px; font-variant-numeric: tabular-nums; }

/* Jenni */
.jenni { display: grid; grid-template-columns: 560px 1fr; gap: 80px; align-items: center; padding-top: 56px; padding-bottom: 112px; scroll-margin-top: 88px; }
.jenni img { width: 100%; aspect-ratio: 560 / 680; object-fit: cover; }
.jenni-text { display: grid; gap: 28px; max-width: 36em; }
.jenni-text h2 { font-size: clamp(34px, 4vw, 56px); }
.jenni-text p:not(.label) { color: var(--texto); }

/* Contact */
.contact { background: var(--pimenton); color: var(--hueso); scroll-margin-top: 88px; }
.contact-inner { padding-top: 112px; padding-bottom: 112px; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.contact h2 { font-size: clamp(56px, 8vw, 112px); }
.contact-inner > div:first-child { display: grid; gap: 20px; max-width: 640px; }
.contact p { font-size: 20px; }
.contact-right { display: grid; gap: 20px; justify-items: end; }
.email { font-size: 24px; font-weight: 500; text-decoration: none; }
.email:hover { text-decoration: underline; }

/* Footer */
.footer { padding-top: 32px; padding-bottom: 32px; display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.footer p { font-size: 14px; color: var(--gris); }
.footer .credits { flex-basis: 100%; font-size: 12px; }

/* Tablet */
@media (max-width: 1100px) {
  .jenni { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* Phone */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-inner { height: 64px; }
  .menu-toggle { display: block; }
  .nav nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--blanco); flex-direction: column; align-items: flex-start; gap: 20px; padding: 16px var(--gutter) 28px; border-bottom: 1px solid var(--piedra); }
  .nav nav.open { display: flex; }
  .nav nav a:not(.button) { font-size: 18px; }
  .logo { font-size: 22px; gap: 8px; }
  .logo-small { font-size: 18px; }
  .hero { height: 620px; min-height: 0; }
  .hero img { object-position: 72% 40%; }
  .hero::after { background: linear-gradient(to top, rgba(17,17,17,.75) 0%, rgba(17,17,17,.2) 45%, rgba(17,17,17,0) 65%); }
  .hero-text { padding-bottom: 32px; gap: 20px; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 16px; }
  .hero .link { display: none; }
  .places { padding-top: 56px; padding-bottom: 24px; gap: 20px; }
  .strip { grid-template-columns: 1fr 1fr; gap: 12px; }
  .strip figure:nth-child(n+3) { display: none; }
  .lessons { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; padding-bottom: 32px; }
  .col { padding-top: 20px; gap: 14px; }
  .col h2 { font-size: 28px; }
  .prices dt { font-size: 15px; }
  .prices dd { font-size: 22px; }
  .jenni { grid-template-columns: 1fr; gap: 20px; padding-top: 32px; padding-bottom: 56px; }
  .jenni img { aspect-ratio: 4 / 5; }
  .jenni-text { gap: 20px; }
  .contact-inner { padding-top: 56px; padding-bottom: 56px; flex-direction: column; align-items: flex-start; }
  .contact h2 { font-size: 56px; }
  .contact p { font-size: 16px; }
  .contact-right { justify-items: start; }
  .email { font-size: 18px; }
  .footer { flex-direction: column; align-items: flex-start; }
}
