/* ==========================================================================
   Rumbo — Escuela de Sommellerie
   Design tokens
   ========================================================================== */
:root {
  --brand: #b6013a;
  --brand-dark: #7a0127;
  --brand-soft: #f0b9cc;
  --brand-pale: #ffd9e4;
  --brand-pale-2: #ffe6ee;

  --ink: #323232;
  --paper: #edefea;
  --white: #fff;

  --text-muted: #4a4a4a;
  --text-muted-2: #5a5a5a;
  --text-on-dark: #dcdedb;
  --text-on-dark-2: #b9bbb8;
  --text-on-dark-3: #9a9a9a;
  --text-meta: #8a8a8a;

  --line: rgba(50, 50, 50, 0.12);
  --line-soft: rgba(50, 50, 50, 0.08);
  --line-strong: rgba(50, 50, 50, 0.25);
  --line-brand: rgba(182, 1, 58, 0.25);
  --line-on-dark: rgba(237, 239, 234, 0.22);

  --wrap: 1180px;
  --gutter: 24px;

  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 24px;
  --r-pill: 999px;

  --font: Montserrat, Helvetica, Arial, sans-serif;
  --font-script: "Pinyon Script", cursive;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

img { max-width: 100%; }

h1, h2, h3, p, figure { margin: 0; }

:where(a, button, input, summary):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brand);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
  font-size: 13px;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  color: var(--paper);
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--min, 300px), 1fr));
  gap: var(--gap, 24px);
}

.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}
.eyebrow--on-dark { color: var(--brand-soft); }
.eyebrow--sm {
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
}
.eyebrow--ink { color: var(--ink); }

.h2 {
  margin-top: 14px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.lead {
  margin-top: 20px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-muted);
  text-wrap: pretty;
}
.lead--on-dark { color: var(--text-on-dark); }

.script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.3em;
  letter-spacing: 0;
}
.script--brand { color: var(--brand); }
.script--sm { font-size: 1.2em; text-transform: none; }
.script--md { font-size: 1.25em; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  padding: 14px 24px;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn--lg {
  padding: 16px 28px;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.btn--primary { background: var(--brand); color: var(--paper); }
.btn--primary:hover { background: var(--brand-dark); color: var(--paper); }

/* Primary button sitting on the dark contact band — inverts instead of darkening. */
.btn--primary-invert { background: var(--brand); color: var(--paper); }
.btn--primary-invert:hover { background: var(--paper); color: var(--brand); }

.btn--outline-ink { border-color: var(--ink); color: var(--ink); }
.btn--outline-ink:hover { background: var(--ink); color: var(--paper); }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--brand); color: var(--paper); }

.btn--outline-paper { border-color: rgba(237, 239, 234, 0.4); color: var(--paper); }
.btn--outline-paper:hover { background: var(--paper); color: var(--ink); }

.btn--paper { background: var(--paper); color: var(--brand); border: none; }
.btn--paper:hover { background: var(--white); color: var(--brand); }

.btn-inline {
  display: inline-block;
  margin-top: 20px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--brand);
  padding-bottom: 3px;
}

.pill {
  border: 1px solid rgba(182, 1, 58, 0.5);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 500;
}
.pill--sm {
  border-color: rgba(182, 1, 58, 0.55);
  padding: 7px 14px;
  font-weight: 400;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   Top bar + header
   ========================================================================== */
.topbar {
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  justify-content: space-between;
  padding-block: 9px;
}
.topbar__place { opacity: 0.85; }
.topbar__links { display: flex; gap: 20px; align-items: center; }
.topbar a { color: var(--paper); }
.topbar a:hover { color: var(--brand-soft); }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(237, 239, 234, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(50, 50, 50, 0.1);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.brand { display: flex; align-items: baseline; gap: 10px; }
.brand__word {
  font-size: 34px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--brand);
  line-height: 1;
}
.brand__tag {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  align-items: center;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav a {
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--brand); border-bottom-color: var(--brand); }

/* Mobile disclosure nav — CSS only, no JS.
   Above the breakpoint the toggle is hidden and .nav is a plain inline row. */
.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    cursor: pointer;
  }
  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }

  .nav-toggle-input:checked ~ .nav-toggle .nav-toggle__bars { background: transparent; }
  .nav-toggle-input:checked ~ .nav-toggle .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle-input:checked ~ .nav-toggle .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav-toggle-input:focus-visible ~ .nav-toggle {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
  }

  .header__inner { flex-wrap: wrap; }

  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 12px;
    border-top: 1px solid var(--line);
  }
  .nav-toggle-input:checked ~ .nav { display: flex; }
  .nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15px;
  }
  .nav a:hover { border-bottom-color: var(--line-soft); }
  .nav a:last-child { border-bottom: none; }
}

/* Keep the wordmark and the toggle on a single row on narrow phones. */
@media (max-width: 560px) {
  .brand__tag { display: none; }
  .brand__word { font-size: 30px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes drop {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: none; }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

@keyframes reveal-soft {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero {
  --min: 340px;
  --gap: 56px;
  padding-block: 72px 40px;
  align-items: center;
}
/* Each hero element arrives just after the one above it, so the eye is led
   down the column instead of the whole block appearing at once. */
.hero__copy > * { animation: rise 0.68s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.hero__copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero__copy > *:nth-child(2) { animation-delay: 0.13s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.21s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.31s; }
.hero__copy > *:nth-child(5) { animation-delay: 0.42s; }
.hero__copy > *:nth-child(6) { animation-delay: 0.52s; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--brand);
  color: var(--brand);
  border-radius: var(--r-pill);
  padding: 7px 16px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero__title {
  margin-top: 22px;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--brand);
}
.hero__script {
  margin-top: -6px;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(52px, 7.6vw, 104px);
  line-height: 0.9;
  color: var(--ink);
}
.hero__lead {
  margin-top: 26px;
  font-size: 17px;
  line-height: 1.6;
  max-width: 46ch;
  text-wrap: pretty;
  color: var(--text-muted);
}
.hero .cta-row { margin-top: 32px; }
.hero .pill-row { margin-top: 30px; }

.hero__media {
  position: relative;
  animation: rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.18s both;
}
.hero__blob {
  position: absolute;
  inset: -18px -18px auto auto;
  width: 62%;
  aspect-ratio: 1;
  border: 1px solid rgba(182, 1, 58, 0.35);
  border-radius: 46% 54% 40% 60% / 55% 40% 60% 45%;
}
.hero__img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: 46% 54% 40% 60% / 55% 40% 60% 45%;
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats {
  border-top: 1px solid rgba(50, 50, 50, 0.14);
  border-bottom: 1px solid rgba(50, 50, 50, 0.14);
  padding-block: 40px;
  --min: 180px;
  --gap: 32px;
}
.stat__num {
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}
.stat__label {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section--dark { background: var(--ink); color: var(--paper); }
.section--white {
  background: var(--white);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.asi { margin-top: 56px; }
.asi__inner {
  --min: 320px;
  --gap: 60px;
  padding-block: 84px;
  align-items: start;
}
.asi__h2 {
  margin-top: 16px;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.asi__note {
  margin-top: 28px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-on-dark-2);
  max-width: 58ch;
}
.asi__stages {
  --min: 180px;
  --gap: 16px;
  margin-top: 36px;
}
.stage {
  border: 1px solid var(--line-on-dark);
  border-radius: 18px;
  padding: 22px;
}
.stage--hl { background: var(--brand); border-color: transparent; }
.stage--hl .eyebrow { color: var(--brand-pale); }
.stage__name { margin-top: 10px; font-size: 18px; font-weight: 600; }
.stage__note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--brand-pale-2);
}

.asi__aside { display: flex; flex-direction: column; gap: 18px; }
.logo-card {
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.logo-card img { width: 100%; height: auto; mix-blend-mode: multiply; }
.logo-card__caption {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  text-align: center;
}

/* About */
.about {
  --min: 320px;
  --gap: 60px;
  padding-block: 90px;
  align-items: center;
}
.about__media { position: relative; }
.about__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px 90px 24px 90px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.about__badge {
  position: absolute;
  bottom: -22px;
  left: -18px;
  background: var(--brand);
  color: var(--paper);
  border-radius: 16px;
  padding: 18px 22px;
  max-width: 220px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}
.about__h2 {
  margin-top: 14px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.about__lead { margin-top: 22px; }
.about__cards { --min: 200px; --gap: 14px; margin-top: 30px; }

.mini-card {
  background: var(--white);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--line-soft);
}
.mini-card__title { font-size: 14.5px; font-weight: 600; }
.mini-card__text {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted-2);
}

/* ==========================================================================
   Escuela / oferta académica
   ========================================================================== */
.school__inner { padding-block: 88px; }
.school__intro { max-width: 720px; }
.school__h2 {
  margin-top: 14px;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.school__modes { --min: 230px; --gap: 18px; margin-top: 40px; }

.mode {
  border: 1px solid var(--line-brand);
  border-radius: var(--r-md);
  padding: 24px;
}
.mode__title { font-size: 17px; font-weight: 700; color: var(--brand); }
.mode__text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.school__programs { --min: 300px; --gap: 22px; margin-top: 56px; }

.program {
  grid-column: 1 / -1;
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 34px;
  --min: 300px;
  --gap: 40px;
}
.program__title {
  margin-top: 12px;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.1;
  font-weight: 700;
}
.program__text {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-muted);
  text-wrap: pretty;
}
.program__topics { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.program .cta-row { gap: 12px; margin-top: 26px; }

.program__aside { display: flex; flex-direction: column; gap: 14px; }
.program__list { display: grid; gap: 10px; }
.job {
  background: var(--white);
  border-radius: var(--r-sm);
  padding: 16px;
}
.job__title { font-size: 14px; font-weight: 600; color: var(--brand); }
.job__text {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted-2);
}

.course {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
}
.course__title {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
.course__text {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}
.course__text + .course__text { margin-top: 10px; }
.course__text strong { font-weight: 600; }

.course--wide {
  grid-column: 1 / -1;
  --min: 280px;
  --gap: 32px;
  align-items: center;
}
.course--wide .course__text { margin-top: 12px; }
.community-grid { --min: 190px; --gap: 12px; }
.community-card {
  background: var(--paper);
  border-radius: var(--r-sm);
  padding: 16px;
}
.community-card__title { font-size: 14px; font-weight: 600; }
.community-card__text {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted-2);
}

/* ==========================================================================
   Prensa
   ========================================================================== */
.press { padding-block: 88px; }
.press__grid { --min: 330px; --gap: 56px; align-items: start; }
.press__list { display: grid; gap: 12px; margin-top: 26px; }
.press-item {
  border-left: 2px solid var(--brand);
  padding: 4px 0 4px 18px;
}
.press-item__title { font-size: 15px; font-weight: 600; }
.press-item__text {
  margin-top: 5px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted-2);
}
.press__credits {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted-2);
}
.press__credits strong { font-weight: 600; }
.press .cta-row { gap: 12px; margin-top: 24px; }

.press__aside { display: flex; flex-direction: column; gap: 18px; }
.press__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
}
.news {
  background: var(--white);
  border: 1px solid rgba(50, 50, 50, 0.1);
  border-radius: 22px;
  padding: 26px;
}
.news__list { display: grid; gap: 16px; margin-top: 18px; }
.news__row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.news__date {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-meta);
  letter-spacing: 0.06em;
}
.news__text { font-size: 14.5px; line-height: 1.5; }
.news__sep { height: 1px; background: rgba(50, 50, 50, 0.1); }

/* ==========================================================================
   Comunidad + carruseles
   ========================================================================== */
.community { padding-block: 88px; }
.community__head {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
}
.community__intro { max-width: 680px; }
.community__head .btn { white-space: nowrap; }

.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 46px;
}
.rail-head--tight { margin-top: 40px; }
.rail-head__actions { display: flex; gap: 8px; }

.rail-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  font-family: var(--font);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.rail-btn:hover {
  background: var(--brand);
  color: var(--paper);
  border-color: var(--brand);
}

.rail {
  margin-top: 20px;
  padding: 4px 0 18px;
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
}
.rail--benefits { gap: 18px; }
.rail--wineries { gap: 14px; }
.benefit {
  position: relative;
  flex: none;
  width: 260px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper);
}
.benefit__trigger {
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  position: relative;
}
.benefit__trigger img {
  display: block;
  width: 100%;
  /* height:auto is required: the intrinsic height attribute would otherwise
     win over aspect-ratio and stretch the card to the full flyer. */
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.benefit__trigger:hover img { transform: scale(1.05); }
.benefit__trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(50, 50, 50, 0.16);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.benefit__trigger:hover::after,
.benefit__trigger:focus-visible::after { opacity: 1; }
.benefit figcaption {
  padding: 14px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.winery {
  flex: none;
  width: 128px;
  height: 128px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.winery img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}


/* ==========================================================================
   Lightbox — native <dialog>, so Esc and focus trapping come for free
   ========================================================================== */
.lightbox {
  /* Every benefit flyer is 720x1280, so the panel is sized from that ratio.
     Deriving the width from the available height is what keeps the portrait
     image from leaving empty paper beside it. --caption-h is the footer row. */
  --flyer-ratio: 0.5625; /* 720 / 1280 */
  --caption-h: 58px;
  width: min(92vw, calc((92dvh - var(--caption-h)) * var(--flyer-ratio)));
  max-height: 92dvh;
  padding: 0;
  border: none;
  border-radius: var(--r-lg);
  background: var(--paper);
  color: var(--ink);
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(20, 20, 20, 0.82);
  backdrop-filter: blur(3px);
}
.lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--flyer-ratio);
  object-fit: cover;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.lightbox__caption {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
}
.lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  border: none;
  background: var(--brand);
  color: var(--paper);
  font-family: var(--font);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(20, 20, 20, 0.35);
  transition: background-color 0.18s ease;
}
.lightbox__close:hover { background: var(--brand-dark); }

@media (max-width: 560px) {
  .lightbox__close { top: 8px; right: 8px; }
}

/* ==========================================================================
   FAQ — <details> accordion, no JS
   ========================================================================== */
.faq { padding-block: 24px 88px; }
.faq__list {
  display: grid;
  gap: 10px;
  margin-top: 32px;
  max-width: 820px;
}
.faq__item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  overflow: hidden;
}
.faq__item[open] { border-color: var(--line-brand); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: color 0.18s ease;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--brand); }

.faq__q::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.22s ease;
}
.faq__item[open] .faq__q::after { transform: translateY(2px) rotate(-135deg); }

.faq__a {
  padding: 0 22px 20px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* ==========================================================================
   Campus (alumnado)
   ========================================================================== */
.campus { margin-block: 64px 88px; }
.campus__box {
  background: var(--brand);
  color: var(--paper);
  border-radius: 28px;
  padding: 44px;
  --min: 300px;
  --gap: 40px;
  align-items: center;
}
.campus__h2 {
  margin-top: 12px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 700;
}
.campus__text {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--brand-pale-2);
  max-width: 52ch;
}
.campus__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.campus__cta-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--brand-pale-2);
  max-width: 34ch;
}

/* ==========================================================================
   Contacto + footer
   ========================================================================== */
.contact__inner {
  --min: 320px;
  --gap: 56px;
  padding-block: 84px 40px;
}
.contact__h2 {
  margin-top: 14px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.06;
  font-weight: 700;
}
.contact__text {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-on-dark);
  max-width: 48ch;
}
.contact .cta-row { margin-top: 30px; }

.contact__meta { display: grid; gap: 22px; align-content: start; }
.contact__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-dark-3);
  font-weight: 600;
}
.contact__value {
  margin-top: 4px;
  font-size: 15.5px;
  color: var(--paper);
}
.contact__address {
  font-style: normal;
  line-height: 1.5;
}
.contact__map {
  display: inline-block;
  margin-top: 8px;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(237, 239, 234, 0.4);
  padding-bottom: 2px;
}
.link-on-dark { color: var(--paper); font-size: 15.5px; }
.link-on-dark:hover { color: var(--brand-soft); }
.contact__socials {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.footer-bar {
  border-top: 1px solid rgba(237, 239, 234, 0.16);
  padding-block: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.footer-bar__word {
  font-size: 26px;
  font-weight: 300;
  color: var(--paper);
  line-height: 1;
}
.footer-bar__legal { font-size: 12px; color: var(--text-on-dark-3); }

/* Studio credit. Deliberately quiet: it sits just above the background until
   you hover or tab onto it, at which point it takes full brand contrast. */
.colophon {
  padding-bottom: 20px;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 0.07em;
  line-height: 1;
}
.colophon a {
  color: rgba(237, 239, 234, 0.3);
  transition: color 0.22s ease;
}
.colophon a:hover,
.colophon a:focus-visible { color: var(--brand-soft); }

/* ==========================================================================
   WhatsApp floating button
   ========================================================================== */
@keyframes waBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes waRing {
  0%   { transform: scale(0.9); opacity: 0.55; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes clink {
  0%, 62%, 100% { transform: rotate(0deg); }
  70% { transform: rotate(-17deg); }
  78% { transform: rotate(9deg); }
  86% { transform: rotate(-5deg); }
  93% { transform: rotate(2deg); }
}
@keyframes swirl {
  0%, 100% { transform: rotate(-7deg) translateX(-1px); }
  50% { transform: rotate(7deg) translateX(1px); }
}
@keyframes fizz {
  0%   { transform: translateY(2px) scale(0.6); opacity: 0; }
  25%  { opacity: 0.9; }
  100% { transform: translateY(-11px) scale(1); opacity: 0; }
}

.wa-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 10px 20px 10px 12px;
  box-shadow: 0 14px 34px rgba(50, 50, 50, 0.18);
  animation: waBob 3.4s ease-in-out infinite;
  text-decoration: none;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}
.wa-fab:hover {
  background: var(--white);
  box-shadow: 0 18px 40px rgba(182, 1, 58, 0.28);
}

.wa-fab__icon { position: relative; width: 44px; height: 44px; flex: none; }
.wa-fab__ring {
  position: absolute;
  inset: 0;
  border-radius: var(--r-pill);
  border: 2px solid var(--brand);
  animation: waRing 2.6s ease-out infinite;
}
.wa-fab__disc {
  position: absolute;
  inset: 0;
  background: var(--brand);
  border-radius: 52% 52% 52% 12% / 52% 52% 52% 12%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass {
  position: relative;
  width: 26px;
  height: 40px;
  flex: none;
  animation: clink 5.2s ease-in-out infinite;
  transform-origin: 50% 92%;
}
.glass__bowl {
  position: absolute;
  top: 0;
  left: 1px;
  width: 24px;
  height: 22px;
  border: 1.6px solid var(--ink);
  border-top: none;
  border-radius: 3px 3px 13px 13px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.4);
}
.glass__wine {
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: 0;
  height: 11px;
  background: var(--brand);
  border-radius: 40% 60% 0 0 / 70% 70% 0 0;
  animation: swirl 2.8s ease-in-out infinite;
}
.glass__bubble {
  position: absolute;
  border-radius: var(--r-pill);
  background: rgba(237, 239, 234, 0.9);
}
.glass__bubble--1 {
  left: 7px; bottom: 7px; width: 3px; height: 3px;
  animation: fizz 2.1s ease-out infinite;
}
.glass__bubble--2 {
  left: 14px; bottom: 5px; width: 2px; height: 2px;
  animation: fizz 2.6s ease-out 0.7s infinite;
}
.glass__stem {
  position: absolute;
  top: 22px;
  left: 12px;
  width: 1.6px;
  height: 13px;
  background: var(--ink);
}
.glass__foot {
  position: absolute;
  bottom: 0;
  left: 5px;
  width: 16px;
  height: 2.4px;
  border-radius: var(--r-pill);
  background: var(--ink);
}
.wa-fab__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ==========================================================================
   Motion

   Scroll reveals are driven by CSS scroll-driven animations, never by
   JavaScript. That matters here: the usual IntersectionObserver recipe starts
   the content at opacity 0 and waits for a script to reveal it, so a blocked
   or failed script leaves the page blank. With animation-timeline a browser
   that does not support it simply renders the page as it always did.
   ========================================================================== */

.topbar { animation: drop 0.5s ease both; }
.header { animation: drop 0.55s ease 0.08s both; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {

    .stats > div,
    .asi__inner > div,
    .about__media,
    .about > div:last-child,
    .school__intro,
    .mode,
    .program,
    .course,
    .press__grid > div,
    .community__intro,
    .campus__box,
    .faq__item,
    .contact__inner > div {
      animation: reveal 1ms linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }

    /* Rows land one after another instead of snapping in together. */
    .stats > div:nth-child(2)      { animation-range: entry 6% entry 61%; }
    .stats > div:nth-child(3)      { animation-range: entry 12% entry 67%; }
    .stats > div:nth-child(4)      { animation-range: entry 18% entry 73%; }
    .school__modes .mode:nth-child(2) { animation-range: entry 7% entry 62%; }
    .school__modes .mode:nth-child(3) { animation-range: entry 14% entry 69%; }
    .faq__item:nth-child(even)     { animation-range: entry 5% entry 60%; }

    /* Images fade without sliding, so their framing never looks unstable. */
    .logo-card,
    .press__img,
    .news {
      animation: reveal-soft 1ms linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 50%;
    }
  }
}

/* ==========================================================================
   Hover lift
   ========================================================================== */
.mini-card,
.mode,
.job,
.community-card,
.winery,
.stage {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.mini-card:hover,
.job:hover,
.community-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(50, 50, 50, 0.09);
}
.mode:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
}
.stage:hover { transform: translateY(-4px); }
.winery:hover {
  transform: translateY(-5px);
  border-color: var(--line-brand);
  box-shadow: 0 10px 22px rgba(50, 50, 50, 0.1);
}
.benefit {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.benefit:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 26px rgba(50, 50, 50, 0.13);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 720px) {
  .program { padding: 24px; }
  .campus__box { padding: 28px; }
  .about__badge { position: static; margin-top: 16px; max-width: none; }
  .wa-fab { right: 14px; bottom: 14px; padding: 8px 16px 8px 10px; }
  .wa-fab__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rail { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
