/* ============================================================
   Tiempo — the 7 service spokes
   One module for all seven. Their inline blocks were identical
   across 940 lines apart from the value of --golden (two pages
   said var(--golden), five said var(--golden)) and a single comment line.
   --golden fed only --grey-300, which nothing on those pages used,
   so collapsing them is provably a no-op.
   ============================================================ */

/* These pages let links inherit their surrounding colour rather than
   picking up base.css's clockwork. */
a { color: inherit; }

/* ─── Hero (video background, media noche fallback) ─── */
.hero {
  position: relative;
  width: 100%;
  min-height: var(--hero-h);
  background: var(--media);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: var(--band-xl) var(--pad-x) var(--band-xl);
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
  z-index: 0;
}
.hero-content { position: relative; width: 100%; z-index: 1; }
.hero-content h1 {
  font-size: var(--fs-hero);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  max-width: 760px;
  letter-spacing: -0.02em;
}
.hero-content p {
  color: rgba(var(--crema-rgb), 0.72);
  font-size: var(--fs-body);
  margin-top: 16px;
  max-width: 560px;
  line-height: 1.5;
  font-family: var(--font-body);
}
/* The hero button is .btn-primary from components.css; only the margin is
   page business. This file and page-home.css each held a byte-identical copy
   of that rule before. */
.hero-content .btn-primary { margin-top: 24px; }
.hero-secondary-cta {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(var(--crema-rgb), 0.65);
  font-size: var(--fs-body);
  font-family: var(--font-body);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
  z-index: 5;
}
.hero-secondary-cta:hover { color: rgba(var(--crema-rgb), 0.9); text-decoration: underline; }

/* ─── Section header reusable (same as homepage) ─── */
.section-header { margin-bottom: 32px; }
.section-header h2 {
  font-family: 'F37 Bobby', var(--font-body);
  font-weight: var(--fw-light);
  font-size: var(--fs-h1);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.section-header p {
  font-size: var(--fs-body);
  line-height: 1.5;
  font-family: var(--font-body);
  max-width: 560px;
}
.section-header--light h2 { color: var(--crema); }
.section-header--light p  { color: rgba(var(--crema-rgb), 0.7); }
.section-header--dark h2 { color: var(--red); }
.section-header--dark p  { color: var(--red); }

/* ─── Problem section (crema bg, 3 dark boxes) ─── */
.problem-section {
  background-color: var(--cream-500);
  padding: var(--band) var(--pad-x) var(--band-xl);
}
.problem-section .section-header { margin-bottom: 32px; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.problem-item {
  background-color: var(--clockwork);
  border-radius: 18px;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-out-expo);
}
.problem-item:hover { transform: translateY(-4px); }
.problem-item h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-light);
  color: var(--cream-500);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.problem-item p {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: rgba(var(--crema-rgb), 0.78);
}

/* ─── Coverage section: inverted — media noche bg, crema cards, centered header ─── */
.problem-section--inverted {
  background-color: var(--media);
}
.problem-section--inverted .section-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 1000px;
}
.problem-section--inverted .section-header p {
  margin-left: auto;
  margin-right: auto;
}
.problem-section--inverted .problem-item {
  background-color: var(--crema);
}
.problem-section--inverted .problem-item h3 {
  color: var(--clockwork);
}
.problem-section--inverted .problem-item p {
  color: var(--clockwork);
}

/* ─── Outcomes (clockwork — content left, animated card collage right) ─── */
.outcomes-section {
  background-color: var(--red);
  padding: var(--band-2xl) var(--pad-x);
  overflow: hidden;
}
.outcomes-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 540px;
  gap: 60px;
  align-items: stretch;
  max-width: var(--content-max);
  margin: 0 auto;
}
.outcomes-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}
.outcomes-content > .outcomes-list { margin-top: auto; }
.outcomes-section h2 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-light);
  color: var(--cream-500);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
}
.outcomes-section .lede {
  color: rgba(var(--crema-rgb), 0.85);
  font-size: var(--fs-body);
  line-height: 1.6;
  margin: 0 0 28px;
  font-family: var(--font-body);
}
.outcomes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.outcomes-item {
  background: var(--crema);
  border-radius: 14px;
  padding: 22px 24px;
}
.outcomes-item h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  font-size: 1.25rem;
  color: var(--clockwork);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 6px;
}
.outcomes-item p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--tierrita);
  font-family: var(--font-body);
  margin: 0;
}
/* Right column: animated card collage (three columns, alternating scroll) */
.outcomes-cards {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-self: stretch;
  height: calc(100% + 128px);
  margin: -64px 0;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}
.outcomes-card-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 12px;
  align-self: start;
  will-change: transform;
}
.outcomes-cards > .outcomes-card-column:nth-child(2) { margin-top: 64px; }
.outcomes-card-column--up   { animation: outcomesScrollUp 55s linear infinite; }
.outcomes-card-column--down { animation: outcomesScrollDown 55s linear infinite; }
.outcomes-card {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  background: rgba(var(--crema-rgb), 0.05);
}
@keyframes outcomesScrollUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
@keyframes outcomesScrollDown {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}
@media (max-width: 767px) {
  .outcomes-grid { grid-template-columns: 1fr; grid-template-rows: auto; gap: 32px; }
  .outcomes-cards { display: none; }
  .outcomes-list { grid-template-columns: 1fr; }
}

/* ─── Local hook + testimonial + FAQ (crema, 2-column) ─── */
.local-section {
  background-color: var(--cream-500);
  padding: var(--band) var(--pad-x) var(--band-xl);
}
.local-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.local-section h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-light);
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.local-section p {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--red);
  font-family: var(--font-body);
}
/* Shaina testimonial card — homepage values-card adapted for crema bg */
.values-card { margin-top: 28px; max-width: 460px; }
.values-card .card-media-wrap {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--media);
}
.values-card .card-media,
.values-card video.card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: var(--media-mid);
  transition: transform 0.5s var(--ease-out-expo);
}
.values-card .card-media-wrap:hover .card-media,
.values-card .card-media-wrap:hover video.card-media {
  transform: scale(1.05);
}
.values-card .card-quote {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-light);
  line-height: 1.35;
  color: var(--red);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.values-card h3 {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--red);
  margin-bottom: 2px;
}
.values-card .card-role {
  font-size: var(--fs-xs);
  color: var(--red);
  font-family: var(--font-body);
}
.card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
}
.watch-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1px solid rgba(var(--clockwork-rgb), 0.35);
  border-radius: var(--r-pill);
  color: var(--red);
  font-size: var(--fs-xs);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  background: transparent;
}
.watch-cta:hover {
  background-color: rgba(var(--clockwork-rgb), 0.06);
  border-color: rgba(var(--clockwork-rgb), 0.55);
}
.watch-cta svg {
  width: 12px;
  height: 12px;
  fill: var(--red);
}
.card-bottom-row .watch-cta { margin-top: 0; }

/* ─── FAQ accordion (lives inside .local-section right column) ─── */
.faq-list { width: 100%; }
.faq-item {
  border-top: 1px solid var(--grey-200);
}
.faq-item:last-child { border-bottom: 1px solid var(--grey-200); }
.faq-item details { padding: 16px 4px; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  font-size: var(--fs-h3);
  color: var(--red);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  color: var(--red);
  font-size: 1.5rem;
  transition: transform 0.2s;
}
.faq-item details[open] summary::after { content: "−"; }
.faq-item details > div {
  padding-top: 10px;
  font-size: var(--fs-body);
  color: var(--red);
  line-height: 1.65;
  font-family: var(--font-body);
}

/* ─── Final CTA (clockwork) ─── */
.final-cta {
  background-color: var(--red);
  padding: var(--band-xl) var(--pad-x);
  text-align: center;
}
.final-cta h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-light);
  color: var(--cream-500);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 10px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta p {
  color: rgba(var(--crema-rgb), 0.78);
  font-size: var(--fs-body);
  line-height: 1.55;
  margin-bottom: 24px;
  font-family: var(--font-body);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta__btn {
  display: inline-block;
  padding: 10px 26px;
  background-color: var(--crema);
  color: var(--clockwork);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 500;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.final-cta__btn:hover { transform: scale(1.04); }
/* ── Responsive ──────────────────────────────────────────────
   The nav and footer rules that shared this block are gone;
   chrome.css owns them for every page now. */

@media (min-width: 768px) and (max-width: 1024px) {
  .problem-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .outcomes-list { grid-template-columns: 1fr; }
  .local-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-content h1 { font-size: var(--fs-h1); }
}

@media (max-width: 767px) {
  .hero { min-height: auto; padding: var(--band-lg) var(--pad-x) var(--band-md); flex-direction: column; align-items: stretch; }
  .hero-content h1 { font-size: 1.75rem; line-height: 1.15; }
  .hero-content p { font-size: 0.9375rem; }
  .hero-content .btn-primary { white-space: nowrap; }
  .hero-secondary-cta { position: static; transform: none; display: inline-block; margin-top: 16px; }
  .problem-grid { grid-template-columns: 1fr; gap: 16px; }
  .problem-item { padding: 28px 24px; }
  .problem-item h3 { font-size: var(--fs-h3); }
  .outcomes-list { grid-template-columns: 1fr; }
  .outcomes-section h2 { font-size: 1.75rem; }
  .local-grid { grid-template-columns: 1fr; gap: 40px; }
  .local-section h2 { font-size: 1.75rem; }
  .values-card { max-width: 100%; }
  .faq-item summary { font-size: var(--fs-body); }
  .final-cta { padding: var(--band-md) var(--pad-x); }
  .final-cta h2 { font-size: 1.75rem; }
}

@media (hover: none) {
  .final-cta__btn:hover { transform: none; }
  .btn-primary:hover { transform: none; }
}

/* The marquee runs for 55s on a loop and had no reduced-motion guard. */
@media (prefers-reduced-motion: reduce) {
  .outcomes-card-column--up,
  .outcomes-card-column--down { animation-play-state: paused; }
}
