@import url('fonts.css');

/* ---------------------------------------------------------------- tokens */

:root {
  --bg: #0b0b0b;
  --surface: #141414;
  --line: #222;
  --line-soft: #1c1c1c;
  --border: #2a2a2a;
  --red: #e50914;          /* display sizes only — 4.1:1 on --bg */
  --red-text: #ff2a35;     /* anything under 24px — 5.3:1 on --bg */
  --white: #fff;
  --muted: #d6d6d6;
  --dim: #8a8a8a;
  --gold: #c9a227;
  --display: 'Teko', 'Oswald', Impact, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --wrap: 1200px;
  --gutter: 20px;
}

/* ------------------------------------------------------------------ base */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }

a { color: var(--white); text-decoration: none; }
a:hover { color: var(--red-text); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red-text);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.band { padding-block: clamp(64px, 9vw, 100px); }

.band--surface {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rule {
  width: 64px;
  height: 3px;
  background: var(--red);
}

.section-title {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 0.95;
}

/* Visible only to screen readers. The CTAs read "Quiero empezar"; this keeps
   the channel in their accessible name, since the WhatsApp glyph is aria-hidden
   and a blind visitor would otherwise not know the button opens a chat. */
.u-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Clipped rather than pushed off-canvas with a negative offset — a -9999px
   element still counts towards the document's scroll width on some engines. */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  background: var(--red);
  color: var(--white);
  padding: 12px 20px;
  z-index: 10;
}
.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  clip-path: none;
  color: var(--white);
}

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

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-height: 44px;
  max-width: 100%;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn--solid {
  background: var(--red);
  color: var(--white);
  font-size: clamp(22px, 3vw, 26px);
  padding: 16px 30px 12px;
}
.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--red-text);
  color: var(--white);
}



.link-quiet {
  color: var(--muted);
  border-bottom: 1px solid var(--red);
  padding-bottom: 2px;
  font-size: 15px;
}
.link-quiet:hover { color: var(--white); }

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

.hero {
  position: relative;
  /* Full device height. svh is the viewport with the mobile browser bars
     showing, so the hero never gets clipped by them; vh is the fallback. */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% top;
  filter: grayscale(35%) contrast(1.05);
}

.hero__scrim-x,
.hero__scrim-y {
  position: absolute;
  inset: 0;
}
.hero__scrim-x {
  background: linear-gradient(90deg, rgba(11, 11, 11, 0.94) 25%, rgba(11, 11, 11, 0.6) 55%, rgba(11, 11, 11, 0.2) 100%);
}
.hero__scrim-y {
  background: linear-gradient(0deg, #0b0b0b 4%, rgba(11, 11, 11, 0.4) 45%, rgba(11, 11, 11, 0) 75%);
}

.hero__inner {
  position: relative;
  width: 100%;
  padding-top: clamp(56px, 9vh, 110px);
  padding-bottom: clamp(40px, 6vh, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.4vh, 28px);
}

.hero__logo {
  width: clamp(64px, 8vw, 84px);
  height: auto;
}

.kicker {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(15px, 2.2vw, 20px);
  letter-spacing: 0.24em;
  color: var(--red-text);
  text-transform: uppercase;
}

/* Scales by width AND height: now that the hero is a full 100vh, a headline
   sized only on vw overflows a laptop viewport and pushes the CTA below the
   fold. The vh term caps it on short screens. */
.hero__title {
  font-size: clamp(46px, min(10vw, 11vh), 132px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  max-width: 11ch;
}
.hero__title span { color: var(--red); }

.hero__sub {
  margin: 0;
  max-width: 46ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  gap: 16px 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

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

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats__grid {
  padding-block: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px 0;
}

.stat {
  padding: 8px 20px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__n {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(42px, 5vw, 56px);
  line-height: 1;
}

.stat__label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* --------------------------------------------------------------- ¿te suena? */

.suena {
  padding-top: clamp(64px, 9vw, 110px);
  padding-bottom: clamp(56px, 8vw, 90px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}

.suena__text {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.suena__title {
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.9;
}

.suena__list {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 56ch;
}
.suena__list p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}
.suena__lead {
  font-size: 22px !important;
  line-height: 1.45 !important;
  font-weight: 600;
  color: var(--white) !important;
}
.suena__lead span { color: var(--red-text); }

.suena__figure { margin: 0; }
.suena__figure img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%) contrast(1.05);
}

/* ------------------------------------------------------------ así trabajo */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  margin-top: clamp(36px, 5vw, 56px);
}

.pillar {
  background: var(--surface);
  padding: 40px 32px 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pillar--accent { border-top: 3px solid var(--red); }

.pillar__n {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  color: var(--red-text);
}

.pillar h3 {
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
}

.pillar p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.pillar__note {
  margin-top: 6px !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: var(--dim) !important;
}

.pullquote {
  margin: clamp(48px, 7vw, 72px) auto 0;
  max-width: 900px;
  padding: 0;
}
.pullquote p:first-child {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.05;
  text-align: center;
}
.pullquote span { color: var(--red); }
.pullquote__foot {
  margin: 28px 0 0;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- mosaico */

.mosaic {
  position: relative;
  overflow: hidden;
}

.mosaic__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.45);
}

.mosaic__inner {
  position: relative;
  padding-block: clamp(90px, 14vw, 150px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.mosaic h2 {
  font-size: clamp(56px, 8vw, 110px);
  line-height: 0.9;
  color: var(--red-text);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
}

.mosaic p {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-style: italic;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}

/* ------------------------------------------------------------------ casos */

.cases__intro {
  margin: 16px 0 0;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* Four cards, explicit columns for the same reason as the podcast grid. */
.cases {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 40px) 32px;
  margin-top: clamp(36px, 5vw, 52px);
}

@media (min-width: 620px) {
  .cases { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1080px) {
  .cases { grid-template-columns: repeat(4, 1fr); }
}

.case {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  color: var(--white);
  transition: border-color 0.15s ease;
}
.case:hover,
.case:focus-visible {
  border-top-color: var(--red);
  color: var(--white);
}

.case__figure {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 3.6vw, 54px);
  line-height: 0.95;
}

.case__unit {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red-text);
}

.case p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  flex: 1;
}

.case__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--red-text);
}
.case:hover .case__cta { color: var(--white); }

.cases__cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(48px, 7vw, 72px);
}

/* ------------------------------------------------------------ experiencias */

.reviews {
  columns: 3 300px;
  column-gap: 32px;
  margin-top: clamp(36px, 5vw, 56px);
}

.review {
  margin: 0 0 32px;
  break-inside: avoid;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review__stars {
  color: var(--red-text);
  font-size: 14px;
  letter-spacing: 3px;
}

.review blockquote {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.review figcaption {
  font-size: 13px;
  color: var(--white);
  font-weight: 600;
}
.review figcaption span {
  color: var(--dim);
  font-weight: 400;
}

/* --------------------------------------------------------------- historia */

.story {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(40px, 6vw, 64px);
  align-items: start;
}

/* Cut-out on alpha: no frame, no ratio box — it stands on the black. Grayscale
   keeps it distinct from the graded hero, which comes from the same shoot. */
.story__portrait {
  margin: 0;
  position: relative;
}

.story__portrait img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(100%) contrast(1.06);
}

/* Fades the cut-out's hard bottom edge into the section instead of ending in a
   straight cut across the thighs. */
.story__portrait::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: linear-gradient(0deg, var(--surface) 8%, rgba(20, 20, 20, 0) 100%);
  pointer-events: none;
}

.story__text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.story__title {
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: 0.9;
}

.story__text p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}

.story__quote {
  margin-top: 12px !important;
  font-family: var(--serif) !important;
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 32px) !important;
  line-height: 1.3 !important;
  color: var(--gold) !important;
}

/* --------------------------------------------------------------- podcasts */

.pods__intro {
  margin: 16px 0 clamp(32px, 5vw, 48px);
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* Explicit column counts, not auto-fit: there are exactly six episodes, and
   auto-fit lands on four columns at desktop, leaving two empty cells where the
   hairline background shows through as grey blocks. 1 / 2 / 3 always fills. */
.pods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
}

@media (min-width: 620px) {
  .pods { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .pods { grid-template-columns: repeat(3, 1fr); }
}

.pod {
  background: var(--bg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--white);
  transition: background-color 0.15s ease;
}
.pod:hover {
  background: var(--surface);
  color: var(--white);
}

.pod__src {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.pod__guest {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 28px;
  line-height: 1;
}

.pod__cta {
  font-size: 13px;
  color: var(--red-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pods__foot {
  margin: 48px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.pods__foot a {
  color: var(--white);
  border-bottom: 1px solid var(--red);
}
.pods__foot span { color: var(--dim); }

/* -------------------------------------------------------------------- faq */

.faq { max-width: 840px; }

.faq__list {
  display: flex;
  flex-direction: column;
  margin-top: clamp(28px, 4vw, 40px);
}

.faq__item { border-top: 1px solid var(--border); }

.faq__q {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  text-align: left;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}
.faq__q:hover { color: var(--red-text); }

.faq__icon {
  color: var(--red-text);
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}

.faq__a {
  margin: 0;
  padding: 0 0 24px;
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}
.faq__a[hidden] { display: none; }

/* -------------------------------------------------------------- cta final */

.cta {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(80px, 13vw, 130px) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vw, 28px);
  text-align: center;
}

.cta h2 {
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 0.92;
}
.cta h2 span { color: var(--red); }

.cta p {
  margin: 0;
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

.cta .btn { margin-top: 8px; font-size: clamp(22px, 3.5vw, 28px); padding: 16px 32px 12px; }

.cta__foot {
  font-size: 14px !important;
  color: var(--dim) !important;
}

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

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer__inner {
  padding: 56px var(--gutter) 44px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer__brand img { width: 72px; height: auto; }
.footer__brand p {
  margin: 0;
  font-size: 13px;
  color: var(--dim);
}

.footer__social {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
}
.footer__social a { color: var(--muted); }

.footer__disclaimer {
  margin: 0;
  max-width: 90ch;
  font-size: 12px;
  line-height: 1.6;
  color: var(--dim);
}

.footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
}
.footer__legal div {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__legal a { color: var(--dim); }

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

.notfound {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: clamp(80px, 14vw, 140px) var(--gutter);
}

.notfound__code {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(90px, 20vw, 200px);
  line-height: 0.85;
  color: var(--red);
}

.notfound h1 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 0.95;
}

.notfound p {
  margin: 0;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

/* --------------------------------------------------------------- motion */

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

/* ---------------------------------------------------------------- mobile */

@media (max-width: 640px) {
  /* The horizontal scrim is built for a wide layout; on a phone it covers the
     whole frame and the portrait disappears. Swap the weight onto the vertical
     one: photo readable up top, solid black under the copy. */
  .hero__img { object-position: 56% 8%; }
  .hero__scrim-x {
    background: linear-gradient(90deg, rgba(11, 11, 11, 0.75) 0%, rgba(11, 11, 11, 0.35) 100%);
  }
  .hero__scrim-y {
    background: linear-gradient(0deg, #0b0b0b 34%, rgba(11, 11, 11, 0.75) 58%, rgba(11, 11, 11, 0.1) 100%);
  }
  .hero__inner { padding-top: clamp(40px, 8vh, 64px); }
  .stat {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 16px 0 8px;
  }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .pillar { padding: 32px 24px 36px; }
  .footer__legal { flex-direction: column; gap: 16px; }
}
