/* ---------- Fuentes (autoalojadas) ---------- */
@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-italic-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --estrecho: #0C2E3E;
  --estrecho-90: #123B4F;
  --turquesa: #18A39A;
  --turquesa-claro: #7FD6CF;
  --arena: #E6D3AE;
  --cal: #FBFBF8;
  --levante: #F0A23B;
  --levante-oscuro: #D98A22;
  --texto: #14262F;
  --texto-suave: #4A5F68;

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --cuerpo: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --margen: clamp(1.25rem, 5vw, 4rem);
  --ancho: 76rem;
  --seccion: clamp(5rem, 12vw, 9rem);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--cuerpo);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--cal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.005em;
  margin: 0;
}
h2 { font-size: clamp(2.75rem, 7vw, 5.5rem); }
h3 { font-size: 1.75rem; line-height: 1.05; }
p { margin: 0 0 1em; max-width: 62ch; }

a { color: inherit; text-underline-offset: 0.2em; }

:focus-visible {
  outline: 3px solid var(--levante);
  outline-offset: 3px;
  border-radius: 4px;
}

.envoltura {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: var(--margen);
}

.saltar {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--levante);
  color: var(--estrecho);
  font-weight: 600;
}
.saltar:focus { top: 1rem; }

/* ---------- Botón ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.4em;
  border-radius: 999px;
  background: var(--levante);
  color: var(--estrecho);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.2s, scale 0.2s;
}
.boton:hover { background: var(--levante-oscuro); }
.boton:active { scale: 0.97; }
.boton .icono { width: 1.3em; height: 1.3em; flex: none; }
.boton--pequeno { padding: 0.55em 1em; font-size: 0.95rem; }
.boton--grande { font-size: 1.2rem; padding: 1em 1.8em; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--margen);
  color: var(--cal);
  transition: background-color 0.3s, padding 0.3s;
}
.nav.is-solida {
  background: rgb(12 46 62 / 0.94);
  backdrop-filter: blur(8px);
  padding-block: 0.6rem;
}
.nav__marca {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
}
.nav__trc {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--levante);
}
.nav__nombre { font-weight: 600; font-size: 0.95rem; }
.nav__enlaces { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.75rem); }
.nav__seccion, .nav__idioma { text-decoration: none; font-size: 0.95rem; }
.nav__seccion:hover, .nav__idioma:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .nav__seccion { display: none; }
}
@media (max-width: 480px) {
  .nav__nombre { display: none; }
  .nav .boton--pequeno span { display: none; }
  .nav .boton--pequeno { padding: 0.6em; }
}

/* ---------- Vídeo de fondo (compartido) ---------- */
.fondo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Portada ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--estrecho);
  color: var(--cal);
}
.hero__velo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgb(12 46 62 / 0.92) 0%, rgb(12 46 62 / 0.35) 55%, rgb(12 46 62 / 0.55) 100%);
}
.hero__contenido {
  position: relative;
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding: 7rem var(--margen) clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  gap: 2rem clamp(2rem, 5vw, 5rem);
}
.hero__titulo {
  font-weight: 900;
  font-size: clamp(4.5rem, 15vw, 13rem);
  line-height: 0.82;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.hero__linea { display: block; white-space: nowrap; }
.hero__linea:nth-child(2) { color: var(--levante); }
.hero__letra { display: inline-block; will-change: transform; }
.hero__pie { padding-bottom: 0.6rem; display: flex; flex-direction: column; align-items: flex-start; }
.hero__texto { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.45; margin-bottom: 1.5rem; }
.hero__nota { margin: 1.25rem 0 0; font-size: 0.95rem; color: rgb(251 251 248 / 0.75); }

@media (max-width: 860px) {
  .hero__contenido { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero__titulo { font-size: 27vw; }
}

/* ---------- Cómo unirte ---------- */
.unirte { padding-block: var(--seccion); }
.unirte__cabecera {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem 4rem;
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.unirte__cabecera p { font-size: 1.25rem; color: var(--texto-suave); margin: 0; }
.pasos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  counter-reset: none;
}
.paso { border-top: 3px solid var(--estrecho); padding-top: 1.25rem; }
.paso__numero {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 5.5rem;
  line-height: 0.9;
  color: var(--turquesa);
  margin-bottom: 0.75rem;
}
.paso h3 { margin-bottom: 0.6rem; }
.paso p { color: var(--texto-suave); margin: 0; }

@media (max-width: 860px) {
  .unirte__cabecera, .pasos { grid-template-columns: 1fr; }
}

/* ---------- Tarifa ---------- */
.tarifa {
  position: relative;
  overflow: hidden;
  background: var(--estrecho);
  color: var(--cal);
  padding-block: var(--seccion) clamp(4rem, 8vw, 6rem);
}
.tarifa__velo {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(12 46 62 / 0.55), rgb(12 46 62 / 0.85) 60%, var(--estrecho));
}
.tarifa__texto { position: relative; }
.tarifa__texto h2 { max-width: 11ch; margin-bottom: 1.5rem; }
.tarifa__texto p { font-size: 1.25rem; color: rgb(251 251 248 / 0.88); }

.franja {
  position: relative;
  margin-top: clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.franja__pista {
  list-style: none;
  margin: 0;
  padding: 0 var(--margen);
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  width: max-content;
}
.franja__foto { width: clamp(16rem, 34vw, 30rem); flex: none; }
.franja__foto:nth-child(even) { margin-top: 3rem; }
.franja__foto figure { margin: 0; }
.franja__foto img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}
.franja__foto figcaption { margin-top: 0.6rem; font-size: 0.95rem; color: var(--turquesa-claro); }

/* Sin animación la franja se desplaza a mano */
.franja:not(.is-animada) { overflow-x: auto; scroll-snap-type: x mandatory; }
.franja:not(.is-animada) .franja__foto { scroll-snap-align: start; }

/* ---------- Sobre mí ---------- */
.sobre-mi { background: var(--arena); padding-block: var(--seccion); }
.sobre-mi__rejilla {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.sobre-mi__foto { margin: 0; }
.sobre-mi__foto img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
}
.sobre-mi__texto h2 { margin-bottom: 1.75rem; }
.sobre-mi__texto > p { font-size: 1.15rem; }
.lema {
  margin: 2.5rem 0 0;
  padding: 0;
}
.lema p {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  color: var(--estrecho);
  max-width: 18ch;
  margin: 0;
}

@media (max-width: 860px) {
  .sobre-mi__rejilla { grid-template-columns: 1fr; }
  .sobre-mi__foto { max-width: 26rem; }
}

/* ---------- Galería ---------- */
.galeria { padding-block: var(--seccion); }
.galeria h2 { margin-bottom: 2.5rem; }
.galeria__rejilla {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
}
.galeria__item img, .galeria__item video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: var(--estrecho);
}

/* ---------- Preguntas frecuentes ---------- */
.preguntas { padding-block: var(--seccion); border-top: 1px solid rgb(12 46 62 / 0.12); }
.preguntas__rejilla {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.preguntas h2 { max-width: 9ch; }
.pregunta { border-top: 2px solid var(--estrecho); }
.pregunta:last-child { border-bottom: 2px solid var(--estrecho); }
.pregunta summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.1rem;
  cursor: pointer;
  list-style: none;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::after {
  content: "+";
  flex: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--turquesa);
  transition: rotate 0.25s;
}
.pregunta[open] summary::after { rotate: 45deg; }
.pregunta h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.pregunta p { color: var(--texto-suave); padding-bottom: 1.4rem; margin: 0; }

@media (max-width: 860px) {
  .preguntas__rejilla { grid-template-columns: 1fr; }
  .preguntas h2 { max-width: none; }
}

/* ---------- Llamada final ---------- */
.final {
  background: var(--turquesa);
  color: var(--estrecho);
  padding-block: var(--seccion);
}
.final__contenido { text-align: center; display: flex; flex-direction: column; align-items: center; }
.final h2 { font-size: clamp(4rem, 13vw, 10rem); font-weight: 900; margin-bottom: 1rem; }
.final p { font-size: 1.25rem; margin-bottom: 2rem; }
.final .boton { background: var(--estrecho); color: var(--cal); }
.final .boton:hover { background: var(--estrecho-90); }

/* ---------- Pie ---------- */
.pie {
  background: var(--estrecho);
  color: rgb(251 251 248 / 0.8);
  padding: 2.5rem var(--margen);
  font-size: 0.95rem;
}
.pie__fila {
  max-width: calc(var(--ancho) - 2 * var(--margen));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 2.5rem;
}
.pie__fila p { margin: 0; }
.pie__marca { font-family: var(--display); font-weight: 900; font-size: 1.6rem; color: var(--levante); margin-right: auto !important; }
.pie__marca span { font-family: var(--cuerpo); font-weight: 600; font-size: 0.95rem; color: var(--cal); margin-left: 0.4rem; }

/* ---------- Créditos ---------- */
.creditos { padding: 9rem 0 var(--seccion); }
.creditos h1 { font-size: clamp(3rem, 8vw, 6rem); margin-bottom: 1rem; }
.creditos__lista { list-style: none; padding: 0; margin: 2.5rem 0; display: grid; gap: 1.75rem; }
.creditos__lista li { border-top: 2px solid var(--estrecho); padding-top: 1rem; }
.creditos__lista p { margin: 0 0 0.2rem; }
.creditos__titulo { font-weight: 600; }
.creditos .boton { margin-top: 1rem; }
body:has(.creditos) .nav { background: var(--estrecho); }
