/* ═══════════════════════════════════════════════════════════ */
/* DOCTOR MIKE DYNAMICS LAYER                                  */
/* Overlays on existing styles — dark/light rhythm,            */
/* larger type, more whitespace, calmer animations             */
/* ═══════════════════════════════════════════════════════════ */

/* ─── Global overrides ───────────────────────────────────── */
body {
  background: #f8f8f8;
}

/* ─── Nav — Always solid white ───────────────────────────── */
.nav {
  background: #ffffff;
  border: none;
  border-bottom: 1px solid rgba(100, 169, 158, 0.16);
  box-shadow: 0 2px 12px rgba(42, 61, 58, 0.05);
  border-radius: 0;
  top: 0;
  left: 0;
  right: 0;
}

.nav__logo-name { color: var(--title); }
.nav__logo-tag  { color: var(--secondary); }
.nav__links a   { color: var(--secondary); }
.nav__links a:hover { color: var(--title); }
.nav__hamburger span { background: var(--title); }

.nav--scrolled {
  background: #ffffff;
  border-bottom-color: rgba(100, 169, 158, 0.24);
  box-shadow: 0 4px 18px rgba(42, 61, 58, 0.08);
}

.nav__progress { background: var(--cta); }

/* ─── DOCTOR MIKE HERO — Photo mosaic + centered text ────── */
.dm-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0c1a18;
  /* Push content below the fixed white nav so the eyebrow never gets clipped.
     Top padding clears the nav (logo 104px + ~30px padding = ~134px). */
  padding-top: 140px;
  padding-bottom: 5rem;
  box-sizing: border-box;
}

/* ─── Background slider — full-bleed photos crossfade ────── */
.dm-hero__slider {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.dm-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
              transform 7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.dm-hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .dm-hero__slide { transition: opacity 0.3s ease, transform 0s; transform: scale(1); }
}

/* Dark overlay — gradient for text legibility */
.dm-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(12,26,24,0.55) 0%, rgba(12,26,24,0.75) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(12,26,24,0.0) 0%, rgba(12,26,24,0.55) 75%);
}

/* Top-far-left meta tag (OZ-style "NEXT CLASS" indicator) */
.dm-hero__meta {
  position: absolute;
  top: clamp(96px, 12vh, 130px);
  left: clamp(1rem, 3vw, 2.25rem);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--vo-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  white-space: nowrap;
}

.dm-hero__meta-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cta, #e79440);
  box-shadow: 0 0 0 0 rgba(231, 148, 64, 0.6);
  animation: dmHeroMetaPulse 2s ease-in-out infinite;
}

@keyframes dmHeroMetaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231, 148, 64, 0.6); }
  50%      { box-shadow: 0 0 0 8px rgba(231, 148, 64, 0); }
}

/* Content overlay */
.dm-hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  max-width: 1320px;
  width: 100%;
  padding: var(--space-2xl) var(--space-lg);
}

.dm-hero__content--left {
  justify-content: flex-start;
}

.dm-hero__content--left .dm-hero__text {
  text-align: left;
  max-width: 620px;
}

.dm-hero__content--centered {
  justify-content: center;
}

.dm-hero__content--centered .dm-hero__text {
  text-align: center;
  max-width: 720px;
}

.dm-hero__text {
  text-align: left;
}

/* Centered modifier centers child blocks */
.dm-hero__content--centered .dm-hero__subtitle,
.dm-hero__content--centered .dm-hero__trust,
.dm-hero__content--centered .dm-hero__social,
.dm-hero__content--centered .dm-hero__actions {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

/* Left modifier — keep blocks left-aligned (resets any inherited center) */
.dm-hero__content--left .dm-hero__subtitle,
.dm-hero__content--left .dm-hero__trust,
.dm-hero__content--left .dm-hero__social,
.dm-hero__content--left .dm-hero__actions {
  margin-left: 0;
  margin-right: auto;
  justify-content: flex-start;
}

/* ─── Hero text slide-up entrance with stagger ─────────────
   Direct children of .dm-hero__text fade up from translateY(40px).
   Plays once on load (no observer needed — hero is above fold). */
.dm-hero__text > * {
  opacity: 0;
  transform: translateY(40px);
  animation: dmHeroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.dm-hero__text > *:nth-child(1) { animation-delay: 0.10s; }
.dm-hero__text > *:nth-child(2) { animation-delay: 0.22s; }
.dm-hero__text > *:nth-child(3) { animation-delay: 0.34s; }
.dm-hero__text > *:nth-child(4) { animation-delay: 0.46s; }
.dm-hero__text > *:nth-child(5) { animation-delay: 0.58s; }
.dm-hero__text > *:nth-child(6) { animation-delay: 0.70s; }

@keyframes dmHeroRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Rotating headline stack ─────────────────────────────
   Three slides stacked at the top of .dm-hero__text. Only the
   active slide is visible. Each child (eyebrow/title/subtitle)
   re-animates in with stagger when its slide becomes active.   */
.dm-hero__rotating {
  display: grid;
  grid-template-areas: "stack";
  width: 100%;
  margin-bottom: 1.5rem;
}

.dm-hero__rotating-slide {
  grid-area: stack;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.dm-hero__rotating-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Each child of a rotating slide animates from translateY+fade.
   Override the .dm-hero__text > * animation by using transition. */
.dm-hero__rotating-slide > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  animation: none !important;
}

.dm-hero__rotating-slide.is-active > *:nth-child(1) {
  opacity: 1; transform: none;
  transition-delay: 0.1s;
}
.dm-hero__rotating-slide.is-active > *:nth-child(2) {
  opacity: 1; transform: none;
  transition-delay: 0.22s;
}
.dm-hero__rotating-slide.is-active > *:nth-child(3) {
  opacity: 1; transform: none;
  transition-delay: 0.34s;
}

.dm-hero__rotating-slide.is-active > *:nth-child(4) {
  opacity: 1; transform: none;
  transition-delay: 0.46s;
}

/* ─── Per-slide layout dynamism ────────────────────────────
   Each slide adds its own decorative element under the
   subtitle so the bottom of the text block feels different. */

/* Slide 0 — chips row (compact pill list) */
.dm-hero__chips {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.dm-hero__chips li {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Slide 1 — single big stat badge */
.dm-hero__badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  padding: 0.6rem 1rem 0.6rem 0;
  border-left: 3px solid var(--cta, #e79440);
  padding-left: 1rem;
}

.dm-hero__badge-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--cta, #e79440);
  letter-spacing: -0.02em;
  line-height: 1;
}

.dm-hero__badge-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.01em;
  max-width: 180px;
  line-height: 1.3;
}

/* Slide-specific tweaks for stronger differentiation */
.dm-hero__rotating-slide--feature .dm-hero__title em {
  font-style: italic;
  color: var(--cta, #e79440);
  font-weight: 400;
}

.dm-hero__rotating-slide--bold .dm-hero__title {
  letter-spacing: -0.025em;
  line-height: 1;
}

.dm-hero__rotating-slide--intro .dm-hero__title em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
}

.dm-hero__subtitle strong {
  color: #ffffff;
  font-weight: 600;
}

/* ─── Instagram profile chip (replaces social row) ────────
   Compact card with IG icon + handle + Ver perfil CTA. */
.dm-hero__ig {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin: var(--space-md) 0 var(--space-lg);
  padding: 0.6rem 1rem 0.6rem 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  text-decoration: none;
  color: #ffffff;
  width: fit-content;
  transition: background 0.3s ease, transform 0.3s var(--ease), border-color 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dm-hero__ig:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
}

.dm-hero__ig-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  flex-shrink: 0;
}

.dm-hero__ig-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.2;
}

.dm-hero__ig-handle {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
}

.dm-hero__ig-cta {
  font-family: var(--vo-mono, ui-monospace, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.15rem;
  transition: color 0.3s ease;
}

.dm-hero__ig:hover .dm-hero__ig-cta {
  color: var(--cta, #e79440);
}

/* ─── Slide 1 row: IG chip + location card side-by-side ──── */
.dm-hero__intro-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: stretch;
}

@media (max-width: 600px) {
  .dm-hero__intro-row { flex-direction: column; gap: 0.65rem; }
}

/* ─── Location card (creative + subtle) ──────────────────── */
.dm-hero__loc {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1rem 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  text-decoration: none;
  color: #ffffff;
  width: fit-content;
  max-width: 100%;
  transition: background 0.3s ease, transform 0.3s var(--ease), border-color 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dm-hero__loc:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--cta, #e79440);
  transform: translateY(-2px);
}

.dm-hero__loc-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cta, #e79440);
  color: #ffffff;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 0 0 0 rgba(231, 148, 64, 0.55);
  animation: dmHeroLocPulse 2.4s ease-in-out infinite;
}

@keyframes dmHeroLocPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231, 148, 64, 0.55); }
  50%      { box-shadow: 0 0 0 10px rgba(231, 148, 64, 0); }
}

.dm-hero__loc-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.dm-hero__loc-line {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.005em;
}

.dm-hero__loc-sub {
  font-family: var(--vo-mono, ui-monospace, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.2rem;
}

@media (prefers-reduced-motion: reduce) {
  .dm-hero__loc-pin { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dm-hero__text > *,
  .dm-hero__rotating-slide > * {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}

.dm-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
}

.dm-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  font-weight: 600;
  color: #fff;
  line-height: 0.98;
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
  /* Allow long titles to break — `<br>` provides intentional breaks
     where wanted; nowrap was forcing overflow at 800–1300px widths. */
  overflow-wrap: anywhere;
}

.dm-hero__subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: var(--space-lg);
}

.dm-hero__trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.dm-hero__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.dm-hero__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Legacy doctor photo block — kept for safety (no longer rendered) */
.dm-hero__photo { display: none; }

/* ─── Bottom-right rotator: 3 small cards (OZ-style selector) ─
   Compact card row anchored to the bottom-right corner of the hero. */
.dm-hero__rotator {
  position: absolute;
  right: clamp(1rem, 3vw, 2.25rem);
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: clamp(360px, 38vw, 520px);
}

.dm-hero__rotator-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.75rem 0.65rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  text-decoration: none;
  color: #ffffff;
  opacity: 0.4;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              border-top-color 0.5s ease;
  cursor: pointer;
  position: relative;
}

.dm-hero__rotator-card:hover {
  opacity: 0.7;
}

.dm-hero__rotator-card.is-active {
  opacity: 1;
}

/* Active card highlights its top border with a brand-colored growing line */
.dm-hero__rotator-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--cta, #e79440);
  /* Inactive: snap back to 0 immediately so it doesn't linger */
  transition: width 0s linear;
}

.dm-hero__rotator-card.is-active::before {
  width: 100%;
  /* Active: fill from 0 to 100% over the rotation interval */
  transition: width 3.5s linear;
}

.dm-hero__rotator-num {
  font-family: var(--vo-mono, ui-monospace, monospace);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cta, #e79440);
  font-weight: 600;
}

.dm-hero__rotator-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: #ffffff;
}

.dm-hero__rotator-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  width: fit-content;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.dm-hero__rotator-cta svg {
  width: 11px;
  height: 11px;
}

.dm-hero__rotator-card:hover .dm-hero__rotator-cta {
  background: #ffffff;
  color: var(--bg-dark, #2a3d3a);
  border-color: #ffffff;
}

.dm-hero__rotator-card.is-active .dm-hero__rotator-cta {
  border-color: rgba(255, 255, 255, 0.85);
}

/* ─── Slider progress dots — hidden when rotator row is shown
   (the rotator's top-line acts as the progress indicator instead). */
.dm-hero__progress {
  display: none;
}

.dm-hero__progress-dot {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}

.dm-hero__progress-dot.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cta, #e79440);
  transform-origin: left center;
  animation: dmHeroProgressFill 3.5s linear forwards;
}

@keyframes dmHeroProgressFill {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

.btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}

.btn--ghost:hover {
  background: #fff;
  color: var(--bg-dark);
  border-color: #fff;
}

/* ─── Responsive hero ────────────────────────────────────── */
/* Tablet landscape & below — pull rotator in, scale type, keep nav clearance */
@media (max-width: 1024px) {
  .dm-hero__content { padding: var(--space-xl) var(--space-md); }
  .dm-hero__rotator { width: clamp(320px, 46vw, 480px); }
}

/* Tablet portrait — rotator becomes full-width strip at bottom,
   so reserve enough padding-bottom that text never sits under it. */
@media (max-width: 768px) {
  .dm-hero {
    min-height: auto;
    padding-top: 96px;
    /* Rotator strip + breathing room: ~210px */
    padding-bottom: 220px;
  }
  .dm-hero__content { padding: var(--space-lg) var(--space-md); }
  .dm-hero__title { font-size: clamp(2rem, 5.4vw, 2.6rem); }
  .dm-hero__subtitle { font-size: 0.98rem; line-height: 1.55; }
  .dm-hero__rotator {
    right: 1rem;
    left: 1rem;
    bottom: 1.25rem;
    width: auto;
  }
  .dm-hero__rotator-label { font-size: 0.78rem; }
  .dm-hero__meta { font-size: 0.6rem; top: 80px; left: 1rem; }
  /* IG chip + location card can stay inline but should wrap if needed */
  .dm-hero__intro-row { gap: 0.7rem; }
}

/* Mid-tablet gap (600–768) — the rotator is now full-width, so the
   3-card row still fits, but the title and badge text need scaling. */
@media (max-width: 700px) {
  .dm-hero { padding-bottom: 200px; }
  .dm-hero__title { font-size: clamp(1.95rem, 6.4vw, 2.4rem); }
  .dm-hero__badge { margin-top: 1rem; padding-left: 0.85rem; }
  .dm-hero__badge-num { font-size: 1.75rem; }
  .dm-hero__badge-label { font-size: 0.72rem; max-width: 160px; }
  .dm-hero__chips li { font-size: 0.68rem; padding: 0.3rem 0.7rem; }
  /* Stack IG chip and location card on smaller phones */
  .dm-hero__intro-row { flex-direction: column; gap: 0.6rem; align-items: stretch; }
  .dm-hero__loc, .dm-hero__ig { width: 100%; }
  .dm-hero__loc-line { font-size: 0.78rem; }
  .dm-hero__loc-sub { font-size: 0.58rem; }
}

/* Small phones — collapse rotator to one active card so labels don't cram */
@media (max-width: 480px) {
  .dm-hero { padding-top: 88px; padding-bottom: 180px; }
  .dm-hero__title { font-size: 1.85rem; }
  .dm-hero__subtitle { font-size: 0.92rem; }
  .dm-hero__trust { flex-direction: column; gap: 0.3rem; }
  .dm-hero__dot { display: none; }
  .dm-hero__actions { flex-direction: column; align-items: stretch; }
  .dm-hero__actions .btn { width: 100%; max-width: 360px; justify-content: center; }
  /* Only show the active card to avoid cramping */
  .dm-hero__rotator {
    grid-template-columns: 1fr;
    bottom: 1rem;
  }
  .dm-hero__rotator-card:not(.is-active) { display: none; }
  .dm-hero__rotator-card { padding: 0.85rem 0.75rem 0; }
  .dm-hero__rotator-label { font-size: 0.85rem; }
  /* Meta tag can collide with title at top — keep it tight */
  .dm-hero__meta { top: 72px; font-size: 0.55rem; gap: 0.4rem; }
}

/* Very small phones (≤375px) — tighten everything to prevent overflow */
@media (max-width: 375px) {
  .dm-hero { padding-top: 80px; padding-bottom: 170px; }
  .dm-hero__title { font-size: 1.6rem; }
  .dm-hero__subtitle { font-size: 0.88rem; line-height: 1.5; }
  .dm-hero__eyebrow { font-size: 0.65rem; letter-spacing: 0.18em; margin-bottom: 0.65rem; }
  .dm-hero__loc { padding: 0.5rem 0.85rem 0.5rem 0.7rem; gap: 0.55rem; }
  .dm-hero__loc-pin { width: 26px; height: 26px; }
  .dm-hero__loc-line { font-size: 0.72rem; line-height: 1.3; }
  .dm-hero__loc-sub { font-size: 0.55rem; }
}

/* ═══════════════════════════════════════════════════════════ */
/* CTA FINAL FORM — Dark card embedded form                    */
/* ═══════════════════════════════════════════════════════════ */
.cta-final__card {
  padding: var(--space-2xl) var(--space-xl) var(--space-xl);
}

.cta-final__desc {
  margin-bottom: var(--space-xl);
}

.cta-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.cta-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.cta-form__field {
  margin-bottom: var(--space-md);
}

.cta-form__field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.4rem;
}

.cta-form__opt { font-weight: 400; color: rgba(255,255,255,0.3); }

.cta-form__field input,
.cta-form__field textarea {
  width: 100%;
  padding: 0.65rem 0;
  border: none;
  border-bottom: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: #fff;
  background: transparent;
  outline: none;
  transition: border-color 0.25s;
  min-height: 44px;
}

.cta-form__field input:focus,
.cta-form__field textarea:focus {
  border-bottom-color: var(--accent);
}

.cta-form__field input::placeholder,
.cta-form__field textarea::placeholder {
  color: rgba(255,255,255,0.2);
}

.cta-form__field input.error,
.cta-form__field textarea.error {
  border-bottom-color: #e74c3c;
}

.cta-form__field .error-message {
  font-size: 0.7rem;
  color: #e74c3c;
  margin-top: 0.25rem;
  display: none;
}

.cta-form__field .error-message.visible { display: block; }

.cta-form__field textarea {
  resize: vertical;
  min-height: 70px;
}

/* Chips — dark theme */
.cta-form__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.cta-form__chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cta-form__chip span {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 38px;
}

.cta-form__chip span:hover {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.cta-form__chip input:checked + span {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.cta-form__chip input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Submit button */
.cta-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  background: var(--cta);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: var(--shadow-cta);
  margin-top: var(--space-sm);
}

.cta-form__submit:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta-hover);
}

@media (max-width: 768px) {
  .cta-form__row { grid-template-columns: 1fr; gap: 0; }
  .cta-final__card { padding: var(--space-xl) var(--space-md); }
}

@media (max-width: 480px) {
  .cta-form__chips { gap: 0.3rem; }
  .cta-form__chip span { padding: 0.4rem 0.8rem; font-size: 0.75rem; }
  .cta-form__submit { width: 100%; justify-content: center; }
}

/* WhatsApp floating button styles moved to styles.css (used on every page) */

/* ─── Trayectoria — Dark premium section ──────────── */
/* Styles in styles.css — no override needed */

/* ─── Services — Alternating dark/light rhythm ───────────── */
.svc {
  padding: var(--space-3xl) 0 calc(var(--space-3xl) + 2rem);
}

.svc:nth-child(odd) {
  background: #fff;
}

.svc:nth-child(even) {
  background: #f8f8f8;
}

.svc--alt {
  background: #f8f8f8;
}

.svc__number {
  font-size: clamp(5rem, 10vw, 8rem);
  color: rgba(100, 169, 158, 0.06);
}

.svc:hover .svc__number {
  color: rgba(100, 169, 158, 0.12);
}

.svc__title {
  font-size: clamp(2rem, 4vw, 3rem);
}

/* ─── Testimonials — Dark section ────────────────────────── */
.testimonials {
  background: var(--bg-dark);
  padding: var(--space-3xl) 0 calc(var(--space-3xl) + 2rem);
}

.testimonials .section-tag { color: var(--accent); }
.testimonials .section-title { color: #fff; }
.testimonials .section-title em { color: var(--accent); }

.testimonial {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
  box-shadow: none;
}

.testimonial:hover {
  background: rgba(255,255,255,0.07);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.testimonial__text { color: rgba(255,255,255,0.8); }

.testimonial__author {
  border-top-color: rgba(255,255,255,0.06);
}

.testimonial__avatar {
  background: rgba(100,169,158,0.15);
  color: var(--accent);
}

.testimonial__name { color: #fff; }
.testimonial__procedure { color: rgba(255,255,255,0.4); }
.testimonial__stars svg { fill: var(--cta); }

/* ─── Marquee — Below hero, visible text ─────────────────── */
.marquee {
  background: #1a2b28;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-lg) 0;
}

.marquee__item {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.marquee__dot {
  background: var(--accent);
  opacity: 0.8;
  width: 7px;
  height: 7px;
}

/* ─── Turismo — Keep dark ────────────────────────────────── */
.turismo {
  background: #f8f8f8;
  padding: var(--space-3xl) 0 calc(var(--space-3xl) + 2rem);
}

/* ─── Gallery — Light ────────────────────────────────────── */
.galeria {
  background: #fff;
  padding: var(--space-3xl) 0 calc(var(--space-3xl) + 2rem);
}

/* ─── CTA Final — Dark ───────────────────────────────────── */
.cta-final {
  background: var(--bg-dark);
  padding: var(--space-3xl) 0 calc(var(--space-3xl) + 2rem);
}

.cta-final__card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
  box-shadow: none;
  animation: none;
}

.cta-final__title { color: #fff; }
.cta-final__title em { color: var(--accent); }
.cta-final__desc { color: rgba(255,255,255,0.6); }

/* ─── Footer — Darker ────────────────────────────────────── */
.footer {
  background: #1a2b28;
}

/* ─── Smoother, calmer animations ────────────────────────── */
.reveal {
  transform: translateY(50px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal-left {
  transform: translateX(-80px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal-right {
  transform: translateX(80px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal-scale {
  transform: scale(0.9);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

/* Disable tilt on cards for calmer feel */
.bento__item:hover,
.testimonial:hover {
  transform: translateY(-4px) !important;
}

/* Subtle image hover — no aggressive zoom */
.svc__img-wrapper:hover .svc__img {
  transform: scale(1.02);
}

.galeria__item:hover .galeria__photo {
  transform: scale(1.02);
}

/* ─── Larger section spacing ─────────────────────────────── */
.section-header {
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  letter-spacing: -0.02em;
}

/* ─── Bento cards — cleaner ──────────────────────────────── */
.bento__item {
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.bento__item:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.bento__item--accent {
  box-shadow: none;
}

/* ─── Gallery — cleaner cards ────────────────────────────── */
.galeria__item {
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border-radius: var(--radius-xl);
}

.galeria__item:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

/* ─── Mobile — dark hero adjustments ─────────────────────── */
@media (max-width: 1024px) {
  .nav__logo-name { color: #fff; }
  .nav__logo-tag { color: rgba(255,255,255,0.5); }
  .nav--scrolled .nav__logo-name { color: var(--title); }
  .nav--scrolled .nav__logo-tag { color: var(--secondary); }
}

@media (max-width: 768px) {
  .nav {
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0;
  }

  .nav--scrolled {
    top: 0;
    left: 0;
    right: 0;
  }

  .hero {
    padding-top: calc(70px + var(--space-xl));
  }

  .svc,
  .trayectoria,
  .turismo,
  .galeria,
  .testimonials,
  .cta-final {
    padding: var(--space-2xl) 0;
  }
}

/* ═══════════════════════════════════════════════════════════ */
/* HERO TRUST LINE — Animated formation credentials             */
/* ═══════════════════════════════════════════════════════════ */

.dm-hero__trust--marquee {
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  overflow: visible;
  width: fit-content;
  max-width: 100%;
}

.dm-hero__trust--marquee::before { content: none; }

.dm-hero__trust-track {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.dm-hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}

.dm-hero__trust-item:hover {
  transform: translateY(-1px);
  color: #fff;
}

.dm-hero__trust-item strong {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.dm-hero__trust-icon {
  color: var(--accent, #64a99e);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.dm-hero__trust-item:hover .dm-hero__trust-icon {
  transform: rotate(-8deg) scale(1.1);
  color: var(--cta, #e79440);
}

@keyframes dmTrustShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@keyframes dmTrustSweep {
  0%   { background-position: -50% 0; }
  60%  { background-position: 130% 0; }
  100% { background-position: 130% 0; }
}

/* ── Social strip ───────────────────────────────────── */
.dm-hero__social {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.dm-hero__social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.dm-hero__social-link svg {
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.dm-hero__social-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.dm-hero__social-link:hover svg {
  transform: rotate(-6deg) scale(1.12);
  color: var(--cta, #e79440);
}

@media (max-width: 640px) {
  .dm-hero__trust--marquee { padding: 0; }
  .dm-hero__trust-track { font-size: 0.7rem; gap: 0.55rem; justify-content: center; }
  .dm-hero__social { justify-content: center; }
  .dm-hero__social-link { padding: 0.4rem 0.75rem; font-size: 0.7rem; }
}
