/* Centro del Pie · Salud desde la base
   Paleta de marca + tonos tomados del consultorio */
/* Tipografías (alojadas en /fonts, licencia SIL Open Font License) */
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/lexend-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/lexend-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/lexend-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }

:root {
  --verde: #00735f;
  --verde-hondo: #005a4a;
  --noche: #14283c;
  --salvia: #e3ece6;
  --papel: #f8fbf9;
  --linea: #cddcd3;
  --menta: #8fd0bd;       /* acento legible sobre fondo noche */
  --texto: #14283c;
  --texto-suave: #43566a;

  --f-display: "Lexend", "Segoe UI", system-ui, sans-serif;
  --f-texto: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --wrap: 72rem;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--papel);
}
img, iframe, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--verde); }
a:hover { color: var(--verde-hondo); }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 300; }
h3 { font-size: 1.3rem; font-weight: 500; }
p { margin: 0 0 1em; max-width: 62ch; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 46rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--noche); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 251, 249, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linea);
}
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 4.75rem; }
.brand img { width: 11.5rem; }
.main-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.main-nav a {
  font-family: var(--f-display); font-size: .95rem;
  color: var(--noche); text-decoration: none; padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--verde); color: var(--noche); }
.ig-link { color: var(--noche); display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.ig-link svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.ig-link:hover { color: var(--verde); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) var(--section); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--gap); align-items: center; }
.h1-slogan {
  display: block;
  font-size: clamp(2.9rem, 7.5vw, 5.6rem);
  font-weight: 300; line-height: 1.02; letter-spacing: -0.03em;
  color: var(--noche);
}
.h1-sub {
  display: block; margin-top: 1rem;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 400; color: var(--verde);
}
.lead { font-size: 1.2rem; color: var(--texto-suave); margin-top: 1.5rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero-place { margin-top: 1.75rem; font-size: .95rem; color: var(--texto-suave); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 500; font-size: 1rem;
  padding: .9rem 1.5rem; border-radius: 999px; text-decoration: none;
  border: 2px solid var(--verde); transition: background-color .2s, color .2s;
}
.btn-primary { background: var(--verde); color: #fff; }
.btn-primary:hover { background: var(--verde-hondo); border-color: var(--verde-hondo); color: #fff; }
.btn-ghost { background: transparent; color: var(--verde); }
.btn-ghost:hover { background: var(--verde); color: #fff; }

/* La foto enmarcada con los arcos abiertos del isotipo: el gesto principal del sitio */
.hero-figure { position: relative; margin: 0; padding: 7%; justify-self: center; width: min(100%, 30rem); }
.hero-figure img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: 100%; }
.hero-figure::before,
.hero-figure::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: clamp(6px, 1.3vw, 11px) solid transparent;
  animation: arco 1.4s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-figure::before { border-left-color: var(--noche); border-bottom-color: var(--noche); transform: rotate(18deg); }
.hero-figure::after  { border-top-color: var(--noche); transform: rotate(62deg); --r: 62deg; animation-delay: .15s; }
.hero-figure::before { --r: 18deg; }
@keyframes arco {
  from { opacity: 0; transform: rotate(calc(var(--r) - 40deg)); }
  to   { opacity: 1; transform: rotate(var(--r)); }
}

/* ---------- Cuándo consultar ---------- */
.consultar { padding-block: 0 var(--section); }
.consultar-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--gap); align-items: start; padding-top: 3rem; border-top: 1px solid var(--linea); }
.consultar h2 { max-width: 14ch; }
.senales { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.senales li {
  font-family: var(--f-display); font-size: 1.1rem;
  padding: .55rem 1.1rem .55rem .95rem; border-radius: .75rem;
  background: var(--salvia); color: var(--noche);
  display: inline-flex; align-items: center; gap: .6rem;
}
.senales li::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--verde); flex: none; }
.consultar-nota { margin-top: 1.75rem; font-size: 1.15rem; color: var(--texto-suave); }

/* ---------- Etapas ---------- */
.etapas { padding-block: var(--section); }
.etapas-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: calc(var(--gap) * 1.5); align-items: center; }
.etapas-foto img { border-radius: 50% 50% 1.25rem 1.25rem / 38% 38% 1.25rem 1.25rem; aspect-ratio: 820 / 728; object-fit: cover; width: 100%; }
.etapas-intro { font-size: 1.2rem; color: var(--texto-suave); margin: 1.25rem 0 2rem; }
.etapa { padding: 1.25rem 0 .25rem 1.25rem; border-left: 2px solid var(--linea); }
.etapa + .etapa { margin-top: .75rem; }
.etapa h3 { color: var(--verde); margin-bottom: .5rem; }
.etapa p { color: var(--texto-suave); }

/* ---------- Podología y pedicura ---------- */
.diferencia { padding-block: 0 var(--section); }
.diferencia-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: calc(var(--gap) * 1.5); align-items: center; margin-top: 2.5rem; }
.comparacion { margin: 0; display: grid; gap: 1.5rem; }
.comparacion div { padding: 1.5rem 1.75rem; border-radius: 1.25rem; }
.comparacion div:first-child { background: #fff; border: 1px solid var(--linea); }
.comparacion div:last-child { background: var(--verde); color: #fff; }
.comparacion dt { font-family: var(--f-display); font-size: 1.4rem; font-weight: 500; margin-bottom: .4rem; }
.comparacion dd { margin: 0; font-size: 1.1rem; }
.diferencia-foto { margin: 0; }
.diferencia-foto img { border-radius: 1.25rem; width: 100%; }
.diferencia-foto figcaption { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.4; margin-top: 1.25rem; max-width: 34ch; color: var(--noche); }

/* ---------- Servicios (fondo noche) ---------- */
.servicios { background: var(--noche); color: #fff; padding-block: var(--section); }
.servicios-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: calc(var(--gap) * 1.5); align-items: start; }
.servicios-head { position: sticky; top: 7rem; }
.servicios-head p { margin-top: 1.25rem; color: #d7e1ea; }
.service-list { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.25rem var(--gap); }
.service-list.is-three { grid-template-columns: 1fr; gap: 1.75rem; }
.service-list dt { font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; margin-bottom: .45rem; color: var(--menta); }
.service-list dd { margin: 0; color: #e5ecf2; }
.service-list div { padding-top: 1rem; border-top: 1px solid rgba(143, 208, 189, .35); }
.remate-grande { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.35; color: #fff; }

/* ---------- Turnos (secuencia real, por eso numerada) ---------- */
.turnos { padding-block: var(--section); }
.steps { list-style: none; padding: 0; margin: 2.75rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); counter-reset: paso; }
.steps li { counter-increment: paso; position: relative; padding-top: 4.25rem; }
.steps li::before {
  content: counter(paso);
  position: absolute; top: 0; left: 0;
  width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: 1.25rem;
  border: 2px solid var(--verde); color: var(--verde);
}
.steps h3 { margin-bottom: .6rem; }
.steps p { color: var(--texto-suave); }

/* ---------- Preguntas ---------- */
.preguntas { padding-block: 0 var(--section); }
.preguntas h2 { margin-bottom: 2rem; }
.preguntas details { border-top: 1px solid var(--linea); }
.preguntas details:last-of-type { border-bottom: 1px solid var(--linea); }
.preguntas summary {
  cursor: pointer; list-style: none;
  font-family: var(--f-display); font-size: 1.15rem;
  padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
}
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 300; color: var(--verde); transition: transform .2s;
}
.preguntas details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.preguntas details p { color: var(--texto-suave); padding-bottom: 1.25rem; }

/* ---------- Contacto ---------- */
.contacto { background: #fff; padding-block: var(--section); border-top: 1px solid var(--linea); }
.contacto-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--gap); align-items: stretch; }
address { font-style: normal; margin: 2rem 0; }
.dato strong { font-family: var(--f-display); font-weight: 500; color: var(--verde); }
.mapa { min-height: 24rem; border-radius: 1.25rem; overflow: hidden; border: 1px solid var(--linea); }
.mapa iframe { width: 100%; height: 100%; min-height: 24rem; border: 0; }

/* ---------- Pie ---------- */
.site-footer { background: var(--noche); color: #d7e1ea; padding-block: 3.5rem 7rem; }
.footer-row { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 3rem; align-items: center; }
.footer-row img { width: 12.5rem; }
.footer-links { justify-self: end; text-align: right; }
.footer-links p { margin: 0 0 .5rem; max-width: none; }
.ig-footer { color: #fff; }
.ig-footer:hover { color: var(--menta); }
.copy { grid-column: 1 / -1; font-size: .9rem; margin: 1rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); max-width: none; }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--verde); color: #fff; text-decoration: none;
  font-family: var(--f-display); font-weight: 500; font-size: 1.05rem;
  padding: .85rem 1.35rem .85rem 1.1rem; border-radius: 999px;
  box-shadow: 0 10px 28px rgba(20, 40, 60, .28);
  transition: background-color .2s, transform .2s;
}
.wa-float svg { width: 1.6rem; height: 1.6rem; fill: currentColor; }
.wa-float:hover { background: var(--verde-hondo); color: #fff; transform: translateY(-2px); }


/* ---------- Menú desplegable "Cuidado según tu actividad" ---------- */
.dropdown { position: relative; }
.dropdown summary {
  list-style: none; cursor: pointer;
  font-family: var(--f-display); font-size: .95rem; color: var(--noche);
  padding: .35rem 0; border-bottom: 2px solid transparent;
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
}
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::after {
  content: ""; width: .45rem; height: .45rem; margin-top: -.2rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s;
}
.dropdown[open] summary::after { transform: rotate(225deg); margin-top: .2rem; }
.dropdown summary:hover, .dropdown summary.is-current { border-bottom-color: var(--verde); }
.dropdown-panel {
  position: absolute; top: calc(100% + .9rem); left: -1.25rem; z-index: 70;
  background: #fff; border: 1px solid var(--linea); border-radius: 1rem;
  padding: .6rem; min-width: 15rem;
  box-shadow: 0 18px 40px rgba(20, 40, 60, .14);
}
.dropdown-panel ul { list-style: none; margin: 0; padding: 0; }
.dropdown-panel a {
  display: block; padding: .6rem .85rem; border-radius: .6rem;
  font-family: var(--f-display); color: var(--noche); text-decoration: none; border: 0;
}
.dropdown-panel a:hover { background: var(--salvia); color: var(--noche); }
.dropdown-panel a[aria-current="page"] { background: var(--verde); color: #fff; }

/* ---------- Páginas por actividad ---------- */
.page-hero { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.breadcrumb { font-size: .9rem; color: var(--texto-suave); margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.breadcrumb a { color: var(--texto-suave); }
.page-h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); line-height: 1.05; }
.hero-figure.is-iso img { object-fit: contain; background: var(--salvia); padding: 20%; }
.page-hero + .consultar .consultar-grid { border-top: 1px solid var(--linea); }

.videos { padding-block: var(--section); }
.section-intro { font-size: 1.15rem; margin-top: 1rem; color: var(--texto-suave); }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 2.5rem; }
.video, .video-slot { width: 100%; aspect-ratio: 9 / 16; border-radius: 1.25rem; border: 0; max-height: 44rem; }
.video-slot {
  display: grid; place-items: center; text-align: center;
  background: var(--salvia); border: 1.5px dashed #a9c4b6; color: var(--texto-suave);
  font-family: var(--f-display); font-size: 1.05rem;
}

.otras { padding-block: 0 var(--section); }
.otras-list { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.otras-list a {
  display: inline-block; padding: .75rem 1.3rem; border-radius: 999px;
  border: 2px solid var(--verde); color: var(--verde); text-decoration: none;
  font-family: var(--f-display); font-weight: 500;
}
.otras-list a:hover { background: var(--verde); color: #fff; }

/* Pie: enlaces a actividades */
.footer-act p { margin: 0 0 .6rem; color: #fff; font-family: var(--f-display); }
.footer-act ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.footer-act a { color: #d7e1ea; text-decoration: none; }
.footer-act a:hover { color: var(--menta); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .main-nav { gap: 1.1rem; }
  .main-nav a, .dropdown summary { font-size: .88rem; }
  .footer-row { grid-template-columns: 1fr 1fr; }
  .servicios-grid { grid-template-columns: 1fr; }
  .servicios-head { position: static; }
}
@media (max-width: 820px) {
  .header-row { flex-wrap: wrap; gap: .25rem 1rem; padding-top: .6rem; }
  .ig-link { margin-left: auto; }
  .main-nav {
    order: 3; width: 100%; margin: 0;
    overflow-x: auto; scrollbar-width: none; padding-bottom: .4rem;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { white-space: nowrap; }
  .dropdown { position: static; }   /* el panel se ubica respecto del encabezado y no queda recortado */
  .dropdown-panel { top: 100%; left: .75rem; right: .75rem; min-width: 0; }
  html { scroll-padding-top: 7.5rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; width: min(80%, 22rem); }
  .steps, .video-grid { grid-template-columns: 1fr; }
  .consultar-grid, .etapas-grid, .diferencia-grid { grid-template-columns: 1fr; }
  .consultar h2 { max-width: none; }
  .contacto-grid { grid-template-columns: 1fr; }
  .footer-row { grid-template-columns: 1fr; }
  .footer-links { justify-self: start; text-align: left; }
}
@media (max-width: 560px) {
  .service-list { grid-template-columns: 1fr; }
  .brand img { width: 9.5rem; }
  .wa-float { right: .85rem; bottom: .85rem; font-size: .98rem; }
}

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

/* En móvil, el menú de actividades va primero para que se vea sin deslizar */
@media (max-width: 820px) {
  .main-nav .dropdown { order: -1; }
}

/* ---------- Portada con video (página Gimnasios) ---------- */
/* El ancho del video se calcula según el lugar disponible Y el alto visible de la pantalla,
   así el video vertical (9:16) entra completo en cualquier navegador. svh = alto visible
   descontando las barras del navegador (Chrome Android); vh queda como respaldo. */
.hero-grid.has-video {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title video"
    "body  video";
  column-gap: clamp(2rem, 6vw, 5rem);
  row-gap: 0;
  align-items: start;
}
.has-video > * { min-width: 0; }
.has-video .hero-title { grid-area: title; align-self: end; }
.has-video .hero-body { grid-area: body; }
.hero-video {
  grid-area: video; margin: 0; justify-self: end;
  width: min(352px, calc((100vh - 9rem) * 9 / 16));
  width: min(352px, calc((100svh - 9rem) * 9 / 16));
  min-width: 220px; max-width: 100%;
}
.hero-video video {
  display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 9 / 16;
  object-fit: contain; border-radius: 1.5rem; background: var(--noche);
  box-shadow: 0 18px 44px rgba(20, 40, 60, .22);
}
.transcripcion { margin-top: 1rem; }
.transcripcion summary {
  cursor: pointer; list-style: none;
  font-family: var(--f-display); font-size: .95rem; color: var(--verde);
  display: inline-flex; align-items: center; gap: .45rem;
}
.transcripcion summary::-webkit-details-marker { display: none; }
.transcripcion summary::before { content: "+"; font-size: 1.2rem; line-height: 1; transition: transform .2s; }
.transcripcion[open] summary::before { transform: rotate(45deg); }
.transcripcion p { font-size: .95rem; color: var(--texto-suave); margin: .75rem 0 0; }

@media (max-width: 820px) {
  .hero-grid.has-video {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "video" "body";
    row-gap: 1.75rem;
  }
  /* En el celular el video ocupa como máximo el 75% del alto visible, para verlo entero */
  .hero-video {
    justify-self: center; min-width: 180px;
    width: min(100%, 340px, calc(75vh * 9 / 16));
    width: min(100%, 340px, calc(75svh * 9 / 16));
  }
  .has-video .hero-body .lead { margin-top: 0; }
}
