/**
 * Clínica Bastidas — estilos del tema (portados del mockup B-Premium verificado).
 * Fuente: design/mockups/home-B-clinica-premium.html (CSS íntegro).
 * Los tokens base (paleta/tipo/spacing) también viven en theme.json para el editor;
 * aquí está el sistema visual completo de componentes y secciones.
 */

/* Fuentes self-hosted (variable, subset latin) — sin Google Fonts.
   font-display:swap evita FOIT; las dos van con preload en header.php. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-variable.woff2") format("woff2");
}

/* ============================================================
       DESIGN SYSTEM TOKENS — Bastidas v0.1
    ============================================================ */
: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-5: 1.25rem;
  --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);
}

/* Botón de WhatsApp — GLOBAL (antes solo en contacto.css; unificado en la
   iteración de coherencia de CTAs, SEM-346): verde oficial WhatsApp
   reconocible + tinta oscura (AA 7.84:1 — blanco sobre este verde da 1.98). */
.btn-whatsapp {
  background: #25d366;
  color: var(--ink-900);
  border-color: #25d366;
}
.btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.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-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 {
  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
    ============================================================ */
.hero {
  background: var(--ground-alt);
  padding-block: var(--section-y);
  position: relative;
  overflow: hidden;
}

/* Subtle geometric background pattern */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 70% 30%,
      rgba(78, 140, 122, 0.07) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(184, 117, 76, 0.05) 0%,
      transparent 45%
    );
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
}

.hero__content {
}

.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);
}

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

.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-6);
}

.hero__title em {
  color: var(--brand-700);
  font-style: italic;
}

.hero__lead {
  font-size: var(--fs-lead);
  color: var(--ink-700);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-8);
  max-width: 48ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--ground);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  max-width: fit-content;
}

.hero__trust-stars {
  display: flex;
  gap: 2px;
}

.hero__trust-stars svg {
  color: var(--accent-500);
}

.hero__trust-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

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

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

/* Hero visual / illustration side */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__illustration {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    145deg,
    var(--brand-100) 0%,
    var(--brand-050) 40%,
    var(--warm-100) 100%
  );
  border: 1px solid var(--line-200);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.hero__illustration-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

/* Abstract health/wellness SVG illustration */
.hero__svg-art {
  width: 100%;
  height: 100%;
}

/* Floating badge on illustration */
.hero__float-badge {
  position: absolute;
  bottom: var(--space-6);
  left: calc(-1 * var(--space-6));
  background: var(--ground);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hero__float-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.hero__float-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hero__float-number {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--warm-600);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.hero__float-label {
  font-size: var(--fs-caption);
  color: var(--ink-500);
  font-weight: var(--fw-medium);
}

/* Second float badge top-right */
.hero__float-badge-2 {
  position: absolute;
  top: var(--space-6);
  right: calc(-1 * var(--space-4));
  background: var(--ground);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero__float-badge-2-stars {
  display: flex;
  gap: 1px;
}

.hero__float-badge-2-text {
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  color: var(--ink-900);
}

/* ============================================================
       TRUST BAR (STATS)
    ============================================================ */
.trust-bar {
  background: var(--brand-700);
  padding-block: var(--space-8);
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.trust-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

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

.trust-item__label {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.03em;
}

.trust-bar__divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
  height: auto;
  display: none;
}

/* ============================================================
       SERVICES
    ============================================================ */
.services {
  background: var(--ground);
  padding-block: var(--section-y);
}

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

/* Highlight row of 3 featured services */
.services__row-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

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

.service-card {
  background: var(--ground);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-100);
  transform: translateY(-2px);
}

.service-card--featured {
  background: var(--brand-050);
  border-color: var(--brand-100);
}

.service-card--featured:hover {
  border-color: var(--brand-500);
  background: var(--ground);
}

.service-card__icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--ground);
  border: 1px solid var(--line-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-500);
  box-shadow: var(--shadow-sm);
}

.service-card--featured .service-card__icon-wrap {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #fff;
}

.service-card__tag {
  display: inline-block;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-700);
  padding: 0.2rem 0.6rem;
  background: var(--brand-100);
  border-radius: var(--radius-pill);
  width: fit-content;
}

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

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

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--brand-700);
  margin-top: auto;
  transition: gap 0.15s;
}

.service-card__link:hover {
  gap: var(--space-2);
}

.service-card__link:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================================
       WHY US
    ============================================================ */
.why-us {
  background: var(--ground-alt);
  padding-block: var(--section-y);
}

.why-us__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.why-us__reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

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

.reason-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-700);
  flex-shrink: 0;
}

.reason-card__title {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--ink-900);
}

.reason-card__desc {
  font-size: var(--fs-caption);
  color: var(--ink-500);
  line-height: var(--lh-normal);
}

/* Quote side */
.why-us__quote-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.why-us__quote-side .section-label {
  color: var(--brand-600);
}

/* ============================================================
       ABOUT / QUOTE
    ============================================================ */
.about-quote {
  background: var(--ground);
  padding-block: var(--section-y);
}

.about-quote__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-16);
  align-items: start;
}

.about-quote__profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  min-width: 220px;
}

.about-quote__avatar {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--brand-100), var(--brand-050));
  border: 2px solid var(--brand-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-quote__avatar-svg {
  color: var(--brand-500);
}

.about-quote__profile-info {
  text-align: center;
}

.about-quote__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: var(--fw-semibold);
  color: var(--ink-900);
  font-optical-sizing: auto;
}

.about-quote__role {
  font-size: var(--fs-caption);
  color: var(--brand-600);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: var(--space-1);
}

.about-quote__profile-tags {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

.about-quote__profile-tag {
  font-size: var(--fs-caption);
  color: var(--ink-500);
  line-height: 1.4;
  text-align: center;
}

.about-quote__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.blockquote {
  position: relative;
  padding: var(--space-8);
  background: var(--brand-050);
  border-left: 4px solid var(--brand-700);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.blockquote__mark {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--brand-100);
  line-height: 1;
  position: absolute;
  top: -var(--space-2);
  left: var(--space-4);
  user-select: none;
  pointer-events: none;
  font-optical-sizing: auto;
}

.blockquote__text {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-regular);
  font-style: italic;
  color: var(--ink-900);
  line-height: 1.5;
  position: relative;
  font-optical-sizing: auto;
}

.about-quote__credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.credential-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--ground-alt);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
}

.credential-item__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--brand-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-700);
  flex-shrink: 0;
}

.credential-item__text {
  font-size: var(--fs-caption);
  color: var(--ink-700);
  line-height: 1.4;
}

/* ============================================================
       TESTIMONIAL
    ============================================================ */
.testimonials {
  background: var(--ground-alt);
  padding-block: var(--section-y);
}

.sport-authority {
  padding-block: var(--section-y);
  text-align: center;
}

.sport-authority .section-lead {
  max-width: 60ch;
  margin-inline: auto;
  margin-block: var(--space-4) var(--space-8);
}

.sport-authority .section-label {
  display: inline-block;
}

.testimonials__layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-16);
  align-items: center;
}

.testimonials__intro {
}

.testimonials__cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.testimonial-card {
  background: var(--ground);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial-card__quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--brand-100);
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  user-select: none;
  pointer-events: none;
  font-optical-sizing: auto;
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
}

.testimonial-card__stars svg {
  color: var(--accent-500);
}

.testimonial-card__text {
  font-size: var(--fs-lead);
  font-style: italic;
  color: var(--ink-700);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-6);
  position: relative;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-top: 1px solid var(--line-200);
  padding-top: var(--space-4);
}

.testimonial-card__author-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: 1.1rem;
  font-weight: var(--fw-bold);
  flex-shrink: 0;
  font-optical-sizing: auto;
}

.testimonial-card__author-info {
}

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

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

/* ============================================================
       CTA BAND (CLOSE)
    ============================================================ */
.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;
}

.footer-contact-item--schedule {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-contact-item--schedule span {
  line-height: 1.4;
}

.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) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hero__visual {
    order: -1;
    max-height: 320px;
  }

  .hero__illustration {
    max-width: 100%;
    aspect-ratio: 16/7;
  }

  .hero__float-badge,
  .hero__float-badge-2 {
    display: none;
  }

  .trust-bar__grid {
    gap: var(--space-6);
  }

  .services__row-featured,
  .services__row-secondary {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .about-quote__profile {
    min-width: unset;
    flex-direction: row;
    align-items: center;
  }

  .about-quote__profile-info {
    text-align: left;
  }
  .about-quote__profile-tags {
    align-items: flex-start;
  }

  .about-quote__avatar {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
  }

  .about-quote__credentials {
    grid-template-columns: 1fr;
  }

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

  .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;
  }

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

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

  .services__row-featured,
  .services__row-secondary {
    grid-template-columns: 1fr;
  }

  .why-us__reasons {
    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;
  }
}

/* ============================================================
   HERO HOME — full-width con imagen velada (dirección B-Premium velada)
   ============================================================ */
.hero-home {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ground-alt);
}
.hero-home__bg {
  position: absolute;
  inset: 0;
}
.hero-home__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Velo claro: la imagen se difumina hacia el blanco por la izquierda,
   donde va el texto, garantizando legibilidad sin perder la foto. */
.hero-home__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(247, 250, 248, 0.97) 0%,
    rgba(247, 250, 248, 0.85) 34%,
    rgba(247, 250, 248, 0.45) 64%,
    rgba(241, 247, 244, 0.12) 100%
  );
}
.hero-home .container {
  position: relative;
  z-index: 2;
}
.hero-home__content {
  max-width: 600px;
  padding-block: var(--space-16);
}
.hero-home__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: #fff;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.9rem;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  color: var(--ink-700);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-6);
}
.hero-home__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
}
.hero-home__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  color: var(--ink-900);
  font-optical-sizing: auto;
  margin-bottom: var(--space-6);
}
.hero-home__title em {
  color: var(--brand-700);
  font-style: italic;
}
.hero-home__lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-normal);
  color: var(--ink-700);
  max-width: 480px;
  margin-bottom: var(--space-8);
}
.hero-home__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.hero-home__trust {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.hero-home__trust-stars {
  display: inline-flex;
  color: var(--accent-500);
}
.hero-home__trust-text {
  font-size: var(--fs-small);
  color: var(--ink-700);
}
@media (max-width: 768px) {
  .hero-home {
    min-height: auto;
    padding-block: var(--space-8);
  }
  /* En móvil el velo cubre toda la imagen para máxima legibilidad. */
  .hero-home__overlay {
    background: linear-gradient(
      180deg,
      rgba(247, 250, 248, 0.94),
      rgba(247, 250, 248, 0.88)
    );
  }
  .hero-home__content {
    padding-block: var(--space-8);
  }
}

/* Foto real de José en el bloque "sobre la clínica" */
.about-quote__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  display: block;
}
.about-quote__avatar {
  overflow: hidden;
  padding: 0;
}

/* ============================================================
   WHATSAPP CLICK-TO-CHAT (flotante global)
============================================================ */
.wa-float {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366; /* verde oficial WhatsApp: reconocible = más clics */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.wa-float:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  color: #fff;
}
.wa-float:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .wa-float,
  .wa-float:hover {
    transition: none;
    transform: none;
  }
}
