/* =========================================================
   Clínica Odontológica Guerreros — estilos
   Paleta tomada de la marca: magenta/malva + ciruela + dorado
   ========================================================= */
:root {
  --plum-950: #2A0B2B;
  --plum-900: #3E1240;
  --plum-800: #561A57;
  --plum-700: #7A266E;
  --mauve-500: #B06095;
  --mauve-400: #C57FAE;
  --pink-200: #EBC8DE;
  --pink-100: #F6E4EF;
  --blush-50: #FCF5F9;
  --gold: #F2D48A;
  --gold-deep: #D8AE4F;
  --ink: #2B1A2A;
  --muted: #6E5A6B;
  --white: #fff;

  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-script: "Great Vibes", cursive;

  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 20px 50px -20px rgba(62, 18, 64, .35);
  --shadow-sm: 0 8px 24px -12px rgba(62, 18, 64, .25);
  --container: 1200px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; }
p { margin: 0 0 1rem; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }

.i { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Tipografía de sección ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--mauve-500);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--gold); }
.eyebrow__dot { display: none; }

.title { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; color: var(--plum-900); margin-bottom: 1.25rem; letter-spacing: -.01em; }
.title--light { color: var(--white); }
.hl { color: var(--mauve-500); position: relative; }
.hl--gold { color: var(--gold); }

.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section__head .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section__head p { color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn--primary { background: var(--plum-700); color: var(--white); box-shadow: 0 10px 24px -10px rgba(122, 38, 110, .7); }
.btn--primary:hover { background: var(--plum-800); }
.btn--gold { background: var(--gold); color: var(--plum-900); box-shadow: 0 10px 28px -10px rgba(242, 212, 138, .8); }
.btn--gold:hover { background: #F7DF9F; }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn--outline-light { color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--outline-light:hover { background: var(--white); color: var(--plum-800); }
.btn--ig {
  background-image: linear-gradient(100deg, #F2D48A 0%, #E1306C 45%, #C13584 70%, #7A266E 100%);
  background-origin: border-box; background-repeat: no-repeat;
  color: var(--white); box-shadow: 0 12px 28px -12px rgba(193, 53, 132, .55);
}
.btn--ig:hover { filter: brightness(1.06); }

/* ---------- Topbar ---------- */
.topbar { background: var(--plum-950); color: rgba(255,255,255,.8); font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 42px; }
.topbar__info { display: flex; gap: 2rem; }
.topbar__info span { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__info .i { color: var(--gold); }
.topbar__actions { display: flex; align-items: center; gap: 1rem; }
.topbar__sep { width: 1px; height: 18px; background: rgba(255,255,255,.2); }
.topbar__social { display: flex; gap: .9rem; }

/* Reseña: las estrellas se rellenan de izquierda a derecha al pasar por encima.
   El marcado va en orden inverso y se voltea con row-reverse, así el selector
   de hermanos (~) alcanza a las estrellas que quedan a la izquierda. */
.rate { display: inline-flex; align-items: center; gap: .55rem; }
.rate__label { font-family: var(--font-head); font-weight: 600; white-space: nowrap; transition: color .25s; }
.rate:hover .rate__label { color: var(--gold); }
.rate__stars { display: inline-flex; flex-direction: row-reverse; }
.rate__star { padding: 2px 1px; display: grid; place-items: center; }
.rate__star svg {
  width: 17px; height: 17px; display: block; fill: currentColor; stroke: none;
  color: rgba(255,255,255,.3); transition: color .18s ease, transform .18s ease;
}
.rate__star:hover svg,
.rate__star:hover ~ .rate__star svg { color: var(--gold); }
.rate__star:hover svg { transform: scale(1.2); }
.rate:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.rate:focus-visible .rate__star svg { color: var(--gold); }
.topbar__social svg, .footer__social svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topbar__social a:hover { color: var(--gold); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  transition: box-shadow .3s, height .3s;
}
.header.is-scrolled { box-shadow: 0 6px 30px -12px rgba(62,18,64,.25); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: .65rem; flex: none; }
.brand__icon { width: 44px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; letter-spacing: .02em; color: var(--plum-700); }
.brand__text small { font-family: var(--font-head); font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--mauve-500); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { white-space: nowrap; font-family: var(--font-head); font-weight: 500; color: var(--plum-900); position: relative; padding: .3rem 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--mauve-500); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--mauve-500); }
.nav__cta { display: none; }

.header__actions { display: flex; align-items: center; gap: 1rem; }
.header__phone { white-space: nowrap; display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 700; color: var(--plum-900); }
.header__phone small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); }
.header__phone-ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--pink-100); color: var(--plum-700); }

.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--plum-700); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(120% 90% at 85% 10%, var(--mauve-500) 0%, var(--plum-700) 45%, var(--plum-900) 100%);
  padding: clamp(48px, 7vw, 96px) 0 clamp(110px, 12vw, 170px);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.blob--1 { width: 420px; height: 420px; background: var(--mauve-400); top: -120px; left: -120px; opacity: .35; }
.blob--2 { width: 360px; height: 360px; background: var(--gold); bottom: 40px; right: 30%; opacity: .12; }

.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.6rem, 4.8vw, 4.2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1.4rem; text-transform: uppercase; line-height: 1.02; }
.hero__pre { display: block; font-size: .42em; font-weight: 600; letter-spacing: .02em; text-transform: none; color: rgba(255,255,255,.9); margin-bottom: .1em; }
.hero__script { display: block; font-family: var(--font-script); font-weight: 400; text-transform: none; color: var(--gold); font-size: 1.45em; line-height: .9; margin: .05em 0 .08em; letter-spacing: 0; }
.hero__title em { font-style: normal; color: var(--gold); }
.hero__lead { font-size: 1.12rem; color: rgba(255,255,255,.85); max-width: 520px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }
.hero__trust { display: flex; align-items: center; gap: 1rem; }
.hero__trust small { color: rgba(255,255,255,.8); }
.avatars { display: flex; }
.avatars img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--plum-700); margin-left: -12px; }
.avatars img:first-child { margin-left: 0; }
.stars { color: var(--gold); letter-spacing: .15em; font-size: 1rem; }

.hero__visual { position: relative; justify-self: center; width: min(100%, 460px); }
.arch {
  position: relative; aspect-ratio: 4 / 5; border-radius: 240px 240px 36px 36px; overflow: hidden;
  border: 6px solid rgba(255,255,255,.18); box-shadow: 0 40px 80px -30px rgba(0,0,0,.55);
  background: var(--pink-100);
}
.arch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--gold); pointer-events: none; }
.arch__img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 30%; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: .75rem;
  background: var(--white); color: var(--plum-900); padding: .85rem 1.1rem; border-radius: 18px;
  box-shadow: var(--shadow); animation: floaty 5s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-head); line-height: 1.1; }
.float-card small { color: var(--muted); font-size: .8rem; }
.float-card--a { top: 16%; left: -40px; }
.float-card--a small { display: block; }
.float-card__ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--gold); color: var(--plum-900); font-size: 1.2rem; }
.float-card--b { bottom: 8%; right: -28px; flex-direction: column; align-items: flex-start; gap: 2px; animation-delay: -2.5s; border-left: 4px solid var(--mauve-500); }
.float-card__name { font-family: var(--font-head); font-weight: 700; }
@keyframes floaty { 50% { transform: translateY(-10px); } }

.hero__wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(60px, 8vw, 120px); }

/* ---------- Info bar ---------- */
.infobar { background: var(--plum-900); color: var(--white); padding: 8px 0 44px; }
.infobar__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.info { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); transition: background .3s; }
a.info:hover { background: rgba(255,255,255,.1); }
.info__ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--plum-900); font-size: 1.3rem; flex: none; }
.info strong { display: block; font-family: var(--font-head); font-size: 1.1rem; }
.info small { color: rgba(255,255,255,.75); font-size: .95rem; }

/* ---------- Nosotros ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about__media { position: relative; padding: 0 12% 12% 0; max-width: 480px; }
.about__img { border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow); }
.about__img--main { width: 100%; aspect-ratio: 4 / 5; object-position: center 20%; }
.about__img--sub { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1; border: 8px solid var(--white); object-position: center 30%; }
.about__badge {
  position: absolute; left: -16px; bottom: 18%; display: flex; align-items: center; gap: .6rem;
  background: var(--plum-700); color: var(--white); padding: 1rem 1.3rem; border-radius: 20px; box-shadow: var(--shadow);
}
.about__badge strong { font-family: var(--font-head); font-size: 2.4rem; color: var(--gold); line-height: 1; }
.about__badge span { font-size: .85rem; line-height: 1.25; }
.about__content > p { color: var(--muted); font-size: 1.05rem; }

.checks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.5rem; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background: var(--pink-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A266E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.u-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.about__sign { display: flex; align-items: center; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--pink-100); }
.about__sign img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: center; border: 3px solid var(--pink-200); flex: none; }
.about__signature { display: block; font-family: var(--font-script); font-size: 2.1rem; color: var(--plum-700); line-height: 1; }
.about__sign small { display: block; color: var(--muted); line-height: 1.45; }
/* número de colegiatura y registro de especialista: dato de respaldo, se
   destaca del resto sin competir con la firma */
.about__sign .about__colegiatura {
  margin-top: .2rem; font-family: var(--font-head); font-weight: 600;
  font-size: .72rem; letter-spacing: .09em; color: var(--mauve-500);
}

/* ---------- Servicios ---------- */
.services { background: var(--blush-50); position: relative; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card {
  position: relative; background: var(--white); border-radius: var(--radius-lg); padding: 2.2rem 2rem;
  border: 1px solid var(--pink-100); transition: transform .35s, box-shadow .35s, background .35s, color .35s; overflow: hidden;
}
.card::before { content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%; background: var(--pink-100); transition: transform .5s; }
.card > * { position: relative; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card:hover::before { transform: scale(1.4); }
.card__ico { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(135deg, var(--mauve-500), var(--plum-700)); margin-bottom: 1.5rem; box-shadow: 0 12px 24px -10px rgba(122,38,110,.6); }
.card__ico svg { width: 38px; height: 38px; fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.35rem; color: var(--plum-900); margin-bottom: .6rem; }
.card p { color: var(--muted); }
.card__link { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-weight: 600; color: var(--plum-700); }
.card__link .i { transition: transform .3s; }
.card:hover .card__link .i { transform: translateX(4px); }
.card--featured { background: linear-gradient(160deg, var(--plum-700), var(--plum-900)); border-color: transparent; }
.card--featured::before { background: rgba(255,255,255,.07); }
.card--featured h3, .card--featured .card__link { color: var(--white); }
.card--featured p { color: rgba(255,255,255,.78); }
.card--featured .card__ico { background: var(--gold); }
.card--featured .card__ico svg { stroke: var(--plum-900); }

/* ---------- Cifras ---------- */
.stats { background: linear-gradient(100deg, var(--mauve-500), var(--plum-700)); color: var(--white); padding: clamp(48px, 6vw, 72px) 0; position: relative; overflow: hidden; }
.stats::after { content: ""; position: absolute; inset: 0; background: url("../assets/img/icono-blanco.png") right -60px center / 320px no-repeat; opacity: .08; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; z-index: 1; }
.stat { text-align: center; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.2); }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; color: var(--gold); line-height: 1.1; }
.stat > span { color: rgba(255,255,255,.88); font-weight: 500; }

/* ---------- Por qué elegirnos ---------- */
.why__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.why__content > p { color: var(--muted); font-size: 1.05rem; margin-bottom: 2rem; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; }
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature__ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--pink-100); color: var(--plum-700); font-size: 1.35rem; flex: none; transition: background .3s, color .3s; }
.feature:hover .feature__ico { background: var(--plum-700); color: var(--gold); }
.feature h4 { font-size: 1.1rem; color: var(--plum-900); margin-bottom: .3rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
.why__media { position: relative; }
.why__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; border-radius: 200px 200px var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow); }
.why__quote { position: absolute; left: -32px; bottom: 32px; max-width: 280px; background: var(--white); padding: 1.3rem 1.4rem; border-radius: 20px; box-shadow: var(--shadow); display: flex; gap: .8rem; }
.why__quote .i { color: var(--mauve-500); font-size: 1.6rem; }
.why__quote p { margin: 0; font-family: var(--font-head); font-weight: 600; color: var(--plum-900); line-height: 1.35; }

/* ---------- La Doctora ---------- */
.doctor { background: var(--plum-900); color: rgba(255,255,255,.85); position: relative; overflow: hidden; }
.doctor::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(176,96,149,.45), transparent 70%); top: -200px; left: -200px; }
.doctor__grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.doctor__media { position: relative; }
.doctor__frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.doctor__frame::after { content: ""; position: absolute; inset: 14px; border: 2px solid var(--gold); border-radius: 22px; pointer-events: none; }
.doctor__frame img { width: 100%; height: 100%; object-fit: cover; }
.doctor__mark { position: absolute; width: 120px; right: -30px; top: -40px; opacity: .9; filter: drop-shadow(0 10px 20px rgba(0,0,0,.3)); }
.doctor__role { font-family: var(--font-head); font-weight: 500; color: var(--pink-200); margin-top: -.6rem; margin-bottom: 1.4rem; letter-spacing: .02em; }
.doctor__quote { margin: 1.8rem 0; padding: 1.2rem 1.5rem; border-left: 4px solid var(--gold); background: rgba(255,255,255,.05); border-radius: 0 16px 16px 0; font-family: var(--font-head); font-size: 1.2rem; font-weight: 500; color: var(--white); }

.gallery__title { color: var(--white); font-size: 1.5rem; margin: clamp(64px, 8vw, 100px) 0 1.5rem; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(62,18,64,.55), transparent 50%); }

/* ---------- Testimonios ---------- */
.testimonials { background: var(--blush-50); }
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.tcard { margin: 0; background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column; }
.tcard::before { content: "”"; position: absolute; right: 24px; top: 0; font-family: var(--font-head); font-size: 7rem; line-height: 1; color: var(--pink-100); }
.tcard blockquote { margin: 1rem 0 1.5rem; font-size: 1.05rem; color: var(--ink); flex: 1; position: relative; }
.tcard figcaption { display: flex; align-items: center; gap: .8rem; }
.tcard figcaption strong { display: block; font-family: var(--font-head); color: var(--plum-900); }
.tcard figcaption small { color: var(--muted); }
.tcard__avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--pink-200); color: var(--plum-700); font-family: var(--font-head); font-weight: 700; }
.tcard--accent { background: var(--plum-700); }
.tcard--accent::before { color: rgba(255,255,255,.1); }
.tcard--accent blockquote, .tcard--accent figcaption strong { color: var(--white); }
.tcard--accent figcaption small { color: rgba(255,255,255,.7); }
.tcard--accent .tcard__avatar { background: var(--gold); color: var(--plum-900); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq__intro p { color: var(--muted); margin-bottom: 1.6rem; }
.faq__list { display: grid; gap: 1rem; }
.faq details { border: 1px solid var(--pink-100); border-radius: 18px; background: var(--white); transition: box-shadow .3s, border-color .3s; }
.faq details[open] { border-color: var(--pink-200); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 1.25rem 1.5rem; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: var(--plum-900); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--pink-100); color: var(--plum-700); font-size: 1.3rem; transition: transform .3s, background .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--plum-700); color: var(--white); }
.faq details p { padding: 0 1.5rem 1.3rem; margin: 0; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(110deg, var(--plum-700), var(--mauve-500)); color: var(--white); padding: clamp(48px, 6vw, 72px) 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gold); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: .5rem; }
.cta p { margin: 0; color: rgba(255,255,255,.85); }
.cta p a { color: var(--gold); font-weight: 700; }
.cta__actions { display: flex; gap: 1rem; flex-wrap: wrap; flex: none; }

/* ---------- Sedes ---------- */
/* fondo oscuro a propósito: las fotos son muy saturadas (cielo azul, uniformes
   fucsia) y sobre ciruela destacan mucho más que sobre blanco */
.sedes { background: var(--plum-900); color: rgba(255,255,255,.85); }
.sedes .section__head p { color: rgba(255,255,255,.75); }
.sedes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2.2rem); max-width: 960px; margin-inline: auto; }

.sede { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }

.sede__foto { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--plum-800); cursor: zoom-in; }
.sede__foto img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; transition: transform .6s, filter .4s; }
.sede__foto:hover img, .sede__foto:focus-visible img { transform: scale(1.04); filter: brightness(1.05); }
.sede__foto:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }

.sede__etiqueta {
  position: absolute; top: 1rem; left: 1rem; z-index: 1;
  font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .4rem .9rem; border-radius: 999px; background: var(--white); color: var(--plum-800);
  box-shadow: 0 8px 20px -10px rgba(42,11,43,.8);
}
.sede__etiqueta--nueva { background: var(--gold); color: var(--plum-900); }

.sede__lupa {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(42,11,43,.55); color: var(--white); backdrop-filter: blur(4px);
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.sede__lupa svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sede__foto:hover .sede__lupa, .sede__foto:focus-visible .sede__lupa { opacity: 1; transform: none; }

.sede__datos { padding: clamp(1.3rem, 2.5vw, 1.8rem); display: flex; flex-direction: column; flex: 1; }
.sede__datos h3 { font-size: 1.5rem; color: var(--white); margin-bottom: 1rem; }
.sede__lista { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .8rem; }
.sede__lista li { display: flex; gap: .7rem; align-items: flex-start; line-height: 1.4; }
.sede__lista .i { color: var(--gold); margin-top: .15rem; }
.sede__lista small { color: rgba(255,255,255,.55); font-size: .82rem; }
.sede__lista a:hover { color: var(--gold); }
.sede__acciones { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: auto; }
.sede__acciones .btn { flex: 1 1 auto; font-size: .95rem; padding: .75rem 1.2rem; }

/* visor de fotos: <dialog> nativo, cierra con Escape y atrapa el foco solo */
.visor { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; color: var(--white); }
.visor::backdrop { background: rgba(26, 6, 27, .88); backdrop-filter: blur(6px); }
.visor__img { max-width: 94vw; max-height: 82vh; width: auto; height: auto; border-radius: var(--radius); display: block; margin-inline: auto; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }
.visor__pie { margin: .9rem 0 0; text-align: center; font-family: var(--font-head); font-size: .95rem; color: rgba(255,255,255,.85); }
.visor__cerrar {
  position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--white); color: var(--plum-800);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.8); transition: background .25s, color .25s;
}
.visor__cerrar:hover { background: var(--gold); }
.visor__cerrar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* ---------- Instagram ---------- */
.ig { background: var(--blush-50); padding: clamp(56px, 7vw, 88px) 0 clamp(52px, 6vw, 76px); overflow: hidden; }
.ig__head { text-align: center; max-width: 660px; margin: 0 auto clamp(32px, 4vw, 48px); }
.ig__head .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.ig__head p { color: var(--muted); margin-bottom: 1.6rem; }

.ig__carousel { position: relative; --ig-gap: clamp(.7rem, 1.4vw, 1.2rem); }

/* el desvanecido de los bordes es una máscara, no un velo encima: así la tarjeta
   que se levanta al pasar el mouse no queda por debajo de una sombra blanca */
.ig__marquee {
  --ig-fade: clamp(28px, 6vw, 110px);
  overflow-x: auto; overflow-y: hidden; scroll-behavior: auto;
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--ig-fade), #000 calc(100% - var(--ig-fade)), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 var(--ig-fade), #000 calc(100% - var(--ig-fade)), transparent);
}
.ig__marquee::-webkit-scrollbar { display: none; }

/* el relleno deja sitio al levantamiento y a la sombra de cada tarjeta */
.ig__track {
  display: flex; gap: var(--ig-gap); width: max-content;
  list-style: none; margin: 0; padding: 12px 0 30px;
}

.ig__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: var(--white); color: var(--plum-700);
  box-shadow: 0 12px 28px -12px rgba(62, 18, 64, .5);
  transition: background .25s, color .25s, box-shadow .25s;
}
.ig__nav:hover { background: var(--plum-700); color: var(--white); }
.ig__nav:active { transform: translateY(-50%) scale(.93); }
.ig__nav:focus-visible { outline: 3px solid var(--mauve-400); outline-offset: 3px; }
.ig__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ig__nav--prev { left: clamp(8px, 1.6vw, 28px); }
.ig__nav--next { right: clamp(8px, 1.6vw, 28px); }

.ig__item { flex: none; width: clamp(180px, 18vw, 264px); }
.ig__item > a {
  display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius); background: var(--pink-100); box-shadow: var(--shadow-sm);
  transition: transform .35s, box-shadow .35s;
}
.ig__item > a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ig__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ig__item > a:hover img { transform: scale(1.07); }
.ig__overlay {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--white);
  background: linear-gradient(180deg, rgba(122,38,110,.15), rgba(62,18,64,.7));
  opacity: 0; transition: opacity .35s;
}
.ig__item > a:hover .ig__overlay,
.ig__item > a:focus-visible .ig__overlay { opacity: 1; }
.ig__overlay svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ig__badge { position: absolute; top: .55rem; right: .65rem; z-index: 1; color: var(--white); filter: drop-shadow(0 2px 6px rgba(42,11,43,.6)); transition: opacity .35s; }
.ig__badge svg { width: 20px; height: 20px; display: block; }
.ig__item > a:hover .ig__badge { opacity: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--plum-950); color: rgba(255,255,255,.7); padding: clamp(56px, 7vw, 88px) 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer__logo { width: 190px; margin-bottom: 1.3rem; }
.footer h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 1.2rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer a:hover { color: var(--gold); }
.footer__social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--white); transition: background .3s, color .3s; }
.footer__social a:hover { background: var(--gold); color: var(--plum-900); }
.footer__bottom {
  margin-top: 3rem; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap;
}
.credit { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; transition: color .25s; }
.credit strong { font-family: var(--font-head); font-weight: 600; color: var(--white); transition: color .25s; }
.credit:hover strong { color: var(--gold); }
.credit__avatar { width: 26px; height: 26px; border-radius: 50%; margin-left: .15rem; border: 1px solid rgba(255,255,255,.25); transition: border-color .25s; }
.credit:hover .credit__avatar { border-color: var(--gold); }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7); transition: transform .3s; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; animation: pulse 2.2s infinite; z-index: -1; }
.wa-float svg { width: 32px; height: 32px; fill: var(--white); }
.wa-float:hover { transform: scale(1.08); }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card, .wa-float::before { animation: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1360px) {
  .header__phone { display: none; }
}
@media (max-width: 1180px) {
  .nav { gap: 1.2rem; }
}

@media (max-width: 991px) {
  :root { --header-h: 72px; }
  .topbar { font-size: .8rem; }
  .topbar__info { display: none; }
  .topbar__inner { height: 38px; justify-content: center; }
  .topbar__actions { gap: .85rem; }
  .rate { gap: .45rem; }
  .rate__star svg { width: 16px; height: 16px; }
  .header__cta { display: none; }
  .burger { display: flex; }

  /* menú móvil — fijo al viewport para no generar desplazamiento horizontal;
     el JS calcula --nav-top con el borde inferior real del header, que varía
     según la barra superior siga visible o ya se haya ido con el scroll */
  .header { backdrop-filter: none; background: var(--white); }
  .nav {
    position: fixed; top: var(--nav-top, var(--header-h)); left: 0; right: 0; bottom: 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 1rem 16px 2rem;
    transform: translateX(100%); transition: transform .4s ease; overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { font-size: 1.3rem; padding: 1rem 0; border-bottom: 1px solid var(--pink-100); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { display: inline-flex; margin-top: 1.5rem; }
  body.menu-open { overflow: hidden; }
  body.menu-open .wa-float { display: none; }

  /* hero móvil: foto a sangre con overlay (como la plantilla) */
  .hero { padding: 0; min-height: min(calc(100svh - var(--header-h)), 820px); display: flex; align-items: flex-end; }
  .hero__grid { grid-template-columns: 1fr; position: static; padding: 0 0 120px; }
  .hero__visual { position: absolute; inset: 0; width: 100%; z-index: 0; }
  .arch { aspect-ratio: auto; height: 100%; border-radius: 0; border: 0; box-shadow: none; }
  .arch::after { border-radius: 0; box-shadow: none; background: linear-gradient(180deg, rgba(62,18,64,.25) 0%, rgba(122,38,110,.55) 40%, rgba(62,18,64,.95) 78%); }
  .arch__img { object-position: 40% 20%; }
  .float-card--a { top: 20px; left: auto; right: 16px; padding: .6rem .8rem; }
  .float-card--a .float-card__ico { width: 34px; height: 34px; }
  .float-card--b { display: none; }
  .hero__content { position: relative; z-index: 1; padding-top: min(34vh, 300px); }
  .hero__bg { display: none; }

  .infobar__grid { grid-template-columns: 1fr; gap: .8rem; }
  .about__grid, .why__grid, .doctor__grid, .faq__grid { grid-template-columns: 1fr; }
  .sedes__grid { grid-template-columns: 1fr; max-width: 460px; }
  .visor__cerrar { top: -10px; right: 4px; width: 40px; height: 40px; }
  .about__media { max-width: 560px; margin-inline: auto; width: 100%; }
  .services__grid, .testimonials__grid { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .stat:nth-child(3) { border-left: 0; }
  .why__media { max-width: 480px; margin-inline: auto; width: 100%; order: -1; }
  .why__quote { left: 16px; }
  .doctor__media { max-width: 480px; margin-inline: auto; width: 100%; }
  .doctor__mark { right: 0; width: 90px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .cta__inner { flex-direction: column; text-align: center; }
  .cta__actions { justify-content: center; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .brand__icon { width: 38px; }
  .brand__text strong { font-size: 1.25rem; }
  .brand__text small { font-size: .55rem; letter-spacing: .22em; }
  .hero__title { font-size: clamp(2.3rem, 11vw, 3rem); }
  .hero__lead { font-size: 1rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .services__grid, .testimonials__grid, .features, .checks { grid-template-columns: 1fr; }
  .card { padding: 1.8rem 1.5rem; }
  .about__badge { left: 0; bottom: 14%; padding: .8rem 1rem; }
  .about__badge strong { font-size: 1.9rem; }
  .why__quote { position: relative; left: 0; bottom: 0; margin: -48px 16px 0; max-width: none; }
  .gallery { gap: .7rem; }
  .btn--ig { font-size: .88rem; padding: .8rem 1.1rem; }
  .topbar { font-size: .72rem; }
  .topbar__actions { gap: .6rem; }
  .topbar__social { gap: .7rem; }
  .rate__star svg { width: 15px; height: 15px; }
  .ig__nav { width: 38px; height: 38px; }
  .ig__nav svg { width: 18px; height: 18px; }
  .ig__item { width: clamp(150px, 44vw, 200px); }
  .cta__actions .btn { flex: 1 1 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { justify-content: center; text-align: center; gap: .9rem; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}
