/* Serenity Studios: colores y tipografías. Cambiando estos valores cambia toda la página. */
:root {
  --agua: #e8efec;
  --superficie: #f6faf8;
  --tinta: #12222b;
  --tinta-suave: #455961;
  --linea: #c3d2cd;
  --borde-campo: #a9bbb5;
  --pato: #ffc61a;
  --error: #b3261e;
  --exito: #1d6b45;
  --gutter: clamp(16px, 4vw, 40px);
  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--agua);
  color: var(--tinta);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

p {
  max-width: 62ch;
  margin: 0 0 1em;
}

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

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

.panel--dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--pato);
}

.container {
  width: min(100% - 2 * var(--gutter), 1180px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 20;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--tinta);
  color: var(--pato);
}

.skip-link:focus {
  top: 12px;
}

/* Botones */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--tinta);
  color: var(--pato);
  font: 700 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s;
}

.button:hover {
  background: #1f3744;
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.button--small {
  min-height: 40px;
  padding: 0 20px;
  font-size: 0.92rem;
}

.button--wide {
  width: 100%;
  min-height: 58px;
  font-size: 1.1rem;
}

/* Encabezado: una píldora flotante */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-block: 12px;
  pointer-events: none;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  padding: 0 8px 0 18px;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: rgba(246, 250, 248, 0.82);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 800 1.35rem/1 var(--font-display);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

/* Fotos: se ven solo cuando el archivo carga bien */
.photo {
  position: relative;
  overflow: hidden;
  background: var(--linea);
}

.photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s;
}

.photo img.is-loaded {
  opacity: 1;
}

/* Portada */
.hero {
  padding-block: clamp(32px, 6vw, 72px) clamp(40px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: end;
}

.hero h1 {
  margin-bottom: 0.35em;
  font-size: clamp(3rem, 8.2vw, 6.6rem);
  letter-spacing: -0.035em;
  line-height: 0.92;
}

.lead {
  max-width: 40ch;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.5;
}

.price {
  margin: 28px 0 20px;
  font-size: 1.15rem;
}

.price strong {
  margin-right: 0.15em;
  font: 800 clamp(2rem, 4vw, 2.8rem)/1 var(--font-display);
  letter-spacing: -0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.hero-delivery {
  margin: 0;
  color: var(--tinta-suave);
  font-size: 0.95rem;
}

.hero-media {
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  background: var(--pato);
}

.hero-media img {
  object-position: 50% 70%;
}

.ripples {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--tinta);
  stroke-width: 2;
}

.ripples circle:nth-child(1) { opacity: 0.7; }
.ripples circle:nth-child(2) { opacity: 0.55; }
.ripples circle:nth-child(3) { opacity: 0.4; }
.ripples circle:nth-child(4) { opacity: 0.28; }
.ripples circle:nth-child(5) { opacity: 0.16; }

/* Curva de entrenamiento */
.plate {
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--linea);
  border-radius: 28px;
  background: var(--superficie);
}

.plate-head {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 12px clamp(24px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(16px, 3vw, 28px);
}

.plate-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.plate-head p {
  margin: 0;
  color: var(--tinta-suave);
  font-size: 0.95rem;
}

.curve {
  display: block;
  width: 100%;
  height: auto;
}

.curve-grid line {
  stroke: var(--linea);
  stroke-width: 1;
  stroke-dasharray: 2 7;
}

.curve-trend {
  fill: none;
  stroke: var(--pato);
  stroke-width: 18;
}

.curve-line {
  fill: none;
  stroke: var(--tinta);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.curve-dot {
  fill: var(--tinta);
  stroke: var(--superficie);
  stroke-width: 4;
  transform-box: fill-box;
  transform-origin: center;
}

/* La curva se dibuja una sola vez al cargar. Con "reducir movimiento" se ve ya dibujada. */
@media (prefers-reduced-motion: no-preference) {
  .curve-trend,
  .curve-line {
    stroke-dasharray: 1 1;
    stroke-dashoffset: 1;
    animation: draw 2.6s cubic-bezier(0.3, 0.1, 0.2, 1) 0.3s forwards;
  }

  .curve-dot {
    opacity: 0;
    animation: pop 0.4s ease-out forwards;
  }

  .curve-dot--1 { animation-delay: 0.7s; }
  .curve-dot--2 { animation-delay: 1.7s; }
  .curve-dot--3 { animation-delay: 2.8s; }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}

.stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.stages li {
  padding-top: 14px;
  border-top: 2px solid var(--tinta);
}

.stages li::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--tinta);
}

.stages h3 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.stages p {
  margin: 0;
  color: var(--tinta-suave);
  font-size: 0.95rem;
}

/* Secciones y paneles */
.section {
  padding-block: clamp(56px, 9vw, 112px);
}

.section--tight {
  padding-block: clamp(32px, 5vw, 64px);
}

.section-head {
  max-width: 60ch;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head p {
  margin: 14px 0 0;
  color: var(--tinta-suave);
}

.panel {
  padding: clamp(24px, 5vw, 64px);
  border-radius: clamp(28px, 4vw, 44px);
}

.panel--dark {
  --muted-dark: #a9bbc2;
  background: var(--tinta);
  color: var(--agua);
}

.panel--dark .section-head p {
  color: var(--muted-dark);
}

.panel--pato {
  background: var(--pato);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.split-intro {
  position: sticky;
  top: 96px;
}

.split-intro p {
  margin: 16px 0 0;
  color: var(--tinta-suave);
}

/* Video */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: clamp(24px, 4vw, 40px);
  overflow: hidden;
  border-radius: 28px;
  background: var(--tinta);
}

.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.video-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: var(--agua);
  text-align: center;
}

.video-empty p {
  margin: 0;
}

.video-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.video-tab {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--borde-campo);
  border-radius: 999px;
  background: var(--superficie);
  color: var(--tinta);
  font: 600 0.95rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.video-tab:hover {
  border-color: var(--tinta);
}

.video-tab[aria-pressed="true"] {
  border-color: var(--tinta);
  background: var(--tinta);
  color: var(--pato);
}

.play-disc {
  fill: var(--pato);
}

.play-icon {
  fill: var(--tinta);
}

/* Habilidades con foto */
.features {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.feature--reverse .feature-photo {
  order: 2;
}

.feature-photo {
  aspect-ratio: 16 / 10;
  border-radius: 28px;
}

.feature-copy h3 {
  margin-bottom: 0.5em;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.feature-copy p {
  margin: 0;
  color: var(--tinta-suave);
}

.abilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px clamp(24px, 4vw, 48px);
  margin: clamp(48px, 7vw, 88px) 0 0;
  padding: 0;
  list-style: none;
}

.abilities li {
  padding-top: 16px;
  border-top: 1px solid var(--tinta);
}

.abilities h3 {
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.abilities p {
  margin: 0;
  color: var(--tinta-suave);
  font-size: 0.97rem;
}

/* Especificaciones en cuadrícula */
.bento {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px;
}

.bento-photo {
  margin: 0;
  min-height: 420px;
  border-radius: 28px;
  background: rgba(232, 239, 236, 0.08);
}

.bento-photo img {
  object-position: 50% 40%;
}

.bento-photo figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(18, 34, 43, 0.82);
  backdrop-filter: blur(6px);
  color: var(--agua);
  font-size: 0.95rem;
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 132px;
  padding: 22px 24px;
  border: 1px solid rgba(232, 239, 236, 0.12);
  border-radius: 24px;
  background: rgba(232, 239, 236, 0.06);
}

.stat strong {
  color: var(--pato);
  font: 800 clamp(2.2rem, 4.2vw, 3.4rem)/1 var(--font-display);
  letter-spacing: -0.03em;
}

.stat span {
  color: var(--muted-dark);
  font-size: 0.95rem;
  line-height: 1.35;
}

.spec-details {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
  margin: 0;
  padding: 8px clamp(20px, 3vw, 32px);
  border: 1px solid rgba(232, 239, 236, 0.12);
  border-radius: 24px;
  background: rgba(232, 239, 236, 0.06);
}

.spec-details > div {
  padding: 18px 0;
  border-top: 1px solid rgba(232, 239, 236, 0.12);
}

.spec-details > div:nth-child(-n + 2) {
  border-top: 0;
}

.spec-details dt {
  color: var(--muted-dark);
  font-size: 0.9rem;
}

.spec-details dd {
  margin: 4px 0 0;
  font-size: 1.05rem;
}

.footnote {
  margin: 24px 0 0;
  color: var(--muted-dark);
  font-size: 0.9rem;
}

.note {
  margin-top: 28px;
  padding: 24px 28px;
  border: 1px solid var(--linea);
  border-radius: 24px;
  background: var(--superficie);
}

.note h3 {
  margin-bottom: 8px;
}

.note p:last-child {
  margin-bottom: 0;
}

/* Compra */
.buy {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.buy-summary {
  position: sticky;
  top: 96px;
}

.buy-summary p {
  margin-top: 16px;
}

.totals {
  margin: 28px 0;
  border-top: 2px solid var(--tinta);
}

.totals > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(18, 34, 43, 0.25);
}

.totals dt,
.totals dd {
  margin: 0;
}

.totals-final {
  font: 800 1.7rem/1.2 var(--font-display);
  letter-spacing: -0.02em;
}

.buy-note {
  font-size: 0.95rem;
}

.form {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 36px);
  border-radius: 28px;
  background: var(--superficie);
}

.form > .field--short {
  max-width: 200px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--borde-campo);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.field input:hover,
.field select:hover {
  border-color: var(--tinta-suave);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border: 2px solid var(--error);
}

.field--check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0 12px;
  align-items: start;
}

.field--check input {
  width: 22px;
  min-height: 0;
  height: 22px;
  margin: 3px 0 0;
  accent-color: var(--tinta);
}

.field--check label {
  margin: 0;
  font-weight: 500;
}

.field--check .field-error {
  grid-column: 2;
}

.field-error {
  margin: 6px 0 0;
  color: var(--error);
  font-size: 0.9rem;
  font-weight: 600;
}

.field-error:empty {
  display: none;
}

.form-alert {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fde7e4;
  color: #7a1913;
  font-weight: 600;
}

/* Preguntas frecuentes */
.faq details {
  border-top: 1px solid var(--linea);
}

.faq details:last-child {
  border-bottom: 1px solid var(--linea);
}

.faq summary {
  position: relative;
  padding: 22px 40px 22px 0;
  font: 700 1.2rem/1.25 var(--font-display);
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  font-size: 1.6rem;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  padding-bottom: 22px;
  margin: 0;
}

/* Pie de página */
.site-footer {
  --muted-dark: #a9bbc2;
  margin-top: clamp(24px, 4vw, 48px);
  background: var(--tinta);
  color: var(--agua);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding-block: 56px 40px;
}

.footer-grid p {
  margin: 0 0 0.3em;
}

.footer-brand {
  font: 800 1.4rem/1.2 var(--font-display);
}

.footer-legal {
  margin-top: 16px;
  color: var(--muted-dark);
  font-size: 0.85rem;
}

/* Texto de la reserva: letra pequeña, lo último de la página */
.reservation-note {
  padding-block: 20px 32px;
  border-top: 1px solid rgba(232, 239, 236, 0.16);
}

.reservation-note p {
  max-width: 100ch;
  margin: 0;
  color: var(--muted-dark);
  font-size: 0.75rem;
  line-height: 1.6;
}

/* Páginas internas: gracias y términos */
.page {
  padding-block: clamp(32px, 6vw, 72px);
}

.prose {
  max-width: 70ch;
}

.prose h1 {
  margin-bottom: 0.4em;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.prose h2 {
  margin: 2em 0 0.5em;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.prose ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose .updated {
  color: var(--tinta-suave);
  font-size: 0.95rem;
}

.result {
  width: min(100% - 2 * var(--gutter), 640px);
  margin: clamp(32px, 8vw, 96px) auto;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--linea);
  border-radius: 28px;
  background: var(--superficie);
}

.result h1 {
  margin-bottom: 0.4em;
  font-size: clamp(2rem, 5vw, 3rem);
}

.result-reference {
  display: inline-block;
  margin: 0 0 1.2em;
  padding: 6px 14px;
  border-radius: 10px;
  background: var(--pato);
  font: 700 1.2rem/1.3 var(--font-display);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* Pantallas pequeñas */
@media (max-width: 960px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento-photo {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 860px) {
  .hero-grid,
  .split,
  .buy,
  .plate-head,
  .feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature--reverse .feature-photo {
    order: 0;
  }

  .hero-media {
    width: min(100%, 440px);
  }

  .split-intro,
  .buy-summary {
    position: static;
  }

  .abilities,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .stages {
    grid-template-columns: minmax(0, 1fr);
  }

  .spec-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .spec-details > div:nth-child(2) {
    border-top: 1px solid rgba(232, 239, 236, 0.12);
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .form > .field--short {
    max-width: none;
  }
}
