/* ==========================================================================
   ARYA Medicina Estética — hoja de estilos principal
   Paleta: ciruela, turquesa y crema
   ========================================================================== */

:root {
  --cream: #fbf7f1;
  --cream-deep: #f3e9dd;
  --white: #fffdfb;
  --plum: #4a2454;
  --plum-deep: #35163f;
  --plum-soft: #6b3d7a;
  --violet: #7c4a91;
  --violet-soft: #a87bb8;
  --turquoise: #17b3ad;
  --turquoise-deep: #0e8f8a;
  --turquoise-soft: #d8f2ef;
  --rose: #e6c9c1;
  --ink: #2b1830;
  --muted: #6e5b72;
  --line: rgba(74, 36, 84, 0.12);
  --line-strong: rgba(74, 36, 84, 0.2);
  --shadow-soft: 0 24px 60px -34px rgba(53, 22, 63, 0.38);
  --shadow-card: 0 18px 44px -26px rgba(53, 22, 63, 0.3);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Jost", "Segoe UI", system-ui, sans-serif;
  --container: 1280px;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

section[id],
footer[id] {
  scroll-margin-top: 100px;
}

::selection {
  background: var(--turquoise);
  color: var(--plum-deep);
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--ink);
}

h2 {
  font-size: clamp(2.55rem, 5vw, 4.35rem);
}

h2 em,
h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--turquoise-deep);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--turquoise-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 32px);
}

.section {
  position: relative;
  padding-block: clamp(78px, 9vw, 128px);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--plum);
  color: #fff;
  font-size: 0.85rem;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--plum);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow__line {
  width: 34px;
  height: 1px;
  flex: none;
  background: var(--turquoise);
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.7);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--primary {
  background: var(--plum);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(74, 36, 84, 0.5);
}

.btn--primary:hover {
  background: var(--plum-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(74, 36, 84, 0.6);
}

.btn--outline {
  border-color: var(--line-strong);
  color: var(--plum);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--plum);
  background: var(--plum);
  color: #fff;
  transform: translateY(-2px);
}

.btn--cream {
  background: var(--cream);
  color: var(--plum);
}

.btn--cream:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -18px rgba(0, 0, 0, 0.5);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: transparent;
}

.btn--ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 11px 20px;
  font-size: 0.8rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--plum);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(74, 36, 84, 0.25);
  padding-bottom: 4px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.text-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.text-link:hover {
  color: var(--turquoise-deep);
  border-color: var(--turquoise);
}

.text-link:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Header y navegación
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: 20px;
  transition: padding 0.3s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #7b046c;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  padding-block: 10px;
}

.site-header.is-scrolled::before {
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.header__inner {
  position: relative;
  z-index: 103;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  position: relative;
  z-index: 104;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand__logo {
  display: block;
  width: auto;
  height: 46px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  position: relative;
  padding-block: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
  transition: color 0.2s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--turquoise);
  transition: right 0.28s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--plum);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  right: 0;
}

.nav__cta {
  display: none;
}

@media (min-width: 981px) {
  .nav__link {
    color: rgba(255, 255, 255, 0.78);
  }

  .nav__link:hover,
  .nav__link.is-active {
    color: #fff;
  }
}

.header__actions {
  position: relative;
  z-index: 104;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(53, 22, 63, 0.35);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  padding-top: clamp(132px, 15vh, 178px);
  padding-bottom: clamp(74px, 9vw, 112px);
  overflow: clip;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 22%, rgba(23, 179, 173, 0.14), transparent 28%),
    radial-gradient(circle at 8% 84%, rgba(124, 74, 145, 0.09), transparent 32%);
}

.hero__bg::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(74, 36, 84, 0.08);
  border-radius: 50%;
}

.hero__bg::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -170px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(23, 179, 173, 0.16);
  border-radius: 50%;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.hero__content {
  max-width: 650px;
}

.hero__title {
  font-size: clamp(3.55rem, 7vw, 6.3rem);
  line-height: 0.91;
  letter-spacing: -0.035em;
}

.hero__title em {
  position: relative;
  display: inline-block;
}

.hero__title em::after {
  content: "";
  position: absolute;
  right: 0.04em;
  bottom: 0.03em;
  left: 0.02em;
  height: 0.055em;
  border-radius: 99px;
  background: var(--turquoise);
  opacity: 0.32;
  transform: rotate(-1.2deg);
}

.hero__lead {
  max-width: 50ch;
  margin-top: 27px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.1vw, 1.07rem);
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 38px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__trust svg {
  width: 14px;
  height: 14px;
  color: var(--turquoise-deep);
  stroke-width: 2.2;
}

.hero__visual {
  position: relative;
  justify-self: end;
  width: min(100%, 505px);
  min-width: 0;
}

.hero__halo {
  position: absolute;
  inset: 26px -26px -26px 26px;
  z-index: -1;
  border: 1px solid rgba(23, 179, 173, 0.38);
  border-radius: 28px;
}

.hero__dots {
  position: absolute;
  bottom: 76px;
  left: -46px;
  z-index: -1;
  width: 116px;
  height: 116px;
  background-image: radial-gradient(var(--violet-soft) 1.1px, transparent 1.1px);
  background-size: 12px 12px;
  opacity: 0.32;
}

.hero__arch {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 28px;
  background: var(--plum);
  box-shadow: 0 42px 80px -34px rgba(53, 22, 63, 0.5);
}

.hero__arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform 1.2s var(--ease);
}

.hero__arch:hover img {
  transform: scale(1.035);
}

.hero__arch::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: inherit;
  pointer-events: none;
}

.hero__arch-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(53, 22, 63, 0.42), transparent 38%);
  pointer-events: none;
}

.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 32px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(74, 36, 84, 0.22);
  border-radius: 99px;
  transform: translateX(-50%);
}

.hero__scroll span {
  width: 3px;
  height: 8px;
  border-radius: 99px;
  background: var(--plum);
  animation: scroll-dot 1.9s ease-in-out infinite;
}

/* ==========================================================================
   Marquesina
   ========================================================================== */

.marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding-block: 16px;
  background: var(--plum);
  color: var(--cream);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
}

.marquee__item {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__star {
  width: 13px;
  height: 13px;
  flex: none;
  color: var(--turquoise);
}

/* ==========================================================================
   Encabezados de sección
   ========================================================================== */

.section-head {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 54px;
}

.section-head h2 {
  max-width: 15ch;
}

.section-head__lead {
  justify-self: end;
  max-width: 44ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.78;
}

.section-head--center {
  display: block;
  max-width: 730px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head--center h2 {
  max-width: none;
  margin-inline: auto;
}

.section-head--center .section-head__lead {
  margin: 18px auto 0;
}

/* ==========================================================================
   Filosofía
   ========================================================================== */

.philosophy {
  background: var(--cream);
}

.philosophy__layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: clamp(44px, 7vw, 100px);
}

.philosophy__intro {
  position: sticky;
  top: 120px;
}

.philosophy__intro h2 {
  margin-bottom: 24px;
}

.philosophy__intro > p {
  max-width: 42ch;
  margin-bottom: 28px;
  color: var(--muted);
  line-height: 1.82;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 40px;
}

.feature {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.feature__icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 14px;
  background: var(--turquoise-soft);
  color: var(--turquoise-deep);
}

.feature__icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  margin-bottom: 8px;
  color: var(--plum);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}

.feature p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.68;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 74px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.stat strong {
  display: block;
  color: var(--plum);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.5vw, 3.3rem);
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.45;
  text-transform: uppercase;
}

/* ==========================================================================
   Tratamientos
   ========================================================================== */

.services {
  border-block: 1px solid var(--line);
  background: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  padding: 30px;
  border: 1px solid rgba(74, 36, 84, 0.09);
  border-radius: var(--radius);
  background: var(--cream);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--turquoise), var(--violet));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.service-card:hover {
  border-color: rgba(74, 36, 84, 0.18);
  box-shadow: 0 26px 54px -32px rgba(53, 22, 63, 0.38);
  transform: translateY(-6px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.service-card__icon {
  display: grid;
  width: 54px;
  height: 54px;
  flex: none;
  place-items: center;
  border-radius: 16px;
  background: var(--turquoise-soft);
  color: var(--turquoise-deep);
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
}

.tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 99px;
  background: rgba(74, 36, 84, 0.08);
  color: var(--plum);
  font-size: 0.59rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--turquoise {
  background: var(--turquoise-soft);
  color: var(--turquoise-deep);
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.62rem;
  line-height: 1.14;
}

.service-card p {
  flex: 1;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.7;
}

.service-card__meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.service-card__price {
  color: var(--plum);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1.2;
}

.service-card__price small {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--plum);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.service-card__link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s var(--ease);
}

.service-card:hover .service-card__link svg {
  transform: translateX(4px);
}

.services__note {
  max-width: 92ch;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.65;
}

.services__help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding: 24px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--cream);
}

.services__help p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.services__help strong {
  color: var(--plum);
  font-weight: 600;
}

/* ==========================================================================
   El doctor
   ========================================================================== */

.doctor {
  background: var(--cream);
}

.doctor__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
}

.doctor__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
  margin-bottom: 26px;
}

.doctor__card-back {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: var(--plum);
  opacity: 0.15;
  transform: rotate(4deg);
}

.doctor__card {
  position: relative;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 32px 64px -34px rgba(53, 22, 63, 0.45);
  transform: rotate(-1.5deg);
}

.doctor__card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.doctor__badge {
  position: absolute;
  bottom: -20px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: var(--turquoise);
  color: var(--plum-deep);
  box-shadow: 0 14px 30px -14px rgba(14, 143, 138, 0.7);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.doctor__badge svg {
  width: 15px;
  height: 15px;
}

.doctor__content h2 {
  margin-bottom: 12px;
}

.doctor__role {
  margin-bottom: 22px;
  color: var(--turquoise-deep);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.doctor__content > p {
  max-width: 52ch;
  color: var(--muted);
  line-height: 1.8;
}

.credentials {
  display: grid;
  gap: 0;
  margin: 30px 0 20px;
}

.credentials li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}

.credentials__icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--turquoise-soft);
  color: var(--turquoise-deep);
}

.credentials__icon svg {
  width: 18px;
  height: 18px;
}

.credentials strong {
  display: block;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
}

.credentials li > div span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.doctor__note {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.5;
  opacity: 0.8;
}

/* ==========================================================================
   Proceso
   ========================================================================== */

.process {
  background: var(--cream-deep);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--cream);
}

.step__num {
  display: block;
  margin-bottom: 22px;
  color: rgba(74, 36, 84, 0.18);
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1;
}

.step__icon {
  position: absolute;
  top: 32px;
  right: 28px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--turquoise-deep);
  opacity: 0.8;
}

.step__icon svg {
  width: 100%;
  height: 100%;
}

.step h3 {
  margin-bottom: 10px;
  font-size: 1.55rem;
}

.step p {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.7;
}

.process__note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.6;
  text-align: center;
}

/* ==========================================================================
   Contacto
   ========================================================================== */

.contact {
  background: var(--white);
}

.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: clamp(40px, 6vw, 80px);
}

.contact h2 {
  margin-bottom: 20px;
}

.contact__intro {
  max-width: 46ch;
  margin-bottom: 32px;
  color: var(--muted);
  line-height: 1.8;
}

.contact__list {
  display: grid;
  gap: 18px;
  margin-bottom: 30px;
}

.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact__icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--cream);
  color: var(--plum);
}

.contact__icon svg {
  width: 18px;
  height: 18px;
}

.contact__label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact__list a,
.contact__list p {
  color: var(--ink);
  font-size: 0.89rem;
  line-height: 1.55;
}

.contact__list a:hover {
  color: var(--turquoise-deep);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact__map {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 30%, rgba(23, 179, 173, 0.12), transparent 55%),
    repeating-linear-gradient(45deg, rgba(74, 36, 84, 0.05) 0 1px, transparent 1px 22px),
    var(--cream);
  box-shadow: var(--shadow-soft);
}

.contact__map-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(0.98);
}

.contact__map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 18px -6px rgba(53, 22, 63, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.65);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.contact__map-pin::before {
  content: "";
  position: absolute;
  inset: -16px;
  border: 1px solid rgba(23, 179, 173, 0.65);
  border-radius: 50%;
  background: rgba(23, 179, 173, 0.16);
  animation: mapPulse 3.2s var(--ease) infinite;
}

.contact__map-pin span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--plum);
}

@keyframes mapPulse {
  0%, 100% { transform: scale(0.85); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .contact__map-pin::before {
    animation: none;
  }
}

.contact__map-card {
  position: absolute;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 17px;
  border: 1px solid rgba(74, 36, 84, 0.08);
  border-radius: 14px;
  background: rgba(255, 253, 251, 0.95);
  box-shadow: 0 16px 34px -20px rgba(53, 22, 63, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.contact__map-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--turquoise-soft);
  color: var(--turquoise-deep);
}

.contact__map-icon svg {
  width: 17px;
  height: 17px;
}

.contact__map-card strong {
  display: block;
  color: var(--plum);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
}

.contact__map-card span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.66rem;
}

.contact__map-credit {
  display: inline-block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.56rem;
  text-decoration: underline;
  opacity: 0.8;
}

.contact__map-credit:hover {
  color: var(--turquoise-deep);
}

.contact__map-link {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid rgba(74, 36, 84, 0.1);
  border-radius: 99px;
  background: rgba(255, 253, 251, 0.95);
  color: var(--plum);
  box-shadow: 0 10px 24px -16px rgba(53, 22, 63, 0.5);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.contact__map-link svg {
  width: 13px;
  height: 13px;
}

.contact__map-link:hover {
  background: var(--plum);
  color: #fff;
}

/* ==========================================================================
   Preguntas frecuentes
   ========================================================================== */

.faq {
  background: var(--cream);
}

.faq__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: clamp(40px, 7vw, 100px);
}

.faq__intro {
  position: sticky;
  top: 120px;
}

.faq__intro h2 {
  margin-bottom: 20px;
}

.faq__intro > p {
  max-width: 36ch;
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.8;
}

.faq__list {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::marker {
  content: "";
}

.faq__icon {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 1px;
  background: var(--plum);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq__item[open] .faq__icon {
  border-color: var(--plum);
  background: var(--plum);
}

.faq__item[open] .faq__icon::before,
.faq__item[open] .faq__icon::after {
  background: #fff;
}

.faq__item[open] .faq__icon::after {
  transform: rotate(0);
}

.faq__answer {
  max-width: 60ch;
  padding-bottom: 22px;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.75;
}

/* ==========================================================================
   Llamada final
   ========================================================================== */

.final-cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(82px, 10vw, 132px);
  background: linear-gradient(135deg, var(--plum), var(--plum-deep));
  color: #fff;
  text-align: center;
}

.final-cta::before {
  content: "";
  position: absolute;
  top: -320px;
  left: 50%;
  width: 760px;
  height: 760px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transform: translateX(-50%);
}

.final-cta::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -300px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(23, 179, 173, 0.18);
  border-radius: 50%;
}

.final-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin-inline: auto;
}

.final-cta .eyebrow {
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
}

.final-cta h2 {
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
}

.final-cta h2 em {
  color: var(--turquoise-soft);
}

.final-cta__inner > p {
  max-width: 56ch;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.final-cta__note {
  margin-top: 22px !important;
  color: rgba(255, 255, 255, 0.45) !important;
  font-size: 0.68rem !important;
  line-height: 1.6 !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 72px 0 28px;
  background: var(--plum-deep);
  color: rgba(255, 255, 255, 0.68);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand--footer .brand__logo {
  height: 54px;
}

.footer__brand > p {
  max-width: 32ch;
  margin: 20px 0 24px;
  font-size: 0.85rem;
  line-height: 1.75;
}

.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  color: #fff;
  font-size: 0.76rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.footer__social svg {
  width: 16px;
  height: 16px;
}

.footer__social:hover {
  border-color: var(--turquoise);
  background: var(--turquoise);
  color: var(--plum-deep);
}

.footer__col h3 {
  margin-bottom: 20px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer__col ul {
  display: grid;
  gap: 10px;
}

.footer__col a,
.footer__col li {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  line-height: 1.55;
}

.footer__col a:hover {
  color: var(--turquoise-soft);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.68rem;
}

.footer__privacy {
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.68rem;
  text-decoration: underline;
}

.footer__privacy:hover {
  color: #fff;
}

.footer__disclaimer {
  max-width: 112ch;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.63rem;
  line-height: 1.65;
}

/* ==========================================================================
   Botón flotante de WhatsApp
   ========================================================================== */

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--turquoise);
  color: #fff;
  box-shadow: 0 14px 32px -10px rgba(14, 143, 138, 0.55);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.25s var(--ease);
}

.wa-float.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.wa-float:hover {
  background: var(--turquoise-deep);
  transform: translateY(-3px);
}

.wa-float > svg {
  width: 28px;
  height: 28px;
}

.wa-float__tip {
  position: absolute;
  right: 70px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--plum);
  color: #fff;
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.wa-float:hover .wa-float__tip {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Aviso de privacidad
   ========================================================================== */

.privacy-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: 85vh;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 40px 100px -20px rgba(20, 6, 25, 0.6);
}

.privacy-dialog::backdrop {
  background: rgba(53, 22, 63, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.privacy-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.privacy-dialog__head h2 {
  font-size: 1.8rem;
}

.privacy-dialog__close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.privacy-dialog__close:hover {
  background: var(--plum);
  color: #fff;
}

.privacy-dialog__body {
  max-height: 60vh;
  overflow: auto;
  padding: 24px 28px 30px;
}

.privacy-dialog__body h3 {
  margin: 20px 0 6px;
  color: var(--plum);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.privacy-dialog__body p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.privacy-dialog__body a {
  color: var(--turquoise-deep);
  text-decoration: underline;
}

/* ==========================================================================
   Animaciones de entrada
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes scroll-dot {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(-4px);
  }
  50% {
    opacity: 1;
    transform: translateY(6px);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1180px) {
  .site-nav {
    gap: 22px;
  }

  .hero__visual {
    width: min(100%, 470px);
  }

  .footer__grid {
    gap: 36px;
  }
}

@media (max-width: 1024px) {
  .hero__grid {
    gap: 40px;
  }

  .hero__title {
    font-size: clamp(3.3rem, 6.4vw, 5.2rem);
  }

  .hero__visual {
    width: min(100%, 430px);
  }

  .services__grid {
    gap: 18px;
  }

  .service-card {
    padding: 26px;
  }
}

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    top: 84px;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 102;
    display: flex;
    width: min(86vw, 380px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 34px 30px 36px;
    overflow-y: auto;
    background: var(--cream);
    box-shadow: -20px 0 60px rgba(53, 22, 63, 0.2);
    transform: translateX(105%);
    transition: transform 0.35s var(--ease);
  }

  .site-header.is-scrolled .site-nav {
    top: 64px;
  }

  .site-nav.is-open {
    transform: none;
  }

  .nav__link {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    display: inline-flex;
    width: 100%;
    margin-top: 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header .brand__logo {
    height: 38px;
  }

  .header__cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 132px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .hero__content {
    max-width: 660px;
  }

  .hero__visual {
    width: min(100%, 500px);
    margin-top: 6px;
    justify-self: center;
  }

  .hero__scroll {
    display: none;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-head h2 {
    max-width: 20ch;
  }

  .section-head__lead {
    justify-self: start;
    max-width: 60ch;
  }

  .philosophy__layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .philosophy__intro {
    position: static;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .doctor__grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .doctor__visual {
    width: min(100%, 430px);
  }

  .doctor__content {
    max-width: 680px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .contact__map {
    min-height: 400px;
  }

  .contact__map-img {
    min-height: 400px;
  }

  .faq__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq__intro {
    position: static;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer {
    padding-bottom: 96px;
  }
}

@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    padding: 28px;
  }

  .step__num {
    margin-bottom: 14px;
    font-size: 2.8rem;
  }

  .step__icon {
    top: 28px;
    right: 24px;
  }

  .stats {
    margin-top: 54px;
  }
}

@media (max-width: 720px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .features {
    gap: 28px 24px;
  }

  .services__help {
    flex-direction: column;
    align-items: flex-start;
  }

  .services__help .btn {
    width: 100%;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

}

@media (max-width: 600px) {
  .hero {
    padding-top: 116px;
    padding-bottom: 64px;
  }

  .hero__title {
    font-size: clamp(2.95rem, 12vw, 4rem);
  }

  .hero__lead {
    margin-top: 22px;
    font-size: 0.96rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__trust {
    gap: 10px 18px;
    font-size: 0.7rem;
  }

  .hero__visual {
    width: 100%;
  }

  .hero__arch {
    border-radius: 22px;
  }

  .hero__halo {
    inset: 18px -14px -18px 14px;
    border-radius: 24px;
  }

  .hero__dots {
    bottom: 60px;
    left: -10px;
    width: 90px;
    height: 90px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 46px;
  }

  .stat {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding-block: 14px;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .stat strong {
    font-size: 2.6rem;
  }

  .stat span {
    margin-top: 0;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-head,
  .section-head--center {
    margin-bottom: 38px;
  }

  .services__note {
    font-size: 0.67rem;
  }

  .doctor__badge {
    bottom: -20px;
    left: 50%;
  }

  .contact__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact__actions .btn {
    width: 100%;
  }

  .contact__map {
    min-height: 340px;
  }

  .contact__map-img {
    min-height: 340px;
  }

  .contact__map-card {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .footer {
    padding-top: 56px;
    padding-bottom: 96px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 38px;
  }

  .footer__brand > p {
    margin-bottom: 18px;
  }

  .wa-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .wa-float__tip {
    display: none;
  }

  .privacy-dialog__head,
  .privacy-dialog__body {
    padding-inline: 20px;
  }
}

@media (max-width: 420px) {
  .container {
    padding-inline: 16px;
  }

  .site-header .brand__logo {
    height: 34px;
  }

  .hero__title {
    font-size: 2.85rem;
  }

  .section {
    padding-block: 64px;
  }

  h2 {
    font-size: 2.35rem;
  }

  .service-card {
    padding: 24px;
  }

  .final-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .final-cta__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee__track {
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    animation: none;
  }

  .marquee__group:last-child {
    display: none;
  }
}
