/* =====================================================================
   CUERPO SANO MEN'S SPA — SISTEMA VISUAL
   Morado muy oscuro + dorado champagne. Marfil y gris cálido de apoyo.
   Diseñado primero para celular (desde 360 px).
   ===================================================================== */

/* ---------- Tipografías (autohospedadas, licencia SIL OFL) ---------- */
@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/lora-var.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-medium.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-semibold.woff") format("woff");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Marca */
  --morado-900: #140B24;   /* fondo profundo */
  --morado-800: #1A0F2E;   /* fondo principal (identidad) */
  --morado-700: #24173D;   /* superficies elevadas */
  --morado-600: #332352;   /* bordes, separadores */
  --indigo-logo: #1C1245;  /* tono del logotipo */
  --dorado: #D1AE62;       /* dorado champagne ajustado para contraste */
  --dorado-claro: #E4C98E;
  --dorado-oscuro: #9C7A3C;

  /* Neutros de apoyo */
  --marfil: #F8EFE6;       /* mismo tono del fondo del logo */
  --marfil-2: #EFE4D6;
  --beige: #D9C8B0;
  --gris-calido: #B9B0A6;
  --texto: #F3ECE3;        /* texto principal sobre morado */
  --texto-suave: #C9BFD3;  /* texto secundario sobre morado (AA) */
  --texto-oscuro: #1C1245; /* texto sobre marfil */

  /* Tipografía */
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-h2: clamp(1.875rem, 1.5rem + 1.8vw, 2.875rem);
  --fs-h1: clamp(2.375rem, 1.8rem + 3vw, 4.25rem);

  /* Espacio */
  --gutter: clamp(1.25rem, 0.9rem + 1.8vw, 2.5rem);
  --section: clamp(4.5rem, 3.5rem + 5vw, 8.5rem);
  --max: 72rem;
  --radius: 4px;

  --header-h: 4.25rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--morado-800);
  color: var(--texto);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--dorado);
  outline-offset: 3px;
}
.on-light :focus-visible { outline-color: var(--indigo-logo); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--marfil); color: var(--texto-oscuro);
  padding: .75rem 1rem; border-radius: var(--radius); font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* Sprite SVG oculto que define simbolos reutilizables (<use href="#...">). */
.svg-sprite { position: absolute; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Elementos de marca ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dorado);
}
.eyebrow::before {
  content: ""; width: 1.75rem; height: 1px; background: currentColor; opacity: .7;
}

/* Divisor con rombo, tomado del logotipo */
.divider {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  color: var(--dorado); margin: 1.5rem auto 0; max-width: 9rem;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: currentColor; opacity: .55;
}
.divider span {
  width: 6px; height: 6px; background: currentColor; transform: rotate(45deg);
}

.section { padding-block: var(--section); position: relative; }
.section-head { max-width: 38rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.75rem); }
.section-head h2 { font-size: var(--fs-h2); margin-top: 1rem; }
.section-head p { color: var(--texto-suave); margin-top: 1.25rem; font-size: var(--fs-lg); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after {
  content: ""; width: 1.75rem; height: 1px; background: currentColor; opacity: .7;
}

/* ---------- Botones ---------- */
.btn {
  --bg: var(--dorado); --fg: var(--morado-900); --bd: var(--dorado);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem;
  padding: .85rem 1.6rem;
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { --bg: var(--dorado-claro); --bd: var(--dorado-claro); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.btn--ghost { --bg: transparent; --fg: var(--texto); --bd: rgba(243,236,227,.38); }
.btn--ghost:hover { --bg: rgba(243,236,227,.08); --bd: var(--texto); --fg: var(--texto); }
.btn--dark { --bg: var(--indigo-logo); --fg: var(--marfil); --bd: var(--indigo-logo); }
.btn--dark:hover { --bg: var(--morado-700); --bd: var(--morado-700); }
.btn--block { width: 100%; }

/* Enlaces de texto con flecha */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--dorado); font-weight: 500; font-size: var(--fs-sm);
  text-decoration: none; letter-spacing: .03em;
  padding-block: .5rem;
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Encabezado (marfil: el logo original solo funciona sobre claro) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 239, 230, .97);
  color: var(--texto-oscuro);
  border-bottom: 1px solid rgba(28, 18, 69, .08);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
}
.site-header .container {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--texto-oscuro);
  min-height: 44px;
}
.brand img { height: 2.25rem; width: auto; }
.brand-name {
  font-family: var(--serif); font-size: 1.125rem; line-height: 1.05; font-weight: 500;
}
.brand-name small {
  display: block; font-family: var(--sans); font-size: .625rem; letter-spacing: .28em;
  color: var(--dorado-oscuro); font-weight: 500; margin-top: .2rem;
}

.nav-desktop { display: none; }
.nav-desktop ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 1.6vw, 2rem); }
.nav-desktop a {
  text-decoration: none; font-size: var(--fs-sm); font-weight: 500; color: var(--texto-oscuro);
  padding-block: .5rem; position: relative;
}
.nav-desktop a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px;
  background: var(--dorado-oscuro); transform: scaleX(0); transition: transform .25s var(--ease);
}
.nav-desktop a:hover::after { transform: scaleX(1); }
.header-cta { display: none; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.875rem; height: 2.875rem;
  margin-right: -.6rem;
  background: transparent; border: 0; color: var(--texto-oscuro); cursor: pointer;
  border-radius: var(--radius);
}
.nav-toggle svg { width: 1.6rem; height: 1.6rem; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

/* Menú móvil: panel morado con texto marfil (contraste AA en todo el panel) */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--morado-900);
  color: var(--texto);
  padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.mobile-nav.is-open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li + li { border-top: 1px solid var(--morado-600); }
.mobile-nav a.nav-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.15rem 0; text-decoration: none;
  font-family: var(--serif); font-size: 1.5rem; color: var(--texto);
}
.mobile-nav a.nav-link::after { content: "→"; font-family: var(--sans); font-size: 1rem; color: var(--dorado); }
.mobile-nav .mobile-nav-foot { margin-top: 2rem; display: grid; gap: 1rem; }
.mobile-nav .mobile-nav-foot p { font-size: var(--fs-xs); color: var(--texto-suave); text-align: center; }
body.nav-open { overflow: hidden; }

/* ---------- Portada ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  /* velo para legibilidad del texto sobre fotografía */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,11,36,.25) 0%, rgba(20,11,36,.55) 45%, rgba(20,11,36,.96) 100%);
}
.hero-content {
  padding-block: 3rem clamp(3rem, 2rem + 4vw, 6rem);
  max-width: 40rem;
}
.hero h1 { font-size: var(--fs-h1); margin-top: 1.25rem; font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--dorado-claro); font-weight: 400; }
.hero-lead {
  margin-top: 1.25rem; font-size: var(--fs-lg); color: var(--texto); opacity: .88; max-width: 32rem;
}
.hero-actions { margin-top: 2rem; display: grid; gap: .75rem; }
.hero-note {
  margin-top: 1.5rem; font-size: var(--fs-xs); letter-spacing: .08em; color: var(--texto-suave);
  display: flex; align-items: center; gap: .6rem;
}
.hero-note::before { content: ""; width: 6px; height: 6px; background: var(--dorado); transform: rotate(45deg); }

/* ---------- Presentación ---------- */
.intro { background: var(--morado-800); }
.intro-grid { display: grid; gap: 2.5rem; }
.intro-text h2 { font-size: var(--fs-h2); margin-top: 1rem; }
.intro-text p { margin-top: 1.25rem; color: var(--texto-suave); font-size: var(--fs-lg); }
.intro-text p + p { margin-top: 1rem; }
.intro-aside {
  border-top: 1px solid var(--morado-600);
  padding-top: 2rem;
  display: grid; gap: 1.5rem;
}
.intro-aside blockquote {
  margin: 0; font-family: var(--serif); font-style: italic; font-size: var(--fs-h3);
  line-height: 1.35; color: var(--texto);
}

/* ---------- Experiencias ---------- */
.experiences { background: var(--morado-900); }
.exp-list { display: grid; gap: 1.25rem; }
.exp-card {
  position: relative;
  background: var(--morado-700);
  border: 1px solid var(--morado-600);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.exp-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--dorado), rgba(209,174,98,0) 70%);
}
.exp-card--feature {
  background:
    radial-gradient(110% 60% at 100% 0%, rgba(209,174,98,.12), transparent 60%),
    var(--morado-700);
}
.exp-body { padding: 2rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.exp-top { display: flex; align-items: center; gap: .875rem; }
.exp-num { font-family: var(--serif); color: var(--dorado); font-size: 2.25rem; line-height: 1; letter-spacing: .02em; font-variant-numeric: lining-nums; }
.exp-rule { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(209,174,98,.55), rgba(209,174,98,0)); }
.exp-features { list-style: none; margin: 0 0 .5rem; padding: 1rem 0 0; border-top: 1px solid var(--morado-600); display: grid; gap: .6rem; }
.exp-features li { position: relative; padding-left: 1.15rem; font-size: var(--fs-sm); color: var(--texto); line-height: 1.45; }
.exp-features li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px;
  background: var(--dorado); transform: rotate(45deg);
}
.exp-card h3 { font-size: var(--fs-h3); }
.exp-card p { color: var(--texto-suave); }
.exp-tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.exp-tags li {
  font-size: var(--fs-xs); color: var(--texto); border: 1px solid var(--morado-600);
  padding: .3rem .7rem; border-radius: 999px;
}
.exp-card .btn { margin-top: auto; }
.exp-note { font-family: var(--serif); font-style: italic; font-size: var(--fs-sm); color: var(--dorado-claro) !important; margin-bottom: .5rem; }
.exp-extra {
  position: relative; margin-top: 1.25rem;
  display: grid; gap: 1.5rem; align-items: center;
  padding: 2rem 1.5rem; border-radius: var(--radius);
  border: 1px solid rgba(209,174,98,.35);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(209,174,98,.10), transparent 55%),
    var(--morado-800);
}
.exp-extra-mark { display: block; width: 2.25rem; height: 1px; background: var(--dorado); margin-bottom: 1.25rem; }
.exp-extra h3 { font-size: var(--fs-h3); }
.exp-extra p { color: var(--texto-suave); margin-top: .9rem; max-width: 44rem; }
.exp-extra .exp-extra-small { font-size: var(--fs-xs); letter-spacing: .02em; color: var(--gris-calido); }
.exp-price {
  font-family: var(--serif); font-size: 1.75rem; line-height: 1; color: var(--dorado);
  font-variant-numeric: lining-nums; letter-spacing: -.01em;
}
.exp-price small { font-family: var(--sans); font-size: .8125rem; color: var(--texto-suave); letter-spacing: .08em; text-transform: uppercase; margin-right: .2rem; }
.exp-card--feature { border-color: rgba(209,174,98,.45); }
.exp-card:not(.exp-card--feature) .btn { --bg: transparent; --fg: var(--texto); --bd: rgba(243,236,227,.38); }
.exp-card:not(.exp-card--feature) .btn:hover { --bg: rgba(243,236,227,.08); --bd: var(--texto); }

/* ---------- Nuestro equipo ---------- */
.team { background: var(--morado-800); }
.team .catalog-grid { padding-bottom: 0; }

/* ---------- Razones ---------- */
.reasons { background: var(--morado-900); }
.reasons-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--morado-600);
}
.reasons-list li {
  display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; align-items: start;
  padding: 1.5rem 0; border-bottom: 1px solid var(--morado-600);
}
.reasons-list svg { width: 2rem; height: 2rem; color: var(--dorado); stroke-width: 1.25; }
.reasons-list h3 { font-size: 1.25rem; }
.reasons-list p { color: var(--texto-suave); font-size: var(--fs-sm); margin-top: .35rem; }

/* ---------- Instalaciones ---------- */
.gallery-section { background: var(--morado-800); }
.gallery {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(2, 1fr);
}
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--morado-900); }
.gallery figure { aspect-ratio: 3 / 4; }
.gallery figure:nth-child(1) { grid-column: span 2; aspect-ratio: 4 / 5; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2rem .9rem .8rem;
  background: linear-gradient(transparent, rgba(20,11,36,.85));
  font-size: var(--fs-xs); letter-spacing: .08em; color: var(--texto);
}

/* ---------- Ubicación y horarios ---------- */
.visit { background: var(--morado-900); }
.visit-grid { display: grid; gap: 1.25rem; }
.info-card {
  border: 1px solid var(--morado-600); border-radius: var(--radius);
  padding: 1.75rem 1.5rem; background: var(--morado-700);
}
.info-card h3 { font-size: 1.25rem; display: flex; align-items: center; gap: .75rem; }
.info-card h3 svg { width: 1.4rem; height: 1.4rem; color: var(--dorado); }
.info-card .info-body { margin-top: 1rem; color: var(--texto-suave); display: grid; gap: .6rem; }
.info-card .info-lead { color: var(--texto); font-size: var(--fs-lg); font-family: var(--serif); line-height: 1.4; }
.info-card dl { margin: 1rem 0 0; display: grid; gap: .6rem; }
.info-card dl div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--morado-600); padding-bottom: .6rem; }
.info-card dt { color: var(--texto); }
.info-card dd { margin: 0; color: var(--texto-suave); text-align: right; font-variant-numeric: tabular-nums; }
.info-card .btn, .info-card .link-arrow { margin-top: 1.25rem; }

/* ---------- Preguntas frecuentes ---------- */
.faq { background: var(--morado-800); }
.faq-list { max-width: 46rem; margin-inline: auto; border-top: 1px solid var(--morado-600); }
.faq details { border-bottom: 1px solid var(--morado-600); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.35rem 0; min-height: 44px;
  font-family: var(--serif); font-size: 1.1875rem; color: var(--texto);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--sans); font-weight: 400; font-size: 1.5rem; line-height: 1;
  color: var(--dorado); transition: transform .25s var(--ease); flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-answer { padding: 0 0 1.5rem; color: var(--texto-suave); max-width: 40rem; }

/* ---------- CTA final ---------- */
.final-cta {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(209,174,98,.12), transparent 70%),
    var(--morado-900);
  text-align: center;
}
.final-cta h2 { font-size: var(--fs-h2); max-width: 30rem; margin: 1rem auto 0; }
.final-cta p { color: var(--texto-suave); margin: 1.25rem auto 0; max-width: 30rem; font-size: var(--fs-lg); }
.final-cta .btn { margin-top: 2.25rem; }

/* ---------- Pie de página (marfil, logo original) ---------- */
.site-footer {
  background: var(--marfil);
  color: var(--texto-oscuro);
  padding-block: 3.5rem calc(2rem + env(safe-area-inset-bottom));
}
.footer-grid { display: grid; gap: 2rem; justify-items: center; text-align: center; }
.footer-logo img { width: 11rem; height: auto; }
.footer-meta { display: grid; gap: .4rem; font-size: var(--fs-sm); color: #4A4060; }
.footer-meta a { color: var(--texto-oscuro); font-weight: 500; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.5rem; }
.footer-links a { font-size: var(--fs-sm); color: var(--texto-oscuro); text-decoration: none; padding: .5rem 0; display: inline-block; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-legal {
  border-top: 1px solid rgba(28,18,69,.12); padding-top: 1.5rem; width: 100%;
  font-size: var(--fs-xs); color: #5A5070;
}

/* ---------- Botón flotante de WhatsApp (celular) ---------- */
.wa-float {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 40;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--dorado); color: var(--morado-900);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  text-decoration: none;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float svg { width: 1.6rem; height: 1.6rem; }
body.nav-open .wa-float { opacity: 0; pointer-events: none; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   PÁGINA 404
   ===================================================================== */
.page-404 {
  min-height: calc(100svh - var(--header-h));
  display: grid; place-items: center; text-align: center; padding-block: 4rem;
}
.page-404 .code { font-family: var(--serif); font-size: clamp(4rem, 3rem + 6vw, 7rem); color: var(--dorado); line-height: 1; }
.page-404 h1 { font-size: var(--fs-h2); margin-top: 1rem; }
.page-404 p { color: var(--texto-suave); margin-top: 1rem; }
.page-404 .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* =====================================================================
   EQUIPO (tarjetas de terapeutas)
   ===================================================================== */
/* Filtros: se acomodan en varias líneas; nunca hay desplazamiento lateral */
.catalog-filters {
  display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem;
}
.catalog-filters button {
  flex: 1 1 auto; min-height: 2.75rem; padding: .55rem 1rem; border-radius: 999px;
  border: 1px solid var(--morado-600); background: transparent; color: var(--texto);
  font: inherit; font-size: var(--fs-sm); line-height: 1.25; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.catalog-filters button:hover { border-color: var(--dorado); }
.catalog-filters button[aria-pressed="true"] { background: var(--dorado); color: var(--morado-900); border-color: var(--dorado); font-weight: 600; }

/* Celular (< 700 px): una terapeuta por fila, a todo el ancho */
.catalog-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem;
}
.t-card {
  background: var(--morado-700); border: 1px solid var(--morado-600); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; height: 100%;
}
.t-photo { aspect-ratio: 2 / 3; position: relative; overflow: hidden; background: linear-gradient(160deg, var(--morado-600), var(--morado-900)); }
.t-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.t-badge {
  position: absolute; z-index: 2; top: .875rem; right: .875rem;
  padding: .45rem .7rem; border-radius: 999px;
  background: var(--marfil); color: var(--morado-900);
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 .5rem 1.25rem rgba(0,0,0,.18);
}
.t-monogram {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: 4.5rem; color: rgba(209,174,98,.45);
}
.t-body { padding: 1.25rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; border-top: 1px solid rgba(209,174,98,.35); }
.t-name { font-family: var(--serif); font-size: 1.75rem; line-height: 1.15; font-weight: 500; }
.t-cat { font-size: var(--fs-sm); line-height: 1.4; color: var(--dorado); font-weight: 500; }
.t-cat::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--dorado); transform: rotate(45deg); margin: 0 .55rem .14rem 0; }
.t-extra { font-size: var(--fs-xs); color: var(--texto-suave); line-height: 1.45; margin-bottom: .75rem; }
.t-card .btn { margin-top: auto; min-height: 3.25rem; font-size: var(--fs-sm); }
.catalog-empty { text-align: center; color: var(--texto-suave); padding: 3rem 0 5rem; }

/* Tablet: dos columnas cuando cada tarjeta conserva un ancho cómodo */
@media (min-width: 43.75rem) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .catalog-filters button { flex: 0 1 auto; }
  .exp-extra { grid-template-columns: 1fr auto; padding: 2.5rem; }
}
/* Escritorio: tres columnas */
@media (min-width: 64rem) {
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =====================================================================
   PANTALLAS MEDIANAS Y GRANDES
   ===================================================================== */
@media (min-width: 40rem) {
  .hero-actions { display: flex; flex-wrap: wrap; }
  .exp-list { grid-template-columns: repeat(2, 1fr); }
  .reasons-list { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery figure { aspect-ratio: 4 / 5; }
  .gallery figure:nth-child(1) { grid-column: span 1; grid-row: span 2; aspect-ratio: auto; }
  .visit-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: auto 1fr auto; justify-items: start; text-align: left; align-items: center; }
  .footer-links { justify-content: flex-end; }
  .footer-legal { grid-column: 1 / -1; }
}

@media (min-width: 64rem) {
  :root { --header-h: 5rem; }
  .nav-toggle, .mobile-nav { display: none; }
  .nav-desktop { display: block; }
  .header-cta { display: inline-flex; min-height: 2.75rem; padding: .6rem 1.2rem; white-space: nowrap; }
  .brand img { height: 2.6rem; }
  .intro-grid { grid-template-columns: 1.4fr 1fr; gap: 5rem; align-items: end; }
  .intro-aside { border-top: 0; border-left: 1px solid var(--morado-600); padding: 0 0 0 3rem; }
  .exp-list { grid-template-columns: repeat(3, 1fr); }
  .reasons-list { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 64rem) and (max-width: 79.99rem) {
  .nav-desktop li:first-child { display: none; }
  .wa-float { display: none; }
}
