/* Raúl Romero Rendimiento — Aumenta+
   Palette and type come from the client's brandboard:
   Pantone 2965 C #002b45, Pantone 279 C #0093d7, Nexa (display) + Raleway (body).
   Poppins stands in for Nexa until the commercial webfont licence exists. */

@import url('../fonts/fonts.css');

:root {
  --navy: #002b45;
  --navy-deep: #001d30;
  --blue: #0093d7;
  --blue-hover: #00a9f7;
  --blue-ink: #00719f;      /* accessible blue for small text on white */
  --ice: #f2f8fc;
  --ice-line: #d8e8f2;
  --slate: #47657a;
  --sky: #cfe6f5;
  --white: #ffffff;

  --display: 'Poppins', 'Trebuchet MS', sans-serif;
  --body: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shell: 1120px;
  --pad: clamp(20px, 5vw, 40px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue-ink); text-decoration: none; }
a:hover { color: var(--navy); }

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

h1, h2, h3 { font-family: var(--display); font-weight: 800; font-style: italic; line-height: 1.12; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.shell { max-width: var(--shell); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 9vw, 96px); }
.section--flush-top { padding-top: 0; }

.kicker {
  margin-bottom: 12px;
  color: var(--blue-ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.h2 { font-size: clamp(28px, 4.6vw, 40px); margin-bottom: 16px; }
.lede { max-width: 640px; color: var(--slate); font-size: clamp(16px, 2vw, 17px); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--blue);
  color: var(--white);
  padding: 12px 20px;
  font-family: var(--display);
  font-weight: 700;
}
.skip-link:focus { left: 0; color: var(--white); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-hover); color: var(--white); }
.btn--ghost {
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.35);
  color: var(--white);
}
.btn--ghost:hover { background: rgba(255,255,255,0.22); color: var(--white); }
.btn--ink { background: var(--navy); color: var(--white); }
.btn--ink:hover { background: var(--blue); color: var(--white); }
.btn--sm { min-height: 44px; padding: 12px 22px; font-size: 14px; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px var(--pad);
}
.nav__brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.nav__brand:hover { color: var(--white); }
.nav__mark { width: 54px; height: 54px; border-radius: 50%; }
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--white);
}
.wordmark span { color: var(--blue); }

/* ---------- hero ---------- */

.hero { position: relative; background: var(--navy); overflow: hidden; }
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--navy) 30%, rgba(0,43,69,0.6) 72%, rgba(0,43,69,0.3) 100%);
}
.hero__inner {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(64px, 11vw, 100px) var(--pad) clamp(72px, 12vw, 110px);
}
.hero h1 {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--white);
  font-size: clamp(32px, 6.2vw, 54px);
  text-wrap: pretty;
}
.hero__kicker { color: var(--blue); }
.hero__sub {
  max-width: 600px;
  margin-bottom: 40px;
  color: var(--sky);
  font-size: clamp(17px, 2.4vw, 19px);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- stats strip ---------- */

.stats { background: var(--blue); color: var(--white); }
.stats__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px var(--pad);
  text-align: center;
}
.stats b {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(22px, 3.4vw, 26px);
}
.stats span { font-weight: 600; font-size: 15px; }

/* ---------- method ---------- */

.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--cases { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--cases-sm { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--split { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.step {
  background: var(--ice);
  border-radius: 16px;
  padding: 32px 28px;
}
.step__no {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 44px;
  color: var(--blue);
  margin-bottom: 14px;
}
.step h3, .case h3 { font-size: 19px; font-style: normal; font-weight: 700; margin-bottom: 12px; }
.step p, .case p { color: var(--slate); font-size: 15px; line-height: 1.65; }

/* ---------- rhythm band ---------- */

.band { position: relative; background: var(--navy); overflow: hidden; }
.band__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}
.band__inner {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 80px) var(--pad);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}
.band b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(30px, 5vw, 42px);
  color: var(--blue);
}
.band p { margin-top: 6px; color: var(--sky); font-size: 16px; }

/* ---------- programme video (VSL) ---------- */

.vsl {
  max-width: 880px;
  margin-inline: auto;
  border: 1px solid var(--ice-line);
  border-radius: 16px;
  overflow: hidden;
}

/* Live cards (lib/testimonios-live.php) hug their content instead of being
   stretched to the row's height: several have only a heading, because the
   client's page gives them no story, and stretching leaves a white void under
   it. The curated cards keep their even heights. */
.case--live { align-self: start; }

/* ---------- cases ---------- */

.case {
  border: 1px solid var(--ice-line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.case__player { position: relative; aspect-ratio: 16 / 9; background: var(--navy); }
.case__player > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.case__play { position: absolute; inset: 0; display: block; }
.case__shot { width: 100%; height: 100%; object-fit: cover; }
.case__play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 10px 28px rgba(0,29,48,0.45);
  display: grid;
  place-items: center;
  transition: transform .18s ease, background-color .18s ease;
}
.case__play-icon::before {
  content: '';
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 19px solid var(--white);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}
.case__play:hover .case__play-icon,
.case__play:focus-visible .case__play-icon { background: var(--blue-hover); transform: translate(-50%, -50%) scale(1.07); }

.case__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.case__figure {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(24px, 3.4vw, 30px);
  color: var(--blue);
}
.case__blocks { display: flex; flex-direction: column; gap: 18px; flex: 1; }

/* compact cards: the extra testimonials, three across on desktop */
.cases__more {
  margin: clamp(48px, 6vw, 72px) 0 24px;
  font-size: clamp(20px, 3vw, 24px);
}
.case--sm .case__body { padding: 20px; gap: 8px; }
.case--sm .case__figure { font-size: 20px; }
.case--sm h3 { font-size: 17px; }
.case--sm p { font-size: 14px; }
.case--sm .case__play-icon { width: 52px; height: 52px; }
.case--sm .case__play-icon::before {
  margin-left: 4px;
  border-left-width: 15px;
  border-top-width: 9px;
  border-bottom-width: 9px;
}

.case p.case__label {
  margin-bottom: 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-ink);
}
.case a { font-weight: 700; font-size: 14px; }

.note { margin-top: 40px; color: var(--slate); font-size: 15px; }

/* ---------- inline CTA rows ---------- */

.cta-row { display: flex; justify-content: center; margin-top: clamp(32px, 5vw, 48px); }
.cta-row--top { margin-bottom: clamp(40px, 6vw, 56px); }

/* ---------- Raúl ---------- */

.raul { background: var(--ice); }
.raul__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 96px) var(--pad);
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.raul__frame {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--blue) 0%, var(--navy) 100%);
  overflow: hidden;
}
.raul__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.raul p { color: var(--slate); font-size: clamp(16px, 2vw, 17px); line-height: 1.7; margin-bottom: 18px; }
.raul__handle { display: inline-flex; margin-top: 10px; }

/* ---------- fit / not fit ---------- */

.fit { border-radius: 16px; padding: clamp(28px, 4vw, 36px); }
.fit--yes { background: var(--ice); }
.fit--no { background: var(--navy); }
.fit h3 { font-size: 24px; margin-bottom: 20px; }
.fit--no h3 { color: var(--white); }
.fit li { display: flex; gap: 12px; font-size: 16px; line-height: 1.5; }
.fit li + li { margin-top: 14px; }
.fit--yes li { color: var(--slate); }
.fit--no li { color: var(--sky); }
.fit__tick { color: var(--blue); font-weight: 800; }

/* ---------- FAQ ---------- */

.faq { max-width: 800px; margin: 0 auto; padding-inline: var(--pad); }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--ice-line); border-radius: 12px; padding: 18px 22px; }
.faq details[open] { border-color: var(--blue); }
.faq summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--blue);
  font-size: 24px;
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 14px; color: var(--slate); font-size: 15px; line-height: 1.7; }

/* ---------- closing CTA ---------- */

.close { position: relative; background: var(--navy); overflow: hidden; }
.close__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.close__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,43,69,0.85), rgba(0,43,69,0.62));
}
.close__inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(72px, 11vw, 110px) var(--pad);
  text-align: center;
}
.close__mark { width: 110px; height: 110px; border-radius: 50%; margin-bottom: 28px; }
.close h2 { color: var(--white); font-size: clamp(30px, 5.4vw, 46px); margin-bottom: 18px; }
.close p { margin-bottom: 40px; color: var(--sky); font-size: clamp(16px, 2.2vw, 18px); }
.close__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ---------- footer ---------- */

.foot {
  background: var(--navy-deep);
  color: #8fb3c9;
  padding: 40px var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}
.foot a { color: #8fb3c9; }
.foot a:hover { color: var(--white); }
.foot__brand { font-family: var(--display); font-weight: 700; font-style: italic; color: var(--white); }
.foot__brand span { color: var(--blue); }
.foot__links { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.foot__credit { width: 100%; color: #6f95ac; font-size: 13px; }
.foot__credit a { color: #6f95ac; text-decoration: underline; }

/* ---------- legal pages ---------- */

.legal { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 80px) var(--pad); }
.legal h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 28px; }
.legal h2 { font-size: 20px; font-style: normal; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--slate); font-size: 16px; line-height: 1.75; }
.legal p + p { margin-top: 14px; }
.legal ul { margin-top: 12px; }
.legal li { display: flex; gap: 10px; }
.legal li + li { margin-top: 8px; }
.legal li::before { content: '·'; color: var(--blue); font-weight: 800; }
.legal dl { margin: 16px 0 0; color: var(--slate); font-size: 16px; }
.legal dt { font-weight: 700; color: var(--navy); }
.legal dd { margin: 0 0 10px; }
.legal .back { display: inline-flex; margin-top: 40px; }

/* ---------- 404 ---------- */

.oops {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  padding: 80px var(--pad);
  background: var(--navy);
  color: var(--white);
}
.oops__code { font-family: var(--display); font-weight: 800; font-style: italic; font-size: clamp(64px, 16vw, 128px); color: var(--blue); line-height: 1; }
.oops h1 { font-size: clamp(24px, 5vw, 36px); color: var(--white); }
.oops p { color: var(--sky); max-width: 460px; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .raul__inner { grid-template-columns: 1fr; }
  .raul__frame { max-width: 300px; margin: 0 auto; }
}

@media (max-width: 560px) {
  .nav { padding: 8px 16px; }
  .nav__mark { width: 44px; height: 44px; }
  .wordmark { font-size: 17px; }
  .btn { width: 100%; }
  .nav .btn { width: auto; padding: 10px 16px; font-size: 13px; white-space: nowrap; }
  .hero__cta .btn, .close__cta .btn { width: 100%; }
  .stats__inner { flex-direction: column; gap: 10px; }
}

@media (max-width: 560px) {
  /* the riders sit on the left of the frame: crop from further left so they
     land on the right half instead of behind the headline */
  .hero__photo { object-position: 12% center; }
}

@media (max-width: 420px) {
  /* the CTA gets the room it needs: the mark alone still identifies the brand */
  .wordmark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
