/* ==========================================================================
   Dra. María de los Ángeles Félix Noriega — sistema visual
   Clínico, sobrio, corporativo. Mucho aire, tipografía editorial,
   una sola familia cromática (morado profundo + lila y rosa tenues) y cero ruido.
   Todo el movimiento respeta prefers-reduced-motion.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ol,
ul {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

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

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  /* --- familia morada: profundo para autoridad, lila y rosa para calidez --- */
  --bg: #faf7fb;
  --bg-soft: #fffdff;
  --ink: #241c31;
  --ink-soft: #4a4058;
  --muted: #7b708c;
  --deep: #3b2a55;
  --deep-2: #4d3a6e;
  --accent: #8f6fae;
  --accent-soft: rgba(143, 111, 174, 0.13);
  --lila: #c9b6e4;
  --lila-soft: #ece4f6;
  --rosa: #e3b9d0;
  --rosa-soft: #f7e9f1;
  --malva: #b48ec4;
  --line: rgba(59, 42, 85, 0.14);
  --hairline: rgba(59, 42, 85, 0.08);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;

  --shell: 1180px;
  --pad: clamp(1.25rem, 5vw, 4rem);

  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 10% -2%, rgba(201, 182, 228, 0.5), transparent 34rem),
    radial-gradient(circle at 94% 6%, rgba(227, 185, 208, 0.44), transparent 30rem),
    radial-gradient(circle at 50% 46%, rgba(180, 142, 196, 0.1), transparent 40rem),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--deep);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--deep);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------ tipografía ------------------------------ */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--deep);
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.95rem, 4vw, 3.15rem);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* el nombre vive dentro del H1 (SEO) sin robarle peso visual al titular */
.h1-name {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--accent);
}

.h1-lead {
  display: block;
}

h2 {
  font-size: clamp(1.85rem, 3.9vw, 3rem);
}

h3 {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.35;
  color: var(--ink);
}

em {
  font-style: italic;
  color: var(--accent);
}

.kicker {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 34rem;
}

/* ------------------------------ botones ------------------------------ */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.008em;
  white-space: nowrap;
  transition:
    transform 0.4s var(--ease-out),
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.4s var(--ease);
}

.button .arrow {
  transition: transform 0.45s var(--ease-out);
}

.button:hover .arrow {
  transform: translateX(4px);
}

.button.primary {
  background: var(--deep);
  color: #f9f5fb;
  box-shadow: 0 10px 26px -14px rgba(59, 42, 85, 0.7);
}

.button.primary:hover {
  background: var(--deep-2);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -16px rgba(59, 42, 85, 0.65);
}

.button.primary.dark {
  background: #f9f5fb;
  color: var(--deep);
  box-shadow: none;
}

.button.primary.dark:hover {
  background: #fff;
  transform: translateY(-2px);
}

.button.ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.button.ghost:hover {
  border-color: var(--deep);
  background: rgba(59, 42, 85, 0.04);
  transform: translateY(-2px);
}

.button.compact {
  padding: 0.68rem 1.15rem;
  font-size: 0.86rem;
}

.button.large {
  padding: 1.1rem 2rem;
  font-size: 1rem;
}

/* ------------------------------ topbar ------------------------------ */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}

.scroll-progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--deep), var(--accent));
  transition: width 0.12s linear;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1rem var(--pad);
  background: rgba(250, 247, 251, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), padding 0.35s var(--ease);
}

.topbar.is-stuck {
  border-bottom-color: var(--hairline);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--deep);
  color: #f9f5fb;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name strong {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--deep);
}

.brand-name small {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.9rem);
}

.nav-links a {
  position: relative;
  font-size: 0.88rem;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.nav-links a:hover {
  color: var(--deep);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  place-items: center;
}

.nav-toggle i {
  position: relative;
}

.nav-toggle i,
.nav-toggle i::before,
.nav-toggle i::after {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--deep);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle i::before,
.nav-toggle i::after {
  content: "";
  position: absolute;
}

.nav-toggle i::before {
  transform: translateY(-6px);
}

.nav-toggle i::after {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] i {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] i::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] i::after {
  transform: rotate(-45deg);
}

.mobile-menu {
  position: sticky;
  top: 72px;
  z-index: 105;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem var(--pad) 1.5rem;
  background: rgba(250, 247, 251, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
  animation: menu-in 0.35s var(--ease-out) both;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a:not(.button) {
  padding: 0.7rem 0;
  font-size: 1rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--hairline);
}

.mobile-menu .button {
  margin-top: 0.9rem;
  justify-content: center;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ------------------------------ layout base ------------------------------ */

.section {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) var(--pad);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
  align-items: center;
}

/* ------------------------------ hero ------------------------------ */

.hero {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--pad) clamp(3rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  /* el hero ocupa la pantalla: las cifras quedan justo debajo del pliegue */
  min-height: min(calc(100vh - 11rem), 44rem);
  min-height: min(calc(100svh - 11rem), 44rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.hero h1 {
  max-width: 19ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hero-note::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #8f6fae;
  box-shadow: 0 0 0 4px rgba(143, 111, 174, 0.18);
}

.hero-portrait {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  width: 100%;
  max-width: 23rem;
  margin-left: auto;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--lila), var(--rosa-soft));
  box-shadow: 0 30px 60px -34px rgba(59, 42, 85, 0.5);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

/* velo lila: liga el retrato con la paleta sin apagar el tono de piel */
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(59, 42, 85, 0.28), transparent 38%),
    radial-gradient(130% 95% at 50% 28%, transparent 58%, rgba(143, 111, 174, 0.22));
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(201, 182, 228, 0.34), rgba(227, 185, 208, 0.26));
  mix-blend-mode: soft-light;
}

.portrait-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.5rem);
  color: rgba(59, 42, 85, 0.28);
  letter-spacing: 0.08em;
}

.portrait-frame.is-placeholder .portrait-fallback {
  display: grid;
}

.hero-portrait figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-left: 0.15rem;
}

.hero-portrait figcaption strong {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--deep);
}

.hero-portrait figcaption span {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--hairline);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--deep);
}

.hero-stats span {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 16ch;
}

/* ------------------------------ perfil ------------------------------ */

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}

.profile-copy {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.78;
}

.pledge {
  position: relative;
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--lila-soft), var(--rosa-soft));
  border: 1px solid rgba(143, 111, 174, 0.18);
}

.pledge span {
  width: 3px;
  flex: none;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--rosa));
}

.pledge p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.pledge strong {
  color: var(--deep);
  font-weight: 600;
}

.credentials {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
}

.credentials li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left 0.4s var(--ease-out);
}

.credentials li:hover {
  padding-left: 0.6rem;
}

.cred-year {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.credentials strong {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--deep);
  letter-spacing: -0.01em;
}

.credentials em {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ------------------------------ áreas ------------------------------ */

.areas {
  border-top: 1px solid var(--hairline);
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}

.area-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.85rem 1.5rem 2rem;
  background: var(--bg-soft);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease-out);
}

.area-card:hover {
  background: linear-gradient(180deg, #fff, var(--lila-soft));
}

.area-index {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

/* el índice rota entre los tres tonos de la familia morada */
.area-card:nth-child(3n + 2) .area-index {
  color: var(--malva);
}

.area-card:nth-child(3n) .area-index {
  color: #c48bad;
}

.area-card p {
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--muted);
}

.population {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.1rem;
  margin-top: 2.25rem;
}

.population-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.population ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.population li {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(143, 111, 174, 0.24);
  font-size: 0.83rem;
  color: var(--deep);
  background: var(--lila-soft);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.population li:hover {
  background: var(--rosa-soft);
  border-color: rgba(196, 139, 173, 0.4);
}

/* ------------------------------ enfoque ------------------------------ */

.approach {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  border-top: 1px solid var(--hairline);
}

.approach-copy {
  position: sticky;
  top: 7rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.approach-copy .section-heading {
  margin-bottom: 0;
}

.approach-copy > p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 32rem;
}

.approach-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
}

.approach-list li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--hairline);
}

.approach-list strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep);
  letter-spacing: -0.012em;
}

.approach-list p {
  font-size: 0.89rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 44ch;
}

/* ------------------------------ consulta ------------------------------ */

.booking {
  border-top: 1px solid var(--hairline);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1.4rem;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--accent), var(--rosa)) 1;
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.steps p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}

.booking-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
}

.panel-copy h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: var(--deep);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 9px;
  height: 5px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

.panel-note {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 40ch;
}

.panel-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 80% 12%, rgba(227, 185, 208, 0.26), transparent 58%),
    linear-gradient(150deg, var(--deep-2), var(--deep));
  color: #f9f5fb;
}

.panel-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(249, 245, 251, 0.6);
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.panel-alt {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: rgba(249, 245, 251, 0.68);
  border-bottom: 1px solid rgba(249, 245, 251, 0.28);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease);
}

.panel-alt:hover {
  color: #fff;
}

/* ------------------------------ cierre ------------------------------ */

.closing {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 10%, rgba(201, 182, 228, 0.28), transparent 55%),
    radial-gradient(circle at 84% 88%, rgba(227, 185, 208, 0.24), transparent 52%),
    linear-gradient(155deg, var(--deep-2) 0%, var(--deep) 58%, #2c1f40 100%);
  color: #f9f5fb;
}

.closing-inner {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 7.5rem) var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.closing .kicker {
  color: rgba(249, 245, 251, 0.55);
}

.closing h2 {
  color: #faf7fb;
  max-width: 20ch;
}

.closing h2 em {
  color: #e3b9d0;
}

.closing-note {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(249, 245, 251, 0.72);
  max-width: 40ch;
}

.closing .button {
  margin-top: 0.75rem;
}

/* ------------------------------ preguntas frecuentes ------------------------------ */

.faq {
  border-top: 1px solid var(--hairline);
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
}

.faq-list details {
  border-bottom: 1px solid var(--hairline);
  transition: background 0.4s var(--ease);
}

.faq-list details[open] {
  background: linear-gradient(90deg, var(--lila-soft), transparent 65%);
}

.faq-list summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 1rem 1.35rem 0;
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--deep);
  transition: color 0.3s var(--ease);
}

.faq-list summary:hover h3 {
  color: var(--accent);
}

.faq-list summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-top: 0.45rem;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.4s var(--ease-out);
}

.faq-list details[open] summary::after {
  transform: rotate(-135deg);
}

.faq-list details > p {
  padding: 0 3rem 1.5rem 0;
  max-width: 68ch;
  font-size: 0.93rem;
  line-height: 1.72;
  color: var(--ink-soft);
}

.faq-list details > p a {
  border-bottom: 1px solid var(--line);
}

.faq-list details[open] > p {
  animation: faq-in 0.4s var(--ease-out) both;
}

@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ------------------------------ contacto ------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact-info .section-heading {
  margin-bottom: 0;
}

.contact-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-top: 1px solid var(--hairline);
}

.contact-list > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--hairline);
}

.contact-list dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.2rem;
}

.contact-list dd {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink);
}

.contact-list dd a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: border-color 0.3s var(--ease);
}

.contact-list dd a:hover {
  border-color: var(--deep);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--lila-soft);
  box-shadow: 0 24px 50px -34px rgba(59, 42, 85, 0.45);
}

.contact-map iframe {
  width: 100%;
  height: clamp(20rem, 42vw, 27rem);
  border: 0;
  filter: grayscale(0.35) contrast(1.02);
}

/* ------------------------------ footer ------------------------------ */

.site-footer {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--pad) clamp(6rem, 8vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--hairline);
}

.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.footer-brand strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 0.35rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 42ch;
}

.footer-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--deep);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease-out);
}

.footer-link:hover {
  border-color: var(--deep);
  gap: 0.6rem;
}

.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--hairline);
}

.footer-legal p {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
}

.footer-legal strong {
  color: var(--ink-soft);
}

.footer-legal a {
  border-bottom: 1px solid var(--line);
}

.footer-legal span {
  font-size: 0.76rem;
  color: var(--muted);
}

/* ------------------------------ sticky CTA (móvil) ------------------------------ */

.sticky-cta {
  display: none;
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 115;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  background: var(--deep);
  color: #f9f5fb;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 16px 32px -14px rgba(59, 42, 85, 0.75);
  opacity: 0;
  transform: translateY(120%);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease-out);
}

.sticky-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------ reveal ------------------------------ */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.75s var(--ease-out) var(--delay, 0ms),
    transform 0.85s var(--ease-out) var(--delay, 0ms);
  will-change: opacity, transform;
}

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

/* ------------------------------ responsive ------------------------------ */

@media (max-width: 1024px) {
  .area-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .approach-copy {
    position: static;
  }

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

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .topbar .button.compact {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-portrait {
    order: -1;
    max-width: 22rem;
    margin-left: 0;
  }

  .portrait-frame {
    aspect-ratio: 1 / 1;
  }

  .profile-grid,
  .booking-panel,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sticky-cta {
    display: flex;
  }
}

@media (max-width: 560px) {
  .area-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats span {
    max-width: none;
  }

  .contact-list > div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .hero-actions .button {
    flex: 1 1 100%;
    justify-content: center;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .topbar,
  .sticky-cta,
  .scroll-progress,
  .contact-map,
  .mobile-menu {
    display: none !important;
  }

  body {
    background: #fff;
  }
}
