/* =========================================================
   JOSEPH ESTHETICS — estilos del sitio
   Paleta: #F2E4DF · #A6A6A6 · #737373 · #595959 · #262626
   Tipografía: Marcellus (titulares) + Albert Sans (texto)
   ========================================================= */

:root {
  --blush: #F2E4DF;
  --blush-soft: #F8F1EE;
  --paper: #FDFBFA;
  --silver: #A6A6A6;
  --stone: #737373;
  --graphite: #595959;
  --ink: #262626;
  --white: #FFFFFF;
  --line: rgba(38, 38, 38, 0.18);
  --metal: linear-gradient(100deg, #7d7d7d 0%, #d9d9d9 28%, #8c8c8c 52%, #efefef 74%, #808080 100%);

  --font-display: "Marcellus", "Times New Roman", serif;
  --font-body: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --radius: 4px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 .5em;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.75rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.2; }
p { margin: 0 0 1.1em; max-width: 68ch; }
strong { color: var(--ink); font-weight: 600; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--blush { background: var(--blush); }
.section--soft { background: var(--blush-soft); }
.section--ink { background: var(--ink); color: #d6d6d6; }
.section--ink h2, .section--ink h3 { color: var(--white); }

.lede { font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--graphite); }
.kicker { font-size: .95rem; color: var(--stone); margin-bottom: 1rem; display: block; }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }
.section-head p { margin: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.section--ink :focus-visible { outline-color: var(--white); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 500; font-size: 1rem; letter-spacing: .01em; text-decoration: none;
  border: 1px solid var(--ink); cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--white); }
.btn--solid:hover { background: var(--graphite); border-color: var(--graphite); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light:hover { background: var(--blush); border-color: var(--blush); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.text-link {
  font-weight: 500; color: var(--ink); text-decoration: underline;
  text-decoration-color: var(--silver); text-underline-offset: 6px; text-decoration-thickness: 1px;
  transition: text-decoration-color .2s;
}
.text-link:hover { text-decoration-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(253, 251, 250, 0); transition: background-color .3s, box-shadow .3s, height .3s;
}
.site-header.is-scrolled {
  background: rgba(253, 251, 250, .94); box-shadow: 0 1px 0 var(--line);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  --header-h: 70px;
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: auto; mix-blend-mode: multiply; }
.brand__text { display: grid; line-height: 1; }
.brand__name { font-weight: 600; font-size: 1.05rem; letter-spacing: .24em; }
.brand__sub { font-size: .62rem; letter-spacing: .42em; color: var(--graphite); margin-top: 6px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav__list { list-style: none; display: flex; gap: clamp(18px, 2.4vw, 34px); margin: 0; padding: 0; }
.nav__list a {
  text-decoration: none; font-size: .98rem; color: var(--graphite); padding: 6px 0; position: relative;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__list a:hover, .nav__list a[aria-current="page"] { color: var(--ink); }
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: 0 22px; font-size: .95rem; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%;
  background: transparent; cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 18px; height: 1.5px; background: var(--ink); content: "";
  transform: translateX(-50%); transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before { top: -6px; left: 0; transform: none; }
.nav-toggle span::after { top: 6px; left: 0; transform: none; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 32px;
    padding: 40px var(--gutter); background: var(--paper);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__list a { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--ink); padding: 10px 0; }
  .nav__list a::after { display: none; }
  .nav .btn { min-height: 54px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero (inicio) ---------- */
.hero { position: relative; padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(64px, 8vw, 112px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center; position: relative; z-index: 1; }
.hero__copy h1 { max-width: 13ch; }
.hero__copy .lede { max-width: 46ch; margin-bottom: 2rem; }
.hero__media { position: relative; aspect-ratio: 4 / 5; max-height: 680px; justify-self: end; width: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.hero__badge {
  position: absolute; left: -28px; bottom: 36px; background: var(--paper); padding: 18px 22px;
  border-radius: var(--radius); box-shadow: 0 18px 40px -24px rgba(38,38,38,.45); display: grid; gap: 2px;
}
.hero__badge strong { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; line-height: 1; }
.hero__badge span { font-size: .88rem; color: var(--stone); }
.stars { color: var(--ink); letter-spacing: 2px; font-size: .95rem; }

/* La curva: el trazo en "S" del monograma, dibujado una sola vez */
.curve { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.curve path { fill: none; stroke: url(#metal); stroke-width: 1.6; stroke-linecap: round; }
.curve--draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .curve--draw path { animation: none; stroke-dashoffset: 0; } }

.trust {
  border-top: 1px solid var(--line); margin-top: clamp(48px, 6vw, 80px); padding-top: 28px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; z-index: 1;
}
.trust div { display: grid; gap: 2px; }
.trust strong { font-weight: 500; }
.trust span { font-size: .92rem; color: var(--stone); }

/* ---------- Encabezado de páginas internas ---------- */
.page-hero { padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(48px, 6vw, 88px); position: relative; overflow: hidden; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { max-width: 56ch; }
.breadcrumb { font-size: .9rem; color: var(--stone); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--stone); }

/* ---------- Tratamientos (lista interactiva del inicio) ---------- */
.tx-browse { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.tx-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tx-item { border-bottom: 1px solid var(--line); }
.tx-item a {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: center;
  padding: 28px 4px; text-decoration: none; transition: padding .35s var(--ease);
}
.tx-item h3 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2.1rem); transition: color .3s; }
.tx-item p { margin: 0; grid-column: 1; color: var(--stone); font-size: .98rem; }
.tx-item .tx-go {
  grid-column: 3; grid-row: 1 / span 2; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, border-color .3s;
}
.tx-go svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.tx-item a:hover, .tx-item a:focus-visible, .tx-item.is-active a { padding-left: 16px; }
.tx-item a:hover .tx-go, .tx-item.is-active .tx-go { background: var(--ink); border-color: var(--ink); color: var(--white); }
.tx-item a:hover .tx-go svg, .tx-item.is-active .tx-go svg { transform: rotate(-45deg); }
.tx-preview { position: sticky; top: calc(var(--header-h) + 24px); aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--blush); }
.tx-preview img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease), transform 1.2s var(--ease);
}
.tx-preview img.is-active { opacity: 1; transform: none; }
.tx-preview figcaption {
  position: absolute; left: 16px; bottom: 16px; background: rgba(253,251,250,.92);
  padding: 8px 14px; border-radius: 999px; font-size: .88rem; color: var(--ink);
}

/* ---------- Proceso (secuencia real: se numera) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 22px; }
.steps li::before {
  content: counter(step); display: block; font-family: var(--font-display); font-size: 3rem; line-height: 1;
  color: var(--silver); margin-bottom: 18px;
}
.steps h3 { font-size: 1.35rem; margin-bottom: .4em; }
.steps p { font-size: .98rem; margin: 0; }

/* ---------- Doctor (inicio) ---------- */
.doctor { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.doctor__photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.doctor blockquote { margin: 0 0 2rem; }
.doctor blockquote p {
  font-family: var(--font-display); color: var(--ink); font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.25; max-width: 26ch;
}
.doctor cite { font-style: normal; display: grid; gap: 2px; }
.doctor cite strong { font-weight: 600; }
.doctor cite span { color: var(--stone); font-size: .95rem; }

/* ---------- Reseñas ---------- */
.reviews-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.reviews-head h2 { margin: 0; }
.rating { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.rating__score { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: var(--ink); }
.rating__meta { display: grid; font-size: .92rem; color: var(--stone); }
.reviews-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, calc((100% - 48px) / 3));
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px;
}
.reviews-track::-webkit-scrollbar { display: none; }
.review {
  scroll-snap-align: start; background: var(--paper); border-radius: var(--radius); padding: 30px;
  display: flex; flex-direction: column; gap: 18px; margin: 0;
}
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { margin: 0; color: var(--ink); font-size: 1.05rem; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-size: .95rem; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--blush); color: var(--ink);
  display: grid; place-items: center; font-weight: 600; font-size: .9rem; flex: none;
}
.review__source { color: var(--stone); font-size: .85rem; display: block; }
.reviews-nav { display: flex; gap: 10px; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ink); background: transparent;
  display: grid; place-items: center; cursor: pointer; transition: background .25s, color .25s;
}
.icon-btn:hover { background: var(--ink); color: var(--white); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:disabled { opacity: .3; cursor: default; background: transparent; color: var(--ink); }
.reviews-foot { margin-top: 32px; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.reviews-widget:empty { display: none; }

/* ---------- Marcas (carrusel) ---------- */
.brands { padding-block: clamp(56px, 7vw, 88px); overflow: hidden; }
.brands__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.brands__head h2 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.brands__head p { margin: 0; color: var(--silver); font-size: .95rem; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__group { display: flex; align-items: center; gap: clamp(48px, 7vw, 96px); padding-right: clamp(48px, 7vw, 96px); flex: none; animation: marquee 38s linear infinite; list-style: none; margin: 0; padding-left: 0; }
.marquee:hover .marquee__group { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.brand-logo { display: flex; align-items: center; height: 56px; }
/* Reemplazar el texto por <img src="assets/img/marcas/NOMBRE-blanco.svg"> cuando tengas los logos oficiales */
.brand-logo span { font-family: var(--font-body); font-weight: 500; font-size: clamp(1.4rem, 2.2vw, 1.85rem); letter-spacing: .08em; color: var(--white); white-space: nowrap; }
.brand-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__group { animation: none; flex-wrap: wrap; row-gap: 24px; }
  .marquee__group[aria-hidden="true"] { display: none; }
}

/* ---------- Formulario + contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.section:not(.section--soft) .form-card { background: var(--blush-soft); }
.form-card { background: var(--paper); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.form-card h2, .form-card h3 { margin-bottom: .3em; }
.form-card > p { color: var(--stone); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; margin-top: 28px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .92rem; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; background: var(--white);
  border: 1px solid rgba(38,38,38,.22); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23262626' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(38,38,38,.12); }
.field [aria-invalid="true"] { border-color: #8a2b2b; }
.field__error { font-size: .85rem; color: #8a2b2b; min-height: 0; }
.field__error:empty { display: none; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--graphite); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__note { font-size: .88rem; color: var(--stone); margin: 0; }
.form__status { grid-column: 1 / -1; margin: 0; font-size: .95rem; color: var(--ink); }
.form__status:empty { display: none; }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-list li:first-child { padding-top: 0; }
.info-list svg { width: 22px; height: 22px; color: var(--ink); margin-top: 3px; }
.info-list strong { display: block; font-weight: 600; margin-bottom: 2px; }
.info-list a { text-decoration: none; }
.info-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.info-list p { margin: 0; }

.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center;
  transition: background .25s, color .25s, border-color .25s; color: var(--ink);
}
.socials a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.socials svg { width: 18px; height: 18px; }

.map { margin-top: clamp(40px, 6vw, 72px); border-radius: var(--radius); overflow: hidden; background: var(--blush); }
.map iframe { display: block; width: 100%; height: clamp(320px, 40vw, 440px); border: 0; filter: grayscale(.85) contrast(1.02); }

/* ---------- Página de tratamientos ---------- */
.tx-layout > *, .contact-grid > *, .hero__grid > * { min-width: 0; }
.tx-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.tx-index { position: sticky; top: calc(var(--header-h) + 24px); }
.tx-index p { font-size: .9rem; color: var(--stone); margin-bottom: 12px; }
.tx-index ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.tx-index ol a {
  display: block; padding: 10px 0 10px 20px; margin-left: -1px; text-decoration: none; color: var(--stone);
  border-left: 1px solid transparent; transition: color .2s, border-color .2s; line-height: 1.35;
}
.tx-index ol a:hover { color: var(--ink); }
.tx-index ol a.is-current { color: var(--ink); border-left-color: var(--ink); font-weight: 500; }
.tx-index .btn { margin-top: 28px; width: 100%; }

.tx-article { padding-bottom: clamp(64px, 8vw, 104px); margin-bottom: clamp(64px, 8vw, 104px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.tx-article:last-of-type { border-bottom: 0; margin-bottom: 0; }
.tx-article__media { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--blush); margin-bottom: 36px; }
.tx-article__media img { width: 100%; height: 100%; object-fit: cover; }
.tx-article h2 { margin-bottom: .2em; }
.tx-article__tagline { font-size: 1.15rem; color: var(--stone); margin-bottom: 1.4rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.chips li { font-size: .88rem; padding: 6px 14px; border-radius: 999px; background: var(--blush); color: var(--ink); }

.accordion { border-top: 1px solid var(--line); margin: 28px 0 32px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 500; color: var(--ink); font-size: 1.05rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; width: 12px; height: 12px; flex: none; margin-right: 6px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.accordion .acc-body { padding: 0 0 24px; }
.accordion .acc-body p:last-child { margin-bottom: 0; }
.sublist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.sublist li { padding-left: 22px; position: relative; }
.sublist li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--stone); }

.disclaimer { font-size: .88rem; color: var(--stone); border-left: 1px solid var(--silver); padding-left: 16px; margin-top: 40px; }

/* ---------- Quiénes somos ---------- */
.about-hero { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: end; position: relative; z-index: 1; }
.about-hero__photo { aspect-ratio: 765 / 1024; border-radius: var(--radius); overflow: hidden; }
.about-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.about-hero__copy { padding-bottom: clamp(0px, 4vw, 48px); }
.about-hero__role { font-size: 1.1rem; color: var(--stone); margin-bottom: 2rem; }

.bio { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.bio h2 { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.bio p { font-size: 1.12rem; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.pillar { border-top: 1px solid var(--ink); padding-top: 24px; }
.pillar h3 { margin-bottom: .5em; }
.pillar p { margin: 0; }

.credentials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.credentials div { background: var(--paper); padding: 28px; }
.credentials dt { font-size: .9rem; color: var(--stone); margin-bottom: 6px; }
.credentials dd { margin: 0; font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); line-height: 1.2; }

/* ---------- Banda CTA ---------- */
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; max-width: 20ch; }
.cta-band p { margin: .8em 0 0; color: #cfcfcf; }
.section--soft .cta-band p { color: var(--graphite); }

/* ---------- Texto legal ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blush); padding-top: clamp(64px, 8vw, 96px); padding-bottom: 32px; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 150px; mix-blend-mode: multiply; margin-bottom: 18px; }
.site-footer h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 16px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer p { margin: 0 0 8px; }
.site-footer .socials a { border-color: rgba(38,38,38,.2); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(38,38,38,.15);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--graphite);
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: var(--ink); color: var(--white); display: grid; place-items: center;
  box-shadow: 0 14px 30px -12px rgba(38,38,38,.6); transition: transform .25s var(--ease), background .25s;
}
.wa-float:hover { transform: translateY(-3px); background: var(--graphite); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Imagen de respaldo si una foto de stock no carga ---------- */
img.is-broken { visibility: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}
@media (max-width: 920px) {
  :root { --header-h: 72px; }
  .hero__grid, .tx-browse, .doctor, .contact-grid, .about-hero, .bio, .tx-layout { grid-template-columns: 1fr; }
  .hero__media { max-height: none; aspect-ratio: 4 / 4.2; }
  .hero__badge { left: 16px; bottom: 16px; }
  .tx-preview { display: none; }
  .curve { display: none; }
  .bio h2 { position: static; }
  .tx-index { position: static; }
  .tx-index ol { display: flex; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); gap: 4px; }
  .tx-index ol a { border-left: 0; border-bottom: 2px solid transparent; padding: 10px 12px; white-space: nowrap; margin: 0 0 -1px; }
  .tx-index ol a.is-current { border-bottom-color: var(--ink); }
  .tx-index .btn { display: none; }
  .about-hero__photo { max-width: 520px; }
  .pillars, .credentials { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .trust { grid-template-columns: 1fr; gap: 16px; }
  .steps { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .reviews-track { grid-auto-columns: 86%; }
  .brand__name { font-size: .95rem; }
  .brand img { width: 44px; }
  .btn-row .btn { width: 100%; }
}

/* ---------- Íconos ---------- */
.ico {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center; color: var(--white); background: var(--ink);
}
.ico svg { width: 24px; height: 24px; stroke-width: 1.6; }
.ico--plain { border: 0; width: auto; height: auto; background: none; justify-content: start; margin-bottom: 14px; }
.ico--plain svg { width: 28px; height: 28px; color: var(--graphite); }
.ico--lg { width: 56px; height: 56px; margin-bottom: 18px; }
.ico--lg svg { width: 26px; height: 26px; }


.tx-item a { grid-template-columns: auto 1fr auto; }
.tx-item .ico { grid-row: 1 / span 2; }
.tx-item h3 { grid-column: 2; }
.tx-item p { grid-column: 2; }
.tx-item .tx-go { grid-column: 3; }

.trust__item { display: flex !important; gap: 14px; align-items: flex-start; }
.trust__item > div { display: grid; gap: 2px; }
.pillar .ico { margin-bottom: 18px; }
.steps li { display: grid; grid-template-columns: 1fr auto; align-items: start; column-gap: 12px; }
.steps li::before { grid-column: 1; grid-row: 1; margin-bottom: 16px; }
.steps li .ico { grid-column: 2; grid-row: 1; }
.steps li h3, .steps li p { grid-column: 1 / -1; }

/* ---------- Logos de registro (SENESCYT / ACESS) ---------- */
.reg-logos { display: none; gap: 14px; align-items: center; margin-top: 8px; }
.reg-logos.has-logo { display: flex; }
.reg-logo { display: none; width: auto; max-width: 190px; object-fit: contain; }
.trust .reg-logo { max-width: 120px; }
.has-logo .reg-logo { display: block; }
.cred-mark { display: flex; align-items: center; gap: 12px; min-height: 72px; margin-bottom: 18px; }
.cred-mark.has-logo .ico { display: none; }

/* ---------- Resumen de reseñas de Google ---------- */
.stars { color: #F4B400; }
.stars--lg { font-size: 1.6rem; letter-spacing: 3px; line-height: 1; }
.g-summary {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "text text" "brand stars";
  gap: 14px 24px; align-items: center; max-width: 520px; margin-bottom: 32px;
  background: var(--paper); border-radius: 10px; padding: 22px 26px; text-decoration: none; color: var(--ink);
  box-shadow: 0 10px 30px -18px rgba(38,38,38,.35); transition: box-shadow .25s;
}
.g-summary:hover { box-shadow: 0 14px 36px -16px rgba(38,38,38,.45); }
.g-summary__text { grid-area: text; display: grid; gap: 2px; }
.g-summary__text strong { font-size: 1.1rem; }
.g-summary__text span { color: var(--graphite); font-size: .95rem; }
.g-summary__brand { grid-area: brand; display: flex; align-items: center; }
.g-summary__brand img { height: 32px; width: auto; }
.g-word { font-family: var(--font-body); font-weight: 600; font-size: 1.6rem; letter-spacing: -.01em; color: var(--graphite); }
.g-summary .stars { grid-area: stars; }
.reviews-head { align-items: center; margin-bottom: 28px; }
@media (max-width: 640px) {
  .tx-item a { grid-template-columns: auto 1fr; }
  .tx-item .tx-go { display: none; }
  .ico { width: 42px; height: 42px; }
}
.trust .trust__item { gap: 16px; }
.hero__badge .stars { color: #F4B400; }
