/* ==========================================================================
   Nácar · estilos
   1. Tokens   2. Base   3. Layout   4. Componentes   5. Secciones
   6. Animaciones   7. Responsive
   ========================================================================== */

/* 1. Tokens: colores y tipografías de la marca ------------------------------ */
:root {
  color-scheme: light;

  --fondo: #ffffff;
  --fondo-suave: #eff7f8;
  --oscuro: #0b3340;
  --texto: #0e2a33;
  --texto-suave: #4d656e;
  --claro: #ffffff;
  --claro-suave: #b9d0d6;
  --acento: #08797f;
  --acento-fuerte: #066067;
  --acento-claro: #6fe0d2;
  --linea: rgba(14, 42, 51, 0.13);
  --linea-oscura: rgba(255, 255, 255, 0.2);
  --linea-campo: #8097a0;

  --font-title: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;

  --radius: 20px;
  --header-h: 72px;
  --container: 1240px;
  --gutter: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

main {
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  word-spacing: 0.06em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}

h3 {
  font-size: 1.3rem;
  letter-spacing: -0.015em;
}

h1 em,
h2 em {
  color: var(--acento);
  font-style: normal;
}

p {
  margin: 0 0 1em;
}

ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--acento);
  outline-offset: 3px;
}

section[id] {
  scroll-margin-top: var(--header-h);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--oscuro);
  color: var(--claro);
}

.skip-link:focus {
  top: 12px;
}

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

.container--narrow {
  max-width: 920px;
}

.section {
  padding-block: 72px;
}

.section--soft {
  background: var(--fondo-suave);
}

.section--dark {
  background: var(--oscuro);
  color: var(--claro);
}

.section--dark p {
  color: var(--claro-suave);
}

.section--dark h2 em {
  color: var(--acento-claro);
}

.section-head {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-head h2:last-child {
  margin-bottom: 0;
}

.section-head > p:last-child {
  margin-bottom: 0;
  color: var(--texto-suave);
  font-size: 1.12rem;
}

.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

/* 4. Componentes ----------------------------------------------------------- */
.eyebrow {
  margin-bottom: 16px;
  color: var(--acento);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--acento-claro);
}

.lead {
  max-width: 34em;
  color: var(--texto-suave);
  font-size: 1.12rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 30px;
  border: 1.5px solid var(--acento);
  border-radius: 999px;
  background: var(--acento);
  color: var(--claro);
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.btn:hover {
  border-color: var(--acento-fuerte);
  background: var(--acento-fuerte);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--acento);
}

.btn--ghost:hover {
  background: var(--acento);
  color: var(--claro);
}

.btn--light {
  border-color: var(--claro);
  background: var(--claro);
  color: var(--oscuro);
}

.btn--light:hover {
  border-color: var(--acento-claro);
  background: var(--acento-claro);
  color: var(--oscuro);
}

.btn--small {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 0.92rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Enlace con subrayado que se redibuja al pasar el cursor */
.link-more {
  display: inline-block;
  padding-block: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  color: var(--acento);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-size 0.45s var(--ease);
}

.link-more:hover {
  background-position: 100% 100%;
  background-size: 0 1.5px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  font: 700 1.5rem/1 var(--font-title);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo span {
  margin-top: 5px;
  font: 500 0.62rem/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* Carrusel: scroll horizontal con anclaje; main.js suma arrastre y flechas */
.carousel {
  display: flex;
  gap: 20px;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel > * {
  flex: none;
  scroll-snap-align: start;
}

.carousel.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
  user-select: none;
}

.js .carousel {
  cursor: grab;
}

.carousel-nav {
  display: none;
  gap: 10px;
}

.js .carousel-nav {
  display: flex;
}

.carousel-nav button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--linea);
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.carousel-nav button:hover {
  border-color: var(--acento);
  background: var(--acento);
  color: var(--claro);
}

.carousel-nav svg,
.icon-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Marquee: main.js duplica el contenido y agrega .is-ready para animarlo */
.marquee {
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee.is-ready .marquee-track {
  animation: marquee var(--marquee-time, 40s) linear infinite;
}

.marquee.is-ready:hover .marquee-track,
.marquee.is-ready:focus-within .marquee-track {
  animation-play-state: paused;
}

html:not(.js) .marquee,
.marquee:not(.is-ready) {
  overflow-x: auto;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* 5. Secciones ------------------------------------------------------------- */

/* Encabezado: transparente arriba, sólido al scrollear */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--texto);
  transition: background-color 0.4s, box-shadow 0.4s, color 0.4s;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 var(--linea);
  backdrop-filter: blur(12px);
}

.site-header.is-open {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  color: var(--claro);
}

.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding-inline: var(--gutter);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-link {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background-color 0.3s, color 0.3s;
}

.icon-link:hover {
  background: var(--fondo-suave);
  color: var(--acento);
}

.header-cta {
  display: none;
  margin-inline: 8px 4px;
}

.site-header.is-open .header-cta {
  visibility: hidden;
}

.nav-toggle {
  display: grid;
  align-content: center;
  gap: 7px;
  width: 48px;
  height: 48px;
  padding: 0 10px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* Menú a pantalla completa */
.menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
  background: var(--oscuro);
  color: var(--claro);
  overflow-y: auto;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease), visibility 0s 0.7s;
}

.menu.is-open {
  visibility: visible;
  clip-path: inset(0);
  transition: clip-path 0.7s var(--ease), visibility 0s;
}

.menu li {
  overflow: hidden;
  border-bottom: 1px solid var(--linea-oscura);
}

.menu li a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  font: 600 clamp(1.8rem, 5.6vw, 3.6rem) / 1.1 var(--font-title);
  letter-spacing: -0.03em;
  text-decoration: none;
  transform: translateY(110%);
  transition: transform 0.7s var(--ease), color 0.3s, padding-left 0.4s var(--ease);
  transition-delay: 0s;
}

.menu.is-open li a {
  transform: none;
}

.menu.is-open li:nth-child(1) a { transition-delay: 0.12s, 0s, 0s; }
.menu.is-open li:nth-child(2) a { transition-delay: 0.18s, 0s, 0s; }
.menu.is-open li:nth-child(3) a { transition-delay: 0.24s, 0s, 0s; }
.menu.is-open li:nth-child(4) a { transition-delay: 0.3s, 0s, 0s; }
.menu.is-open li:nth-child(5) a { transition-delay: 0.36s, 0s, 0s; }
.menu.is-open li:nth-child(6) a { transition-delay: 0.42s, 0s, 0s; }

.menu li a:hover {
  padding-left: 14px;
  color: var(--acento-claro);
}

.menu small {
  font: 600 0.78rem/1 var(--font-body);
  letter-spacing: 0.14em;
  color: var(--acento-claro);
}

.menu-foot {
  margin: 32px 0 0;
  color: var(--claro-suave);
  font-size: 0.95rem;
}

/* Sin JavaScript no hay menú desplegable: se muestra siempre */
html:not(.js) .site-header {
  position: static;
  background: var(--oscuro);
  color: var(--claro);
}

html:not(.js) .nav-toggle {
  display: none;
}

html:not(.js) .menu {
  position: static;
  visibility: visible;
  clip-path: none;
  padding: 0 var(--gutter) 24px;
}

html:not(.js) .menu li a {
  transform: none;
  font-size: 1.4rem;
}

/* Primera pantalla */
.hero {
  display: grid;
  gap: 32px;
  padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
  background: linear-gradient(180deg, var(--fondo-suave), var(--fondo));
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.hero-eyebrow {
  margin: 0;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 4.9vw, 4.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero-sub {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero-sub p {
  max-width: 30em;
  margin: 0;
  color: var(--texto-suave);
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  position: relative;
  min-height: 300px;
  border-radius: calc(var(--radius) * 1.6);
  overflow: hidden;
}

.banner-media {
  position: absolute;
  inset: 0;
}

.banner-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 51, 64, 0.62);
}

/* La foto es más alta que su marco para que el parallax no deje bordes */
.hero-media img,
.banner-media img {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  will-change: transform;
}

.hero-media img {
  object-position: 70% center;
}

.line {
  display: block;
  padding-bottom: 0.1em;
  overflow: hidden;
}

.line > span {
  display: block;
}

.scroll-cue {
  display: none;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  color: var(--texto-suave);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}

.scroll-cue span {
  position: relative;
  width: 64px;
  height: 2px;
  background: var(--linea);
  overflow: hidden;
}

.scroll-cue span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--acento);
  animation: cue 2.2s var(--ease) infinite;
}

@keyframes cue {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* Franja de confianza */
.trust {
  padding-block: 32px 28px;
  border-bottom: 1px solid var(--linea);
}

.trust-points {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.trust-points li {
  padding-left: 16px;
  border-left: 3px solid var(--acento-claro);
}

.trust-points strong,
.trust-points span {
  display: block;
}

.trust-points strong {
  font: 600 1.05rem/1.3 var(--font-title);
}

.trust-points span {
  color: var(--texto-suave);
  font-size: 0.95rem;
}

.marquee--logos {
  --marquee-time: 32s;
}

.marquee--logos li {
  padding-right: 56px;
  color: var(--texto-suave);
  font: 700 1.25rem/1.4 var(--font-title);
  letter-spacing: -0.02em;
  white-space: nowrap;
  opacity: 0.7;
}

/* Tratamientos */
.treatments {
  display: grid;
  gap: 20px;
}

.treatment {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 8px;
  padding: 14px 14px 26px;
  border: 1px solid var(--linea);
  border-radius: var(--radius);
  background: var(--fondo);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
}

.treatment:hover {
  border-color: transparent;
  box-shadow: 0 24px 48px rgba(11, 51, 64, 0.14);
  transform: translateY(-6px);
}

.treatment figure {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 14px;
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
}

.treatment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.treatment:hover img {
  transform: scale(1.07);
}

.treatment-num,
.treatment h3,
.treatment p,
.treatment .link-more {
  margin-inline: 10px;
}

.treatment-num {
  color: var(--acento);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.treatment h3 {
  margin-block: 0;
  font-size: 1.4rem;
}

.treatment p {
  margin-block: 0 6px;
  color: var(--texto-suave);
}

/* La clínica */
.about {
  display: grid;
  gap: 40px;
  align-items: center;
}

.about-photo {
  aspect-ratio: 4 / 3.4;
  border-radius: calc(var(--radius) * 1.4);
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 116%;
  margin-top: -8%;
  object-fit: cover;
}

.about-text > p:not(.eyebrow) {
  max-width: 34em;
  color: var(--texto-suave);
}

.stats {
  display: grid;
  gap: 20px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--linea);
}

.stats dt {
  color: var(--acento);
  font: 700 clamp(2.4rem, 4.6vw, 3.4rem) / 1 var(--font-title);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stats dd {
  margin-top: 6px;
  color: var(--texto-suave);
  font-size: 0.95rem;
}

/* Tu primera visita */
.steps-wrap {
  display: grid;
  gap: 44px;
}

.steps-head p:not(.eyebrow) {
  max-width: 28em;
  margin-bottom: 28px;
  color: var(--texto-suave);
  font-size: 1.12rem;
}

.steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 16px;
  padding-block: 24px;
  border-top: 1px solid var(--linea);
}

.steps li:last-child {
  border-bottom: 1px solid var(--linea);
}

.steps span {
  display: grid;
  place-items: center;
  grid-row: span 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fondo-suave);
  color: var(--acento);
  font: 700 0.9rem/1 var(--font-title);
  transition: background-color 0.4s, color 0.4s;
}

.steps li:hover span {
  background: var(--acento);
  color: var(--claro);
}

.steps h3 {
  margin-bottom: 6px;
}

.steps p {
  margin: 0;
  color: var(--texto-suave);
}

/* Tecnología: dos fotos superpuestas que se mueven a distinta velocidad */
.technique {
  display: grid;
  gap: 56px;
  align-items: center;
}

.technique-photos {
  position: relative;
  aspect-ratio: 1 / 1.05;
  max-width: 520px;
}

.technique-photo {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  will-change: transform;
}

.technique-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.technique-photo--back {
  inset: 0 28% 16% 0;
}

.technique-photo--front {
  inset: 34% 0 0 44%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.technique-text > p:not(.eyebrow) {
  max-width: 32em;
}

.tech-list {
  margin-top: 28px;
}

.tech-list li {
  padding-block: 16px;
  border-top: 1px solid var(--linea-oscura);
}

.tech-list li:last-child {
  border-bottom: 1px solid var(--linea-oscura);
}

.tech-list strong,
.tech-list span {
  display: block;
}

.tech-list strong {
  font: 600 1.1rem/1.3 var(--font-title);
}

.tech-list span {
  color: var(--claro-suave);
  font-size: 0.98rem;
}

/* Equipo */
.member {
  width: min(72vw, 290px);
}

.member figure {
  aspect-ratio: 4 / 5;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
}

.member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 1.2s var(--ease);
}

.member:hover img {
  transform: scale(1.05);
}

.member h3 {
  margin-bottom: 2px;
}

.member p {
  margin: 0;
  color: var(--texto-suave);
}

.member small {
  color: var(--acento);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* Comparativa */
.compare-wrap {
  padding: 8px 24px;
  border-radius: var(--radius);
  background: var(--fondo);
  overflow-x: auto;
}

.compare {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  text-align: left;
}

.compare th,
.compare td {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--linea);
  vertical-align: top;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare thead th {
  font: 600 1.25rem/1.2 var(--font-title);
  border-bottom: 2px solid var(--acento);
}

.compare tbody th {
  width: 26%;
  color: var(--acento);
  font-size: 0.92rem;
  font-weight: 600;
}

.compare tbody tr {
  transition: background-color 0.3s;
}

.compare tbody tr:hover {
  background: var(--fondo-suave);
}

.compare-note {
  margin: 20px 0 0;
  color: var(--texto-suave);
  font-size: 0.92rem;
}

/* Urgencias */
.urgent {
  padding-block: 56px;
  background: var(--acento);
  color: var(--claro);
}

.urgent-inner {
  display: grid;
  gap: 28px;
  align-items: center;
}

.urgent .eyebrow {
  color: var(--claro);
  opacity: 0.85;
}

.urgent h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
}

.urgent p:last-child {
  max-width: 32em;
  margin: 0;
  font-size: 1.1rem;
}

.urgent-actions {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.urgent-phone {
  font: 700 1.6rem/1.2 var(--font-title);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.urgent-phone:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Testimonios */
.reviews {
  overflow: hidden;
}

.marquee--cards {
  --marquee-time: 60s;
}

.review {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  flex: none;
  width: min(80vw, 380px);
  margin-right: 20px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--fondo-suave);
}

.review p {
  margin: 0;
  font-size: 1.1rem;
}

.review strong {
  color: var(--acento);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Preguntas frecuentes */
.faq details {
  border-bottom: 1px solid var(--linea);
}

.faq details:first-child {
  border-top: 1px solid var(--linea);
}

.faq summary {
  position: relative;
  padding: 22px 56px 22px 0;
  font: 600 1.2rem/1.3 var(--font-title);
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s;
}

.faq summary:hover {
  color: var(--acento);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fondo);
  color: var(--acento);
  font: 500 1.3rem/1 var(--font-body);
  transition: rotate 0.4s var(--ease);
}

.faq details[open] summary::after {
  rotate: 135deg;
}

/* Apertura animada donde el navegador lo permite */
.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete;
}

.faq details[open]::details-content {
  block-size: auto;
}

.faq {
  interpolate-size: allow-keywords;
}

.faq-body {
  max-width: 44em;
  padding: 0 56px 24px 0;
  color: var(--texto-suave);
}

.faq-body p:last-child {
  margin-bottom: 0;
}

/* Turnos y contacto */
.contact {
  display: grid;
  gap: 44px;
}

.contact-text .lead {
  margin-bottom: 28px;
}

.contact-data {
  display: grid;
  gap: 18px 24px;
  margin-bottom: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--linea);
}

.contact-data dt {
  margin-bottom: 2px;
  color: var(--acento);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-data a {
  text-decoration: none;
}

.contact-data a:hover {
  color: var(--acento);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.map {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--fondo-suave);
  overflow: hidden;
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.form-card {
  padding: 28px 20px;
  border-radius: calc(var(--radius) * 1.2);
  background: var(--fondo-suave);
}

.form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.92rem;
  font-weight: 600;
}

.optional {
  color: var(--texto-suave);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  background: var(--fondo);
  border: 1.5px solid var(--linea-campo);
  border-radius: 12px;
  color: var(--texto);
  font: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--acento);
  box-shadow: 0 0 0 3px rgba(8, 121, 127, 0.2);
}

.hp {
  display: none;
}

.form-legal {
  margin: 0;
  color: var(--texto-suave);
  font-size: 0.88rem;
}

.form-error {
  margin: 0;
  color: #b3261e;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-success {
  margin: 0;
  padding: 32px 0;
  font: 600 1.6rem/1.25 var(--font-title);
  letter-spacing: -0.02em;
}

.form-success:focus {
  outline: none;
}

/* Banner final */
.banner {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 80vh;
  padding-block: 96px;
  background: var(--oscuro);
  color: var(--claro);
  text-align: center;
  overflow: hidden;
}

.banner-inner {
  position: relative;
  max-width: 900px;
}

.banner h2 {
  margin-bottom: 0.7em;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.banner h2 em {
  color: var(--acento-claro);
}

/* Pie de página */
.site-footer {
  padding-block: 64px 32px;
  background: var(--oscuro);
  color: var(--claro);
  font-size: 0.98rem;
}

.footer-inner {
  display: grid;
  gap: 36px;
}

.footer-brand p {
  margin: 16px 0 0;
  color: var(--claro-suave);
}

.footer-col {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: start;
}

.footer-col h2 {
  margin-bottom: 6px;
  color: var(--acento-claro);
  font: 600 0.78rem/1.4 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer a {
  text-decoration: none;
  transition: color 0.3s;
}

.site-footer a:hover {
  color: var(--acento-claro);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--linea-oscura);
  color: var(--claro-suave);
  font-size: 0.88rem;
}

/* Página de política de privacidad */
.legal {
  padding: 56px 0 72px;
}

.legal h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.legal h2 {
  margin-top: 1.4em;
  font-size: 1.5rem;
}

.legal ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
  list-style: disc;
}

.legal-meta {
  color: var(--texto-suave);
  font-size: 0.95rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  text-underline-offset: 4px;
}

/* 6. Animaciones ----------------------------------------------------------- */
/* Solo se oculta contenido si hay JS (clase .js en <html>).
   main.js agrega .is-visible cuando el elemento entra en pantalla;
   --i es el orden dentro del grupo que entra junto y genera el escalonado. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s ease-out, transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
  will-change: opacity, transform;
}

.js [data-reveal="left"] {
  transform: translateX(-40px);
}

.js [data-reveal="right"] {
  transform: translateX(40px);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Titular de la primera pantalla: cada línea sube desde abajo al cargar */
.js [data-lines] .line > span {
  transform: translateY(110%);
  transition: transform 1.2s var(--ease);
}

.js [data-lines] .line:nth-child(2) > span { transition-delay: 0.12s; }
.js [data-lines] .line:nth-child(3) > span { transition-delay: 0.24s; }

.js.is-loaded [data-lines] .line > span {
  transform: none;
}

.js .hero-eyebrow,
.js .hero-sub {
  opacity: 0;
  transition: opacity 1s ease-out 0.7s;
}

.js .hero-media {
  clip-path: inset(8% 8% 8% 8% round calc(var(--radius) * 1.6));
  transition: clip-path 1.4s var(--ease) 0.2s;
}

.js.is-loaded .hero-eyebrow,
.js.is-loaded .hero-sub {
  opacity: 1;
}

.js.is-loaded .hero-media {
  clip-path: inset(0 round calc(var(--radius) * 1.6));
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js [data-reveal],
  .js [data-lines] .line > span,
  .js .hero-eyebrow,
  .js .hero-sub,
  .menu li a {
    opacity: 1;
    transform: none;
  }

  .js .hero-media {
    clip-path: none;
  }

  .marquee {
    overflow-x: auto;
  }
}

/* 7. Responsive ------------------------------------------------------------ */
@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }

  .section {
    padding-block: 104px;
  }

  .icon-link {
    display: grid;
  }

  .header-cta {
    display: inline-flex;
  }

  .hero-media {
    min-height: 420px;
  }

  .trust-points {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-data {
    grid-template-columns: 1fr 1fr;
  }

  .urgent-inner {
    grid-template-columns: 1fr auto;
    gap: 48px;
  }

  .form-card {
    padding: 40px;
  }

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

  .field--full {
    grid-column: 1 / -1;
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-bottom {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  :root {
    --header-h: 88px;
    --gutter: 48px;
  }

  .section {
    padding-block: 136px;
  }

  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
    gap: 56px;
    min-height: 100vh;
    min-height: 100svh;
    padding-bottom: 48px;
  }

  .hero-inner {
    justify-content: center;
  }

  .scroll-cue {
    display: inline-flex;
  }

  .treatments {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .about {
    grid-template-columns: 1fr 1fr;
    gap: 88px;
  }

  .steps-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 96px;
    align-items: start;
  }

  .steps-head {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }

  .technique {
    grid-template-columns: 1fr 1fr;
    gap: 96px;
  }

  .contact {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
  }
}
