/* =========================================================
   Puentepiedra Dental — estilos
   Estilo: clínico limpio (ref. Base44 health clinic) +
   paleta de la clínica: mármol blanco, cobre del logo, piedra.
   ========================================================= */

/* DM Sans servida desde la web (variable: pesos 100–1000 y tamaño óptico) */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url("../assets/fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url("../assets/fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }


:root {
  --bg: #FBFCFD;          /* mármol blanco (frío) */
  --bg-soft: #EFF2F5;
  --stone: #EDF0F4;       /* gris piedra claro */
  --white: #FFFFFF;
  --ink: #2B2420;         /* texto principal */
  --ink-2: #5F5650;       /* texto secundario */
  --ink-3: #8C827B;
  --copper: #B8673C;      /* cobre (acentos) */
  --logo: #CD8302;        /* naranja del símbolo, sacado del PDF del logo */
  --logo-dark: #A86A00;
  --logo-ink: #1A1A18;    /* negro del texto del logo en el PDF */
  --copper-dark: #94502C;
  --copper-soft: #F1DCCD;
  --sand: #EEDFC6;
  --marble: url("../assets/img/marmol-blanco.webp");
  --line: rgba(43, 36, 32, .12);
  --glass: rgba(43, 36, 32, .74);

  --radius: 22px;
  --radius-lg: 28px;
  --container: 1240px;
  --gutter: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fondo de toda la web: mármol blanco fijo; el contenido se desliza por encima */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--bg) var(--marble) center / cover no-repeat;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
figure { margin: 0; }
svg { display: block; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
.lead { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tipografía ---------- */
.h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -.03em;
  font-weight: 400;
  color: var(--ink);
}
.h2--sm { font-size: clamp(2rem, 3.8vw, 3.1rem); }
.h2--xl { font-size: clamp(2.8rem, 6vw, 4.6rem); }
.h4 { font-size: 1.2rem; letter-spacing: -.01em; font-weight: 500; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--ink-2); line-height: 1.55; }
.lead a { color: var(--ink); }
.eyebrow { font-size: .82rem; font-weight: 600; letter-spacing: .01em; color: var(--ink); margin-bottom: 14px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 0;
  font-size: .92rem; font-weight: 500;
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--copper-soft); }
.btn--dark { background: var(--ink); color: var(--white); height: 52px; }
.btn--dark:hover { background: var(--copper-dark); }
.btn--block { width: 100%; }
.btn--copper { background: var(--copper); color: var(--white); height: 52px; padding: 0 26px; }
.btn--copper:hover { background: var(--copper-dark); }
.btn--ghost { background: transparent; color: var(--white); height: 52px; border: 1px solid rgba(255,255,255,.28); }
.btn--ghost:hover { background: rgba(255,255,255,.08); }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 8px; border-radius: 999px;
  background: var(--glass); color: var(--white);
  font-size: .9rem; font-weight: 500;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.badge__icon {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35);
}
.badge__icon svg { width: 16px; height: 16px; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }

/* Logo completo (símbolo + "puentepiedra DENTAL" con su tipografía original).
   Grande arriba, como el rótulo de recepción; se compacta al hacer scroll. */
.nav__brand {
  display: inline-flex; align-items: center;
  padding: 10px 18px; border-radius: 22px;
  color: var(--logo-ink);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.nav__logo { display: block; height: clamp(96px, 9vw, 128px); width: auto; transition: height .45s var(--ease); }
.nav.is-scrolled .nav__brand {
  padding: 8px 14px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 30px -18px rgba(30,40,55,.35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav.is-scrolled .nav__logo { height: 66px; }
.nav__brand:hover .nav__logo path:first-child { fill: var(--logo-dark); }

.nav__pill {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 5px 5px 22px; border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--white);
}
.nav__links { display: flex; gap: 26px; margin-right: 14px; }
.nav__links a {
  position: relative; font-size: .88rem; font-weight: 500; padding: 8px 0; opacity: .85;
  transition: opacity .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active { opacity: 1; }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__cta {
  display: inline-flex; align-items: center; height: 42px; padding: 0 22px;
  border-radius: 999px; background: var(--white); color: var(--ink);
  font-size: .88rem; font-weight: 600;
  transition: background-color .35s var(--ease);
}
.nav__cta:hover { background: var(--copper-soft); }

.nav__toggle {
  display: none; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.12);
  position: relative;
}
.nav__toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.6px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 24px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 20.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 20.5px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; align-items: stretch;
  padding: 170px 0 56px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* velo muy suave tras el titular para que se lea bien sobre las vetas */
  background: radial-gradient(ellipse 55% 60% at 28% 50%, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 70%);
}

.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px 48px;
  align-items: center;
}
.hero__copy { padding-bottom: 20px; }

.hero__title {
  font-size: clamp(3rem, 7.4vw, 7.4rem);
  line-height: .98; letter-spacing: -.038em; font-weight: 300;
  color: var(--ink); margin-bottom: 36px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line--strong { font-weight: 500; }

.hero__visual { position: relative; }
.hero__media {
  position: relative;
  border-radius: var(--radius-lg); overflow: hidden;
  height: min(74svh, 720px); min-height: 480px;
  box-shadow: 0 30px 80px -40px rgba(43,36,32,.45);
}
.hero__media img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 30%; }

.hero__card {
  position: absolute; z-index: 2;
  left: -72px; bottom: 28px;
  width: min(320px, 92%);
  padding: 22px;
  border-radius: var(--radius);
  background: var(--glass); color: var(--white);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.hero__card p { font-size: 1.02rem; line-height: 1.5; margin-bottom: 22px; }

/* estado inicial mientras carga la animación */
.is-loading .hero__title .line > span { transform: translateY(110%); }
.is-loading .hero__badge,
.is-loading .hero__card { opacity: 0; }
.is-loading .hero__media { clip-path: inset(100% 0 0 0 round var(--radius-lg)); }

/* =========================================================
   SECCIONES
   ========================================================= */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--pt0 { padding-top: 0; }
/* todas las secciones dejan ver el mármol blanco fijo del fondo (body::before) */
.section--soft,
.section--stone,
.section--gradient,
.section--gradient-alt { background: transparent; }

.head { margin-bottom: clamp(40px, 5vw, 64px); }
.head--center { text-align: center; max-width: 820px; margin-left: auto; margin-right: auto; }
.head--center .lead { max-width: 560px; margin: 18px auto 0; }
.head--split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 64px; align-items: end; }
.head--split .h2 { max-width: 640px; }
.head--split .lead { max-width: 460px; }

.eyebrow-mark { display: inline-block; width: 44px; color: var(--logo); margin-bottom: 14px; }
.eyebrow-mark svg { width: 100%; height: auto; }
.head--center .eyebrow { font-weight: 400; font-size: 1.05rem; color: var(--ink-2); }

/* ---------- Split card (intro) ---------- */
.split-card {
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}
/* el texto queda encima: el panel de puntos sale deslizándose desde detrás */
.split-card__text { position: relative; z-index: 2; background: var(--white); padding: clamp(28px, 4vw, 44px); }
.split-card__text .h4 { margin-bottom: 26px; }
.split-card__text p { color: var(--ink-2); font-size: .95rem; }
.split-card__list {
  position: relative; z-index: 1;
  padding: clamp(28px, 4vw, 44px);
  background: var(--stone);
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; align-content: center;
}
.split-card__list li { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; line-height: 1.35; color: var(--ink); }
.num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--white); font-size: .78rem; font-weight: 500;
}

/* ---------- Implantología (especialidad) ---------- */
/* En escritorio la tarjeta se queda fija (pin) mientras el scroll cuenta el proceso */
.implant-section { padding-top: clamp(40px, 6vw, 80px); }
.implant {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr);
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ink); color: var(--white);
  box-shadow: 0 40px 80px -50px rgba(43,36,32,.6);
}
.implant__body { padding: clamp(28px, 3.4vw, 50px); min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.implant__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--copper-soft);
  margin-bottom: 16px;
}
.implant__eyebrow svg { width: 18px; height: 18px; color: var(--logo); }
.implant__title { color: var(--white); max-width: 560px; font-size: clamp(1.9rem, 2.9vw, 2.75rem); }
.implant__lead { margin-top: 16px; max-width: 500px; color: rgba(255,255,255,.7); font-size: clamp(.98rem, 1.2vw, 1.06rem); line-height: 1.55; text-wrap: pretty; }
.implant__actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Pasos sincronizados con la ilustración.
   Los círculos son opacos para que la línea de progreso pase POR DETRÁS (no los atraviesa);
   el paso activo se marca con el color del texto, no con transparencia de todo el bloque. */
.istory { position: relative; margin-top: 20px; display: grid; gap: 2px; max-width: 480px; }
.istory__step {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start;
  padding: 6px 0;
}
.istory__n {
  position: relative; z-index: 1;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: #3A322D; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  font-size: .72rem; font-weight: 600; color: rgba(255,255,255,.75);
  transition: background-color .45s var(--ease), color .45s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease);
}
.istory__step.is-done .istory__n,
.istory__step.is-active .istory__n { background: var(--logo); color: #fff; box-shadow: none; }
.istory__step.is-active .istory__n { transform: scale(1.08); box-shadow: 0 0 0 6px var(--ink), 0 0 0 7px rgba(205,131,2,.45); }
.istory h3 { font-size: 1rem; font-weight: 500; color: var(--white); margin: 5px 0 2px; transition: color .45s var(--ease); }
.istory p { font-size: .86rem; line-height: 1.45; color: rgba(255,255,255,.62); transition: color .45s var(--ease); }
.istory--live .istory__step h3 { color: rgba(255,255,255,.42); }
.istory--live .istory__step p { color: rgba(255,255,255,.3); }
.istory--live .istory__step.is-done h3 { color: rgba(255,255,255,.75); }
.istory--live .istory__step.is-done p { color: rgba(255,255,255,.48); }
.istory--live .istory__step.is-active h3 { color: #fff; }
.istory--live .istory__step.is-active p { color: rgba(255,255,255,.72); }
.istory__rail { position: absolute; z-index: 0; left: 15.5px; top: 24px; bottom: 24px; width: 1px; background: rgba(255,255,255,.16); list-style: none; }
.istory__fill { position: absolute; inset: 0; background: var(--logo); transform-origin: top; transform: scaleY(var(--p, 1)); }

/* Ilustración: fondo blanco limpio (el mármol es solo el fondo de la web) */
.implant__visual {
  position: relative; min-height: 460px; overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F8FA 100%);
}
.implant__scene { position: absolute; inset: 118px 4% 84px; width: 92%; height: calc(100% - 202px); overflow: visible; }
.implant__scene .ip-tag text { font-family: var(--font); font-size: 11px; font-weight: 500; fill: #fff; }
.implant__hint {
  position: absolute; top: 26px; left: 30px; z-index: 1;
  font-size: .8rem; font-weight: 600; color: var(--ink-2);
}
/* título del paso en curso (cambia con el scroll) */
.implant__stage-title {
  position: absolute; top: 50px; left: 30px; z-index: 1;
  display: flex; align-items: baseline; gap: 12px; color: var(--ink);
}
.implant__stage-n { font-size: .85rem; font-weight: 600; color: var(--logo); }
.implant__stage-name { font-size: clamp(1.7rem, 2.6vw, 2.6rem); letter-spacing: -.03em; line-height: 1; }
.implant__caption {
  position: absolute; left: 0; right: 0; bottom: 30px; z-index: 1;
  text-align: center; font-size: clamp(1.15rem, 1.7vw, 1.45rem); letter-spacing: -.02em; color: var(--ink);
}

/* Escenario fijo: en escritorio la tarjeta se centra en la pantalla y desde ahí hace el zoom */
@media (min-width: 901px) {
  .implant-stage { height: 100svh; display: flex; align-items: center; justify-content: center; }
  .implant { flex: none; width: 100%; height: min(780px, calc(100svh - 140px)); }
}
@media (min-width: 901px) and (max-height: 820px) {
  .implant__lead { display: none; }
  .istory p { display: none; }
}

/* Casos debajo de la tarjeta */
.implant-steps { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.implant-steps li {
  background: var(--white); border-radius: var(--radius); padding: 26px 24px 28px;
  box-shadow: 0 1px 0 var(--line);
}
.implant-steps__num { display: block; font-size: .82rem; color: var(--copper); font-weight: 600; margin-bottom: 18px; }
.implant-steps__title { font-size: 1.12rem; letter-spacing: -.01em; margin-bottom: 8px; }
.implant-steps li p { font-size: .9rem; color: var(--ink-2); }

/* ---------- Tarjetas de tratamiento ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 980px; margin: 0 auto; }
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 20px 20px 24px;
  display: flex; flex-direction: column;
  position: relative;
  /* el hover usa `translate` para no pelearse con el `transform` que anima GSAP (efecto baraja) */
  transition: translate .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { translate: 0 -4px; box-shadow: 0 24px 50px -30px rgba(30,40,55,.4); }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.card__icon {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-soft); color: var(--ink);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.card__icon svg { width: 18px; height: 18px; }
.card:hover .card__icon { background: var(--copper); color: var(--white); }
.card__num { font-size: .82rem; color: var(--ink-2); }
/* tarjeta destacada: implantes (la especialidad) */
.card--featured { background: var(--ink); color: var(--white); }
.card--featured .card__icon { background: var(--copper); color: var(--white); }
.card--featured p { color: rgba(255,255,255,.72); }
.card__tag { font-size: .72rem; font-weight: 600; letter-spacing: .02em; padding: 5px 10px; border-radius: 999px; background: rgba(184,103,60,.25); color: var(--copper-soft); }
.card__link { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 500; color: var(--copper-soft); }
.card__link svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.card__link:hover svg { transform: translateX(4px); }
.card__title { font-size: 1.12rem; letter-spacing: -.01em; margin-bottom: 10px; }
.card p { font-size: .88rem; color: var(--ink-2); line-height: 1.5; }

/* ---------- Features (01-04) ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.feature__num { display: block; font-size: 2rem; letter-spacing: -.03em; color: var(--copper); margin-bottom: 26px; }
.feature__title { font-size: 1.12rem; margin-bottom: 10px; }
.feature p { font-size: .9rem; color: var(--ink-2); max-width: 300px; }

/* ---------- Media card (espacio) ---------- */
.media-card {
  max-width: 1060px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 30px 70px -50px rgba(30,40,55,.35);
}
.media-card__img { position: relative; min-height: 520px; overflow: hidden; }
.media-card__img img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.media-card__body { padding: clamp(32px, 5vw, 56px); align-self: center; }
.media-card__body .h2 { margin-bottom: 20px; }
.media-card__body .lead { margin-bottom: 30px; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-size: .88rem; font-weight: 500; }
.tick {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--white);
}
.tick svg { width: 16px; height: 16px; }

/* ---------- Doctor ---------- */
.doctor {
  display: grid; grid-template-columns: .9fr 1.3fr .8fr; gap: 16px;
  align-items: stretch;
}
.doctor__img, .doctor__aside { border-radius: var(--radius-lg); overflow: hidden; min-height: 460px; position: relative; }
.doctor__img img, .doctor__aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doctor__aside img { object-position: 70% 50%; }
.doctor__body {
  background: var(--white); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.doctor__quote { width: 34px; height: 34px; color: var(--copper); margin-bottom: 22px; }
.doctor__eyebrow { color: var(--ink-2); font-weight: 500; }
.doctor__text {
  font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.3; letter-spacing: -.02em;
}
.doctor__name { font-size: 1.15rem; font-weight: 500; }
.doctor__role { font-size: .88rem; color: var(--ink-2); }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.step {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--line);
}
.step__num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--copper); color: var(--copper); font-weight: 500; margin-bottom: 36px;
}
.step__title { font-size: 1.15rem; margin-bottom: 10px; }
.step p { font-size: .9rem; color: var(--ink-2); }

/* ---------- Contacto ---------- */
.contact-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.contact-info__title { font-size: 1.1rem; margin-bottom: 10px; }
.contact-info p { color: var(--ink-2); font-size: .95rem; }
.contact-info a { border-bottom: 1px solid transparent; transition: border-color .3s; }
.contact-info a:hover { border-color: currentColor; }

.form-card {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
}
.form-card__media { position: relative; min-height: 560px; }
.form-card__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; }
.map {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: 24px; gap: 8px;
  background: linear-gradient(180deg, rgba(43,36,32,0) 55%, rgba(43,36,32,.55) 100%);
}
.map__note { font-size: .75rem; color: rgba(255,255,255,.85); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map.is-loaded { background: none; padding: 0; }

.form { padding: clamp(28px, 4vw, 44px); }
.form .h4 { margin-bottom: 26px; }
.form .eyebrow { margin-bottom: 6px; font-size: .78rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; padding-top: 10px; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: .78rem; color: var(--ink-3); margin-bottom: 4px; }
.field input,
.field select {
  font: inherit; font-size: .95rem; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--line); background: transparent;
  padding: 8px 0 10px; border-radius: 0; outline: none;
  transition: border-color .3s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232B2420' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 20px; }
.field input:focus,
.field select:focus { border-color: var(--ink); }
.field.is-invalid input { border-color: #B3412E; }

.field--radios { border: 0; margin: 0; padding: 14px 0 0; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.field--radios legend { width: 100%; padding: 0; margin-bottom: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 8px 16px; border-radius: 999px; font-size: .85rem;
  border: 1px solid var(--line); transition: all .3s var(--ease); cursor: pointer;
}
.chip input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 2px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--ink-2); margin-bottom: 10px; cursor: pointer; }
.check input { accent-color: var(--ink); width: 16px; height: 16px; margin: 2px 0 0; flex: none; }
.check a { text-decoration: underline; color: var(--ink); }
.check.is-invalid span { color: #B3412E; }
.form .btn--block { margin-top: 14px; }
.form__status { font-size: .88rem; margin-top: 12px; min-height: 1.2em; }
.form__status.is-ok { color: #2F6B4A; }
.form__status.is-error { color: #B3412E; }

.rgpd { margin-top: 18px; font-size: .78rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 14px; }
.rgpd summary { cursor: pointer; font-weight: 500; color: var(--ink-2); }
.rgpd dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 0; }
.rgpd dt { font-weight: 600; color: var(--ink-2); }
.rgpd dd { margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px 72px; align-items: start; }
.faq__head .h2 { margin-bottom: 22px; }
.accordion { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; border: 0; background: none; text-align: left;
  font-size: 1.06rem; font-weight: 500;
}
.acc__icon { position: relative; width: 14px; height: 14px; flex: none; transition: transform .5s var(--ease); }
.acc__icon::before,
.acc__icon::after { content: ""; position: absolute; background: currentColor; }
.acc__icon::before { left: 0; right: 0; top: 6.25px; height: 1.5px; }
.acc__icon::after { top: 0; bottom: 0; left: 6.25px; width: 1.5px; }
.acc__btn[aria-expanded="true"] .acc__icon { transform: rotate(135deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.acc__panel > div { overflow: hidden; }
.acc__panel p { color: var(--ink-2); padding: 0 40px 24px 0; max-width: 620px; }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }

/* ---------- Footer ---------- */
/* ---------- Pie de página marrón: nombre a lo ancho + mapa ---------- */
.footer {
  position: relative; overflow: hidden;
  padding: clamp(64px, 8vw, 96px) 0 28px;
  background:
    radial-gradient(ellipse 45% 55% at 85% 10%, rgba(205,131,2,.16) 0%, rgba(205,131,2,0) 70%),
    var(--ink);
  color: rgba(255,255,255,.72); font-size: .9rem;
}
.footer a { transition: color .3s var(--ease); }
.footer a:hover { color: var(--copper-soft); }
.footer__top { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px 56px; align-items: stretch; }
.footer__claim { font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.12; letter-spacing: -.025em; color: var(--white); max-width: 420px; }
.footer__cta { margin-top: 22px; }
.footer__cols { margin-top: 44px; display: grid; grid-template-columns: 1.2fr 1fr .9fr; gap: 28px; }
.footer__h { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--logo); margin-bottom: 12px; }
.footer__cols p { line-height: 1.7; }
.footer__hours { margin-top: 12px; }
.footer__links { display: grid; gap: 4px; line-height: 1.6; }

/* mapa con el estilo de la web: la imagen real de Rojales, oscurecida y en tonos cálidos */
.footer__map { position: relative; min-height: 340px; border-radius: 24px; overflow: hidden; background: #1E1916; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.footer__map-img, .footer__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
/* imagen estática: oscura y cálida, a juego con el pie */
.footer__map-img { filter: grayscale(1) invert(1) sepia(.45) brightness(.95) contrast(.95); }
/* mapa interactivo de Google: tono cálido suave, legible como un Google Maps normal */
.footer__map iframe { filter: grayscale(.45) sepia(.18) contrast(.96); padding-bottom: 86px; box-sizing: border-box; background: #1E1916; }
.footer__map::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(43,36,32,0) 40%, rgba(43,36,32,.7) 100%); }
.footer__map.is-live::after { display: none; }
.footer__pin { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; translate: -50% -50%; border-radius: 50%; background: var(--logo); box-shadow: 0 0 0 4px rgba(255,255,255,.9); z-index: 2; }
.footer__pin::before, .footer__pin::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--logo); animation: pinPulse 2.4s ease-out infinite; }
.footer__pin::after { animation-delay: 1.2s; }
@keyframes pinPulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
.footer__map-card {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 3;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 14px 14px 18px; border-radius: 18px;
  background: rgba(43,36,32,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: .84rem; line-height: 1.45;
}
.footer__map-card strong { color: var(--white); font-weight: 500; }
.footer__map-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.footer__map-actions .btn { height: 40px; padding: 0 16px; font-size: .82rem; }
.footer__map-actions .btn--light:hover { color: var(--ink); }
.footer__attrib { position: absolute; right: 12px; top: 10px; z-index: 3; font-size: .66rem; color: rgba(255,255,255,.55); }
.footer__map.is-live .footer__pin, .footer__map.is-live .footer__attrib { display: none; }

/* nombre a todo el ancho (letras oficiales del logotipo, coloreadas con máscara) */
.footer__brand-row { margin-top: clamp(48px, 6vw, 80px); display: flex; align-items: flex-end; gap: clamp(14px, 2vw, 28px); }
.footer__wm {
  flex: 1; aspect-ratio: 291.86 / 46; background: #F7F4EF;
  -webkit-mask: url("../assets/wordmark-line.svg") left bottom / 100% 100% no-repeat;
  mask: url("../assets/wordmark-line.svg") left bottom / 100% 100% no-repeat;
}
.footer__sign { flex: none; width: clamp(90px, 13vw, 170px); display: flex; flex-direction: column; align-items: center; gap: 10px; padding-bottom: .9%; }
.footer__sign img { width: 62%; height: auto; }
.footer__dental {
  width: 100%; aspect-ratio: 162 / 38; background: #F7F4EF;
  -webkit-mask: url("../assets/wordmark-dental.svg") center / 100% 100% no-repeat;
  mask: url("../assets/wordmark-dental.svg") center / 100% 100% no-repeat;
}
.footer__bottom { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .78rem; color: rgba(255,255,255,.5); }
.footer__legal { display: flex; gap: 18px; }

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__map { min-height: 300px; }
}
@media (max-width: 620px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > div:first-child { grid-column: 1 / -1; }
  .footer__map-card { flex-direction: column; align-items: stretch; }
  .footer__map-actions .btn { flex: 1; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .doctor { grid-template-columns: 1fr 1.3fr; }
  .doctor__aside { display: none; }
}

@media (max-width: 900px) {
  .nav__links {
    position: absolute; top: calc(100% + 8px); right: 0;
    flex-direction: column; gap: 0; margin: 0;
    min-width: 220px; padding: 10px 22px;
    background: rgba(43, 36, 32, .94); border-radius: var(--radius);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
  }
  .nav__links a { display: block; padding: 12px 0; font-size: 1rem; }
  .nav__links a::after { display: none; }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__pill { position: relative; padding-left: 5px; }
  .nav__toggle { display: block; }

  .hero { padding-top: 130px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { padding-bottom: 0; }
  .hero__media { min-height: 420px; height: 60svh; }
  .hero__card { position: relative; left: auto; bottom: auto; margin: -96px 0 0 16px; width: min(340px, calc(100% - 32px)); }

  .head--split { grid-template-columns: 1fr; }
  .implant { grid-template-columns: 1fr; }
  .implant__visual { min-height: 440px; order: -1; }
  .implant-steps { grid-template-columns: 1fr; }
  .split-card, .media-card, .form-card { grid-template-columns: 1fr; }
  .media-card__img { min-height: 380px; }
  .form-card__media { min-height: 320px; }
  .steps { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; gap: 20px; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 620px) {
  .nav { padding: 14px 16px; }
  .nav__logo { height: 72px; }
  .nav.is-scrolled .nav__logo { height: 50px; }
  .nav__brand { padding: 6px 10px; }
  .nav__cta { padding: 0 18px; }
  .container { padding: 0 16px; }

  .hero__title { font-size: clamp(2.7rem, 13vw, 4rem); margin-bottom: 26px; }
  .hero__media { height: 54svh; min-height: 360px; }

  .split-card__list { grid-template-columns: 1fr; }
  .implant__actions .btn { flex: 1 1 100%; }
  .implant__visual { min-height: 0; height: min(520px, calc(100svh - 110px)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .implant__scene { inset: 96px 0 66px; width: 100%; height: calc(100% - 162px); }
  .implant__scene .ip-tag { transform-box: fill-box; transform-origin: center; scale: 1.3; }
  .cards { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .ticks { grid-template-columns: 1fr; }
  .doctor { grid-template-columns: 1fr; }
  .doctor__img { min-height: 380px; }
  .form__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* =========================================================
   PÁGINA DE IMPLANTES (implantes.html)
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn--outline { background: transparent; color: var(--ink); height: 52px; padding: 0 24px; box-shadow: inset 0 0 0 1px rgba(43,36,32,.22); }
.btn--outline:hover { background: rgba(255,255,255,.7); }

/* Hero claro: titular centrado sobre el mármol */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); }
.ihero2 { position: relative; padding: 196px 0 80px; text-align: center; }
.ihero2__inner { display: flex; flex-direction: column; align-items: center; }
.ihero2 .crumbs { justify-content: center; margin-bottom: 22px; }
.ihero2__pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.8); box-shadow: inset 0 0 0 1px var(--line);
  font-size: .82rem; font-weight: 600; color: var(--ink-2);
}
.ihero2__pill svg { width: 16px; height: 16px; color: var(--logo); }
.ihero2__title {
  margin-top: 20px;
  font-size: clamp(3rem, 7.4vw, 7.4rem); line-height: .95; letter-spacing: -.045em; font-weight: 400; color: var(--ink);
}
.ihero2__title .line { display: inline-block; overflow: hidden; padding-bottom: .08em; vertical-align: top; }
.ihero2__title .line > span { display: inline-block; }
.ihero2__lead { margin-top: 26px; max-width: 660px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.ihero2__actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ihero2__chips { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.ihero2__chips li { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; color: var(--ink); }
.ihero2__scroll { margin-top: 54px; display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-3); }
.ihero2__scroll svg { width: 14px; height: 14px; }
.ihero2__scroll:hover { color: var(--ink); }

/* Historia con scroll: la sección se queda fija y cada pantalla es un paso */
.story { position: relative; }
.story__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px 64px; align-items: center; width: 100%; }
.story__title { margin-bottom: 34px; font-size: clamp(2rem, 3.4vw, 3rem); max-width: 520px; }
.story__steps { display: grid; gap: 28px; }
.story__n { display: block; font-size: 2.8rem; line-height: 1; letter-spacing: -.03em; color: var(--logo); margin-bottom: 12px; }
.story__step h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -.02em; margin-bottom: 12px; }
.story__step p { max-width: 480px; font-size: clamp(1.02rem, 1.3vw, 1.15rem); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.story__progress { display: none; }
.story__visual {
  position: relative; height: 560px; overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F8FA 100%);
  box-shadow: 0 40px 80px -50px rgba(30,40,55,.35);
}
.story__scene { position: absolute; inset: 30px 3% 70px; width: 94%; height: calc(100% - 100px); overflow: visible; }
.story__scene .st-tag text { font-family: var(--font); font-size: 11px; font-weight: 500; fill: #fff; }
.story__caption {
  position: absolute; left: 0; right: 0; bottom: 26px;
  text-align: center; font-size: clamp(1.15rem, 1.7vw, 1.45rem); letter-spacing: -.02em; color: var(--ink);
}

/* con JS: pantalla fija y un paso cada vez */
.story--live .story__pin { height: 100svh; display: flex; align-items: center; box-sizing: border-box; padding: 110px 0 24px; }
.story--live .story__steps { gap: 0; }
.story--live .story__step { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.story--live .story__step.is-active { opacity: 1; transform: none; }
.story--live .story__progress { display: flex; gap: 8px; max-width: 320px; margin-top: 34px; }
.story__bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(43,36,32,.12); overflow: hidden; }
.story__bar span { display: block; height: 100%; background: var(--logo); transform: scaleX(0); transform-origin: left; }
.story--live .story__visual { height: min(640px, calc(100svh - 170px)); }
.story--live .story__caption { opacity: 0; }

/* Precio */
.iprice {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: center;
  padding: clamp(32px, 5vw, 60px); border-radius: var(--radius-lg);
  background: var(--white); box-shadow: 0 30px 70px -50px rgba(30,40,55,.35);
}
.iprice__text .h2 { margin-bottom: 18px; }
.iprice__text .lead { margin-bottom: 28px; }
.iprice__list { display: grid; gap: 22px; }
.iprice__list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.iprice__n { font-size: 1.4rem; letter-spacing: -.02em; color: var(--logo); line-height: 1.2; }
.iprice__list h3 { font-size: 1.08rem; margin-bottom: 4px; }
.iprice__list p { font-size: .92rem; color: var(--ink-2); }

/* Zonas (SEO local) */
.izones {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 64px; align-items: center;
  padding: clamp(32px, 5vw, 60px); border-radius: var(--radius-lg);
  background: rgba(255,255,255,.72); box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.izones .h2 { margin-bottom: 16px; }
.izones__list { display: flex; flex-wrap: wrap; gap: 10px; }
.izones__list li { padding: 10px 18px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: .92rem; font-weight: 500; }
.izones__list li:first-child { background: var(--ink); color: var(--white); box-shadow: none; }

/* Partes */
.iparts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.iparts__item { background: var(--white); border-radius: var(--radius); padding: 28px 26px 30px; box-shadow: 0 1px 0 var(--line); }
.iparts__num { display: block; font-size: 2rem; letter-spacing: -.03em; color: var(--logo); margin-bottom: 26px; }
.iparts__title { font-size: 1.2rem; margin-bottom: 8px; }
.iparts__item p { font-size: .92rem; color: var(--ink-2); }

/* Casos */
.icases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.icases__item {
  background: var(--white); border-radius: var(--radius); padding: 26px 24px 28px;
  box-shadow: 0 1px 0 var(--line);
  transition: translate .5s var(--ease), box-shadow .5s var(--ease);
}
.icases__item:hover { translate: 0 -4px; box-shadow: 0 24px 50px -30px rgba(30,40,55,.4); }
.icases__q { display: block; font-size: .82rem; color: var(--copper); font-weight: 600; margin-bottom: 18px; }
.icases__a { font-size: 1.12rem; letter-spacing: -.01em; margin-bottom: 8px; }
.icases__item p { font-size: .9rem; color: var(--ink-2); }

/* Proceso: línea de tiempo con progreso ligado al scroll */
.iproc { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px 80px; align-items: start; }
.iproc__head { position: sticky; top: 130px; }
.iproc__head .h2 { margin-bottom: 18px; }
.itimeline { position: relative; display: grid; gap: 14px; }
.itimeline__step { position: relative; z-index: 1; display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; }
.itimeline__n {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--ink); font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease);
}
.itimeline__step.is-on .itimeline__n { background: var(--logo); color: #fff; box-shadow: 0 0 0 6px rgba(205,131,2,.16); }
.itimeline__card { background: var(--white); border-radius: var(--radius); padding: 22px 24px 24px; box-shadow: 0 1px 0 var(--line); }
.itimeline__card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.itimeline__card p { font-size: .92rem; color: var(--ink-2); }
.itimeline__rail { position: absolute; z-index: 0; left: 23.5px; top: 24px; bottom: 24px; width: 1px; background: var(--line); list-style: none; }
.itimeline__fill { position: absolute; inset: 0; background: var(--logo); transform-origin: top; transform: scaleY(0); }

/* Comparativa */
.icompare { max-width: 980px; margin: 0 auto; overflow-x: auto; border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 30px 70px -50px rgba(30,40,55,.35); }
.icompare table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .95rem; }
.icompare th, .icompare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.icompare thead th { font-size: .9rem; font-weight: 600; color: var(--ink); }
.icompare tbody th { font-weight: 500; color: var(--ink-2); width: 30%; }
.icompare tbody tr:last-child th, .icompare tbody tr:last-child td { border-bottom: 0; }
.icompare .is-best { background: rgba(205,131,2,.07); }
.icompare thead .is-best { color: var(--logo); }
.icompare .yes, .icompare .no, .icompare .mid { display: inline-flex; align-items: center; gap: 8px; }
.icompare .yes::before, .icompare .no::before, .icompare .mid::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.icompare .yes::before { background: #3E8E5A; }
.icompare .no::before { background: #B8673C; }
.icompare .mid::before { background: #C9B79F; }

/* CTA final */
.icta {
  display: grid; grid-template-columns: 1.3fr auto; gap: 28px 48px; align-items: end;
  padding: clamp(36px, 5vw, 64px); border-radius: var(--radius-lg);
  background: var(--ink); color: var(--white);
  box-shadow: 0 40px 80px -50px rgba(43,36,32,.6);
}
.icta__title { color: var(--white); max-width: 680px; }
.icta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1080px) {
  .icases { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .ihero2 { padding: 150px 0 60px; }
  .story__grid { grid-template-columns: 1fr; gap: 18px; align-content: start; }
  .story__visual { order: -1; height: 420px; }
  .story--live .story__pin { align-items: flex-start; padding: 84px 0 16px; }
  .story--live .story__visual { height: 46svh; }
  .story--live .story__title { display: none; }
  .story--live .story__text .eyebrow { margin-bottom: 8px; }
  .story__n { font-size: 2rem; margin-bottom: 6px; }
  .story__step h3 { font-size: 1.35rem; margin-bottom: 8px; }
  .story__step p { font-size: .98rem; }
  .story--live .story__progress { margin-top: 18px; }
  .iprice, .izones { grid-template-columns: 1fr; }
  .iproc { grid-template-columns: 1fr; }
  .iproc__head { position: static; }
  .icta { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 620px) {
  .ihero2__actions .btn { flex: 1 1 100%; }
  .ihero2__actions { width: 100%; }
  .ihero2__chips { flex-direction: column; align-items: flex-start; }
  .iparts, .icases { grid-template-columns: 1fr; }
  .icta__actions .btn { flex: 1 1 100%; }
  .icompare th, .icompare td { padding: 14px 16px; }
}

/* ---------- Hero en rejilla (bento) · implantes.html ---------- */
.ibento { padding: 176px 0 40px; }
.ibento__crumbs { margin-bottom: 16px; }
.ibento__grid {
  display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px; height: clamp(560px, calc(100svh - 230px), 700px);
}
.ibento__card { position: relative; border-radius: 26px; overflow: hidden; margin: 0; }

.ibento__intro {
  grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: clamp(28px, 3vw, 40px);
  background: rgba(255,255,255,.88); box-shadow: inset 0 0 0 1px rgba(43,36,32,.08);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ibento__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--logo); }
.ibento__eyebrow svg { width: 16px; height: 16px; }
.ibento__title { font-size: clamp(2.6rem, 4.6vw, 4.4rem); line-height: .97; letter-spacing: -.045em; font-weight: 400; color: var(--ink); }
.ibento__lead { margin-top: 18px; font-size: clamp(.98rem, 1.15vw, 1.06rem); line-height: 1.6; color: var(--ink-2); max-width: 460px; text-wrap: pretty; }
.ibento__chips { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.ibento__chips li { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; }

.ibento__photo { grid-row: span 2; }
.ibento__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ibento__photo:hover img { transform: scale(1.04); }
.ibento__photo figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px;
  background: var(--glass); color: #fff; font-size: .78rem; font-weight: 500;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* Preguntas del paciente (rotan solas; los puntos permiten elegir) */
.ibento__ask { display: flex; flex-direction: column; justify-content: space-between; padding: 26px 28px; background: var(--ink); color: #fff; }
.ibento__ask-top { display: flex; justify-content: space-between; align-items: center; }
.ibento__ask-label { font-size: .78rem; font-weight: 600; color: var(--logo); }
.ibento__dots { display: flex; gap: 6px; }
.ibento__dots button { width: 8px; height: 6px; padding: 0; border: 0; border-radius: 6px; background: rgba(255,255,255,.3); transition: width .4s var(--ease), background-color .4s var(--ease); }
.ibento__dots button.is-on { width: 22px; background: var(--logo); }
.ibento__qs { display: grid; }
.ibento__q { grid-area: 1 / 1; opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.ibento__q.is-on { opacity: 1; transform: none; pointer-events: auto; }
.ibento__q h2 { font-size: clamp(1.25rem, 1.75vw, 1.55rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 400; color: #fff; }
.ibento__q p { margin-top: 10px; font-size: .86rem; line-height: 1.5; color: rgba(255,255,255,.68); }
.ibento__q a { display: inline-flex; gap: 8px; margin-top: 14px; font-size: .86rem; font-weight: 500; color: var(--copper-soft); }
.ibento__q a span { color: var(--logo); transition: transform .35s var(--ease); }
.ibento__q a:hover span { transform: translateX(4px); }

/* Avance de "Cómo funciona" */
.ibento__how { display: flex; flex-direction: column; justify-content: space-between; padding: 26px 28px; background: var(--copper-soft); color: var(--ink); transition: background-color .4s var(--ease); }
.ibento__how:hover { background: #EDD2BF; }
.ibento__how-top { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 600; color: var(--copper-dark); }
.ibento__how-top span { font-weight: 500; color: var(--ink-2); }
.ibento__how-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ibento__how-steps > span { display: flex; flex-direction: column; gap: 6px; font-size: .78rem; line-height: 1.3; }
.ibento__how-steps b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(43,36,32,.12); font-size: .68rem; font-weight: 600; }
.ibento__how-steps .is-first b { background: var(--logo); color: #fff; }
.ibento__how-cta { display: flex; justify-content: space-between; align-items: flex-end; font-size: clamp(1.25rem, 1.75vw, 1.55rem); letter-spacing: -.02em; line-height: 1.1; }
.ibento__how-cta svg { width: 24px; height: 24px; color: var(--logo); flex: none; transition: transform .4s var(--ease); }
.ibento__how:hover .ibento__how-cta svg { transform: translateY(4px); }

@media (max-width: 1080px) {
  .ibento__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .ibento__intro { grid-column: 1 / -1; grid-row: auto; }
  .ibento__photo { grid-row: span 2; min-height: 420px; }
  .ibento__ask, .ibento__how { min-height: 220px; }
}
@media (max-width: 620px) {
  .ibento { padding-top: 130px; }
  .ibento__grid { grid-template-columns: 1fr; }
  .ibento__photo { grid-row: auto; min-height: 280px; order: 3; }
  .ibento__ask { order: 1; }
  .ibento__how { order: 2; }
}

/* ---------- Guías del blog (implantes.html) ---------- */
.iguides { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 14px; }
.iguide {
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px 24px 24px; border-radius: var(--radius);
  background: var(--white); box-shadow: 0 1px 0 var(--line);
  transition: translate .5s var(--ease), box-shadow .5s var(--ease);
}
.iguide:hover { translate: 0 -4px; box-shadow: 0 24px 50px -30px rgba(30,40,55,.4); }
.iguide--featured { background: var(--ink); color: var(--white); padding: 32px 32px 28px; }
.iguide__tag { font-size: .78rem; font-weight: 600; color: var(--copper); }
.iguide--featured .iguide__tag { color: var(--logo); }
.iguide__title { font-size: 1.15rem; line-height: 1.25; letter-spacing: -.01em; }
.iguide--featured .iguide__title { font-size: clamp(1.4rem, 2.1vw, 1.9rem); line-height: 1.15; letter-spacing: -.02em; color: var(--white); max-width: 520px; }
.iguide__text { font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.iguide--featured .iguide__text { color: rgba(255,255,255,.7); max-width: 480px; }
.iguide__soon {
  margin-top: auto; align-self: flex-start;
  padding: 6px 12px; border-radius: 999px;
  font-size: .74rem; font-weight: 500; color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.iguide--featured .iguide__soon { color: var(--copper-soft); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }

@media (max-width: 1080px) {
  .iguides { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .iguide--featured { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .iguides { grid-template-columns: 1fr; }
}

/* =========================================================
   BLOG · ARTÍCULO (blog/*.html)
   ========================================================= */
.post { padding: 176px 0 clamp(80px, 10vw, 130px); }
.post__head { max-width: 900px; }
.post__head .crumbs { margin-bottom: 26px; flex-wrap: wrap; }
.post__tag { font-size: .82rem; font-weight: 600; color: var(--copper); margin-bottom: 14px; }
.post__title { font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 400; color: var(--ink); }
.post__lead { margin-top: 22px; max-width: 720px; font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.post__meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; font-size: .84rem; color: var(--ink-3); }

.post__layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; margin-top: 48px; }
.post__body {
  padding: clamp(28px, 4.5vw, 60px); border-radius: var(--radius-lg);
  background: var(--white); box-shadow: 0 30px 70px -50px rgba(30,40,55,.35);
  font-size: 1.06rem; line-height: 1.75; color: var(--ink-2);
}
.post__body > * + * { margin-top: 18px; }
.post__body h2 { margin-top: 52px; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -.025em; color: var(--ink); scroll-margin-top: 110px; }
.post__body h3 { margin-top: 30px; font-size: 1.18rem; letter-spacing: -.01em; color: var(--ink); font-weight: 500; }
.post__body h2 + p, .post__body h3 + p { margin-top: 10px; }
.post__body a { color: var(--copper-dark); text-decoration: underline; text-underline-offset: 3px; }
.post__body strong { color: var(--ink); font-weight: 600; }

.post__summary { padding: 24px 26px; border-radius: 20px; background: var(--bg-soft); box-shadow: inset 3px 0 0 var(--logo); }
.post__summary-title { font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.post__summary ul { display: grid; gap: 8px; }
.post__summary li, .post__list li { position: relative; padding-left: 22px; font-size: 1rem; line-height: 1.6; }
.post__summary li::before, .post__list li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--logo); }
.post__list { display: grid; gap: 8px; }
.post__steps { counter-reset: paso; display: grid; gap: 14px; }
.post__steps li { counter-increment: paso; position: relative; padding-left: 46px; }
.post__steps li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--logo); color: #fff; font-size: .85rem; font-weight: 600; line-height: 1; }

.post__cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 34px; padding: 26px 28px; border-radius: 22px; background: var(--ink); color: rgba(255,255,255,.72); }
.post__cta-title { font-size: 1.2rem; color: #fff; margin-bottom: 4px; }
.post__cta .btn { text-decoration: none; color: #fff; }
.post__faq { margin-top: 14px; }
.post__back { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .98rem; }

.post__aside { position: sticky; top: 120px; display: grid; gap: 14px; }
.post__toc { padding: 22px 22px 24px; border-radius: 22px; background: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.post__toc-title { font-size: .8rem; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.post__toc ol { display: grid; gap: 2px; counter-reset: toc; }
.post__toc li { counter-increment: toc; }
.post__toc a { display: flex; gap: 10px; padding: 6px 8px; border-radius: 10px; font-size: .88rem; line-height: 1.35; color: var(--ink-2); transition: background-color .3s var(--ease), color .3s var(--ease); }
.post__toc a::before { content: counter(toc, decimal-leading-zero); font-size: .72rem; font-weight: 600; color: var(--logo); padding-top: 2px; }
.post__toc a:hover, .post__toc a.is-active { background: var(--bg-soft); color: var(--ink); }
.post__aside-cta { padding: 22px; border-radius: 22px; background: var(--copper-soft); }
.post__aside-cta p { font-size: 1.05rem; color: var(--ink); margin-bottom: 14px; }

@media (max-width: 1080px) {
  .post__layout { grid-template-columns: minmax(0, 1fr); }
  .post__aside { position: static; order: -1; }
  .post__aside-cta { display: none; }
}
@media (max-width: 620px) {
  .post { padding-top: 130px; }
  .post__body { font-size: 1rem; }
  .post__cta .btn { flex: 1 1 100%; }
}

/* enlace "Leer la guía" en las tarjetas de guías publicadas */
.iguide__read { margin-top: auto; display: inline-flex; gap: 8px; font-size: .88rem; font-weight: 500; color: var(--copper-dark); }
.iguide--featured .iguide__read { color: var(--copper-soft); }
.iguide__read span { color: var(--logo); transition: transform .35s var(--ease); }
a.iguide:hover .iguide__read span { transform: translateX(4px); }

/* ---------- Franja marrón a todo el ancho (rompe el ritmo de tarjetas sobre mármol) ---------- */
.band {
  position: relative; overflow: hidden;
  margin: clamp(40px, 6vw, 80px) 0;
  padding: clamp(80px, 10vw, 130px) 0;
  background:
    radial-gradient(ellipse 50% 70% at 88% 30%, rgba(205,131,2,.22) 0%, rgba(205,131,2,0) 70%),
    radial-gradient(ellipse 40% 60% at 6% 100%, rgba(184,103,60,.18) 0%, rgba(184,103,60,0) 70%),
    var(--ink);
  color: var(--white);
}
/* marca del logo como marca de agua */
.band::after {
  content: ""; position: absolute; right: -60px; bottom: -70px; width: 420px; height: 280px; pointer-events: none;
  background: url("../assets/logo-mark.svg") center / contain no-repeat;
  opacity: .07; filter: grayscale(1) brightness(3);
}
.band .container { position: relative; z-index: 1; }
.band .eyebrow { color: var(--copper-soft); }
.band .h2 { color: var(--white); }
.band .lead { color: rgba(255,255,255,.7); }
.band .izones { background: none; box-shadow: none; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.band .izones__list li { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); color: var(--white); }
.band .izones__list li:first-child { background: var(--logo); box-shadow: none; }

/* ---------- Blog · componentes visuales de los artículos ---------- */
/* barra de progreso de lectura */
.post-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.post-progress span { display: block; height: 100%; background: var(--logo); transform: scaleX(0); transform-origin: left; }

/* foto de cabecera */
.post__hero { margin: 40px 0 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; height: clamp(260px, 38vw, 460px); box-shadow: 0 40px 80px -50px rgba(30,40,55,.4); }
.post__hero img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; }
.post__hero figcaption {
  position: absolute; left: 18px; bottom: 18px; padding: 8px 14px; border-radius: 999px;
  background: var(--glass); color: #fff; font-size: .8rem; font-weight: 500;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* tarjetas con icono */
.post__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.post__cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post__card { padding: 22px 22px 24px; border-radius: 20px; background: var(--bg-soft); }
.post__card-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--logo); margin-bottom: 14px; box-shadow: 0 1px 0 var(--line); }
.post__card-icon svg { width: 20px; height: 20px; }
.post__card-n { float: right; font-size: .78rem; font-weight: 600; color: var(--ink-3); }
.post__body .post__card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.post__card p { font-size: .95rem; line-height: 1.55; }
.post__card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 42px 1fr; gap: 0 16px; align-items: start; }
.post__card--wide .post__card-icon { margin: 0; grid-row: span 2; }

/* lista de comprobación */
.post__check { padding: 24px 26px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; }
.post__check li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; line-height: 1.55; }
.post__check li::before {
  content: ""; width: 26px; height: 26px; border-radius: 50%; margin-top: 1px;
  background: var(--logo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* aviso destacado */
.post__callout { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 24px; border-radius: 20px; background: #FFF7EC; box-shadow: inset 4px 0 0 var(--logo); }
.post__callout-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--logo); color: #fff; }
.post__callout-icon svg { width: 20px; height: 20px; }
.post__body .post__callout h3 { margin: 2px 0 6px; font-size: 1.08rem; }
.post__callout p { font-size: .98rem; line-height: 1.6; }

/* frase destacada */
.post__quote { margin: 34px 0 !important; padding: 6px 0 6px 26px; border-left: 3px solid var(--logo); font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.35; letter-spacing: -.015em; color: var(--ink); }

/* línea de tiempo antes / durante / después */
.post__timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; position: relative; }
.post__timeline::before { content: ""; position: absolute; left: 12%; right: 12%; top: 27px; height: 2px; background: repeating-linear-gradient(90deg, var(--logo) 0 8px, transparent 8px 14px); opacity: .5; }
.post__timeline > div { position: relative; text-align: center; padding: 0 8px; }
.post__timeline-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: 0 0 0 6px var(--white); }
.post__timeline-icon svg { width: 24px; height: 24px; }
.post__timeline b { display: block; font-size: 1rem; color: var(--ink); margin-bottom: 4px; }
.post__timeline span { font-size: .9rem; line-height: 1.45; }

/* bloque local (SEO local) */
.post__local { display: grid; grid-template-columns: 1fr auto; gap: 18px 28px; align-items: center; padding: 26px 28px; border-radius: 22px; background: var(--copper-soft); color: var(--ink); }
.post__local-title { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 500; margin-bottom: 6px; }
.post__local-title svg { width: 20px; height: 20px; color: var(--copper-dark); }
.post__local p { font-size: .96rem; line-height: 1.6; color: var(--ink-2); }
.post__local ul { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.post__local li { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.75); font-size: .85rem; font-weight: 500; }
.post__local .btn { text-decoration: none; }

/* artículos relacionados al final */
.post__related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.post__related a { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; background: var(--bg-soft); text-decoration: none !important; color: var(--ink) !important; transition: background-color .3s var(--ease); }
.post__related a:hover { background: var(--copper-soft); }
.post__related img { width: 84px; height: 72px; object-fit: cover; border-radius: 12px; }
.post__related small { display: block; font-size: .74rem; font-weight: 600; color: var(--copper); }
.post__related strong { font-size: .95rem; line-height: 1.3; font-weight: 500 !important; }

@media (max-width: 620px) {
  .post__cards, .post__cards--3, .post__related { grid-template-columns: 1fr; }
  .post__timeline { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .post__timeline::before { display: none; }
  .post__timeline > div { display: grid; grid-template-columns: 56px 1fr; gap: 0 14px; text-align: left; }
  .post__timeline-icon { margin: 0; grid-row: span 2; }
  .post__local { grid-template-columns: 1fr; }
  .post__callout { grid-template-columns: 1fr; }
}

/* ---------- Blog · portada (blog/index.html) ---------- */
.bloghome { padding: 176px 0 clamp(80px, 10vw, 130px); }
.bloghome__head { max-width: 760px; }
.bloghome__head .crumbs { margin-bottom: 24px; }
.bloghome__title { font-size: clamp(2.6rem, 5.4vw, 4.8rem); line-height: .98; letter-spacing: -.045em; font-weight: 400; }
.bloghome__lead { margin-top: 20px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--ink-2); max-width: 620px; }
.bloghome__grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bpost { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: 0 1px 0 var(--line); transition: translate .5s var(--ease), box-shadow .5s var(--ease); }
a.bpost:hover { translate: 0 -4px; box-shadow: 0 30px 60px -36px rgba(30,40,55,.45); }
.bpost__img { position: relative; height: 210px; overflow: hidden; background: var(--bg-soft); }
.bpost__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
a.bpost:hover .bpost__img img { transform: scale(1.05); }
.bpost__img span { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: var(--glass); color: #fff; font-size: .74rem; font-weight: 500; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bpost__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 22px 24px; }
.bpost__title { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.01em; }
.bpost__text { font-size: .92rem; line-height: 1.55; color: var(--ink-2); }
.bpost__meta { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-3); }
.bpost__meta b { font-weight: 500; color: var(--copper-dark); }
.bpost--featured { grid-column: span 2; flex-direction: row; }
.bpost--featured .bpost__img { height: auto; flex: 1.1; min-height: 340px; }
.bpost--featured .bpost__body { flex: 1; padding: 32px; justify-content: center; }
.bpost--featured .bpost__title { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.12; }
.bpost--soon .bpost__body { opacity: .7; }
/* portada de cada guía: la pregunta en el blanco cálido sobre el marrón del pie, con el labio del logo de fondo muy suave */
.bpost__img--type { background: radial-gradient(ellipse 70% 60% at 85% 0%, rgba(205,131,2,.22), rgba(205,131,2,0) 70%), var(--ink); }
.bpost__img--type::before { content: ""; position: absolute; right: -17%; top: 14%; width: 86%; aspect-ratio: 127 / 84; background: #F7F4EF; opacity: .09; -webkit-mask: url("../assets/logo-mark.svg") center / contain no-repeat; mask: url("../assets/logo-mark.svg") center / contain no-repeat; transition: transform 1s var(--ease); }
a.bpost:hover .bpost__img--type::before { transform: translateX(-3%) scale(1.04); }
.bpost__q { position: absolute; left: 22px; right: 22px; bottom: 20px; font-weight: 400; font-size: clamp(1.7rem, 2.3vw, 2.05rem); line-height: 1; letter-spacing: -.035em; color: #F7F4EF; }
.bpost__q em { display: block; font-style: normal; color: var(--logo); }
.bpost--featured .bpost__img--type::before { width: 66%; right: -8%; top: 12%; }
.bpost--featured .bpost__q { left: 32px; bottom: 30px; font-size: clamp(2.4rem, 4vw, 3.4rem); }

@media (max-width: 1080px) {
  .bloghome__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .bloghome { padding-top: 130px; }
  .bloghome__grid { grid-template-columns: 1fr; }
  .bpost--featured { grid-column: auto; flex-direction: column; }
  .bpost--featured .bpost__img { min-height: 220px; }
  .bpost--featured .bpost__img--type::before { width: 86%; right: -17%; }
  .bpost--featured .bpost__q { left: 22px; bottom: 20px; font-size: 2.2rem; }
}

.iguides__all { display: inline-flex; gap: 8px; margin-top: 14px; font-size: .92rem; font-weight: 500; color: var(--copper-dark); }
.iguides__all span { transition: transform .35s var(--ease); }
.iguides__all:hover span { transform: translateX(4px); }

/* los botones dentro del artículo no heredan el estilo de enlace */
.post__body .btn { text-decoration: none; color: #fff; }
.post__body .btn--light { color: var(--ink); }

/* franja: "Lo que nos hace diferentes" (home) */
.band .feature__num { color: var(--logo); }
.band .feature__title { color: var(--white); }
.band .feature p { color: rgba(255,255,255,.66); }
/* franja: dudas al final del blog */
.band--ask { margin-top: 0; }
.band__inner { display: grid; grid-template-columns: 1.3fr auto; gap: 28px 56px; align-items: end; }
.band__inner .h2 { margin: 6px 0 16px; max-width: 640px; }
.band__inner .lead { max-width: 560px; }
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) {
  .band__inner { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 620px) {
  .band__actions .btn { flex: 1 1 100%; }
}


/* =========================================================
   PÁGINAS LEGALES (aviso-legal, privacidad, cookies)
   ========================================================= */
.legal .post__title { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.legal .post__body h2 { margin-top: 44px; }
.legal .post__body h2:first-child { margin-top: 0; }
.legal .post__body ul { display: grid; gap: 8px; }
.legal .post__body ul li { position: relative; padding-left: 22px; }
.legal .post__body ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--logo); }
.legal__data { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; padding: 22px 24px; border-radius: 20px; background: var(--bg-soft); font-size: .98rem; }
.legal__data dt { font-weight: 600; color: var(--ink); }
.legal__data dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.legal-table-wrap { overflow-x: auto; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.legal-table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.5; min-width: 560px; }
.legal-table th, .legal-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal-table th { background: var(--bg-soft); color: var(--ink); font-weight: 600; font-size: .82rem; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal__note { padding: 18px 22px; border-radius: 18px; background: #FFF6E3; box-shadow: inset 3px 0 0 var(--logo); font-size: .96rem; }
/* datos que faltan por confirmar con la clínica: se ven a propósito para no publicarlos sin rellenar */
.todo { padding: 0 6px; border-radius: 6px; background: #FFF0CC; color: #7A4B00; font-weight: 500; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.legal .post__body .btn { text-decoration: none; color: #fff; }

/* =========================================================
   AVISO DE COOKIES + PANEL DE PREFERENCIAS
   ========================================================= */
.consent {
  position: fixed; left: 24px; bottom: 24px; z-index: 80;
  width: min(440px, calc(100vw - 32px));
  padding: 22px 22px 20px; border-radius: 24px;
  background: rgba(255,255,255,.97); color: var(--ink-2);
  box-shadow: 0 30px 70px -30px rgba(30,24,20,.45), inset 0 0 0 1px var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: .9rem; line-height: 1.55;
  transform: translateY(16px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.consent[hidden] { display: none; }
.consent.is-in { transform: none; opacity: 1; }
.consent__body { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.consent__mark { width: 40px; height: auto; margin-top: 4px; }
.consent__title { font-size: 1.05rem; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.consent__text a { color: var(--copper-dark); text-decoration: underline; text-underline-offset: 3px; }
.consent__actions { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

/* botones del aviso: «Rechazar» y «Aceptar» con el mismo peso visual (criterio de la AEPD) */
.cbtn {
  height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; font: inherit; font-size: .86rem; font-weight: 500; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.cbtn:hover { background: var(--copper-dark); border-color: var(--copper-dark); }
.cbtn--line { background: transparent; color: var(--ink); border-color: rgba(43,36,32,.3); }
.cbtn--line:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--ink); }
.cbtn:focus-visible, .wa:focus-visible, .footer__cookies:focus-visible { outline: 2px solid var(--logo); outline-offset: 3px; }

.cpanel {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow: auto;
  padding: 0; border: 0; border-radius: 28px; background: var(--white); color: var(--ink-2);
  box-shadow: 0 40px 100px -30px rgba(30,24,20,.55);
}
.cpanel::backdrop { background: rgba(26,21,18,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.cpanel__inner { padding: clamp(22px, 4vw, 34px); font-size: .94rem; line-height: 1.6; }
.cpanel__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
.cpanel__title { font-size: 1.4rem; letter-spacing: -.02em; color: var(--ink); }
.cpanel__close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-soft); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.cpanel__cat { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 14px; padding: 16px 18px; border-radius: 18px; background: var(--bg-soft); cursor: default; }
label.cpanel__cat { cursor: pointer; }
.cpanel__name { display: block; font-weight: 600; color: var(--ink); }
.cpanel__desc { display: block; font-size: .86rem; line-height: 1.5; margin-top: 2px; }
.cpanel__always { flex: none; font-size: .78rem; font-weight: 600; color: var(--copper-dark); }
.cpanel__actions { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cpanel__more { margin-top: 14px; font-size: .84rem; }
.cpanel__more a { color: var(--copper-dark); text-decoration: underline; text-underline-offset: 3px; }

.switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 48px; height: 28px; margin: 0; border-radius: 999px; background: rgba(43,36,32,.22); cursor: pointer; transition: background-color .3s var(--ease); }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .35s var(--ease); }
.switch:checked { background: var(--logo); }
.switch:checked::after { transform: translateX(20px); }
.switch:focus-visible { outline: 2px solid var(--logo); outline-offset: 3px; }

.footer__cookies { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; transition: color .3s var(--ease); }
.footer__cookies:hover { color: var(--copper-soft); }
.footer__map-note { display: block; margin-top: 2px; font-size: .72rem; color: rgba(255,255,255,.5); }

/* =========================================================
   WHATSAPP · botón flotante de contacto directo
   ========================================================= */
.wa {
  position: fixed; right: 24px; bottom: 24px; z-index: 70;
  display: flex; align-items: center; gap: 12px;
  transition: opacity .4s var(--ease), transform .5s var(--ease), visibility .4s;
}
.wa__icon {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; box-shadow: 0 16px 34px -12px rgba(18,140,70,.6);
  transition: transform .4s var(--ease), background-color .3s var(--ease);
}
.wa__icon svg { width: 31px; height: 31px; fill: currentColor; }
.wa__icon::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: waRing 2.8s ease-out infinite; }
@keyframes waRing { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
.wa:hover .wa__icon { transform: scale(1.06); background: #1EBE5A; }
.wa__bubble {
  padding: 10px 16px; border-radius: 16px 16px 4px 16px;
  background: #fff; color: var(--ink); font-size: .86rem; font-weight: 500; white-space: nowrap;
  box-shadow: 0 18px 40px -18px rgba(30,24,20,.45), inset 0 0 0 1px var(--line);
  opacity: 0; transform: translateX(8px); pointer-events: none;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.wa:hover .wa__bubble, .wa.is-hint .wa__bubble { opacity: 1; transform: none; }
.wa.is-away { opacity: 0; visibility: hidden; transform: translateY(14px); pointer-events: none; }

/* =========================================================
   LOGO QUE VIAJA DEL MENÚ AL PIE (ligado al scroll)
   ========================================================= */
.logo-fly { position: fixed; inset: 0; z-index: 60; pointer-events: none; visibility: hidden; }
.logo-fly.is-on { visibility: visible; }
.logo-fly > * { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.logo-fly__mark { display: block; }
.logo-fly__line { -webkit-mask: url("../assets/wordmark-line.svg") 0 0 / 100% 100% no-repeat; mask: url("../assets/wordmark-line.svg") 0 0 / 100% 100% no-repeat; }
.logo-fly__dental { -webkit-mask: url("../assets/wordmark-dental.svg") 0 0 / 100% 100% no-repeat; mask: url("../assets/wordmark-dental.svg") 0 0 / 100% 100% no-repeat; }
.has-logo-fly .footer__brand-row .footer__wm,
.has-logo-fly .footer__brand-row .footer__sign > * { opacity: 0; }
.has-logo-fly.logo-landed .footer__brand-row .footer__wm,
.has-logo-fly.logo-landed .footer__brand-row .footer__sign > * { opacity: 1; }

@media (max-width: 620px) {
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px 16px 16px; }
  .consent__actions, .cpanel__actions { grid-template-columns: 1fr 1fr; }
  .consent__actions .cbtn--line, .cpanel__actions .cbtn--line { grid-column: 1 / -1; order: 3; }
  .wa { right: 16px; bottom: 16px; }
  .wa__icon { width: 56px; height: 56px; }
  .wa__bubble { display: none; }
  .has-consent .wa { opacity: 0; visibility: hidden; }
  .legal__data { grid-template-columns: 1fr; gap: 2px; }
  .legal__data dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa__icon::before { animation: none; }
}

/* símbolo del logo junto a «Una clínica pensada para ti» (llega volando desde el menú) */
.h2-mark { display: inline-block; width: 1.2em; margin-left: .18em; vertical-align: .06em; }
.h2-mark img { display: block; width: 100%; height: auto; }
.mark-fly { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; transform-origin: 0 0; will-change: transform; visibility: hidden; }
.mark-fly.is-on { visibility: visible; }
.has-mark-fly .h2-mark img { opacity: 0; }
.has-mark-fly.mark-landed .h2-mark img { opacity: 1; }

/* Pie · umbelíferas de línea (el vinilo de la recepción): de fondo, casi sin protagonismo */
.footer > .container { position: relative; z-index: 1; }
.footer__flora { position: absolute; bottom: 0; z-index: 0; width: clamp(240px, 30vw, 460px); height: auto; pointer-events: none; }
.footer__flora--l { left: 0; }
.footer__flora--r { right: 0; }
.footer__flora g { stroke-opacity: .1; fill-opacity: .13; }
@media (max-width: 620px) {
  .footer__flora { width: 62vw; }
  .footer__flora g { stroke-opacity: .08; fill-opacity: .1; }
}

/* Portada · foto del letrero «puentepiedra DENTAL» (pedida por Carlos): marco horizontal para que el letrero
   se lea entero y la tarjeta debajo de la foto, sin taparlo */
.hero__media { height: auto; min-height: 0; aspect-ratio: 13 / 10; }
.hero__media img { height: 104%; object-position: 8% 50%; }
.hero__card { position: relative; left: -72px; bottom: auto; margin-top: 20px; }
@media (max-width: 900px) {
  .hero__media { height: auto; min-height: 0; }
  .hero__card { left: auto; margin: 16px 0 0; width: 100%; }
}
@media (max-width: 620px) {
  .hero__media { height: auto; min-height: 0; }
}
/* Implantes · foto de la puerta de cristal con el letrero (sin mostrador): encuadre centrado en el letrero */
.ibento__photo img { object-position: 50% 30%; }
