/* ───────── Clínica IVORIA · web v4 ─────────
   Marca (manual 2026): cobre #9C5A38 · beige #F3E9E3 · blanco roto #FAF9F7 · gris topo #5C504A · oro rosa #B87A68 (solo detalles)
   + azul petróleo #396276 de la web de hoy y de los folletos.  Cinzel (títulos, sin negrita) · Helvetica (texto).
   Movimiento (Emil Kowalski): curvas propias, solo transform/opacity, salida más rápida que la entrada, hover solo con ratón. */
:root {
  --cobre: #9C5A38; --cobre-h: #87492B; --cobre-claro: #C08A6C;
  --azul: #396276; --azul-h: #2F5465; --azul-hondo: #24414F; --azul-noche: #1E3743;
  --beige: #F3E9E3; --beige-2: #EEE2DA; --beige-3: #E3D3C8; --arena: #D9CEC5;
  --roto: #FAF9F7; --blanco: #FFFFFF;
  --topo: #5C504A; --topo-2: #776A63; --topo-3: #9A8C84;
  --oro: #B87A68;
  --error: #A8322A;
  --linea: rgba(92, 80, 74, .16); --linea-2: rgba(92, 80, 74, .09);
  --f-tit: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --f-txt: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --ease-cajon: cubic-bezier(.32, .72, 0, 1);
  --r-s: 12px; --r-m: 20px; --r-l: 28px;
  --g: clamp(20px, 5vw, 64px);
  --ancho: 1320px;
  --sec: clamp(92px, 9.5vw, 160px);
  --alto-cab: 92px;
  --sombra-1: 0 1px 2px rgba(48, 34, 26, .05), 0 10px 28px -14px rgba(48, 34, 26, .22);
  --sombra-2: 0 2px 6px rgba(48, 34, 26, .05), 0 34px 80px -34px rgba(48, 34, 26, .42);
  /* papeles según tema */
  --fondo: var(--roto); --texto: var(--topo); --titulo: var(--cobre); --titulo-b: var(--azul);
  --boton: var(--azul); --boton-h: var(--azul-h);
  color-scheme: light;
}
:root[data-tema="petroleo"] { --boton: var(--cobre); --boton-h: var(--cobre-h); --azul-hondo: #396276; --azul-noche: #5C504A }
@media (max-width: 1079px) { :root { --alto-cab: 72px } }

/* ───────── base ───────── */
*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--alto-cab) + 16px); background: var(--fondo) }
html, body { overflow-x: clip }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 400 17px/1.65 var(--f-txt); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-kerning: normal; overflow-x: clip }
@media (max-width: 759px) { body { font-size: 16px } }
img, video, svg { display: block; max-width: 100% }
img { height: auto }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent }
button, input, select, textarea { font: inherit; color: inherit }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0 }
ul, ol { padding: 0; list-style: none }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; border-radius: 6px }
.sec.azul :focus-visible, .sec.cobre :focus-visible, .pie :focus-visible, .hero-p :focus-visible, .cabp.oscura :focus-visible { outline-color: var(--roto) }
::selection { background: var(--beige-3); color: var(--topo) }
.saltar { position: fixed; left: 16px; top: 12px; z-index: 200; background: var(--azul); color: #fff; padding: 12px 18px; border-radius: 999px; transform: translateY(-160%); transition: transform .2s var(--ease-out) }
.saltar:focus { transform: none }
.oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.env { width: min(var(--ancho), 100% - 2 * var(--g)); margin-inline: auto }
.nw { white-space: nowrap }

/* ───────── letras ───────── */
.tit { font-family: var(--f-tit); font-weight: 400; color: var(--titulo); letter-spacing: .004em; line-height: 1.1; text-wrap: balance; font-feature-settings: 'kern' 1, 'liga' 1 }
.tit .b { color: inherit }
.hero .claim .b { color: var(--titulo-b) }
.t-display { font-size: clamp(2.35rem, 1.2rem + 3.25vw, 4.4rem); line-height: 1.04 }
.t-1 { font-size: clamp(2.15rem, 1.25rem + 2.9vw, 3.9rem); line-height: 1.06 }
.t-2 { font-size: clamp(1.85rem, 1.2rem + 2.15vw, 3.2rem) }
.t-3 { font-size: clamp(1.28rem, 1.12rem + .5vw, 1.6rem); line-height: 1.22 }
.t-4 { font-size: 1.12rem; line-height: 1.3 }
.lead { font-size: clamp(1.06rem, 1rem + .28vw, 1.22rem); line-height: 1.62; max-width: 58ch; text-wrap: pretty }
.peq { font-size: .92rem; line-height: 1.55 }
.suave { color: var(--topo-2) }
p { text-wrap: pretty }
.linea-oro { width: 72px; height: 1px; background: var(--oro); border: 0; margin: 0 }

/* ───────── botones y enlaces ───────── */
.btn { --bg: var(--boton); --bgh: var(--boton-h); --fg: #fff; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 30px; border-radius: 999px; background: var(--bg); color: var(--fg); font-weight: 500; font-size: 16px; letter-spacing: .012em; line-height: 1.2; white-space: nowrap; transition: background-color .22s ease, color .22s ease, box-shadow .22s ease, transform .16s var(--ease-out); user-select: none }
.btn:active { transform: scale(.97) }
.btn.peq { min-height: 46px; padding: 0 24px; font-size: 15.5px }
.btn.ancho { width: 100% }
.btn.azul { --bg: var(--azul); --bgh: var(--azul-h) }
.btn.cobre { --bg: var(--cobre); --bgh: var(--cobre-h) }
.btn.claro { --bg: var(--roto); --bgh: #fff; --fg: var(--azul) }
:root[data-tema="petroleo"] .btn.claro { --fg: var(--azul-hondo) }
.btn.linea { --bg: transparent; --bgh: rgba(57, 98, 118, .07); --fg: var(--azul); box-shadow: inset 0 0 0 1px rgba(57, 98, 118, .45) }
.btn.linea-clara { --bg: transparent; --bgh: rgba(255, 255, 255, .1); --fg: var(--roto); box-shadow: inset 0 0 0 1px rgba(250, 249, 247, .55) }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--bgh) }
  .btn.linea:hover { box-shadow: inset 0 0 0 1px var(--azul) }
}
.btn svg { width: 18px; height: 18px; flex: none }
.enlace { display: inline-flex; align-items: center; gap: 8px; color: var(--cobre); font-weight: 500; padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .4s var(--ease-out), color .2s ease }
.enlace svg { width: 15px; height: 15px }
@media (hover: hover) and (pointer: fine) { .enlace:hover { background-size: 0 1px; background-position: 100% 100% } }
.sec.azul .enlace, .sec.cobre .enlace, .cabp.oscura .enlace, .hero-p .enlace { color: var(--roto) }
.redondo { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--linea); color: var(--topo); transition: background-color .2s ease, box-shadow .2s ease, transform .16s var(--ease-out), opacity .2s ease }
.redondo svg { width: 20px; height: 20px }
.redondo:active { transform: scale(.94) }
.redondo[disabled] { opacity: .35; cursor: default }
@media (hover: hover) and (pointer: fine) { .redondo:not([disabled]):hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(92, 80, 74, .3) } }

/* ───────── nota de Google ───────── */
.estrellas { display: inline-flex; gap: 2px; color: var(--oro) }
.estrellas svg { width: 15px; height: 15px }
.nota { display: inline-flex; align-items: center; gap: 14px }
.nota-n { font-family: var(--f-tit); font-size: 2.1rem; line-height: 1; color: var(--titulo) }
.nota-t { display: grid; gap: 3px; font-size: .9rem; line-height: 1.3; color: var(--topo-2) }
.nota-t b { font-weight: 500; color: var(--topo) }

/* ───────── cabecera ───────── */
.cab { position: fixed; inset: 0 0 auto; z-index: 60; color: var(--topo); transition: transform .45s var(--ease-out), background-color .35s ease, box-shadow .35s ease, color .35s ease; view-transition-name: cab }
.cab-in { height: var(--alto-cab); display: flex; align-items: center; gap: clamp(16px, 2.2vw, 36px); transition: height .35s var(--ease-out) }
.cab .logo { display: block; color: var(--cobre); flex: none; transition: color .35s ease }
.cab .logo svg { height: 46px; width: auto; aspect-ratio: 657 / 148; transition: transform .35s var(--ease-out); transform-origin: left center }
.cab.fondo, .cab.con-panel { background: rgba(250, 249, 247, .93); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px); box-shadow: 0 1px 0 var(--linea-2) }
.cab.fondo .cab-in { height: calc(var(--alto-cab) - 14px) }
.cab.fondo .logo svg { transform: scale(.88) }
.cab.oculta { transform: translateY(-100%) }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.3vw, 36px); margin-left: auto }
.nav-a { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 12px 0; font-size: 15.5px; letter-spacing: .01em; color: currentColor; white-space: nowrap }
.nav-a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out) }
.nav-a[aria-current="page"]::after, .nav-a[aria-expanded="true"]::after { transform: scaleX(1); transform-origin: left }
@media (hover: hover) and (pointer: fine) { .nav-a:hover::after { transform: scaleX(1); transform-origin: left } }
.chev { width: 11px; height: 11px; transition: transform .3s var(--ease-out) }
[aria-expanded="true"] > .chev { transform: rotate(180deg) }
.cab-der { display: flex; align-items: center; gap: 12px; flex: none }
.cab .btn-cita-movil, .boton-menu { display: none }
.boton-menu { width: 46px; height: 46px; border-radius: 50%; place-items: center; position: relative; color: currentColor }
.boton-menu span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease-out) }
.boton-menu span:nth-child(1) { top: 18px } .boton-menu span:nth-child(2) { top: 26px }
@media (max-width: 1079px) {
  .nav, .cab .btn-cita { display: none }
  .boton-menu { display: grid }
  .cab .btn-cita-movil { display: inline-flex; margin-left: auto }
  .cab .logo svg { height: 36px }
}
@media (max-width: 380px) { .cab .logo svg { height: 31px } .cab .btn-cita-movil { padding: 0 18px } }
/* cabecera sobre fondo oscuro (tema petróleo y cabeceras azules) */
.sobre-oscuro .cab:not(.fondo):not(.con-panel) { color: var(--roto) }
.sobre-oscuro .cab:not(.fondo):not(.con-panel) .logo { color: var(--roto) }
.sobre-oscuro .cab:not(.fondo):not(.con-panel) .btn-cita.linea-auto { --bg: transparent }
:root[data-tema="petroleo"] .cab.fondo, :root[data-tema="petroleo"] .cab.con-panel { background: rgba(57, 98, 118, .94); color: var(--roto); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) }
:root[data-tema="petroleo"] .cab.fondo .logo, :root[data-tema="petroleo"] .cab.con-panel .logo { color: var(--roto) }

/* paneles del menú (clínicas y tratamientos) */
.panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--roto); color: var(--topo); box-shadow: 0 40px 70px -40px rgba(40, 28, 22, .35); border-top: 1px solid var(--linea-2); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .18s ease, transform .22s var(--ease-out), visibility 0s linear .22s; max-height: calc(100vh - var(--alto-cab)); overflow: auto; overscroll-behavior: contain }
.panel.abierto { opacity: 1; visibility: visible; transform: none; transition: opacity .24s var(--ease-out), transform .34s var(--ease-out), visibility 0s }
.cab.al-vuelo .panel { transition: none }
:root[data-tema="petroleo"] .panel { background: var(--azul-hondo); color: var(--roto); border-top-color: rgba(255, 255, 255, .07) }
.panel-in { padding-block: 40px 48px; display: grid; gap: 40px }
.panel-clinicas .panel-in { grid-template-columns: repeat(3, 1fr) }
.p-clinica { display: grid; grid-template-columns: 132px 1fr; gap: 20px; align-items: start; padding: 10px; margin: -10px; border-radius: var(--r-m); transition: background-color .2s ease }
.p-clinica .p-foto { aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--beige) }
.p-clinica .p-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out) }
.p-clinica b { display: block; font-family: var(--f-tit); font-weight: 400; font-size: 1.18rem; color: var(--titulo); line-height: 1.2; margin: 4px 0 8px }
:root[data-tema="petroleo"] .p-clinica b { color: var(--roto) }
.p-clinica span { display: block; font-size: .9rem; line-height: 1.5; color: inherit; opacity: .82 }
.p-clinica .p-mas { margin-top: 12px; font-size: .9rem; color: var(--cobre); opacity: 1; font-weight: 500 }
:root[data-tema="petroleo"] .p-clinica .p-mas { color: var(--roto) }
@media (hover: hover) and (pointer: fine) { .p-clinica:hover { background: rgba(243, 233, 227, .7) } .p-clinica:hover .p-foto img { transform: scale(1.05) } :root[data-tema="petroleo"] .p-clinica:hover { background: rgba(255, 255, 255, .05) } }
.panel-trat .panel-in { grid-template-columns: repeat(4, 1fr) 1.25fr; gap: 32px }
.p-grupo h3 { font-size: .86rem; font-weight: 500; color: var(--topo-2); margin-bottom: 14px; letter-spacing: .01em }
:root[data-tema="petroleo"] .p-grupo h3 { color: rgba(250, 249, 247, .62) }
.p-grupo li + li { margin-top: 2px }
.p-grupo a { display: block; padding: 7px 0; font-size: 1rem; line-height: 1.35; transition: color .2s ease, transform .3s var(--ease-out) }
@media (hover: hover) and (pointer: fine) { .p-grupo a:hover { color: var(--cobre); transform: translateX(4px) } :root[data-tema="petroleo"] .p-grupo a:hover { color: var(--cobre-claro) } }
.p-destacado { position: relative; border-radius: var(--r-m); overflow: hidden; min-height: 300px; background: var(--beige); color: #fff; display: block }
.p-destacado img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease, transform 1.2s var(--ease-out); transform: scale(1.04) }
.p-destacado img.ver { opacity: 1; transform: none }
.p-destacado::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 30, 36, 0) 40%, rgba(20, 30, 36, .62)) }
.p-destacado span { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; font-family: var(--f-tit); font-size: 1.3rem; line-height: 1.2 }
.p-pie { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-top: 22px; border-top: 1px solid var(--linea-2); font-size: .92rem }
:root[data-tema="petroleo"] .p-pie { border-top-color: rgba(255, 255, 255, .08) }

/* ───────── menú del móvil ───────── */
.cajon-menu { position: fixed; inset: 0; z-index: 90; background: var(--roto); display: grid; grid-template-rows: auto 1fr auto; transform: translateX(100%); transition: transform .5s var(--ease-cajon); overflow: hidden }
:root[data-tema="petroleo"] .cajon-menu { background: var(--azul-hondo); color: var(--roto) }
.cajon-menu.abierto { transform: none }
.cajon-menu .arriba { height: 72px; display: flex; align-items: center; justify-content: space-between; padding-inline: var(--g) }
.cajon-menu .logo { color: var(--cobre) } .cajon-menu .logo svg { height: 34px; width: auto; aspect-ratio: 657 / 148 }
:root[data-tema="petroleo"] .cajon-menu .logo { color: var(--roto) }
.cajon-menu .cerrar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center }
.cajon-menu .cerrar svg { width: 22px; height: 22px }
.cajon-menu nav { overflow: auto; padding: 12px var(--g) 24px; overscroll-behavior: contain }
.m-item { border-bottom: 1px solid var(--linea-2); opacity: 0; transform: translateX(18px); transition: opacity .4s var(--ease-out), transform .55s var(--ease-out); transition-delay: calc(80ms + var(--i) * 40ms) }
:root[data-tema="petroleo"] .m-item { border-bottom-color: rgba(255, 255, 255, .08) }
.cajon-menu.abierto .m-item { opacity: 1; transform: none }
.m-item > a, .m-item > button { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 17px 0; font-family: var(--f-tit); font-size: 1.55rem; line-height: 1.2; color: var(--titulo); text-align: left }
:root[data-tema="petroleo"] .m-item > a, :root[data-tema="petroleo"] .m-item > button { color: var(--roto) }
.m-item .chev { width: 16px; height: 16px; color: var(--topo-2) }
.m-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out) }
.m-sub > div { overflow: hidden }
.m-item.abierto .m-sub { grid-template-rows: 1fr }
.m-sub ul { padding: 0 0 18px; display: grid; gap: 2px }
.m-sub a { display: block; padding: 9px 0; font-size: 1.02rem }
.m-sub small { display: block; font-size: .86rem; color: var(--topo-2) }
:root[data-tema="petroleo"] .m-sub small { color: rgba(250, 249, 247, .6) }
.cajon-menu .pie-menu { padding: 18px var(--g) calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 16px; border-top: 1px solid var(--linea-2); background: inherit }
.tels-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; font-size: .84rem; line-height: 1.35 }
.tels-menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--beige) }
:root[data-tema="petroleo"] .tels-menu a { background: rgba(255, 255, 255, .06) }
.tels-menu b { font-weight: 500 }

/* ───────── PORTADA · tema luz ───────── */
.hero { position: relative; isolation: isolate; color: var(--topo); z-index: 2 }
.cabp, .cabt { z-index: 2 }
.hero-l { min-height: clamp(700px, 100svh, 960px); display: grid; align-items: center; padding-top: var(--alto-cab) }
.hero-l .h-foto { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #ece6e0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1000V935C760 1006 470 1006 0 952Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1000V935C760 1006 470 1006 0 952Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat }
.hero-l .h-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30% }
.hero-l .h-foto::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(250, 249, 247, .97) 0%, rgba(250, 249, 247, .9) 30%, rgba(250, 249, 247, .45) 47%, rgba(250, 249, 247, 0) 60%), linear-gradient(180deg, rgba(250, 249, 247, .55) 0, rgba(250, 249, 247, 0) 22%) }
.hero-l .h-in { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 48px; align-items: end; padding-block: 48px 0 }
.hero-l .h-txt { display: grid; gap: 26px; align-content: center; align-self: center; padding-bottom: 60px; max-width: 640px }
.hero .claim { display: block }
.hero .claim .l { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em }
.hero .claim .l > span { display: block }
.hero h1 { font-family: var(--f-txt); font-weight: 400; font-size: clamp(1.08rem, 1rem + .35vw, 1.3rem); line-height: 1.5; color: var(--topo); max-width: 30ch }
.hero-l .ficha-h { align-self: end; margin-bottom: -96px; position: relative; z-index: 2 }
.hero-l + .sec { padding-top: calc(var(--sec) + 40px) }

/* ───────── PORTADA · tema petróleo ─────────
   Campo azul #396276; lema grande arriba; retrato en arco (el arco de la marca) que monta sobre la sección siguiente; ficha vertical a la derecha */
.hero-p { min-height: 0; background: var(--azul); color: var(--roto); padding-top: calc(var(--alto-cab) + clamp(32px, 7vh, 88px)); display: grid; align-items: end; overflow-x: clip }
.hero-p::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 70% at 62% 62%, rgba(243, 233, 227, .13), transparent 70%), radial-gradient(40% 40% at 8% 0%, rgba(255, 255, 255, .06), transparent 70%) }
.hero-p .h-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px) 400px; grid-template-rows: auto 1fr; column-gap: clamp(28px, 3vw, 44px); row-gap: 28px; padding-top: clamp(28px, 5vh, 64px) }
.hero-p .claim { grid-column: 1 / 3; grid-row: 1; color: var(--roto) }
.hero-p .claim .b { color: var(--beige-3) }
.hero-p .h-sub { grid-column: 1; grid-row: 2; display: grid; gap: 22px; align-content: start; padding-top: 8px }
.hero-p h1 { color: rgba(250, 249, 247, .88) }
.hero-p .nota-n { color: var(--roto) } .hero-p .nota-t { color: rgba(250, 249, 247, .78) } .hero-p .nota-t b { color: var(--roto) } .hero-p .estrellas { color: var(--beige-3) }
.hero-p .h-arco { grid-column: 2; grid-row: 2; align-self: end; margin-bottom: -150px; position: relative; z-index: 1 }
.hero-p .h-arco .arco { position: relative; inset: auto; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r-l) var(--r-l); overflow: hidden; background: var(--beige); box-shadow: 0 50px 90px -40px rgba(20, 30, 36, .55) }
.hero-p .h-arco picture { display: block; height: 100% }
.hero-p .h-arco img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 22% }
.hero-p .ficha-h { grid-column: 3; grid-row: 1 / 3; align-self: end; margin-bottom: -96px; position: relative; z-index: 2 }
.hero-p + .sec { padding-top: calc(var(--sec) + 120px) }

/* ───────── ficha (formulario) ───────── */
.ficha { background: #fff; color: var(--topo); border-radius: var(--r-l); padding: clamp(24px, 2.5vw, 34px); box-shadow: var(--sombra-2) }
.ficha-cab { display: grid; gap: 6px; margin-bottom: 4px }
.ficha-tit, .ficha-cab .ficha-tit { font-family: var(--f-tit); font-weight: 400; font-size: clamp(1.45rem, 1.25rem + .6vw, 1.85rem); line-height: 1.15; color: var(--cobre); letter-spacing: .004em }
.ficha-tit .b { color: inherit }
.form-ok .ficha-tit { font-size: 1.5rem }
.ficha-cab p { font-size: .95rem; color: var(--topo-2); line-height: 1.5 }
.ficha-cab .regalo { display: inline-flex; align-items: center; gap: 8px; color: var(--cobre); font-weight: 500; font-size: .95rem }
.ficha-cab .regalo svg { width: 18px; height: 18px }
.form { display: grid; gap: 14px; position: relative }
.campo { display: grid; gap: 7px; min-width: 0 }
.campo label { font-size: .875rem; font-weight: 500; color: var(--topo); letter-spacing: .005em }
.campo input, .campo select { width: 100%; height: 52px; border-radius: 12px; border: 1px solid #B9AAA1; background: #fff; padding: 0 16px; font-size: 16px; color: var(--topo); transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; -webkit-appearance: none; appearance: none }
.campo select { padding-right: 46px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%235C504A' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; cursor: pointer }
.campo select:invalid { color: #9a8c84 }
.campo input::placeholder { color: #a4978f; opacity: 1 }
@media (hover: hover) and (pointer: fine) { .campo input:hover, .campo select:hover { border-color: var(--topo-2) } }
.campo input:focus, .campo select:focus { outline: none; border-color: var(--azul); background: #fff; box-shadow: 0 0 0 4px rgba(57, 98, 118, .14) }
.campo [aria-invalid="true"], .casilla input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 4px rgba(168, 50, 42, .1) }
.error { font-size: .82rem; line-height: 1.35; color: var(--error) }
.error:empty { display: none }
.casilla { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; line-height: 1.45; color: var(--topo-2); cursor: pointer; padding-top: 2px }
.casilla input { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; flex: none; margin: 1px 0 0; border: 1px solid #B9AAA1; border-radius: 6px; background: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .15s ease, border-color .15s ease }
.casilla input::after { content: ''; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(.4); opacity: 0; transition: transform .2s var(--ease-out), opacity .15s ease }
.casilla input:checked { background: var(--azul); border-color: var(--azul) }
.casilla input:checked::after { opacity: 1; transform: rotate(-45deg) translate(1px, -1px) }
.casilla a { color: var(--topo); text-decoration: underline; text-decoration-color: rgba(92, 80, 74, .35); text-underline-offset: 3px }
.form .btn { margin-top: 4px }
.aviso { font-size: .875rem; line-height: 1.45; color: var(--error) }
.aviso[hidden] { display: none }
.form-ok { display: grid; gap: 12px; justify-items: start; padding: 8px 0 4px; animation: aparece .5s var(--ease-out) both }
.form-ok .ok-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--beige); color: var(--azul); display: grid; place-items: center }
.form-ok .ok-ico svg { width: 24px; height: 24px }
.form-ok .ok-ico path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: trazo .6s .15s var(--ease-out) forwards }
.form-ok p { font-size: .95rem; color: var(--topo-2) }
.form-ok .maqueta { font-size: .8rem; color: var(--topo-3) }
.form.saliendo { animation: sale .22s ease forwards }
@keyframes trazo { to { stroke-dashoffset: 0 } }
@keyframes aparece { from { opacity: 0; transform: translateY(8px); filter: blur(4px) } }
@keyframes sale { to { opacity: 0; filter: blur(4px) } }

/* curva suave de los folletos: la franja de color entra con una onda */
.curva { margin-top: -84px; padding-top: calc(var(--sec) + 84px);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0 62C250 6 640 -8 1000 46V100H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100px no-repeat, linear-gradient(#000, #000) 0 98px / 100% calc(100% - 98px) no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0 62C250 6 640 -8 1000 46V100H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100px no-repeat, linear-gradient(#000, #000) 0 98px / 100% calc(100% - 98px) no-repeat }
@media (max-width: 759px) { .curva { margin-top: -48px; padding-top: calc(var(--sec) + 48px); -webkit-mask-size: 100% 60px, 100% calc(100% - 58px); mask-size: 100% 60px, 100% calc(100% - 58px); -webkit-mask-position: 0 0, 0 58px; mask-position: 0 0, 0 58px } }
.h-foto picture { display: block; height: 100%; will-change: transform }

/* ───────── secciones ───────── */
.sec { padding-block: var(--sec); position: relative }
.sec.beige { background: var(--beige) }
.sec.azul { background: var(--azul); color: rgba(250, 249, 247, .88) }
.sec.azul .tit, .sec.cobre .tit { color: var(--roto) }
.sec.cobre { background: var(--cobre); color: rgba(255, 255, 255, .92) }
.sec.hondo { background: var(--azul-hondo); color: rgba(250, 249, 247, .86) }
.sec.hondo .tit { color: var(--roto) }
.cabeza { display: grid; gap: 22px; margin-bottom: clamp(44px, 5vw, 72px) }
.cabeza.dos { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: end; gap: 28px 64px }
.cabeza .lead { color: inherit }
@media (max-width: 899px) { .cabeza.dos { grid-template-columns: 1fr } }

/* 1 · la clínica (texto + vídeo real) */
.clinica-sec .c-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(48px, 7vw, 120px); align-items: center }
.clinica-sec .c-txt { display: grid; gap: 28px; align-content: start }
.cifras { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 18px clamp(28px, 4vw, 56px); padding-top: 30px; margin-top: 6px; border-top: 1px solid var(--linea) }
.cifra { display: grid; gap: 6px; align-content: start }
.cifra .n { font-family: var(--f-tit); font-size: clamp(2.2rem, 1.7rem + 1.6vw, 3.2rem); line-height: 1; color: var(--titulo) }
.cifra .n small { font-size: .55em; margin-left: 2px }
.cifra .lbl { font-size: .9rem; line-height: 1.4; color: var(--topo-2); max-width: 16ch }
.video-marco { position: relative; justify-self: end; width: min(100%, 470px) }
.video-marco .v-caja { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-l); overflow: hidden; background: #d9d2cb; box-shadow: var(--sombra-2); transform-origin: 50% 70% }
.video-marco video, .video-marco .v-caja > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.video-marco .v-boton { position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(250, 249, 247, .9); color: var(--topo); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); transition: transform .16s var(--ease-out), background-color .2s ease }
.video-marco .v-boton:active { transform: scale(.94) }
.video-marco .v-boton svg { width: 16px; height: 16px }
.video-marco .v-pie { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; font-size: .88rem; color: var(--topo-2) }
.video-marco .v-mini { position: absolute; left: -64px; bottom: 72px; width: 42%; aspect-ratio: 1; border-radius: var(--r-m); overflow: hidden; border: 6px solid var(--fondo); box-shadow: var(--sombra-1) }
.video-marco .v-mini img { width: 100%; height: 100%; object-fit: cover }
@media (max-width: 899px) { .clinica-sec .c-in { grid-template-columns: 1fr } .video-marco { justify-self: center } .video-marco .v-mini { left: -14px; bottom: 60px; width: 36% } }
@media (max-width: 559px) { .cifras { grid-template-columns: repeat(3, 1fr); gap: 14px } .cifra .n { font-size: 2rem } .cifra .lbl { font-size: .8rem } }

/* 2 · clínicas */
.clinicas-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.2vw, 32px) }
.c-card { display: grid; gap: 22px; align-content: start }
.c-foto { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-l); overflow: hidden; background: var(--beige); isolation: isolate }
.c-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out) }
.c-foto::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 30, 34, 0) 45%, rgba(22, 30, 34, .62) 100%); transition: opacity .5s ease }
.c-sobre { position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 1; color: #fff; display: grid; gap: 8px }
.c-sobre h3 { font-family: var(--f-tit); font-weight: 400; font-size: clamp(1.55rem, 1.3rem + .8vw, 2.05rem); line-height: 1.1 }
.c-sobre .mini-nota { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: rgba(255, 255, 255, .9) }
.c-sobre .mini-nota .estrellas { color: #F0C9B6 }
.c-sobre .mini-nota .estrellas svg { width: 13px; height: 13px }
@media (hover: hover) and (pointer: fine) { .c-card:hover .c-foto img { transform: scale(1.045) } }
.c-datos { display: grid; gap: 10px; font-size: .95rem; line-height: 1.5; padding-inline: 4px }
.c-datos .fila { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start }
.c-datos .fila:first-child { min-height: 3.1em }
.c-datos svg { width: 18px; height: 18px; color: var(--oro); margin-top: 2px }
.c-datos a.tel { color: var(--topo); font-weight: 500 }
.c-datos .enlace { justify-self: start; margin-top: 8px }
.c-externa { font-size: .82rem; color: var(--topo-2) }
@media (max-width: 999px) { .clinicas-3 { grid-template-columns: 1fr 1fr } .clinicas-3 > :last-child { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; align-items: center } .clinicas-3 > :last-child .c-foto { aspect-ratio: 4 / 3 } }
@media (max-width: 639px) { .clinicas-3 { grid-template-columns: 1fr } .clinicas-3 > :last-child { grid-template-columns: 1fr } .c-foto { aspect-ratio: 5 / 4 } }

/* 3 · tratamientos (carril) */
.trat-sec { overflow: clip }
.trat-cab { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: end; gap: 28px 48px; margin-bottom: clamp(40px, 4.5vw, 64px) }
.trat-cab > div:first-child { display: grid; gap: 22px }
.mandos { display: flex; flex-wrap: nowrap; gap: 12px }
.carril { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 23vw, 330px); gap: clamp(16px, 1.6vw, 24px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--g), (100vw - var(--ancho)) / 2); padding: 4px max(var(--g), (100vw - var(--ancho)) / 2) 8px; scrollbar-width: none; cursor: grab }
.carril::-webkit-scrollbar { display: none }
.carril.arrastrando { cursor: grabbing; scroll-snap-type: none }
.carril.arrastrando a { pointer-events: none }
.t-card { scroll-snap-align: start; display: grid; gap: 16px; align-content: start; user-select: none; -webkit-user-drag: none }
.t-card .t-foto { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-m); overflow: hidden; background: var(--beige) }
.t-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); -webkit-user-drag: none; pointer-events: none }
.t-card .t-num { position: absolute; left: 16px; top: 16px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(250, 249, 247, .9); font-family: var(--f-tit); font-size: .95rem; color: var(--cobre) }
.t-card h3 { font-family: var(--f-tit); font-weight: 400; font-size: 1.3rem; line-height: 1.2; color: var(--titulo) }
.t-card p { font-size: .93rem; line-height: 1.5; color: var(--topo-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden }
@media (hover: hover) and (pointer: fine) { .t-card:hover img { transform: scale(1.05) } }
.carril-pie { display: flex; align-items: center; gap: 32px; margin-top: clamp(32px, 3.5vw, 48px) }
.progreso-carril { flex: 1; height: 1px; background: var(--linea); position: relative; overflow: hidden }
.progreso-carril span { position: absolute; inset: 0; background: var(--cobre); transform-origin: left; transform: scaleX(.1) }
@media (max-width: 759px) { .trat-cab { grid-template-columns: 1fr } .trat-cab .mandos { display: none } .carril { grid-auto-columns: 74vw } .carril-pie { flex-direction: column; align-items: stretch; gap: 26px } .carril-pie .btn { align-self: start } }

/* 4 · zirconio */
.zr .zr-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); align-items: center }
.zr .zr-foto { position: relative; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 778 / 704; background: #8a8a8d; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .45) }
.zr .zr-foto img { width: 100%; height: 100%; object-fit: cover }
.zr .zr-txt { display: grid; gap: 24px; align-content: center }
.zr .zr-sub { font-family: var(--f-tit); font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); line-height: 1.25; color: var(--beige) }
.sec.beige.zr .zr-sub { color: var(--cobre) } .sec.beige.zr .zr-lista svg { color: var(--oro) } .sec.beige.zr { color: var(--topo) }
.zr .zr-lista { display: grid; gap: 12px; padding-top: 6px }
.zr .zr-lista li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 1rem; line-height: 1.5 }
.zr .zr-lista svg { width: 18px; height: 18px; margin-top: 3px; color: var(--beige-3) }
.firma-dr { display: flex; align-items: center; gap: 16px; padding-top: 24px; margin-top: 8px; border-top: 1px solid rgba(250, 249, 247, .16) }
.firma-dr .mini { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--beige); flex: none }
.firma-dr .mini img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transform: scale(1.25); transform-origin: 50% 0 }
.firma-dr b { display: block; font-family: var(--f-tit); font-weight: 400; font-size: 1.12rem; color: var(--roto) }
.firma-dr small { font-size: .88rem; opacity: .78 }
.sec:not(.azul):not(.hondo):not(.cobre) .firma-dr { border-top-color: var(--linea) }
.sec:not(.azul):not(.hondo):not(.cobre) .firma-dr b { color: var(--titulo) }
@media (max-width: 899px) { .zr .zr-in { grid-template-columns: 1fr } }

/* 5 · casos (antes y después) */
.casos-in { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start }
.caso-activo { display: grid; gap: 20px; transition: opacity .26s ease, filter .26s ease }
.caso-activo.cambiando { opacity: 0; filter: blur(6px) }
.caso-activo .tit { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem) }
.lista-casos { display: grid; gap: 6px }
.caso-op { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: center; padding: 10px; border-radius: 18px; text-align: left; transition: background-color .25s ease }
.caso-op .mini { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: var(--beige) }
.caso-op .mini img { width: 100%; height: 100%; object-fit: cover }
.caso-op b { display: block; font-weight: 500; font-size: 1rem; line-height: 1.35; color: var(--topo) }
.caso-op small { display: block; margin-top: 4px; font-size: .85rem; color: var(--topo-2) }
.caso-op[aria-pressed="true"] { background: #fff; box-shadow: var(--sombra-1) }
@media (hover: hover) and (pointer: fine) { .caso-op[aria-pressed="false"]:hover { background: rgba(255, 255, 255, .55) } }
.sec.beige .caso-op[aria-pressed="true"] { background: var(--roto) }
@media (max-width: 899px) { .casos-in { grid-template-columns: 1fr } .lista-casos { grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--g)); padding-inline: var(--g); scroll-padding-inline: var(--g) } .lista-casos::-webkit-scrollbar { display: none } .caso-op { scroll-snap-align: start } }

/* comparador antes/después */
.ab { position: relative; aspect-ratio: 3 / 2; border-radius: var(--r-l); overflow: hidden; background: var(--beige-2); touch-action: pan-y; user-select: none; cursor: ew-resize; isolation: isolate }
.ab img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none }
.ab .antes { position: absolute; inset: 0; will-change: clip-path }
.ab .raya { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .95); box-shadow: 0 0 12px rgba(0, 0, 0, .2); pointer-events: none }
.ab .pomo { position: absolute; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; color: var(--topo); display: grid; place-items: center; box-shadow: 0 6px 22px rgba(0, 0, 0, .2); pointer-events: none; transition: transform .2s var(--ease-out) }
.ab .pomo svg { width: 22px; height: 22px }
.ab.arrastrando .pomo { transform: scale(.92) }
.ab .marca { position: absolute; top: 16px; padding: 7px 13px; border-radius: 999px; background: rgba(28, 30, 32, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: .82rem; letter-spacing: .01em; pointer-events: none }
.ab .marca.a { left: 16px } .ab .marca.d { right: 16px }
.ab input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; pointer-events: none }
.ab input[type="range"]:focus-visible + .foco { box-shadow: inset 0 0 0 3px var(--azul) }
.ab .foco { position: absolute; inset: 0; border-radius: inherit; pointer-events: none }
.chips { display: flex; flex-wrap: wrap; gap: 8px }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--beige); color: var(--topo); font-size: .86rem; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease }
a.chip:hover { background: var(--beige-3) }
button.chip { box-shadow: inset 0 0 0 1px var(--linea); background: transparent; min-height: 42px; padding: 0 18px; font-size: .93rem }
button.chip[aria-pressed="true"] { background: var(--azul); color: #fff; box-shadow: none }
:root[data-tema="petroleo"] button.chip[aria-pressed="true"] { background: var(--azul-hondo) }

/* 6 · motivos (círculos numerados, como los folletos) */
.motivos .m-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(48px, 7vw, 120px); align-items: center }
.m-fotos { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-l); overflow: hidden; background: var(--beige-3) }
.m-fotos img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50% }
.m-lista { display: grid; margin-top: 8px }
.m-lista li { display: grid; grid-template-columns: 58px 1fr; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--linea) }
.m-lista li:first-child { border-top: 1px solid var(--linea) }
.m-lista p { font-size: clamp(1.02rem, .98rem + .2vw, 1.14rem); line-height: 1.5; color: var(--topo) }
@media (max-width: 899px) { .motivos .m-in { grid-template-columns: 1fr } .m-fotos { max-width: 520px; width: 100% } }

/* 7 · equipo */
.eq-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; grid-template-rows: auto auto; column-gap: clamp(18px, 2vw, 28px); row-gap: 0 }
.persona { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 18px; align-content: start }
.persona .arco { align-self: end }
.persona > div:last-child { align-self: start }
.persona .arco { position: relative; aspect-ratio: 3 / 4; border-radius: 999px 999px var(--r-m) var(--r-m); background: linear-gradient(180deg, var(--beige-2), var(--beige-3)); overflow: hidden }
.persona .arco img { position: absolute; left: 50%; bottom: 0; height: 94%; width: auto; max-width: none; translate: -50% 0; transition: transform 1s var(--ease-out); transform-origin: 50% 100% }
@media (hover: hover) and (pointer: fine) { .persona:hover .arco img { transform: scale(1.035) } }
.persona b { display: block; font-family: var(--f-tit); font-weight: 400; font-size: 1.2rem; line-height: 1.25; color: var(--titulo) }
.persona small { display: block; margin-top: 4px; font-size: .88rem; color: var(--topo-2); line-height: 1.45 }
.persona .dir-med { display: block; margin-top: 6px; color: var(--cobre); font-size: .9rem; font-weight: 500 }
.eq-grid .persona:first-child .arco { aspect-ratio: 4 / 5 }
.eq-grid .persona:first-child b { font-size: 1.4rem }
@media (max-width: 899px) { .eq-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(64vw, 300px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--g)); padding-inline: var(--g); scroll-padding-inline: var(--g); padding-bottom: 6px } .eq-grid::-webkit-scrollbar { display: none } .eq-grid .persona { scroll-snap-align: start } .eq-grid .persona:first-child .arco { aspect-ratio: 3 / 4 } }

/* 8 · opiniones */
.op-in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(48px, 7vw, 120px); align-items: start }
.op-nota { display: grid; gap: 22px; align-content: start; position: sticky; top: calc(var(--alto-cab) + 24px) }
.gran-nota { display: flex; align-items: flex-end; gap: 18px; padding-top: 8px }
.gran-nota .n { font-family: var(--f-tit); font-size: clamp(4.4rem, 3.4rem + 3.2vw, 6.6rem); line-height: .86; color: var(--titulo) }
.gran-nota .estrellas svg { width: 20px; height: 20px }
.gran-nota .t { display: grid; gap: 8px; padding-bottom: 6px; font-size: .95rem; color: var(--topo-2) }
.sedes-nota { display: grid; border-top: 1px solid var(--linea) }
.sedes-nota li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--linea); font-size: .95rem }
.sedes-nota b { font-weight: 500 }
.sedes-nota span { color: var(--topo-2) }
.citas-caja { position: relative; display: grid }
.citas { display: grid }
.cita { grid-area: 1 / 1; display: grid; gap: 28px; align-content: start; opacity: 0; filter: blur(6px); transform: translateY(8px); transition: opacity .5s ease, filter .5s ease, transform .6s var(--ease-out); pointer-events: none }
.cita.activa { opacity: 1; filter: none; transform: none; pointer-events: auto }
.cita .comillas { width: 46px; height: 46px; color: var(--oro) }
.cita blockquote { font-family: var(--f-txt); font-size: clamp(1.2rem, 1.08rem + .6vw, 1.6rem); line-height: 1.55; color: var(--topo); font-weight: 400; text-wrap: pretty }
.cita figcaption { display: flex; align-items: center; gap: 14px; font-size: .95rem; color: var(--topo-2) }
.cita figcaption .ini { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--azul); color: #fff; font-weight: 500 }
.cita figcaption b { display: block; color: var(--topo); font-weight: 500 }
.citas-mando { display: flex; align-items: center; gap: 12px; margin-top: 40px }
.citas-mando .barra { flex: 1; height: 1px; background: var(--linea); position: relative; overflow: hidden; margin-left: 12px }
.citas-mando .barra span { position: absolute; inset: 0; background: var(--cobre); transform-origin: left; transform: scaleX(0) }
.citas-mando .cuenta { font-size: .9rem; color: var(--topo-2); min-width: 54px; text-align: right; font-variant-numeric: tabular-nums }
.op-pie { margin-top: 32px; display: flex; gap: 24px; flex-wrap: wrap }
@media (max-width: 899px) { .op-in { grid-template-columns: 1fr } .op-nota { position: static } }

/* 9 · cita final */
.cita-fin .cf-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(48px, 7vw, 120px); align-items: center }
.cita-fin .cf-txt { display: grid; gap: 26px }
.cita-fin .lead { color: inherit }
.cf-sedes { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 10px }
.cf-sedes li { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .18) }
.cf-sedes b { font-family: var(--f-tit); font-weight: 400; font-size: 1.15rem; color: var(--roto) }
.cf-sedes a { color: var(--roto); font-weight: 500; text-align: right }
.cf-sedes small { grid-column: 1 / -1; font-size: .86rem; opacity: .9 }
.cf-sedes small a { text-decoration: underline; text-underline-offset: 3px }
.sec.cobre .cf-sedes small { opacity: 1 }
@media (max-width: 899px) { .cita-fin .cf-in { grid-template-columns: 1fr } }

/* ───────── cabeceras de páginas interiores ───────── */
.cabp { position: relative; isolation: isolate; padding-top: calc(var(--alto-cab) + clamp(48px, 6vw, 96px)); padding-bottom: clamp(64px, 7vw, 112px); overflow-x: clip }
.cabp .cp-foto { position: absolute; inset: 0; z-index: -1; background: var(--beige) }
.cabp .cp-foto img { width: 100%; height: 100%; object-fit: cover }
.cabp .cp-foto::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(250, 249, 247, .95) 0%, rgba(250, 249, 247, .8) 30%, rgba(250, 249, 247, 0) 54%), linear-gradient(180deg, rgba(250, 249, 247, .55), rgba(250, 249, 247, 0) 24%) }
.cabp .cp-in { display: grid; gap: 26px; min-height: clamp(300px, 34vw, 460px); align-content: end }
.cabp .cp-in > * { max-width: 680px }
.cabp.con-ficha .cp-in > * { max-width: none }
.cabp.corta .cp-in { min-height: 0 }
.cabp.corta { padding-bottom: clamp(24px, 3vw, 48px) }
:root[data-tema="luz"] .cabp.sin-foto { background: var(--fondo) }
.cabp.con-ficha .cp-in { max-width: none; grid-template-columns: minmax(0, 1fr) 410px; align-items: end; gap: 48px; min-height: clamp(400px, 40vw, 520px) }
.cabp.con-ficha { padding-top: calc(var(--alto-cab) + 32px) }
.cabp.con-ficha .cp-txt { display: grid; gap: 24px; align-content: end; max-width: 660px; padding-bottom: 12px }
.cabp.con-ficha .ficha { margin-bottom: calc(-1 * clamp(64px, 7vw, 112px) - 64px); position: relative; z-index: 2 }
.cabp.con-ficha + .sec { padding-top: calc(var(--sec) + 24px) }
.cabp.sin-foto { background: var(--beige) }
.miga { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .88rem; color: var(--topo-2) }
.miga a { transition: color .2s ease } .miga a:hover { color: var(--cobre) }
.miga span[aria-hidden] { opacity: .5 }
.cabp .lead { color: var(--topo) }
.cabp .datos-cab { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center }
/* oscura (tema petróleo) */
:root[data-tema="petroleo"] .cabp { background: var(--azul-hondo); color: rgba(250, 249, 247, .86) }
:root[data-tema="petroleo"] .cabp .cp-foto { left: auto; width: 62%; background: var(--azul-hondo); -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%); mask-image: linear-gradient(90deg, transparent, #000 38%) }
:root[data-tema="petroleo"] .cabp .cp-foto::after { background: linear-gradient(180deg, rgba(57, 98, 118, .45), rgba(57, 98, 118, 0) 35%), linear-gradient(90deg, rgba(57, 98, 118, .3), rgba(57, 98, 118, 0) 60%) }
:root[data-tema="petroleo"] .cabp .tit { color: var(--roto) }
:root[data-tema="petroleo"] .cabp .lead, :root[data-tema="petroleo"] .cabp .miga { color: rgba(250, 249, 247, .82) }
:root[data-tema="petroleo"] .cabp .nota-n { color: var(--roto) } :root[data-tema="petroleo"] .cabp .nota-t { color: rgba(250, 249, 247, .72) } :root[data-tema="petroleo"] .cabp .nota-t b { color: var(--roto) } :root[data-tema="petroleo"] .cabp .estrellas { color: #E2B7A3 }
:root[data-tema="petroleo"] .cabp .enlace { color: #F0D3C2 }
:root[data-tema="petroleo"] .cabp.sin-foto { background: var(--azul-hondo) }
@media (max-width: 999px) {
  .cabp.con-ficha .cp-in { grid-template-columns: 1fr; min-height: 0 }
  .cabp.con-ficha .ficha { margin-bottom: calc(-1 * clamp(64px, 7vw, 112px) - 80px); max-width: 560px }
  :root[data-tema="petroleo"] .cabp .cp-foto { width: 100%; -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 85%); mask-image: linear-gradient(180deg, #000 20%, transparent 85%); opacity: .45 }
}
@media (max-width: 759px) {
  .cabp { padding-top: calc(var(--alto-cab) + 28px) }
  .cabp .cp-foto { bottom: auto; height: 330px }
  .cabp .cp-foto::after { background: linear-gradient(180deg, rgba(250, 249, 247, .5) 0%, rgba(250, 249, 247, 0) 26%, rgba(250, 249, 247, 0) 48%, rgba(250, 249, 247, .9) 82%, var(--roto) 100%) }
  .cabp .cp-in { min-height: 0; padding-top: 200px }
  :root[data-tema="petroleo"] .cabp .cp-foto { height: 330px; opacity: 1; -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 98%); mask-image: linear-gradient(180deg, #000 40%, transparent 98%) }
  :root[data-tema="petroleo"] .cabp .cp-foto::after { background: linear-gradient(180deg, rgba(57, 98, 118, .55), rgba(57, 98, 118, 0) 30%) }
  .cab-landing .tel-cab { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px currentColor; font-size: 0 }
  .cab-landing .tel-cab small { display: none }
  .cab-landing .tel-cab::before { content: ''; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 3.5h2.6l1.6 4.3-2 1.3a11.4 11.4 0 0 0 6.1 6.1l1.3-2 4.3 1.6v2.6a2 2 0 0 1-2.2 2A16.6 16.6 0 0 1 4.6 5.7a2 2 0 0 1 2-2.2Z' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 3.5h2.6l1.6 4.3-2 1.3a11.4 11.4 0 0 0 6.1 6.1l1.3-2 4.3 1.6v2.6a2 2 0 0 1-2.2 2A16.6 16.6 0 0 1 4.6 5.7a2 2 0 0 1 2-2.2Z' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat }
  .cab-landing .cab-der { gap: 10px }
  .cabp .cp-foto::after { background: linear-gradient(180deg, rgba(250, 249, 247, .85) 0%, rgba(250, 249, 247, 0) 26%, rgba(250, 249, 247, 0) 46%, rgba(250, 249, 247, .9) 82%, var(--roto) 100%) }
  .cabp.con-ficha .cp-in { padding-top: 150px; gap: 18px }
  .cabp.con-ficha .cp-txt { display: contents }
  .cabp.con-ficha .miga { order: 1 } .cabp.con-ficha h1 { order: 2 } .cabp.con-ficha .cp-txt > .lead { order: 3 } .cabp.con-ficha .ficha { order: 4; margin-bottom: 0 } .cabp.con-ficha .l-ventajas { order: 5 } .cabp.con-ficha .datos-cab { order: 6 }
  .cabp.con-ficha .ficha .ficha-cab p:not(.ficha-tit) { display: none }
  .cabp.con-ficha + .sec { padding-top: clamp(40px, 8vw, 64px) }
}

/* tratamiento: arco con foto + tarjeta flotante */
.cabt { position: relative; padding-top: calc(var(--alto-cab) + clamp(40px, 5vw, 80px)); background: var(--beige); isolation: isolate }
:root[data-tema="petroleo"] .cabt { background: var(--azul-hondo); color: rgba(250, 249, 247, .86) }
:root[data-tema="petroleo"] .cabt .tit { color: var(--roto) } :root[data-tema="petroleo"] .cabt .lead, :root[data-tema="petroleo"] .cabt .miga, :root[data-tema="petroleo"] .cabt .sub-h1 { color: rgba(250, 249, 247, .82) }
.cabt .ct-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 104px); align-items: end }
.cabt .ct-txt { display: grid; gap: 24px; padding-bottom: clamp(64px, 7vw, 112px) }
.cabt .sub-h1 { font-family: var(--f-txt); font-weight: 500; font-size: 1.05rem; color: var(--topo); letter-spacing: .005em }
.cabt .acciones { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-top: 6px }
.cabt .ct-arco { position: relative; margin-bottom: -72px; z-index: 2 }
.cabt .ct-arco .arco { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r-l) var(--r-l); overflow: hidden; background: var(--beige-3); box-shadow: var(--sombra-2) }
.cabt .ct-arco .arco img { width: 100%; height: 100%; object-fit: cover }
.cabt .ct-flota { position: absolute; left: -48px; bottom: 56px; display: flex; align-items: center; gap: 14px; padding: 16px 22px 16px 16px; border-radius: 18px; background: #fff; box-shadow: var(--sombra-1); color: var(--topo); max-width: 300px }
.cabt .ct-flota .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--beige); color: var(--cobre); display: grid; place-items: center; flex: none }
.cabt .ct-flota .ico svg { width: 20px; height: 20px }
.cabt .ct-flota b { display: block; font-weight: 500; font-size: .95rem }
.cabt .ct-flota small { font-size: .84rem; color: var(--topo-2) }
.cabt + .sec { padding-top: calc(var(--sec) + 40px) }
@media (max-width: 899px) { .cabt .ct-in { grid-template-columns: 1fr } .cabt .ct-txt { padding-bottom: 8px } .cabt .ct-arco { width: min(100%, 440px); justify-self: center; margin-bottom: -56px } .cabt .ct-flota { left: -12px; bottom: 32px } }

/* cuerpo de texto largo (tratamientos, casos, artículos) */
.cuerpo { display: grid; grid-template-columns: minmax(0, 720px) 360px; justify-content: space-between; gap: clamp(48px, 6vw, 104px); align-items: start }
.punto p::first-letter { text-transform: uppercase }
.texto { font-size: 1.06rem; line-height: 1.75; color: var(--topo); max-width: 72ch }
.texto > * + * { margin-top: 1.1em }
.texto h2 { font-family: var(--f-tit); font-weight: 400; font-size: clamp(1.5rem, 1.25rem + .9vw, 2.15rem); line-height: 1.18; color: var(--titulo); margin-top: 2.1em; text-wrap: balance }
.texto h2 + * { margin-top: .8em }
.texto h3, .texto h3.sub { font-family: var(--f-txt); font-weight: 500; font-size: 1.12rem; line-height: 1.4; color: var(--topo); margin-top: 1.7em }
.texto a { color: var(--cobre); text-decoration: underline; text-decoration-color: rgba(156, 90, 56, .35); text-underline-offset: 3px; transition: text-decoration-color .2s ease }
.texto a:hover { text-decoration-color: currentColor }
.texto ul, .texto ol { padding-left: 0; display: grid; gap: .55em }
.texto ul li { position: relative; padding-left: 26px }
.texto ul li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--oro) }
.texto ol { counter-reset: n }
.texto ol li { counter-increment: n; position: relative; padding-left: 40px }
.texto ol li::before { content: counter(n); position: absolute; left: 0; top: .1em; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--oro); display: grid; place-items: center; font-family: var(--f-tit); font-size: .85rem; color: var(--cobre) }
.texto strong { font-weight: 500; color: var(--topo) }
.texto blockquote { padding: 4px 0 4px 24px; border-left: 2px solid var(--oro); font-size: 1.15rem; color: var(--topo) }
.texto table { width: 100%; border-collapse: collapse; font-size: .95rem }
.texto th, .texto td { padding: 10px 12px; border-bottom: 1px solid var(--linea); text-align: left; vertical-align: top }
.puntos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 1.4em }
.punto { padding: 22px 24px; border-radius: var(--r-m); background: var(--beige); display: grid; gap: 8px; align-content: start }
.punto b { font-family: var(--f-tit); font-weight: 400; font-size: 1.1rem; line-height: 1.25; color: var(--titulo) }
.punto p { font-size: .97rem; line-height: 1.6 }
.figuras { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 1.6em !important }
.figuras figure { border-radius: var(--r-m); overflow: hidden; aspect-ratio: 4 / 3; background: var(--beige) }
.figuras img { width: 100%; height: 100%; object-fit: cover }
.cta-medio { margin-block: 2.4em !important; padding: clamp(26px, 3vw, 36px); border-radius: var(--r-l); background: var(--azul); color: rgba(250, 249, 247, .9); display: grid; grid-template-columns: 1fr auto; gap: 18px 28px; align-items: center }
:root[data-tema="petroleo"] .cta-medio { background: var(--cobre) }
.cta-medio p { font-family: var(--f-tit); font-size: clamp(1.2rem, 1.1rem + .4vw, 1.45rem); line-height: 1.3; color: var(--roto) }
.cta-medio p small { display: block; font-family: var(--f-txt); font-size: .95rem; margin-top: 6px; opacity: .8 }
@media (max-width: 1023px) { .cuerpo { grid-template-columns: 1fr } }
@media (max-width: 639px) { .puntos { grid-template-columns: 1fr } .cta-medio { grid-template-columns: 1fr } }
.lateral { display: grid; gap: 20px; position: sticky; top: calc(var(--alto-cab) + 24px) }
.lateral .ficha { padding: 26px }
.lateral .ficha .ficha-tit { font-size: 1.4rem }
.donde { display: grid; gap: 4px; padding: 22px 24px; border-radius: var(--r-m); background: var(--beige) }
.donde h3 { font-size: .9rem; font-weight: 500; color: var(--topo-2); margin-bottom: 8px }
.donde a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linea); font-weight: 500; transition: color .2s ease }
.donde a:last-child { border-bottom: 0 }
.donde a svg { width: 16px; height: 16px; flex: none; transition: transform .3s var(--ease-out) }
@media (hover: hover) and (pointer: fine) { .donde a:hover { color: var(--cobre) } .donde a:hover svg { transform: translateX(3px) } }
@media (max-width: 1023px) { .lateral { position: static } }

/* dirección médica */
.direccion { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 104px); align-items: center }
.direccion .arco { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r-l) var(--r-l); overflow: hidden; background: linear-gradient(180deg, var(--beige-2), var(--beige-3)); position: relative }
.sec.beige .direccion .arco { background: linear-gradient(180deg, var(--roto), var(--beige-2)) }
.direccion .arco img { position: absolute; left: 50%; bottom: 0; height: 92%; width: auto; max-width: none; translate: -50% 0 }
.direccion .d-txt { display: grid; gap: 24px }
@media (max-width: 899px) { .direccion { grid-template-columns: 1fr } .direccion .arco { max-width: 400px } }

/* clínica: datos, galería, tratamientos, cómo llegar */
.datos-clinica { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px }
.datos-clinica > div { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start }
.datos-clinica svg { width: 22px; height: 22px; color: var(--oro); margin-top: 2px }
.datos-clinica b { display: block; font-weight: 500; margin-bottom: 4px }
.datos-clinica span, .datos-clinica a { font-size: .95rem; line-height: 1.55; color: var(--topo-2) }
.datos-clinica a.tel { color: var(--topo); font-weight: 500 }
@media (max-width: 899px) { .datos-clinica { grid-template-columns: 1fr 1fr } }
@media (max-width: 559px) { .datos-clinica { grid-template-columns: 1fr; gap: 20px } }
.intro-clinica { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 104px); align-items: start }
.intro-clinica .i-txt { display: grid; gap: 24px }
.ventajas { display: grid; gap: 0; border-top: 1px solid var(--linea) }
.ventajas li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--linea); font-size: 1rem; line-height: 1.5 }
.ventajas svg { width: 20px; height: 20px; color: var(--oro); margin-top: 2px }
@media (max-width: 899px) { .intro-clinica { grid-template-columns: 1fr } }
.galeria { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(120px, 12vw, 190px); gap: clamp(12px, 1.4vw, 20px) }
.galeria .g { border-radius: var(--r-m); overflow: hidden; background: var(--beige) }
.galeria .g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out) }
@media (hover: hover) and (pointer: fine) { .galeria .g:hover img { transform: scale(1.04) } }
.galeria .g:nth-child(6n+1) { grid-column: span 5; grid-row: span 4 }
.galeria .g:nth-child(6n+2) { grid-column: span 7; grid-row: span 2 }
.galeria .g:nth-child(6n+3) { grid-column: span 3; grid-row: span 2 }
.galeria .g:nth-child(6n+4) { grid-column: span 4; grid-row: span 2 }
.galeria .g:nth-child(6n+5) { grid-column: span 7; grid-row: span 2 }
.galeria .g:nth-child(6n+6) { grid-column: span 5; grid-row: span 2 }
@media (max-width: 759px) { .galeria { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px } .galeria .g:nth-child(n) { grid-column: span 1; grid-row: span 1 } .galeria .g:nth-child(3n+1) { grid-column: span 2; grid-row: span 2 } }
.trat-clinica { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 1.4vw, 20px) }
.tc-card { display: grid; gap: 14px; align-content: start }
.tc-card .t-foto { aspect-ratio: 3 / 4; border-radius: var(--r-m); overflow: hidden; background: var(--beige-3); position: relative }
.tc-card .t-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out) }
.tc-card h3 { font-family: var(--f-tit); font-weight: 400; font-size: 1.15rem; line-height: 1.25; color: var(--titulo) }
.tc-card p { font-size: .9rem; line-height: 1.5; color: var(--topo-2) }
.tc-card .fuera { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(250, 249, 247, .92); display: grid; place-items: center; color: var(--topo) }
.tc-card .fuera svg { width: 15px; height: 15px }
@media (hover: hover) and (pointer: fine) { .tc-card:hover .t-foto img { transform: scale(1.05) } }
@media (max-width: 1023px) { .trat-clinica { grid-template-columns: repeat(3, 1fr) } }
@media (max-width: 639px) { .trat-clinica { grid-template-columns: 1fr 1fr } }
.llegar-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 96px); align-items: start }
.mapa { border-radius: var(--r-l); overflow: hidden; background: #f7f5f2; box-shadow: inset 0 0 0 1px var(--linea-2); display: block; position: relative }
.mapa img { width: 100%; height: auto }
.mapa .abrir { position: absolute; right: 16px; bottom: 16px }
.llegar-lista { display: grid; gap: 0; border-top: 1px solid var(--linea) }
.llegar-lista > div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--linea) }
.llegar-lista b { font-weight: 500 }
.llegar-lista span { font-size: .95rem; color: var(--topo-2); line-height: 1.55 }
.fotos-llegar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px }
.fotos-llegar figure { display: grid; gap: 8px }
.fotos-llegar .f { aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--beige) }
.fotos-llegar img { width: 100%; height: 100%; object-fit: cover }
.fotos-llegar figcaption { font-size: .82rem; color: var(--topo-2); line-height: 1.4 }
@media (max-width: 899px) { .llegar-in { grid-template-columns: 1fr } }
.faq-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start }
.faq { border-top: 1px solid var(--linea) }
.faq details { border-bottom: 1px solid var(--linea) }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; font-size: 1.08rem; font-weight: 500; color: var(--topo); line-height: 1.4 }
.faq summary::-webkit-details-marker { display: none }
.faq .mas { position: relative; width: 16px; height: 16px; flex: none }
.faq .mas::before, .faq .mas::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.4px; margin-top: -.7px; background: var(--cobre); transition: transform .35s var(--ease-out) }
.faq .mas::after { transform: rotate(90deg) }
.faq details[open] .mas::after { transform: rotate(0) }
.faq .resp { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out) }
.faq details[open] .resp { grid-template-rows: 1fr }
.faq .resp > div { overflow: hidden }
.faq .resp p { padding: 0 40px 24px 0; color: var(--topo-2); line-height: 1.7 }
@media (max-width: 899px) { .faq-in { grid-template-columns: 1fr } }

/* índice de tratamientos */
.grupo-t + .grupo-t { margin-top: clamp(64px, 7vw, 104px) }
.grupo-t .g-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--linea) }
.grupo-t .g-cab span { font-size: .92rem; color: var(--topo-2) }
.rejilla-t { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 1.8vw, 28px) }
.rejilla-t .t-card.ancha { grid-column: span 2 }
.rejilla-t .t-card.ancha .t-foto { aspect-ratio: auto; height: 100%; min-height: 0 }
.rejilla-t .t-card { grid-template-rows: auto auto 1fr }
.rejilla-t .t-card .t-foto { aspect-ratio: 4 / 5 }
.rejilla-t .t-card.ancha .t-foto { aspect-ratio: 8.4 / 5 }
.rejilla-t.filtrada .t-card.ancha { grid-column: span 1 }
.rejilla-t.filtrada .t-card.ancha .t-foto { aspect-ratio: 4 / 5 }
.t-card[hidden] { display: none }
@media (max-width: 1023px) { .rejilla-t { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 639px) { .rejilla-t { grid-template-columns: 1fr 1fr; gap: 24px 14px } .rejilla-t .t-card h3 { font-size: 1.05rem } .rejilla-t .t-card p { display: none } .filtros { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--g)); padding-inline: var(--g) } .filtros::-webkit-scrollbar { display: none } .filtros .chip { flex: none } }

/* casos y blog */
.rejilla-casos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) }
.rejilla-casos.tres { grid-template-columns: repeat(3, minmax(0, 1fr)) }
.tarjeta-caso { display: grid; gap: 16px; align-content: start }
.tarjeta-caso .tit, .caso-activo .tit { font-family: var(--f-txt); font-size: 1.15rem; font-weight: 500; color: var(--topo); letter-spacing: 0; line-height: 1.35 }
.titulo-largo { font-family: var(--f-txt); font-weight: 400; font-size: clamp(1.45rem, 1.2rem + .9vw, 2rem); line-height: 1.25; color: var(--topo); letter-spacing: -.005em; text-wrap: balance }
.h1-largo { font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); line-height: 1.15; color: var(--cobre) }
.secc-landing .tit.largo { font-family: var(--f-txt); font-size: 1.35rem; line-height: 1.35; color: var(--topo) }
.tarjeta-caso .ab { aspect-ratio: 4 / 3; border-radius: var(--r-m) }
@media (max-width: 1023px) { .rejilla-casos.tres { grid-template-columns: 1fr 1fr } }
@media (max-width: 639px) { .rejilla-casos, .rejilla-casos.tres { grid-template-columns: 1fr } }
.filtros { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 4vw, 52px) }
.rejilla-blog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3vw, 44px) clamp(20px, 2.2vw, 32px) }
.art-card { display: grid; gap: 14px; align-content: start }
.art-card .a-foto { aspect-ratio: 16 / 10; border-radius: var(--r-m); overflow: hidden; background: var(--beige) }
.art-card .a-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out) }
.art-card time { font-size: .86rem; color: var(--topo-2) }
.art-card h3 { font-weight: 500; font-size: 1.1rem; line-height: 1.4; color: var(--topo); text-wrap: balance }
.art-card p { font-size: .93rem; color: var(--topo-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
@media (hover: hover) and (pointer: fine) { .art-card:hover .a-foto img { transform: scale(1.04) } }
.art-card[hidden] { display: none }
@media (max-width: 1023px) { .rejilla-blog { grid-template-columns: 1fr 1fr } }
@media (max-width: 639px) { .rejilla-blog { grid-template-columns: 1fr } }
.destacado { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin-bottom: clamp(56px, 6vw, 88px) }
.destacado .a-foto { aspect-ratio: 16 / 10; border-radius: var(--r-l); overflow: hidden; background: var(--beige) }
.destacado .a-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out) }
.destacado .d-txt { display: grid; gap: 18px }
.destacado time { font-size: .9rem; color: var(--topo-2) }
.destacado .titulo-largo { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); color: var(--cobre) }
@media (hover: hover) and (pointer: fine) { .destacado:hover .a-foto img { transform: scale(1.03) } }
@media (max-width: 899px) { .destacado { grid-template-columns: 1fr } }
.mas-art { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px) }
.art-cab { padding-top: calc(var(--alto-cab) + clamp(40px, 5vw, 80px)); display: grid; gap: 22px; max-width: 900px }
.art-cab time { font-size: .95rem; color: var(--topo-2) }
.art-foto { margin-top: clamp(36px, 4vw, 56px); aspect-ratio: 21 / 9; border-radius: var(--r-l); overflow: hidden; background: var(--beige) }
.art-foto img { width: 100%; height: 100%; object-fit: cover }
@media (max-width: 759px) { .art-foto { aspect-ratio: 4 / 3 } }

/* contacto */
.fichas-contacto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.2vw, 32px) }
.f-contacto { display: grid; gap: 20px; align-content: start; padding: 14px 14px 28px; border-radius: var(--r-l); background: #fff; box-shadow: var(--sombra-1) }
.f-contacto .c-foto { aspect-ratio: 4 / 3; border-radius: 18px }
.f-contacto .c-datos { padding-inline: 14px }
.f-contacto .tit { font-size: 1.5rem; padding-inline: 14px }
@media (max-width: 999px) { .fichas-contacto { grid-template-columns: 1fr } .f-contacto { grid-template-columns: 1fr 1fr; align-items: center } .f-contacto .c-foto { grid-row: span 3 } }
@media (max-width: 639px) { .f-contacto { grid-template-columns: 1fr } .f-contacto .c-foto { grid-row: auto } }

/* persona */
.persona-pag { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 104px); align-items: start; padding-top: calc(var(--alto-cab) + clamp(40px, 5vw, 80px)) }
.persona-pag .arco { position: sticky; top: calc(var(--alto-cab) + 24px); aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r-l) var(--r-l); overflow: hidden; background: linear-gradient(180deg, var(--beige-2), var(--beige-3)) }
.persona-pag .arco img { position: absolute; left: 50%; bottom: 0; height: 94%; width: auto; max-width: none; translate: -50% 0 }
.persona-pag .p-txt { display: grid; gap: 26px }
@media (max-width: 899px) { .persona-pag { grid-template-columns: 1fr } .persona-pag .arco { position: relative; top: 0; max-width: 420px } }

/* landing (página de anuncio) */
.cab-landing .cab-in { justify-content: space-between }
.tel-cab { display: grid; line-height: 1.2; text-align: right; font-weight: 500 }
.tel-cab small { font-weight: 400; font-size: .8rem; color: var(--topo-2) }
.sobre-oscuro .cab:not(.fondo) .tel-cab small { color: rgba(250, 249, 247, .7) }
.l-ventajas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px }
.l-ventajas li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .97rem; line-height: 1.45 }
.l-ventajas svg { width: 18px; height: 18px; color: var(--oro); margin-top: 2px }
:root[data-tema="petroleo"] .cabp .l-ventajas svg { color: #E2B7A3 }
@media (max-width: 559px) { .l-ventajas { grid-template-columns: 1fr } }
.secc-landing { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 20px clamp(40px, 6vw, 96px); padding-block: clamp(44px, 5vw, 72px); border-bottom: 1px solid var(--linea-2) }
.secc-landing:first-child { padding-top: 0 }
.secc-landing:last-child { border-bottom: 0 }
.secc-landing .tit { font-size: clamp(1.4rem, 1.2rem + .7vw, 1.9rem); position: sticky; top: calc(var(--alto-cab) + 24px); align-self: start }
.secc-landing .texto .boton, .secc-landing .texto .btn { display: inline-flex }
.secc-landing.ancha { grid-template-columns: 1fr; gap: 28px }
.secc-landing.ancha .tit { position: static; max-width: 24ch }
.secc-landing.ancha .texto { max-width: none }
.secc-landing.ancha .texto > p { max-width: 68ch }
.secc-landing.ancha .iv-tarjetas { grid-template-columns: repeat(3, minmax(0, 1fr)) }
.secc-landing.ancha .iv-pasos { grid-template-columns: repeat(4, minmax(0, 1fr)) }
.secc-landing.en-beige { position: relative; border-bottom: 0; isolation: isolate; padding-block: clamp(56px, 6vw, 88px); margin-block: 8px }
.secc-landing.en-beige::before { content: ''; position: absolute; inset: 0 calc(50% - 50vw); background: var(--beige); z-index: -1 }
.secc-landing.en-beige .iv-tarjeta { background: var(--roto) }
@media (max-width: 999px) { .secc-landing.ancha .iv-tarjetas, .secc-landing.ancha .iv-pasos { grid-template-columns: 1fr 1fr } }
@media (max-width: 899px) { .secc-landing { grid-template-columns: 1fr } .secc-landing .tit { position: static } }
@media (max-width: 639px) { .secc-landing.ancha .iv-tarjetas, .secc-landing.ancha .iv-pasos { grid-template-columns: 1fr } }

/* contenido de las páginas de anuncio (molde de la agencia: tarjetas, pasos, ventajas, precios, cifras) */
.texto .iv-tarjetas, .texto .iv-pasos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px }
.texto .iv-tarjeta { padding: 22px 24px; border-radius: var(--r-m); background: var(--beige); display: grid; gap: 8px; align-content: start }
.sec.beige .texto .iv-tarjeta { background: var(--roto) }
.texto .iv-tarjeta h3 { margin: 0; font-family: var(--f-tit); font-weight: 400; font-size: 1.12rem; line-height: 1.25; color: var(--titulo) }
.texto .iv-tarjeta p { margin: 0; font-size: .97rem; line-height: 1.6 }
.texto .iv-num { width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--oro); display: grid; place-items: center; font-family: var(--f-tit); font-size: 1.05rem; color: var(--cobre); margin-bottom: 6px }
.texto .iv-ventajas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--linea) }
.texto .iv-ventaja { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--linea); font-size: .98rem; line-height: 1.5 }
.texto .iv-ventaja::before { content: ''; width: 18px; height: 18px; margin-top: 2px; background: var(--oro); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat }
.texto .iv-precios { display: grid; max-width: 540px; border-top: 1px solid var(--linea) }
.texto .iv-precio { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--linea) }
.texto .iv-antes { text-decoration: line-through; color: var(--topo-3); margin-right: 12px; font-size: .95rem }
.texto .iv-ahora { color: var(--cobre); font-weight: 500 }
.texto .iv-cifras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-bottom: 8px }
.texto .iv-valor { font-family: var(--f-tit); font-size: clamp(1.7rem, 1.4rem + 1vw, 2.3rem); line-height: 1.05; color: var(--titulo) }
.texto .iv-etq { font-size: .88rem; line-height: 1.4; color: var(--topo-2); margin-top: 8px }
.texto a.btn, .texto .btn { color: var(--fg); text-decoration: none; margin-top: .6em }
.texto a.btn:hover { text-decoration: none }
.texto > p:last-child:has(+ *) { margin-bottom: 0 }
@media (max-width: 639px) { .texto .iv-tarjetas, .texto .iv-pasos, .texto .iv-ventajas { grid-template-columns: 1fr } .texto .iv-cifras { grid-template-columns: 1fr 1fr } }

/* ───────── pie ───────── */
.pie { background: var(--arena); color: var(--topo); padding-top: clamp(72px, 8vw, 120px); position: relative }
:root[data-tema="luz"] .pie { background: #E9DFD8 }
:root[data-tema="petroleo"] .pie { background: var(--azul-noche); color: rgba(250, 249, 247, .78) }
.pie .p-arriba { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end; padding-bottom: clamp(48px, 5vw, 72px); border-bottom: 1px solid var(--linea) }
:root[data-tema="petroleo"] .pie .p-arriba, :root[data-tema="petroleo"] .pie .legal { border-color: rgba(255, 255, 255, .1) }
.pie .logo { color: var(--cobre); display: block } .pie .logo svg { height: 58px; width: auto; aspect-ratio: 657 / 148 }
:root[data-tema="petroleo"] .pie .logo { color: var(--roto) }
.pie .p-lema { margin-top: 24px; max-width: 58ch; font-size: .98rem; line-height: 1.65 }
.redes { display: flex; gap: 10px }
.redes a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--linea); transition: background-color .2s ease, color .2s ease, box-shadow .2s ease }
:root[data-tema="petroleo"] .redes a { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16) }
.redes svg { width: 18px; height: 18px }
@media (hover: hover) and (pointer: fine) { .redes a:hover { background: var(--cobre); color: #fff; box-shadow: none } }
.pie .p-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) .8fr; gap: 40px; padding-block: clamp(48px, 5vw, 72px) }
.pie h3 { font-family: var(--f-tit); font-weight: 400; font-size: 1.15rem; color: var(--titulo); margin-bottom: 16px; line-height: 1.25 }
:root[data-tema="petroleo"] .pie h3 { color: var(--roto) }
.pie .p-cols p, .pie .p-cols li { font-size: .93rem; line-height: 1.65 }
.pie .p-cols p + p { margin-top: 8px }
.pie .p-cols a { transition: color .2s ease }
.pie .p-cols a:hover { color: var(--cobre) }
:root[data-tema="petroleo"] .pie .p-cols a:hover { color: #F0D3C2 }
.pie .p-cols a.tel { font-weight: 500 }
.pie .legal { padding-right: 90px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 26px 32px; border-top: 1px solid var(--linea); font-size: .85rem }
.pie .legal div { display: flex; flex-wrap: wrap; gap: 8px 24px }
.pie .legal a:hover { color: var(--cobre) }
.seo-pie { display: none; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px }
@media (max-width: 999px) { .pie .p-cols { grid-template-columns: 1fr 1fr } }
@media (max-width: 639px) { .pie .p-arriba { grid-template-columns: 1fr } .pie .p-cols { grid-template-columns: 1fr; gap: 32px } .seo-pie { display: inline } }

/* ───────── WhatsApp, cita, SEO ───────── */
.barra-movil { display: none }
.wa { transition: opacity .3s ease, transform .4s var(--ease-out) }
.wa.aparta { opacity: 0; transform: translateY(16px); pointer-events: none }
@media (max-width: 759px) {
  .wa.wa { left: 0; right: 0; bottom: 0; justify-items: stretch; gap: 0 }
  .wa > .wa-boton { display: none }
  .barra-movil { display: grid; grid-template-columns: 1fr 52px; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(250, 249, 247, .94); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 -1px 0 var(--linea-2), 0 -10px 30px -18px rgba(40, 30, 24, .3); transition: transform .4s var(--ease-out) }
  .barra-movil .btn { min-height: 52px }
  .wa-mini { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(92, 80, 74, .3); color: var(--topo) }
  .wa-mini svg { width: 24px; height: 24px }
  .wa-panel { position: absolute; right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)) }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)) }
  .cab .btn-cita-movil, .cab-landing .btn { display: none }
  .capa-abierta .barra-movil { transform: translateY(110%) }
}
:root[data-tema="petroleo"] .wa-boton { background: var(--azul) }
.wa { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 55; display: grid; justify-items: end; gap: 12px }
.wa-boton { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--boton); color: #fff; box-shadow: 0 10px 30px -8px rgba(30, 40, 46, .45), inset 0 0 0 1px rgba(255, 255, 255, .18); transition: transform .16s var(--ease-out), background-color .2s ease }
.wa-boton svg { width: 27px; height: 27px }
.wa-boton:active { transform: scale(.94) }
@media (hover: hover) and (pointer: fine) { .wa-boton:hover { background: var(--boton-h) } }
.wa-panel { width: 290px; background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--sombra-2); transform-origin: 100% 100%; animation: emerge .22s var(--ease-out) }
.wa-panel[hidden] { display: none }
.wa-panel p { font-family: var(--f-tit); font-size: 1.15rem; color: var(--titulo); line-height: 1.25 }
.wa-panel .sub-wa { display: block; font-size: .88rem; color: var(--topo-2); margin: 4px 0 12px }
.wa-panel a { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-top: 1px solid var(--linea-2); font-weight: 500; font-size: .97rem; transition: color .2s ease }
.wa-panel a svg { width: 15px; height: 15px; color: var(--topo-2) }
.wa-panel a:hover { color: var(--cobre) }
@keyframes emerge { from { opacity: 0; transform: scale(.94) translateY(6px) } }
.velo { position: fixed; inset: 0; z-index: 80; background: rgba(28, 34, 38, .42); opacity: 0; transition: opacity .35s ease; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px) }
.velo.abierto { opacity: 1 }
.cajon-cita { position: fixed; top: 0; right: 0; bottom: 0; z-index: 85; width: min(520px, 100%); background: var(--roto); display: grid; grid-template-rows: auto 1fr; transform: translateX(100%); transition: transform .5s var(--ease-cajon); box-shadow: -30px 0 80px -30px rgba(30, 24, 20, .4) }
.cajon-cita.abierto { transform: none }
.cajon-cita .arriba { display: flex; justify-content: flex-end; padding: 14px 16px }
.cajon-cita .dentro { overflow: auto; padding: 4px clamp(22px, 4vw, 44px) 44px; display: grid; gap: 22px; align-content: start; overscroll-behavior: contain }
.cajon-cita .dentro .ficha { box-shadow: none; padding: 0; background: transparent }
.tels-cita { display: grid; gap: 0; padding-top: 22px; border-top: 1px solid var(--linea) }
.tels-cita p { font-size: .9rem; color: var(--topo-2); margin-bottom: 6px }
.tels-cita a { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--linea-2); font-size: .95rem }
.tels-cita b { font-weight: 500 }
@media (max-width: 559px) { .cajon-cita { top: auto; height: min(92svh, 760px); width: 100%; border-radius: 26px 26px 0 0; transform: translateY(100%) } }
#seo { position: fixed; left: 18px; bottom: 18px; z-index: 54 }
.seo-boton { padding: 9px 14px; letter-spacing: .02em; border-radius: 999px; background: rgba(250, 249, 247, .94); box-shadow: var(--sombra-1), inset 0 0 0 1px var(--linea-2); font-size: .82rem; color: var(--topo-2); transition: color .2s ease }
.seo-boton:hover { color: var(--topo) }
@media (max-width: 639px) { .seo-boton { display: none } }
.seo-panel { position: fixed; left: 18px; bottom: 70px; width: min(440px, calc(100vw - 36px)); max-height: 70vh; overflow: auto; background: #fff; border-radius: 22px; padding: 24px; box-shadow: var(--sombra-2); display: grid; gap: 16px; font-size: .9rem; line-height: 1.5; color: var(--topo); transform-origin: 0 100%; animation: emerge .22s var(--ease-out) }
.seo-panel b { display: block; font-size: .8rem; font-weight: 500; color: var(--topo-2); margin-bottom: 4px }
.seo-panel .gtitulo { color: #1a0dab; font-size: 1.05rem; line-height: 1.3 }
.seo-panel .gurl { color: #006621; font-size: .85rem }
.seo-panel .pequeno { font-size: .8rem; color: var(--topo-3) }

/* ───────── movimiento ───────── */
.anim [data-r] { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms) }
.anim [data-r].in { opacity: 1; transform: none }
.anim [data-r="img"] { opacity: 1; transform: none; overflow: hidden }
.anim [data-r="img"] img, .anim [data-r="img"] video { opacity: 0; transform: scale(1.05); transition: opacity .8s var(--ease-out), transform 1.3s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms) }
.anim [data-r="img"].in img, .anim [data-r="img"].in video { opacity: 1; transform: none }
.anim .c-card [data-r="img"].in img { transition: opacity 1.1s var(--ease-out), transform 1.2s var(--ease-out) }
/* entrada de la portada (solo al cargar) */
.entra .claim .l > span { animation: subeLinea 1s var(--ease-out) both; animation-delay: calc(140ms + var(--l) * 90ms) }
.entra .h-foto img { animation: fotoEntra 1.8s var(--ease-out) both }
.entra .hero-p .h-foto img { animation: fotoSube 1.6s var(--ease-out) both; animation-delay: .1s }
.entra .h-sube { animation: subeSuave 1s var(--ease-out) both; animation-delay: calc(480ms + var(--i, 0) * 90ms) }
.entra .ficha-h { animation: fichaEntra 1.1s var(--ease-out) both; animation-delay: .42s }
@keyframes subeLinea { from { transform: translateY(105%) } }
@keyframes fotoEntra { from { opacity: 0; transform: scale(1.06) } }
@keyframes fotoSube { from { opacity: 0; transform: translateY(24px) } }
@keyframes subeSuave { from { opacity: 0; transform: translateY(14px) } }
@keyframes fichaEntra { from { opacity: 0; transform: translateY(28px) } }
::view-transition-old(root) { animation: .2s ease both vtSale }
::view-transition-new(root) { animation: .5s var(--ease-out) both vtEntra }
@keyframes vtSale { to { opacity: 0 } }
@keyframes vtEntra { from { opacity: 0; transform: translateY(10px) } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important }
  .anim [data-r], .anim [data-r="img"] img { opacity: 1 !important; transform: none !important }
}

/* ───────── móvil: portada ───────── */
@media (max-width: 999px) {
  .hero-l .h-in { grid-template-columns: 1fr; gap: 24px }
  .hero-l .ficha-h { max-width: 560px; margin-bottom: -120px }
  .hero-p .h-in { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); grid-template-rows: auto auto auto; row-gap: 24px }
  .hero-p .claim { grid-column: 1 / -1 }
  .hero-p .h-sub { grid-column: 1; grid-row: 2 }
  .hero-p .h-arco { grid-column: 2; grid-row: 2; margin-bottom: 0 }
  .hero-p .ficha-h { grid-column: 1 / -1; grid-row: 3; max-width: 560px; margin-bottom: -120px }
  .hero-p + .sec { padding-top: calc(var(--sec) + 120px) }
}
@media (max-width: 759px) {
  .hero-l { min-height: 0; padding-top: 0; align-items: start }
  .hero-l .h-foto { position: relative; inset: auto; height: 46svh; min-height: 320px; max-height: 440px; -webkit-mask: none; mask: none }
  .hero-l .h-foto img { object-position: 50% 26% }
  .hero-l .h-foto::after { background: linear-gradient(180deg, rgba(250, 249, 247, .75) 0%, rgba(250, 249, 247, 0) 22%, rgba(250, 249, 247, 0) 52%, rgba(250, 249, 247, .93) 84%, var(--roto) 100%) }
  .hero-l .h-in { margin-top: -96px; padding-top: 0; position: relative; z-index: 1; gap: 18px }
  .hero-l .h-txt { display: contents }
  .hero-l .claim { order: 1 } .hero-l h1 { order: 2 } .hero-l .ficha-h { order: 3 } .hero-l .h-txt > .h-sube:last-child { order: 4; margin-top: 4px }
  .hero-l .ficha-h { margin-bottom: 0 }
  .hero-l + .sec { padding-top: calc(var(--sec) - 20px) }
  .hero .nota-n { font-size: 1.8rem }
  .hero h1 { font-size: 1.02rem }
  .hero-p { min-height: 0; padding-top: calc(var(--alto-cab) + 4px); align-items: start }
  .hero-p .h-in { grid-template-columns: minmax(0, 1fr) 38%; column-gap: 18px; row-gap: 18px; padding-top: 8px }
  .hero-p .h-sub { gap: 14px; padding-top: 0 }
  .hero-p .h-sub .nota { display: none }
  .hero-p .h-arco .arco { aspect-ratio: 3 / 4 }
  .hero-p .ficha-h { margin-bottom: -40px }
  .hero-p + .sec { padding-top: calc(var(--sec) + 20px) }
  .ficha-h .ficha-cab p:not(.ficha-tit) { display: none }
}

/* ═══════════ v5 · 13-nov · correcciones de Javi ═══════════ */

/* portada: foto profesional a la derecha, que se funde con el blanco roto; texto a la izquierda; ficha sobre la foto */
.hero-l { background: var(--roto) }
.hero-l .h-foto { left: 33% }
.hero-l .h-foto img { object-position: 0% 45% }
.hero-l .h-foto::after { background: linear-gradient(90deg, var(--roto) 0%, rgba(250, 249, 247, .55) 9%, rgba(250, 249, 247, 0) 17%), linear-gradient(180deg, rgba(250, 249, 247, .5) 0, rgba(250, 249, 247, 0) 16%) }
.hero-l .h-txt { max-width: 640px }
@media (max-width: 999px) and (min-width: 760px) { .hero-l .h-foto { left: 0 } .hero-l .h-foto::after { background: linear-gradient(90deg, rgba(250, 249, 247, .96) 0%, rgba(250, 249, 247, .85) 40%, rgba(250, 249, 247, .2) 75%) } }
@media (max-width: 759px) { .hero-l .h-foto { left: auto } .hero-l .h-foto img { object-position: 50% 40% } }

/* la clínica: foto real en lugar del vídeo (el vídeo va en la página de Cuzco) */
.foto-marco { position: relative; justify-self: end; width: min(100%, 470px) }
.foto-marco .fm-caja { aspect-ratio: 4 / 5; border-radius: var(--r-l); overflow: hidden; background: var(--beige-3); box-shadow: var(--sombra-2) }
.foto-marco .fm-caja img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 50% }
.foto-marco figcaption { margin-top: 18px; font-size: .9rem; line-height: 1.5; color: var(--topo-2); max-width: 40ch }
@media (max-width: 899px) { .foto-marco { justify-self: center } }
.cifras { grid-template-columns: repeat(3, auto) }

/* tarjetas de clínica: al pasar el ratón la foto se vuelve arco (la forma de la marca), se acerca y aparece «Ver la clínica» */
.c-card .c-foto::after { background: linear-gradient(180deg, rgba(22, 30, 34, 0) 34%, rgba(22, 30, 34, .3) 58%, rgba(22, 30, 34, .78) 100%) }
.c-card .c-foto { border-radius: var(--r-l); transition: border-top-left-radius .8s var(--ease-out), border-top-right-radius .8s var(--ease-out); -webkit-mask-image: -webkit-radial-gradient(white, black) }
.c-card .c-foto img { transition: transform 1.4s var(--ease-out), filter .8s ease }
.c-sobre { gap: 4px }
.c-sobre .c-zona { font-family: var(--f-tit); font-weight: 400; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.35rem); line-height: 1.05 }
.c-sobre .c-nombre { font-size: .92rem; color: rgba(255, 255, 255, .88) }
.c-sobre .mini-nota { margin-top: 6px }
.c-sobre .c-ver { margin-top: 10px; font-size: .92rem; font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(255, 255, 255, .5); opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .5s var(--ease-out) }
@media (hover: hover) and (pointer: fine) {
  .c-card:hover .c-foto { border-top-left-radius: 50% 34%; border-top-right-radius: 50% 34% }
  .c-card:hover .c-foto img { transform: scale(1.07) translateY(-1.5%) }
  .c-card:hover .c-sobre .c-ver { opacity: 1; transform: none }
}
@media (hover: none) { .c-sobre .c-ver { opacity: 1; transform: none } }
.c-datos .portal, .datos-clinica .portal, .llegar-lista .portal, .f-contacto .portal { display: block; margin-top: 6px; font-size: .86rem; line-height: 1.45; color: var(--cobre) }

/* «¿Cuál te queda más cerca?» */
.cercana .ce-in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: center }
.ce-txt { display: grid; gap: 22px; align-content: start }
.ce-form { display: flex; gap: 10px; max-width: 540px }
.ce-form input { flex: 1; min-width: 0; min-height: 54px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(92, 80, 74, .28); background: #fff; font-size: 16px; color: var(--topo); transition: border-color .2s ease, box-shadow .2s ease }
.ce-form input::placeholder { color: var(--topo-3) }
.ce-form input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(57, 98, 118, .16) }

.ce-res:empty { display: none }
.ce-res.entra { animation: emerge .45s var(--ease-out) }
.ce-gana { padding: 26px 28px; border-radius: var(--r-l); background: #fff; box-shadow: var(--sombra-1); display: grid; gap: 6px }
.ce-desde { font-size: .92rem; color: var(--topo-2) }
.ce-zona { font-family: var(--f-tit); font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.6rem); line-height: 1.05; color: var(--titulo) }
.ce-dist { font-size: .95rem; line-height: 1.5 }
.ce-acc { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 12px }
.ce-otras { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 14px; padding-left: 4px }
.ce-otras a { display: flex; gap: 8px; align-items: baseline; font-size: .95rem }
.ce-otras b { font-weight: 500 } .ce-otras span { color: var(--topo-2) }
.ce-busca, .ce-nada { font-size: .95rem; color: var(--topo-2) }
.ce-lienzo { position: relative; aspect-ratio: 1747 / 1722; border-radius: var(--r-l); overflow: hidden; background: #efe9e4; box-shadow: var(--sombra-1) }
.ce-lienzo img { width: 100%; height: 100%; object-fit: cover }
.ce-pin, .ce-tu { position: absolute; z-index: 1; display: flex; align-items: center; gap: 10px; transform: translate(-9px, -50%) }
.ce-punto { position: relative; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--cobre); box-shadow: 0 0 0 5px rgba(250, 249, 247, .92), 0 6px 16px rgba(60, 40, 30, .35); transition: transform .4s var(--ease-out), background-color .3s ease }
.ce-punto::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--cobre); opacity: 0 }
.anim .ce-punto::after { animation: latido 2.8s var(--ease-out) infinite }
.ce-pin:nth-child(3) .ce-punto::after { animation-delay: .9s } .ce-pin:nth-child(4) .ce-punto::after { animation-delay: 1.8s }
@keyframes latido { 0% { opacity: .55; transform: scale(1) } 70%, 100% { opacity: 0; transform: scale(2.4) } }
.ce-et { display: grid; padding: 7px 13px; border-radius: 12px; background: rgba(250, 249, 247, .95); box-shadow: 0 6px 18px -8px rgba(48, 34, 26, .35); line-height: 1.25; white-space: nowrap; transition: background-color .3s ease, color .3s ease }
.ce-et b { font-family: var(--f-tit); font-weight: 400; font-size: 1rem; color: var(--cobre) }
.ce-et small { font-size: .76rem; color: var(--topo-2) }
.ce-pin.gana .ce-punto { background: var(--azul); transform: scale(1.3) } .ce-pin.gana .ce-punto::after { border-color: var(--azul) }
.ce-pin.gana .ce-et { background: var(--azul) } .ce-pin.gana .ce-et b, .ce-pin.gana .ce-et small { color: #fff }
@media (hover: hover) and (pointer: fine) { .ce-pin:hover .ce-et { background: #fff } .ce-pin:hover .ce-punto { transform: scale(1.2) } }
.ce-tu-p { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--azul); box-shadow: 0 4px 12px rgba(0, 0, 0, .25) }
.ce-tu[hidden] { display: none }
.ce-nota { margin-top: 8px; font-size: .74rem; color: var(--topo-3); text-align: right }
@media (max-width: 899px) { .cercana .ce-in { grid-template-columns: 1fr } .ce-et small { display: none } }
@media (max-width: 479px) { .ce-form { flex-direction: column } .ce-et { padding: 5px 10px } .ce-et b { font-size: .9rem } }

/* motivos: sin dibujitos; título corto y una frase */
.m-lista li { grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 6px clamp(20px, 3vw, 40px); align-items: baseline; padding: 22px 0 }
.m-lista h3 { font-family: var(--f-tit); font-weight: 400; font-size: clamp(1.12rem, 1.02rem + .35vw, 1.3rem); line-height: 1.25; color: var(--titulo) }
.m-lista p { font-size: 1rem; line-height: 1.6; color: var(--topo-2) }
@media (max-width: 639px) { .m-lista li { grid-template-columns: 1fr } }

/* WhatsApp: verde, a la vista, y de vez en cuando avisa */
.wa-boton { width: 64px; height: 64px; background: #25D366; color: #fff; box-shadow: 0 14px 32px -10px rgba(18, 140, 70, .6), inset 0 0 0 1px rgba(255, 255, 255, .2); position: relative }
.wa-boton svg { width: 30px; height: 30px }
@media (hover: hover) and (pointer: fine) { .wa-boton:hover { background: #1EBE5A } }
.wa-boton::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); pointer-events: none }
.anim .wa.llama .wa-boton { animation: wa-llama 1.1s var(--ease-out) 2 }
.anim .wa.llama .wa-boton::after { animation: wa-onda 1.6s ease-out 2 }
@keyframes wa-llama { 0%, 100% { transform: none } 18% { transform: rotate(-12deg) scale(1.07) } 36% { transform: rotate(9deg) scale(1.07) } 54% { transform: rotate(-5deg) } 72% { transform: rotate(2deg) } }
@keyframes wa-onda { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5) } 100% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0) } }
.wa-globo { position: absolute; right: 78px; bottom: 10px; display: flex; align-items: center; gap: 2px; padding: 3px 4px 3px 18px; border-radius: 20px 20px 6px 20px; background: #fff; box-shadow: var(--sombra-2); opacity: 0; transform: translateX(14px) scale(.96); transform-origin: 100% 100%; transition: opacity .3s ease, transform .5s var(--ease-out) }
.wa-globo.ver { opacity: 1; transform: none }
.wa-globo[hidden] { display: none }
.wa-globo-t { padding: 11px 0; font-size: .95rem; font-weight: 500; color: var(--topo); white-space: nowrap }
.wa-globo-t::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: #25D366; vertical-align: 1px }
.wa-globo-x { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--topo-3) }
.wa-globo-x svg { width: 14px; height: 14px }
@media (hover: hover) and (pointer: fine) { .wa-globo-t:hover { color: var(--cobre) } .wa-globo-x:hover { color: var(--topo) } }
.wa-panel a span { display: grid; gap: 2px } .wa-panel a small { font-weight: 400; font-size: .82rem; color: var(--topo-2) }
@media (max-width: 759px) {
  .wa-mini { background: #25D366; color: #fff; box-shadow: none }
  .wa-globo { position: fixed; right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); max-width: calc(100vw - 28px) }
  .wa-globo-t { white-space: normal; text-align: left }
}

/* cita final: con la dirección de cada clínica */
.cf-sedes .cf-dir { grid-column: 1 / -1; font-size: .93rem; color: rgba(250, 249, 247, .88) }

/* páginas de clínica: los datos van en la cabecera (nada suelto debajo) y la ficha no cuelga sobre un hueco vacío */
.cabp.con-ficha .ficha { margin-bottom: 0 }
.cabp.con-ficha .cp-in { align-items: center; min-height: 0; padding-bottom: 8px }
.cabp.con-ficha { padding-bottom: clamp(56px, 6vw, 88px) }
.cabp.con-ficha + .sec { padding-top: var(--sec) }
.cab-clinica .datos-clinica { grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 18px 34px; padding-top: 22px; border-top: 1px solid var(--linea) }
.cab-clinica .datos-clinica > div { grid-template-columns: 22px 1fr; gap: 10px }
.cab-clinica .datos-clinica svg { width: 19px; height: 19px }
.cab-clinica .datos-clinica span, .cab-clinica .datos-clinica a { color: var(--topo) }
@media (max-width: 1099px) { .cab-clinica .datos-clinica { grid-template-columns: 1fr 1fr } }
@media (max-width: 559px) { .cab-clinica .datos-clinica { grid-template-columns: 1fr } }
.intro-clinica .i-txt .ventajas { margin-top: 8px }
.intro-clinica .i-foto { aspect-ratio: 4 / 5; border-radius: var(--r-l); overflow: hidden; background: var(--beige-3); box-shadow: var(--sombra-2); justify-self: end; width: min(100%, 470px) }
.intro-clinica .i-foto img { width: 100%; height: 100%; object-fit: cover }
.intro-clinica.con-video { align-items: center }
@media (max-width: 899px) { .intro-clinica .i-foto { justify-self: center } }

/* tratamientos: página de venta, no texto corrido */
.ap-in { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 24px clamp(40px, 6vw, 104px); align-items: start }
.ap-in > .tit { position: sticky; top: calc(var(--alto-cab) + 28px) }
.ap-der { display: grid; gap: 40px }
.ap-foto { border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4 / 3; max-width: 560px; background: var(--beige-2) }
.ap-foto img { width: 100%; height: 100%; object-fit: cover }
.ap.ancha .ap-cab { margin-bottom: clamp(32px, 4vw, 56px) } .ap.ancha .ap-cab .tit { max-width: 24ch }
.ap.ancha .ap-cuerpo { max-width: none } .ap.ancha .ap-cuerpo > p, .ap.ancha .ap-cuerpo > h3 { max-width: 68ch }
.ap.ancha .ap-foto { margin-top: 44px }
.entradilla > p:first-child, .entradilla-p { font-size: clamp(1.16rem, 1.04rem + .45vw, 1.4rem); line-height: 1.55; color: var(--topo) }
.texto .tipos { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 1.4em }
.texto .tipo { display: grid; gap: 10px; align-content: start; padding: 26px 26px 28px; border-radius: var(--r-m); background: var(--beige); box-shadow: inset 0 2px 0 var(--oro) }
.sec.beige .texto .tipo, .sec.beige .punto { background: var(--roto) }
.texto .tipo h3 { margin: 0; font-family: var(--f-tit); font-weight: 400; font-size: 1.2rem; line-height: 1.25; color: var(--titulo) }
.texto .tipo p { margin: 0; font-size: .98rem; line-height: 1.62 }
.texto .tipo p + p { margin-top: .6em }
.puntos { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) }
.texto ul.marcas { gap: 0; border-top: 1px solid var(--linea) }
.texto ul.marcas li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--linea); line-height: 1.55 }
.texto ul.marcas li::before { content: none }
.texto ul.marcas svg { width: 20px; height: 20px; color: var(--oro); margin-top: 2px }
.texto ul.marcas b { font-weight: 500; color: var(--topo) }
.texto ul.marcas.dos { grid-template-columns: 1fr 1fr; column-gap: 40px }
.texto ol.pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px }
.texto ol.pasos li { padding: 64px 22px 24px; border-radius: var(--r-m); background: var(--beige); font-size: .97rem; line-height: 1.6 }
.sec.beige .texto ol.pasos li { background: var(--roto) }
.texto ol.pasos li::before { left: 22px; top: 22px; width: 32px; height: 32px }
.cta-banda { background: var(--cobre); color: rgba(255, 255, 255, .92) }
.cta-banda .cb-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 44px; align-items: center; padding-block: clamp(34px, 4vw, 52px) }
.cta-banda .cb-t { font-family: var(--f-tit); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1.1; color: #fff }
.cta-banda .cb-t .b { color: #fff }
.cta-banda .cb-x { max-width: 48ch; font-size: 1.02rem }
.cta-banda .btn.claro { --fg: var(--cobre) }
.caso-banda .cr-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(36px, 5vw, 80px); align-items: center }
.caso-banda .cr-txt { display: grid; gap: 20px; align-content: center }
.caso-banda .texto { font-size: 1rem }
.donde-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px) }
.donde-c { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; padding: 16px; border-radius: var(--r-l); background: #fff; box-shadow: var(--sombra-1) }
.sec.beige .donde-c { background: var(--roto) }
.dc-foto { border-radius: var(--r-m); overflow: hidden; aspect-ratio: 3 / 4; background: var(--beige-2) }
.dc-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out) }
@media (hover: hover) and (pointer: fine) { .donde-c:hover .dc-foto img { transform: scale(1.06) } }
.dc-txt { display: grid; gap: 4px; align-content: start; font-size: .93rem; line-height: 1.5 }
.dc-txt h3 { font-family: var(--f-tit); font-weight: 400; font-size: 1.45rem; line-height: 1.1; color: var(--titulo) }
.dc-txt .dc-nombre { color: var(--topo-2); font-size: .86rem; margin-bottom: 6px }
.dc-txt .tel { font-weight: 500 }
.dc-acc { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 12px }
@media (max-width: 1099px) { .donde-3 { grid-template-columns: 1fr } .donde-c { grid-template-columns: 120px minmax(0, 1fr) } }
@media (max-width: 899px) { .ap-in { grid-template-columns: 1fr } .ap-in > .tit { position: static } .caso-banda .cr-in { grid-template-columns: 1fr } .cta-banda .cb-in { grid-template-columns: 1fr; justify-items: start } }
@media (max-width: 639px) { .texto ul.marcas.dos { grid-template-columns: 1fr } }

/* páginas de anuncio: cada apartado con su forma */
.l-intro { padding-block: clamp(56px, 6vw, 96px) 0 }
.l-intro .texto { max-width: 64ch }
.l-ap .tit { max-width: 26ch; margin-bottom: clamp(28px, 3.5vw, 48px) }
.l-ap .texto { max-width: none }
.l-ap .texto > p { max-width: 68ch }
.l-tarjetas .texto .iv-tarjetas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px }
.l-tarjetas.pares .texto .iv-tarjetas { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.l-ap .texto .iv-tarjeta { padding: 26px 26px 28px; box-shadow: inset 0 2px 0 var(--oro) }
.l-ap.beige .texto .iv-tarjeta { background: var(--roto) }
.l-pasos .texto .iv-pasos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px }
.l-cifras .texto .iv-cifras { padding: 4px 0 32px; margin-bottom: 26px; border-bottom: 1px solid var(--linea) }
.l-cifras .texto .iv-valor { font-size: clamp(2rem, 1.6rem + 1.4vw, 3rem) }
.l-oferta .lo-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 5vw, 80px); align-items: center }
.l-oferta .lo-txt { display: grid; gap: 22px; align-content: center }
.l-oferta .lo-txt .tit { margin-bottom: 0 }
.sec.azul .texto { color: rgba(250, 249, 247, .9) } .sec.azul .texto strong { color: #fff }
.lo-ticket { padding: 28px 30px 24px; border-radius: var(--r-l); background: #fff; color: var(--topo); box-shadow: 0 34px 70px -34px rgba(0, 0, 0, .5) }
.lo-ticket .iv-precios { max-width: none; border-top: 0 }
.lo-ticket .iv-precio:last-child { border-bottom: 0 }
.lo-ticket .lo-nota { margin-top: 12px; font-size: .8rem; line-height: 1.45; color: var(--topo-2) }
.l-foto .lf-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center }
.l-foto .lf-foto { aspect-ratio: 5 / 4; border-radius: var(--r-l); overflow: hidden; background: var(--beige-2) }
.l-foto .lf-foto img { width: 100%; height: 100%; object-fit: cover }
.l-foto .lf-txt { display: grid; gap: 20px }
.l-foto .lf-txt .tit { margin-bottom: 0 }
.l-dudas .tit { margin-bottom: 0 }
@media (max-width: 999px) { .l-tarjetas .texto .iv-tarjetas, .l-pasos .texto .iv-pasos { grid-template-columns: 1fr 1fr } }
@media (max-width: 899px) { .l-oferta .lo-in, .l-foto .lf-in { grid-template-columns: 1fr } }
@media (max-width: 639px) { .l-tarjetas .texto .iv-tarjetas, .l-tarjetas.pares .texto .iv-tarjetas, .l-pasos .texto .iv-pasos { grid-template-columns: 1fr } }

/* lo importante, resaltado (casos, artículos, tratamientos) */
.texto strong { font-weight: 500; color: var(--topo); background: linear-gradient(transparent 62%, rgba(184, 122, 104, .2) 62%); padding-inline: 1px; -webkit-box-decoration-break: clone; box-decoration-break: clone }
.sec.azul .texto strong { background: none }

/* caso de éxito: cabecera corta y el antes/después grande montado encima, sin huecos */
.caso-cab { background: var(--beige); padding: calc(var(--alto-cab) + clamp(32px, 4vw, 56px)) 0 clamp(150px, 15vw, 230px) }
.caso-cab .cc-in { display: grid; gap: 20px; justify-items: start }
.caso-cab h1 { max-width: 22ch }
.caso-cuerpo { padding-top: 0 }
.cc-comp { position: relative; z-index: 1; max-width: 1080px; margin: calc(-1 * clamp(118px, 12vw, 190px)) auto 0 }
.cc-comp .ab { box-shadow: var(--sombra-2) }
.cc-pista { margin-top: 12px; font-size: .86rem; color: var(--topo-2); text-align: center }
.cc-grid { display: grid; grid-template-columns: 290px minmax(0, 720px); justify-content: center; gap: clamp(40px, 6vw, 96px); margin-top: clamp(56px, 6vw, 96px); align-items: start }
.cc-ficha { position: sticky; top: calc(var(--alto-cab) + 24px); display: grid; gap: 22px; padding: 26px; border-radius: var(--r-l); background: var(--beige) }
.cc-ficha dl { display: grid; gap: 14px; margin: 0 }
.cc-ficha dl > div { display: grid; gap: 3px; padding-bottom: 14px; border-bottom: 1px solid var(--linea) }
.cc-ficha dt { font-size: .82rem; color: var(--topo-2) }
.cc-ficha dd { margin: 0; font-weight: 500; line-height: 1.45 }
.cc-ficha dd a { color: var(--cobre) }
@media (max-width: 899px) { .cc-grid { grid-template-columns: 1fr } .cc-ficha { position: static; order: 2 } }

/* artículos: índice, caja de cita a mitad, tratamiento relacionado */
.art-texto h2 { padding-top: 1.2em; border-top: 1px solid var(--linea) }
.art-texto > h2:first-child { border-top: 0; padding-top: 0 }
.caja-cita { display: grid; gap: 12px; justify-items: start; margin: 2.6em 0; padding: 30px 32px; border-radius: var(--r-l); background: var(--azul); color: rgba(255, 255, 255, .9) }
.caja-cita .cc-t { font-family: var(--f-tit); font-size: 1.6rem; line-height: 1.15; color: #fff }
.caja-cita .cc-t .b { color: #fff }
.caja-cita .btn { --bg: var(--roto); --bgh: #fff; --fg: var(--azul); margin-top: 6px }
.indice { padding: 22px 24px; border-radius: var(--r-l); background: var(--beige) }
.indice > p { font-family: var(--f-tit); font-size: 1.12rem; color: var(--titulo); margin-bottom: 8px }
.indice ol { display: grid }
.indice li a { display: block; padding: 9px 0; border-top: 1px solid var(--linea); font-size: .9rem; line-height: 1.4; transition: color .2s ease }
@media (hover: hover) and (pointer: fine) { .indice li a:hover { color: var(--cobre) } }
.trat-lateral { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-m); background: #fff; box-shadow: var(--sombra-1) }
.trat-lateral .tl-foto { aspect-ratio: 1; border-radius: 12px; overflow: hidden }
.trat-lateral img { width: 100%; height: 100%; object-fit: cover }
.trat-lateral small { display: block; font-size: .8rem; color: var(--topo-2) }
.trat-lateral b { font-family: var(--f-tit); font-weight: 400; font-size: 1.12rem; color: var(--titulo) }
@media (max-width: 1023px) { .art-sec .lateral .indice { display: none } }

/* contacto */
.f-contacto .fc-nombre { margin-top: -8px; font-size: .9rem; color: var(--topo-2) }
.contacto-mail { margin-top: clamp(32px, 4vw, 48px); text-align: center; color: var(--topo-2) }
.contacto-mail a { color: var(--cobre); font-weight: 500 }

/* pie: cita y contenido útil, sin repetir las clínicas */
.pie .p-arriba { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: 36px clamp(40px, 6vw, 96px) }
.pie .p-cita { display: grid; gap: 10px; justify-items: start; padding: 30px 32px; border-radius: var(--r-l); background: var(--roto) }
.pie .p-cita-t { font-family: var(--f-tit); font-size: clamp(1.5rem, 1.25rem + .8vw, 1.95rem); line-height: 1.15; color: var(--cobre) }
.pie .p-cita-t .b { color: var(--azul) }
.pie .p-cita p:not(.p-cita-t) { font-size: .96rem; color: var(--topo-2) }
.pie .p-cita-acc { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 8px }
.pie .p-cols { grid-template-columns: repeat(4, minmax(0, 1fr)) }
.pie .p-cols li + li { margin-top: 7px }
.pie .p-cols .redes { margin-top: 16px }
@media (max-width: 899px) { .pie .p-arriba { grid-template-columns: 1fr } }

/* v5 · segunda pasada tras las capturas */
/* cabeceras con ficha (clínicas y anuncios): la foto a la derecha, el texto sobre blanco roto, como la portada */
.cabp.con-ficha { background: var(--roto) }
.cabp.con-ficha .cp-foto { left: 40% }
.cabp.con-ficha .cp-foto img { object-position: 30% 50% }
.cabp.con-ficha .cp-foto::after { background: linear-gradient(90deg, var(--roto) 0%, rgba(250, 249, 247, .6) 12%, rgba(250, 249, 247, 0) 26%), linear-gradient(180deg, rgba(250, 249, 247, .55) 0, rgba(250, 249, 247, 0) 22%) }
.cabp.con-ficha .cp-txt { max-width: 600px }
@media (max-width: 999px) and (min-width: 760px) { .cabp.con-ficha .cp-foto { left: 0 } .cabp.con-ficha .cp-foto::after { background: linear-gradient(90deg, rgba(250, 249, 247, .97) 0%, rgba(250, 249, 247, .88) 45%, rgba(250, 249, 247, .3) 80%) } }
@media (max-width: 759px) { .cabp.con-ficha .cp-foto { left: 0 } }
/* una sola foto para llegar: ancha */
.fotos-llegar figure:only-child { grid-column: 1 / -1 } .fotos-llegar figure:only-child .f { aspect-ratio: 16 / 9 }
/* opiniones sin reseñas copiadas: en una fila */
.op-solo { grid-template-columns: 1fr }
.op-solo .op-nota { position: static; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 24px clamp(32px, 5vw, 72px) }
.op-solo .op-pie { display: grid; gap: 12px; justify-items: start }
@media (max-width: 899px) { .op-solo .op-nota { grid-template-columns: 1fr } }
/* títulos de los apartados: quietos (el pegajoso confundía) */
.ap-in > .tit { position: static }
/* un solo caso: foto grande y texto al lado */
.rejilla-casos.uno { grid-template-columns: 1fr }
.rejilla-casos.uno .tarjeta-caso { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); column-gap: clamp(32px, 5vw, 72px); align-content: center }
.rejilla-casos.uno .tarjeta-caso > .ab { grid-row: 1 / span 4; aspect-ratio: 3 / 2 }
.rejilla-casos.uno .tarjeta-caso > :not(.ab) { grid-column: 2; align-self: end }
.rejilla-casos.uno .tarjeta-caso > :not(.ab) ~ :not(.ab) { align-self: start }
@media (max-width: 759px) { .rejilla-casos.uno .tarjeta-caso { grid-template-columns: 1fr } .rejilla-casos.uno .tarjeta-caso > * { grid-column: auto !important; grid-row: auto !important } }
/* la oferta, legible (el ticket es blanco dentro de la banda azul) */
.sec.azul .lo-ticket.texto, .lo-ticket.texto { color: var(--topo) }
.lo-ticket.texto strong { color: var(--cobre); background: none }
.lo-ticket .iv-precio > div:first-child { font-weight: 500 }
/* listas de las tarjetas de anuncio: sin la flecha suelta de la web de hoy */
.texto .iv-tarjeta ul { margin-top: 6px; gap: .35em } .texto .iv-tarjeta li > span:first-child { display: none } .texto .iv-tarjeta li { font-size: .95rem }
/* móvil: pie en columnas legibles, portada sin texto encima de la foto, etiqueta del mapa dentro */
@media (max-width: 999px) { .pie .p-cols { grid-template-columns: 1fr 1fr } }
@media (max-width: 639px) { .pie .p-cols { grid-template-columns: 1fr; gap: 28px } }
@media (max-width: 759px) {
  .hero-l .h-foto { height: 300px; min-height: 0 }
  .hero-l .h-foto img { object-position: 50% 62% }
  .hero-l .h-foto::after { background: linear-gradient(180deg, rgba(250, 249, 247, .92) 0%, rgba(250, 249, 247, 0) 30%, rgba(250, 249, 247, 0) 62%, rgba(250, 249, 247, .95) 92%, var(--roto) 100%) }
  .hero-l .h-in { margin-top: -28px }
  .ce-pin[data-pin="deiros"] { flex-direction: row-reverse; transform: translate(calc(-100% + 9px), -50%) }
}

/* v5 · tercera pasada (revisor) */
.sec.azul .lo-ticket.texto strong, .sec.azul .lo-ticket .iv-ahora { color: var(--cobre); background: none }
.cab-der { margin-left: auto }
.ap-izq { display: grid; gap: 32px; align-content: start }
.ap-izq .ap-foto { max-width: 460px }
.galeria.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto }
.galeria.tres .g:nth-child(n) { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 5 }
.trat-clinica.cuatro { grid-template-columns: repeat(4, minmax(0, 1fr)) }
@media (max-width: 1023px) { .trat-clinica.cuatro { grid-template-columns: 1fr 1fr } }
.art-cab .h1-largo { font-size: clamp(1.9rem, 1.3rem + 1.9vw, 3.1rem); line-height: 1.12; max-width: 24ch }
@media (max-width: 759px) {
  .cabp.con-ficha .datos-wrap { order: 5 }
  .galeria.tres { grid-template-columns: 1fr 1fr } .galeria.tres .g:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3 }
  .wa-globo { max-width: min(270px, calc(100vw - 28px)); padding-left: 14px }
  .wa-globo-t { font-size: .88rem; padding: 9px 0 }
}

/* v5 · cuarta pasada (fotos elegidas por Javi, mapa en «una clínica en tres zonas», caso de éxito en pasos, títulos de clínica) */
.hero-l .h-foto img { object-position: 70% 30% }
@media (max-width: 759px) { .hero-l .h-foto img { object-position: 62% 30% } }
.m-fotos.dr { background: linear-gradient(180deg, var(--beige-2), var(--beige-3)) }
.m-fotos.dr img { object-fit: contain; object-position: 50% 100% }
.clinica-sec .c-in { align-items: center }
.ce-caja { display: grid; gap: 14px; padding-top: 26px; border-top: 1px solid var(--linea) }
.ce-caja h3 { font-family: var(--f-tit); font-weight: 400; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.55rem); color: var(--titulo) }
.ce-caja .ce-res { margin-top: 4px }
.clinica-sec .ce-mapa { width: 100% }
/* títulos de las clínicas: la marca en grande y «Clínica dental en …» debajo, en el mismo título */
.h1-marca .h1-grande { display: block }
.h1-marca .h1-clave { display: block; margin-top: 12px; font-size: .42em; line-height: 1.25; color: var(--topo) }
/* caso de éxito */
.caso-cab { padding-bottom: clamp(140px, 14vw, 220px) }
.caso-datos { display: flex; flex-wrap: wrap; align-items: center; gap: 18px clamp(28px, 4vw, 56px); max-width: 1080px; margin: 28px auto 0; padding: 22px 28px; border-radius: var(--r-l); background: var(--beige) }
.caso-datos .cd-dato { display: grid; gap: 3px }
.caso-datos dt { font-size: .82rem; color: var(--topo-2) }
.caso-datos dd { margin: 0; font-weight: 500; line-height: 1.45 }
.caso-datos dd a { color: var(--cobre) }
.caso-datos .cd-cita { margin-left: auto }
.caso-inicio { padding-bottom: clamp(56px, 6vw, 96px) }
.pasos-caso { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 26px clamp(48px, 6vw, 96px); margin-top: clamp(32px, 4vw, 56px); counter-reset: none }
.pasos-caso::before { content: ''; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 1px; background: var(--oro); opacity: .5 }
.pasos-caso li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; padding: 24px 26px; border-radius: var(--r-l); background: var(--roto); box-shadow: var(--sombra-1) }
.pasos-caso li:nth-child(even) { transform: translateY(56px) }
.anim .pasos-caso li[data-r]:nth-child(even):not(.in) { transform: translateY(80px) }
.pasos-caso .pc-n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--oro); font-family: var(--f-tit); font-size: 1.1rem; color: var(--cobre); background: var(--fondo) }
.pasos-caso .pc-txt { font-size: .98rem; line-height: 1.7 }
.pasos-caso .pc-lead { display: block; margin-bottom: 8px; font-size: 1.08rem; line-height: 1.5; font-weight: 500; color: var(--topo) }
.caso-pasos { padding-bottom: calc(var(--sec) + 56px) }
@media (max-width: 899px) {
  .pasos-caso { grid-template-columns: 1fr } .pasos-caso::before { left: 21px }
  .pasos-caso li:nth-child(even), .anim .pasos-caso li[data-r]:nth-child(even):not(.in) { transform: none }
  .caso-datos .cd-cita { margin-left: 0 }
  .caso-pasos { padding-bottom: var(--sec) }
}
/* ajustes tras las capturas */
@media (min-width: 1000px) { .hero-l .claim { font-size: clamp(2.35rem, 1.1rem + 2.6vw, 3.9rem) } .hero-l .h-txt { max-width: 560px } }
.h1-marca .h1-clave { font-family: var(--f-txt); font-size: clamp(1.05rem, .98rem + .3vw, 1.25rem); letter-spacing: 0; font-weight: 500; color: var(--topo); margin-top: 14px }
.pasos-caso { align-items: start }

/* v5 · 14-nov · portada con la modelo de la propuesta 6 (elegida por Javi): la cara entre el texto y la ficha; fondo aclarado detrás del lema y del menú */
@media (min-width: 1000px) {
  .hero-l .h-foto img { object-position: 43% 30% }
  .hero-l .h-foto::after { background: linear-gradient(90deg, var(--roto) 0%, rgba(250, 249, 247, .92) 12%, rgba(250, 249, 247, 0) 22%), linear-gradient(180deg, rgba(250, 249, 247, .92) 0, rgba(250, 249, 247, .8) 9%, rgba(250, 249, 247, 0) 17%) }
}
@media (max-width: 999px) and (min-width: 760px) { .hero-l .h-foto img { object-position: 30% 30% } }
@media (max-width: 759px) {
  .hero-l .h-foto img { object-position: 38% 40% }
  .hero-l .h-foto::after { background: linear-gradient(180deg, rgba(250, 249, 247, .94) 0%, rgba(250, 249, 247, .7) 13%, rgba(250, 249, 247, 0) 28%, rgba(250, 249, 247, 0) 60%, rgba(250, 249, 247, .93) 84%, var(--roto) 100%) }
}

/* v5 · 14-nov tarde · blog: casos de éxito del tratamiento, a la derecha */
.casos-lateral { display: grid; gap: 10px }
.casos-lateral .cl-t { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--topo-2); font-weight: 600 }
.caso-lateral { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-m); background: #fff; box-shadow: var(--sombra-1); transition: transform .3s var(--ease-out) }
.caso-lateral .tl-foto { aspect-ratio: 1; border-radius: 12px; overflow: hidden }
.caso-lateral img { width: 100%; height: 100%; object-fit: cover }
.caso-lateral small { display: block; font-size: .8rem; color: var(--topo-2) }
.caso-lateral b { font-family: var(--f-tit); font-weight: 400; font-size: 1.02rem; line-height: 1.25; color: var(--titulo) }
@media (hover: hover) and (pointer: fine) { .caso-lateral:hover { transform: translateY(-2px) } }
/* el carrusel de tratamientos no se queda con el desplazamiento vertical */
.carril { overflow-y: hidden }
/* galería de 5 fotos (Carabanchel): dos grandes arriba y tres debajo */
.galeria.cinco .g:nth-child(n) { grid-column: span 4; grid-row: span 2 }
.galeria.cinco .g:nth-child(-n+2) { grid-column: span 6; grid-row: span 3 }
@media (max-width: 759px) { .galeria.cinco .g:nth-child(n) { grid-column: span 1; grid-row: span 1 } .galeria.cinco .g:first-child { grid-column: span 2; grid-row: span 2 } }
