/* ============================================================
         DESIGN SYSTEM TOKENS — Bastidas v0.2
      ============================================================ */
:root {
  /* Marca */
  --brand-700: #2f5d50;
  --brand-600: #3b7263;
  --brand-500: #4e8c7a;
  --brand-100: #dceae4;
  --brand-050: #f1f7f4;

  /* Tierra / cálido */
  --warm-600: #b8754c;
  --warm-700: #a05a31;
  --warm-300: #e8c9b0;
  --warm-100: #f6ede4;

  /* Acento confianza */
  --accent-500: #9f7e1b;

  /* Neutros */
  --ink-900: #1c2623;
  --ink-700: #3a4641;
  --ink-500: #616d69;
  --line-200: #e2e8e4;
  --ground: #ffffff;
  --ground-alt: #f7faf8;

  /* Semánticos */
  --success-600: #1f6b42;
  --warning-600: #8a6420;
  --danger-600: #b4453a;
  --info-600: #3b7263;

  /* Tipografía */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --fs-display: clamp(2.25rem, 5vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 3.5vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 1.4vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-caption: 0.75rem;

  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-normal: 1.6;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Espaciado */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --section-y: clamp(3rem, 8vw, 6rem);

  /* Radios */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-sm:
    0 1px 2px rgba(28, 38, 35, 0.06), 0 1px 3px rgba(28, 38, 35, 0.08);
  --shadow-md:
    0 4px 12px rgba(28, 38, 35, 0.08), 0 2px 4px rgba(28, 38, 35, 0.06);
  --shadow-lg:
    0 12px 32px rgba(28, 38, 35, 0.12), 0 4px 8px rgba(28, 38, 35, 0.06);

  --maxw-content: 1200px;
  --maxw-prose: 68ch;
}

/* ============================================================
         RESET + BASE
      ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--ink-900);
  background: var(--ground);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

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

/* ============================================================
         UTILS
      ============================================================ */
.container {
  width: 100%;
  max-width: var(--maxw-content);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
         BOTONES
      ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
  min-height: 44px;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--brand-700);
  color: #fff;
  border-color: var(--brand-700);
}
.btn-primary:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--brand-700);
  border-color: var(--brand-700);
}
.btn-secondary:hover {
  background: var(--brand-050);
}

.btn-light {
  background: #fff;
  color: var(--brand-700);
  border-color: #fff;
}
.btn-light:hover {
  background: var(--brand-100);
  border-color: var(--brand-100);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: var(--fs-caption);
  min-height: 36px;
}

/* ============================================================
         SECTION HEADINGS
      ============================================================ */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--ink-900);
  font-optical-sizing: auto;
}

.section-lead {
  font-size: var(--fs-lead);
  color: var(--ink-700);
  line-height: var(--lh-normal);
  max-width: 56ch;
}

.section-header {
  margin-bottom: var(--space-12);
}

.section-header--center {
  text-align: center;
}
.section-header--center .section-lead {
  margin-inline: auto;
}

/* ============================================================
         HEADER / NAV
      ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ground);
  border-bottom: 1px solid var(--line-200);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 68px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  text-decoration: none;
}

.logo__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: var(--fw-semibold);
  color: var(--brand-700);
  letter-spacing: -0.01em;
}

.logo__tagline {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: var(--fw-medium);
  color: var(--ink-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.site-nav__link {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--ink-700);
  border-radius: var(--radius-sm);
  transition:
    color 0.15s,
    background 0.15s;
  white-space: nowrap;
}

.site-nav__link:hover {
  color: var(--brand-700);
  background: var(--brand-050);
}

.site-nav__link:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

.site-nav__link--active {
  color: var(--brand-700);
  font-weight: var(--fw-semibold);
  background: var(--brand-050);
}

.site-header__cta {
  flex-shrink: 0;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--ink-900);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(28, 38, 35, 0.55);
  backdrop-filter: blur(2px);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 90vw);
  background: var(--ground);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  gap: var(--space-4);
  overflow-y: auto;
}

.mobile-nav__close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--ink-700);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav__close:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

.mobile-nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-nav__list a {
  display: block;
  padding: 0.875rem var(--space-4);
  font-size: 1rem;
  font-weight: var(--fw-medium);
  color: var(--ink-700);
  border-radius: var(--radius-md);
  transition:
    background 0.15s,
    color 0.15s;
}

.mobile-nav__list a:hover,
.mobile-nav__list a[aria-current="page"] {
  background: var(--brand-050);
  color: var(--brand-700);
}

.mobile-nav__cta {
  margin-top: var(--space-4);
}

.mobile-nav__cta .btn {
  width: 100%;
  justify-content: center;
}

/* ============================================================
         HERO — EXPERIENCIA (compacto, con trust bar integrada)
      ============================================================ */
.exp-hero {
  background: var(--warm-100);
  padding-block: clamp(2.5rem, 7vw, 5rem);
  position: relative;
  overflow: hidden;
}

.exp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 80% 20%,
      rgba(47, 93, 80, 0.07) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 10% 90%,
      rgba(184, 117, 76, 0.06) 0%,
      transparent 45%
    );
  pointer-events: none;
}

.exp-hero__inner {
  position: relative;
  text-align: center;
  max-width: 740px;
  margin-inline: auto;
}

.exp-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--ground);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.875rem;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  color: var(--ink-700);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.exp-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
  flex-shrink: 0;
}

.exp-hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--ink-900);
  font-optical-sizing: auto;
  margin-bottom: var(--space-4);
}

.exp-hero__lead {
  font-size: var(--fs-lead);
  color: var(--ink-700);
  line-height: var(--lh-normal);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

/* ============================================================
   HERO CON IMAGEN — overlay verde + texto blanco (contenido centrado)
============================================================ */
.exp-hero--image {
  background: var(--brand-700);
}
.exp-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.exp-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.exp-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Uniforme (no diagonal): el contenido va centrado, debe leerse en el centro. */
  background: linear-gradient(
    180deg,
    rgba(26, 36, 32, 0.82) 0%,
    rgba(47, 93, 80, 0.78) 100%
  );
}
.exp-hero--image .container {
  position: relative;
  z-index: 2;
}
.exp-hero--image .exp-hero__title {
  color: #fff;
}
.exp-hero--image .exp-hero__lead {
  color: rgba(255, 255, 255, 0.9);
}

/* Trust numbers strip */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: var(--space-10);
  background: var(--ground);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.trust-strip__item {
  flex: 1;
  min-width: 160px;
  padding: var(--space-6) var(--space-4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  border-right: 1px solid var(--line-200);
}

.trust-strip__item:last-child {
  border-right: none;
}

.trust-strip__number {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--fw-bold);
  color: var(--warm-600);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-optical-sizing: auto;
}

.trust-strip__label {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--ink-500);
  line-height: 1.3;
}

.trust-strip__stars {
  display: flex;
  gap: 2px;
  justify-content: center;
  color: var(--accent-500);
}

/* ============================================================
         TESTIMONIOS GRID
      ============================================================ */
.testimonios {
  background: var(--ground);
  padding-block: var(--section-y);
}

.testimonios__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

/* Card grande ocupa 2 columnas en escritorio */
.testimonio-card {
  background: var(--warm-100);
  border: 1px solid var(--warm-300);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.testimonio-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.testimonio-card--featured {
  grid-column: span 2;
  background: var(--brand-050);
  border-color: var(--brand-100);
}

.testimonio-card__quote {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.8;
  color: var(--warm-300);
  font-optical-sizing: auto;
  user-select: none;
  pointer-events: none;
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
}

.testimonio-card--featured .testimonio-card__quote {
  color: var(--brand-100);
}

.testimonio-card__stars {
  display: flex;
  gap: 2px;
  color: var(--accent-500);
  margin-top: var(--space-6);
}

.testimonio-card__text {
  font-size: var(--fs-body);
  font-style: italic;
  color: var(--ink-700);
  line-height: var(--lh-normal);
  flex: 1;
  position: relative;
}

.testimonio-card--featured .testimonio-card__text {
  font-size: var(--fs-lead);
}

.testimonio-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(28, 38, 35, 0.08);
  margin-top: auto;
}

.testimonio-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: var(--fw-bold);
  flex-shrink: 0;
  font-optical-sizing: auto;
}

.testimonio-card--featured .testimonio-card__avatar {
  width: 52px;
  height: 52px;
  font-size: 1.2rem;
}

.testimonio-card__author-name {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--ink-900);
}

.testimonio-card__author-label {
  font-size: var(--fs-caption);
  color: var(--ink-500);
}

/* ============================================================
         SECCIÓN GOOGLE REVIEWS
      ============================================================ */
.google-reviews {
  background: var(--ground-alt);
  padding-block: var(--section-y);
}

.google-reviews__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.google-reviews__text .section-lead {
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
}

.google-reviews__card {
  background: var(--ground);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

.google-reviews__g-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.google-reviews__g-logo-text {
  font-size: 1.35rem;
  font-weight: var(--fw-bold);
  color: var(--ink-700);
  letter-spacing: -0.02em;
}

.google-reviews__score {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: var(--fw-bold);
  color: var(--warm-600);
  line-height: 1;
  font-optical-sizing: auto;
  font-variant-numeric: tabular-nums;
}

.google-reviews__stars {
  display: flex;
  gap: 4px;
  justify-content: center;
  color: var(--accent-500);
}

.google-reviews__count {
  font-size: var(--fs-small);
  color: var(--ink-500);
}

.google-reviews__divider {
  width: 48px;
  height: 1px;
  background: var(--line-200);
}

.google-reviews__cta-text {
  font-size: var(--fs-small);
  color: var(--ink-700);
  line-height: var(--lh-normal);
}

/* ============================================================
         RESULTADOS MÉTRICAS
      ============================================================ */
.resultados {
  background: var(--ground);
  padding-block: var(--section-y);
}

.resultados__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.resultado-card {
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.resultado-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  background: var(--ground);
}

.resultado-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--ground);
  border: 1px solid var(--brand-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-700);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.resultado-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  color: var(--ink-900);
  font-optical-sizing: auto;
  line-height: var(--lh-snug);
}

.resultado-card__desc {
  font-size: var(--fs-small);
  color: var(--ink-700);
  line-height: var(--lh-normal);
  flex: 1;
}

/* ============================================================
         CTA BAND
      ============================================================ */
.cta-band {
  background: var(--brand-700);
  padding-block: var(--space-16);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(
    circle at 70% 50%,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.cta-band__inner {
  text-align: center;
  position: relative;
}

.cta-band__label {
  display: inline-block;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-100);
  margin-bottom: var(--space-4);
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: #fff;
  line-height: var(--lh-snug);
  margin-bottom: var(--space-6);
  font-optical-sizing: auto;
}

.cta-band__lead {
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-8);
  max-width: 52ch;
  margin-inline: auto;
}

.cta-band__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  align-items: center;
}

.cta-band__contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
  margin-top: var(--space-6);
}

.cta-band__contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-small);
}

.cta-band__contact-item a {
  color: #fff;
  font-weight: var(--fw-medium);
}

.cta-band__contact-item a:hover {
  text-decoration: underline;
}

/* ============================================================
         FOOTER
      ============================================================ */
.site-footer {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.65);
  padding-block: var(--space-12) var(--space-8);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-col__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-col__logo-icon {
  width: 34px;
  height: 34px;
}

.footer-col__logo-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  color: #fff;
  font-optical-sizing: auto;
}

.footer-col__desc {
  font-size: var(--fs-small);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-4);
}

.footer-col__colegiado {
  font-size: var(--fs-caption);
  color: var(--warm-300);
  font-weight: var(--fw-medium);
}

.footer-col__title {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: #fff;
  margin-bottom: var(--space-4);
  letter-spacing: 0.04em;
}

.footer-col__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col__list a {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.15s;
}

.footer-col__list a:hover {
  color: #fff;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-3);
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--brand-500);
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s;
}
.footer-contact-item a:hover {
  color: #fff;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.site-footer__copyright {
  font-size: var(--fs-caption);
}

.site-footer__legal {
  display: flex;
  gap: var(--space-4);
}

.site-footer__legal a {
  font-size: var(--fs-caption);
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.15s;
}
.site-footer__legal a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
         WHATSAPP FLOAT
      ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 300;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 16px rgba(37, 211, 102, 0.4),
    var(--shadow-md);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  color: #fff;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow:
    0 8px 24px rgba(37, 211, 102, 0.5),
    var(--shadow-lg);
}

.whatsapp-float:focus-visible {
  outline: 2px solid #128c7e;
  outline-offset: 3px;
}

/* ============================================================
         RESPONSIVE — TABLET (max 900px)
      ============================================================ */
@media (max-width: 900px) {
  .trust-strip {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .trust-strip__item {
    min-width: 140px;
    flex: 1 1 140px;
    border-right: 1px solid var(--line-200);
    border-bottom: 1px solid var(--line-200);
  }

  .trust-strip__item:nth-child(2) {
    border-right: none;
  }

  .trust-strip__item:last-child {
    border-bottom: none;
  }

  .testimonios__grid {
    grid-template-columns: 1fr;
  }

  .testimonio-card--featured {
    grid-column: span 1;
  }

  .google-reviews__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .resultados__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .site-nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

/* ============================================================
         RESPONSIVE — MOBILE (max 600px)
      ============================================================ */
@media (max-width: 600px) {
  .container {
    padding-inline: var(--space-4);
  }
  /* SEM-202: consistencia con SEM-201 — ocultar el CTA del header en
           móvil (se cortaba junto al logo). Reserva accesible vía menú móvil. */
  .site-header__cta {
    display: none;
  }

  .trust-strip {
    border-radius: var(--radius-lg);
  }

  .trust-strip__item {
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--line-200);
  }

  .trust-strip__item:last-child {
    border-bottom: none;
  }

  .resultados__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band__buttons {
    flex-direction: column;
  }
  .cta-band__buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .google-reviews__card {
    padding: var(--space-6);
  }
}

.exp-hero .container {
  position: relative;
  z-index: 2;
}
/* NOTA: no aclarar el overlay en móvil — el título/lead del hero--image son
   blancos y necesitan el overlay oscuro base en TODOS los tamaños (el override
   claro de #26 dejaba blanco-sobre-blanco ilegible, cazado 2026-07-02). */

/* ============================================================
   MURO DE DEPORTISTAS — galería uniforme + lightbox (SOTA)
   Receta: grid rígido 3:4, fondo claro, cohesión por filtro común,
   hover contenido (zoom + lift + color), reveal escalonado on-scroll.
============================================================ */
.exp-wall {
  background: var(--ground-alt);
  padding-block: var(--section-y);
}

/* Cada uno de los tres bloques (balonmano · deportistas · clubes). */
.exp-wall__block + .exp-wall__block {
  margin-top: var(--space-16);
}
.exp-wall__block-header {
  text-align: center;
  margin-bottom: var(--space-8);
}
.exp-wall__block-title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--ink-900);
}
.exp-wall__block-lead {
  margin: var(--space-3) auto 0;
  max-width: 60ch;
  font-size: var(--fs-body);
  color: var(--ink-700);
  line-height: var(--lh-normal);
}

.exp-wall__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  /* Flexbox centrado en vez de grid: miniaturas de ancho fijo (~150px) que se
     reparten en tantas por fila como quepan, y CADA fila —incluidas las
     incompletas (p.ej. las 2 de balonmano o la última de clubes)— queda
     CENTRADA. Es lo que un grid con `1fr` no permite: ahí las filas a medias
     se alinean a la izquierda y desencuadran. */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.exp-wall__item {
  margin: 0;
  flex: 0 0 150px;
  max-width: 150px;
  /* Por defecto VISIBLE: el contenido nunca depende de JS/scroll para verse.
     El estado oculto solo se activa cuando el JS marca el grid como listo para
     animar (.is-reveal-ready), evitando que un fallo deje el muro en blanco. */
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  transition-delay: calc(var(--i, 0) * 40ms);
}
.exp-wall__grid.is-reveal-ready .exp-wall__item {
  opacity: 0;
  transform: translateY(16px);
}
.exp-wall__grid.is-reveal-ready .exp-wall__item.is-visible {
  opacity: 1;
  transform: none;
}

.exp-wall__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.exp-wall__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  /* Filtro base común: cohesión visual entre fotos de fuentes dispares */
  filter: saturate(0.92) brightness(0.99);
  transition:
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.4s ease;
}
/* Veladura de marca muy sutil para que todas pertenezcan al mismo sistema */
.exp-wall__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(47, 93, 80, 0.22) 100%
  );
  opacity: 0.65;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
/* Icono "lupa" que aparece en hover, señal de que la foto se amplía */
.exp-wall__btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%) scale(0.8);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232f5d50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E")
    center / 18px no-repeat;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  z-index: 2;
  pointer-events: none;
}
.exp-wall__btn:hover,
.exp-wall__btn:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.exp-wall__btn:hover img,
.exp-wall__btn:focus-visible img {
  transform: scale(1.06);
  filter: saturate(1.05) brightness(1.02);
}
.exp-wall__btn:hover::after,
.exp-wall__btn:focus-visible::after {
  opacity: 0;
}
.exp-wall__btn:hover::before,
.exp-wall__btn:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.exp-wall__btn:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
}

/* Reveal nativo SOTA (scroll-driven) donde esté soportado */
@media (prefers-reduced-motion: reduce) {
  .exp-wall__grid.is-reveal-ready .exp-wall__item,
  .exp-wall__grid.is-reveal-ready .exp-wall__item.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---- Lightbox (dialog nativo) ---- */
/* El <dialog> ocupa TODO el viewport y centra su contenido con flex. Así la foto
   queda en el centro real de la pantalla (sin el ancla arriba-izquierda que da
   el posicionamiento intrínseco del dialog cuando solo ajusta a su contenido). */
.exp-lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.exp-lightbox::backdrop {
  background: rgba(15, 28, 24, 0.82);
  backdrop-filter: blur(8px);
}
.exp-lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Contenedor interno: limita el tamaño de la foto y ancla los controles. */
.exp-lightbox__figure {
  position: relative;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92vw, 1100px);
  height: min(88vh, 1100px);
}
.exp-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  /* Entrada suave fade + scale */
  animation: exp-lb-in 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes exp-lb-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.exp-lightbox__close,
.exp-lightbox__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  z-index: 3;
}
.exp-lightbox__close:hover,
.exp-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.24);
}
.exp-lightbox__close:focus-visible,
.exp-lightbox__nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
/* Aspa de cierre: fija en la esquina superior derecha del viewport, bien visible
   (fondo sólido oscuro + hover claro). Cierra con un clic. */
.exp-lightbox__close {
  position: fixed;
  top: clamp(12px, 3vh, 28px);
  right: clamp(12px, 3vw, 28px);
  width: 46px;
  height: 46px;
  background: rgba(15, 28, 24, 0.6);
}
.exp-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-700);
}
/* Flechas: fijas a los lados del viewport, siempre dentro de pantalla. */
.exp-lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(15, 28, 24, 0.5);
}
.exp-lightbox__nav:hover {
  transform: translateY(-50%) scale(1.08);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-700);
}
.exp-lightbox__nav--prev {
  left: clamp(12px, 3vw, 36px);
}
.exp-lightbox__nav--next {
  right: clamp(12px, 3vw, 36px);
}
.exp-lightbox__counter {
  position: fixed;
  bottom: clamp(14px, 3vh, 30px);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
}

/* ---- Responsive del muro y lightbox ---- */
@media (max-width: 600px) {
  .exp-wall__grid {
    gap: var(--space-2);
  }
  .exp-wall__item {
    /* 3 por fila en móvil, centradas. El calc descuenta los 2 gaps de la fila. */
    flex-basis: calc((100% - 2 * var(--space-2)) / 3);
    max-width: calc((100% - 2 * var(--space-2)) / 3);
  }
  /* Controles algo más pequeños en móvil (las posiciones ya son seguras por
     los clamp() del bloque base, que en móvil resuelven a su mínimo). */
  .exp-lightbox__nav {
    width: 42px;
    height: 42px;
  }
  .exp-lightbox__close {
    width: 40px;
    height: 40px;
  }
}

/* ============================================================
   RESEÑAS RECIENTES (SEM-321) — curado mensual desde el perfil
   de Google (SSoT: bastidas_recent_reviews en inc/seo.php).
   Tokens ya verificados AA: stars accent-500 3.74:1, fecha
   ink-500 5.39:1, texto ink-700 sobre blanco.
   ============================================================ */
.google-reviews__fresh {
  margin-top: var(--space-10);
}

.google-reviews__fresh-title {
  font-family: var(--font-display);
  font-size: var(--fs-h4, 1.25rem);
  color: var(--ink-900);
  margin-bottom: var(--space-6);
}

.google-reviews__fresh-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.fresh-review {
  background: var(--ground);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.fresh-review__stars {
  display: flex;
  gap: 2px;
  color: var(--accent-500);
}

.fresh-review__text {
  margin: 0;
  font-size: var(--fs-small, 0.9rem);
  line-height: 1.6;
  color: var(--ink-700);
  flex: 1;
}

.fresh-review__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--line-200);
  padding-top: var(--space-4);
}

.fresh-review__author {
  font-weight: var(--fw-semibold);
  color: var(--ink-900);
  font-size: var(--fs-small, 0.9rem);
}

.fresh-review__date {
  font-size: var(--fs-caption);
  color: var(--ink-500);
}

@media (max-width: 1024px) {
  .google-reviews__fresh-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .google-reviews__fresh-grid {
    grid-template-columns: 1fr;
  }
}
