/* plantillas/clinica-framer — estilos base. Los colores y fuentes vienen del tema (temas/<id>.css),
   que se inyecta antes que este fichero. Aquí NO hay colores duros: todo son variables.
   Escala, radios, sombras y curva son fijos: es lo que hace que un cambio de tema tarde 20 minutos.
   Referencias: Dermato (hero contenedor + etiquetas + pestaña, acordeón, bento), Dentel (tarjetas de
   imagen, workflow, antes/después), Organic Care (nav con muelle, zoom-out, palabras escalonadas). */
:root {
  --step--1: clamp(.83rem, .8rem + .15vw, .9rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.125rem);
  --step-1:  clamp(1.25rem, 1.15rem + .5vw, 1.5rem);
  --step-2:  clamp(1.9rem, 1.5rem + 1.8vw, 3.1rem);
  --step-3:  clamp(2.6rem, 1.8rem + 4vw, 5.4rem);
  --radius-pill: 9999px;
  --radius-card: 20px;
  --radius-img: 16px;
  --shadow-card: 0 2px 4px rgba(var(--dark-rgb), .03), 0 16px 36px -18px rgba(var(--dark-rgb), .2);
  --shadow-float: 0 30px 60px -24px rgba(var(--dark-rgb), .45);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --measure: 60ch;
}

*, *::before, *::after { box-sizing: border-box }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; letter-spacing: -.011em }
img, video { display: block; max-width: 100% }
a { color: inherit }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; line-height: 1.04; letter-spacing: -.03em }
h1 { font-size: var(--step-3); font-weight: 500; letter-spacing: -.04em; line-height: .98 }
h2 { font-size: var(--step-2) }
h3 { font-size: var(--step-1); letter-spacing: -.02em }
h1 em, h2 em, h3 em { font-family: var(--font-accent); font-style: italic; font-weight: var(--accent-weight, 300); font-variation-settings: var(--accent-opsz, normal); letter-spacing: -.01em }
p { margin: 0; max-width: var(--measure) }
p + p { margin-top: 1em }

.wrap { width: min(100% - 2 * var(--gutter), 78rem); margin-inline: auto }
section { padding-block: var(--section) }
.tag { display: inline-flex; width: fit-content; justify-self: start; align-items: center; gap: .5rem; font-size: var(--step--1); font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: var(--radius-pill); padding: .35rem .85rem; margin-bottom: 1.2rem }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent) }
.lead { font-size: var(--step-1); line-height: 1.4; color: var(--muted); font-weight: 400 }
h2 + .lead { margin-top: 1rem }
.head { display: grid; gap: .6rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); max-width: 50rem }
.head.split { max-width: none; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: 2rem }
.head.split .lead { margin: 0 }
.head.center { margin-inline: auto; text-align: center; justify-items: center }
@media (max-width: 800px) { .head.split { grid-template-columns: 1fr } }
.pic { border-radius: var(--radius-img); overflow: hidden; background: var(--accent-soft); position: relative }
.pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .75s var(--ease) }
.pic:hover img { transform: scale(1.03) }
.credit { position: absolute; left: .8rem; bottom: .6rem; color: #fff; opacity: .75; font-size: .7rem; text-shadow: 0 1px 2px rgba(0,0,0,.5); pointer-events: none }

/* botones: pill · tarjetas 20 · fotos 16 */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .95rem 1.5rem; border-radius: var(--radius-pill); font-weight: 600; text-decoration: none; font-size: var(--step-0); line-height: 1; border: 1px solid transparent; min-height: 44px; transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease); cursor: pointer; font-family: inherit }
.btn:active { transform: scale(.985) }
.btn-primary { background: var(--accent); color: var(--btn-fg) }
.btn-primary:hover { background: var(--accent-hi) }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border) }
.btn-ghost:hover { border-color: var(--fg) }
.btn-light { background: #fff; color: var(--btn-light-fg, var(--accent)) }
.btn-light:hover { background: var(--bg) }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4) }
.btn-outline-light:hover { border-color: #fff }
.btn svg { width: 1.1em; height: 1.1em; flex: none }
.link { color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent-soft); padding-bottom: .1em; transition: border-color .16s var(--ease) }
.link:hover { border-color: var(--accent) }
.actions { display: flex; flex-wrap: wrap; gap: .75rem }
.stars { color: var(--stars); letter-spacing: .05em; font-size: .9em }

/* ---------- nav: logo · pill de enlaces · botón. Entra desde arriba con muelle (Organic Care) ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--fg); transition: background .35s var(--ease), box-shadow .35s var(--ease); transform: translateY(-120px); opacity: 0; animation: navin .9s cubic-bezier(.2, 1.1, .4, 1) .1s forwards }
@keyframes navin { to { transform: none; opacity: 1 } }
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--border) }
.nav .wrap { display: flex; align-items: center; gap: 1.4rem; padding-block: 1rem; white-space: nowrap; transition: padding .3s var(--ease) }
.nav.is-scrolled .wrap { padding-block: .6rem }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 600; font-size: 1.1rem; letter-spacing: -.02em; line-height: 1.05; color: var(--fg) }
.brand img { height: var(--logo-h, 44px); width: auto; transition: height .3s var(--ease) }
.brand small { display: block; font-weight: 500; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: .2rem }
.nav.is-scrolled .brand img { height: calc(var(--logo-h, 44px) * .82) }
@media (max-width: 600px) { .brand span { display: none } }
.nav-links { display: flex; gap: .2rem; margin-inline: auto; list-style: none; padding: .3rem; margin-block: 0; background: color-mix(in srgb, var(--surface) 78%, transparent); border: 1px solid color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(10px); border-radius: var(--radius-pill); box-shadow: var(--shadow-card) }
.nav-links a { display: block; text-decoration: none; font-weight: 500; font-size: var(--step--1); padding: .5rem .9rem; border-radius: var(--radius-pill); transition: background .16s var(--ease) }
.nav-links a:hover { background: var(--accent-soft) }
.nav .btn { padding-block: .7rem }
.lang { display: flex; gap: .1rem; font-size: .78rem; font-weight: 600; letter-spacing: .04em }
.lang a { text-decoration: none; padding: .35rem .5rem; border-radius: var(--radius-pill); color: var(--muted) }
.lang a[aria-current] { color: var(--accent); background: var(--accent-soft) }
@media (max-width: 960px) { .nav-links { display: none } .nav .wrap { gap: 1rem } .nav .btn { margin-left: auto } }

/* ---------- hero: contenedor redondeado, titular centrado, etiquetas sobre la imagen, pestaña abajo (Dermato) ---------- */
.hero { position: relative; padding: 5.6rem .75rem 1.6rem; background: linear-gradient(180deg, var(--hero-tint) 0%, var(--bg) 60%) }
.hero-box { position: relative; min-height: min(88svh, 52rem); border-radius: 28px; overflow: clip; color: #fff; display: grid; align-content: start; justify-items: center; text-align: center; padding: clamp(3rem, 7vw, 5.5rem) 1.5rem 6rem; isolation: isolate; background: var(--dark) }
.hero-bg { position: absolute; inset: 0; z-index: -1 }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); animation: zoomout 1.5s cubic-bezier(.25, 1, .5, 1) forwards, kenburns 26s ease-in-out 1.5s infinite alternate }
@keyframes zoomout { to { transform: scale(1) } }
@keyframes kenburns { from { transform: scale(1) } to { transform: scale(1.06) } }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--dark-rgb), .55) 0%, rgba(var(--dark-rgb), .15) 45%, rgba(var(--dark-rgb), .55) 100%) }
.hero-content { max-width: 52rem; display: grid; justify-items: center; gap: 1.1rem }
.hero h1 { font-size: clamp(2.3rem, 1.3rem + 3.9vw, 4.6rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.02 }
.hero h1 .w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(24px); animation: wordin .9s cubic-bezier(.22, 1, .36, 1) forwards; animation-delay: calc(.55s + var(--i, 0) * 70ms) }
.hero h1 .w:nth-child(2) { --i: 1 } .hero h1 .w:nth-child(3) { --i: 2 } .hero h1 .w:nth-child(4) { --i: 3 } .hero h1 .w:nth-child(6) { --i: 4 } .hero h1 .w:nth-child(7) { --i: 5 } .hero h1 .w:nth-child(9) { --i: 6 } .hero h1 .w:nth-child(10) { --i: 7 } .hero h1 .w:nth-child(11) { --i: 8 }
@keyframes wordin { to { opacity: 1; filter: blur(0); transform: none } }
.hero .lead { color: rgba(255,255,255,.85); max-width: 34ch; font-size: var(--step-0); opacity: 0; animation: wordin .8s var(--ease) 1.3s forwards }
.hero .actions { opacity: 0; animation: wordin .8s var(--ease) 1.45s forwards }
.rotor { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; line-height: 1.4em; font-size: var(--step--1); font-weight: 500; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); border-radius: var(--radius-pill); padding: .45rem 1rem; margin: 0 0 .6rem; opacity: 0; animation: wordin .7s var(--ease) .35s forwards }
.rotor-fixed { opacity: .8 }
.rotor-box { display: inline-block; height: 1.4em; overflow: hidden; vertical-align: bottom; text-align: left }
.rotor-list { display: block; will-change: transform }
.rotor-list span { display: block; height: 1.4em; line-height: 1.4em; white-space: nowrap; color: var(--on-dark-soft); font-weight: 600 }
.hero .actions { justify-content: center; margin-top: .4rem }
.hero-labels { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none }
.hero-labels li { position: absolute; left: var(--x); top: var(--y); opacity: 0; animation: labelin .6s var(--ease) var(--d) forwards }
@keyframes labelin { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
.hero-labels a { pointer-events: auto; display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: #fff; font-size: var(--step--1); font-weight: 500; background: rgba(var(--dark-rgb), .35); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: var(--radius-pill); padding: .45rem .9rem .45rem .55rem; animation: floaty 6s ease-in-out infinite; animation-delay: calc(var(--d) * -2); transition: background .2s }
.hero-labels a::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.25) }
.hero-labels a:hover { background: rgba(255,255,255,.9); color: var(--accent) }
@keyframes floaty { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
.hero-notch { position: absolute; left: 50%; bottom: 1.6rem; transform: translate(-50%, 50%); white-space: nowrap; display: inline-flex; align-items: center; gap: .6rem; background: var(--bg); color: var(--fg); text-decoration: none; font-weight: 600; font-size: var(--step--1); padding: .8rem 1.4rem; border-radius: var(--radius-pill); box-shadow: 0 0 0 10px var(--bg); }
.hero-notch svg { width: 1rem; height: 1rem; animation: floaty 2.4s ease-in-out infinite }
@media (max-width: 900px) { .hero { padding: 5rem .5rem 1.6rem } .hero h1 br:nth-of-type(2) { display: none } .rotor-fixed { display: none } .hero-box { min-height: 34rem; padding-top: 3rem; padding-bottom: 8rem; border-radius: 22px } .hero-bg video { animation: none; transform: none } .hero-labels li.lg { display: none } .hero-labels li { --y: auto } .hero-labels { inset: auto 1rem 3.4rem 1rem; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center } .hero-labels li { position: static } }

/* hero "split": texto a la izquierda sobre el fondo claro, vídeo/foto en tarjeta a la derecha (Healers, Orelle) */
.hero-split { padding-top: clamp(7rem, 11vw, 9rem); background: linear-gradient(180deg, var(--hero-tint) 0%, var(--bg) 70%) }
.hero-split .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center }
.hero-split .hero-content { color: var(--fg); justify-items: start; text-align: left; max-width: none }
.hero-split .rotor { color: var(--fg); background: var(--accent-soft); border-color: transparent } .hero-split .rotor-list span { color: var(--accent) }
.hero-split h1 em { color: var(--accent) } .hero-split .lead { color: var(--muted); max-width: 40ch } .hero-split .actions { justify-content: flex-start }
.hero-split .btn-light { background: var(--accent); color: var(--btn-fg) } .hero-split .btn-outline-light { color: var(--fg); border-color: var(--border) }
.hero-split .hero-media { position: relative; border-radius: var(--radius-card); overflow: clip; aspect-ratio: 4 / 4.4; background: var(--dark); box-shadow: var(--shadow-float); isolation: isolate }
.hero-split .hero-bg { position: absolute; inset: 0; z-index: -1 }
.hero-split .hero-card { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; width: auto; opacity: 1; transform: none; color: #fff; background: rgba(var(--dark-rgb), .74); border-color: rgba(255,255,255,.18) }
@media (max-width: 900px) { .hero-split .wrap { grid-template-columns: 1fr } .hero-split .hero-media { aspect-ratio: 4 / 3 } }

/* hero "tres-fotos": titular centrado y tres fotos debajo, la central más alta (Klinik) */
.hero-tres { padding-top: clamp(7rem, 11vw, 9rem); background: linear-gradient(180deg, var(--hero-tint) 0%, var(--bg) 70%) }
.hero-tres .hero-content { color: var(--fg); margin-inline: auto; max-width: 44rem }
.hero-tres .rotor { color: var(--fg); background: var(--accent-soft); border-color: transparent } .hero-tres .rotor-list span { color: var(--accent) }
.hero-tres h1 em { color: var(--accent) } .hero-tres .lead { color: var(--muted) }
.hero-tres .btn-light { background: var(--accent); color: var(--btn-fg) } .hero-tres .btn-outline-light { color: var(--fg); border-color: var(--border) }
.hero-tres-fotos { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 1rem; margin-top: clamp(2rem, 5vw, 3.5rem); align-items: end }
.hero-tres-fotos .pic { aspect-ratio: 4 / 4.6; opacity: 0; transform: translateY(30px); animation: wordin .9s var(--ease) forwards }
.hero-tres-fotos .pic:nth-child(1) { animation-delay: .9s } .hero-tres-fotos .pic:nth-child(2) { aspect-ratio: 4 / 5.4; animation-delay: .75s } .hero-tres-fotos .pic:nth-child(3) { animation-delay: 1.05s }
.hero-tres-fotos video { width: 100%; height: 100%; object-fit: cover }
@media (max-width: 700px) { .hero-tres-fotos { grid-template-columns: 1fr 1fr } .hero-tres-fotos .pic:nth-child(3) { display: none } }

/* ---------- marquee ---------- */
.marquee { padding-block: 2.4rem 1.1rem; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent) }
.marquee-track { display: flex; gap: 2.4rem; width: max-content; animation: marquee 48s linear infinite; padding: 0; margin: 0; list-style: none }
.marquee-track li { font-weight: 500; font-size: var(--step-1); letter-spacing: -.02em; white-space: nowrap; display: flex; align-items: center; gap: 2.4rem; color: var(--muted) }
.marquee-track li::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent) }
@keyframes marquee { to { transform: translateX(-50%) } }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: calc(var(--i, 0) * 80ms) }
[data-reveal].in { opacity: 1; transform: none }
h2.words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em }
h2.words .w > span { display: inline-block; transform: translateY(110%); transition: transform .7s var(--ease) }
h2.words.in .w > span { transform: none }
h2.words.in .w:nth-child(2) > span { transition-delay: .05s } h2.words.in .w:nth-child(3) > span { transition-delay: .1s } h2.words.in .w:nth-child(4) > span { transition-delay: .15s } h2.words.in .w:nth-child(5) > span { transition-delay: .2s } h2.words.in .w:nth-child(6) > span { transition-delay: .25s } h2.words.in .w:nth-child(7) > span { transition-delay: .3s } h2.words.in .w:nth-child(n+8) > span { transition-delay: .35s }
[data-reveal] .pic img, .pic[data-reveal] img { transform: scale(1.12); transition: transform 1.4s cubic-bezier(.25, 1, .5, 1) }
[data-reveal].in .pic img, .pic[data-reveal].in img { transform: none }

/* ---------- intro: frase grande + 4 fotos (Dentel / Dermato) ---------- */
.intro { padding-top: clamp(2rem, 5vw, 4rem) }
.intro .statement { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.6rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.2; max-width: 52rem; margin-inline: auto; text-align: center }
.intro .statement em { font-family: var(--font-accent); font-style: italic; font-weight: var(--accent-weight, 300); font-variation-settings: var(--accent-opsz, normal) }
.intro .facts { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; margin: 1.8rem 0 0; padding: 0; list-style: none; font-size: var(--step--1); color: var(--muted) }
.intro .facts li { display: flex; align-items: center; gap: .5rem }
.intro .facts li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent) }
.intro .photos { display: grid; grid-template-columns: 1.1fr .9fr 1.1fr .9fr; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); align-items: end }
.intro .photos .pic:nth-child(1) { aspect-ratio: 4 / 3 }
.intro .photos .pic:nth-child(2) { aspect-ratio: 3 / 4; margin-bottom: 2.5rem }
.intro .photos .pic:nth-child(3) { aspect-ratio: 4 / 3; margin-bottom: 1rem }
.intro .photos .pic:nth-child(4) { aspect-ratio: 3 / 4 }
@media (max-width: 800px) { .intro .photos { grid-template-columns: 1fr 1fr } .intro .photos .pic { margin: 0 !important } }

/* ---------- especialidades: tarjetas de imagen (Dentel) ---------- */
.esp { background: var(--bg-2) }
.esp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem }
.esp-card { position: relative; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4 / 4.4; display: grid; align-items: end; color: #fff; text-decoration: none; background: var(--dark); isolation: isolate }
.esp-card.wide { grid-column: span 2; aspect-ratio: auto }
.esp-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease) }
.esp-card:hover img { transform: scale(1.05) }
.esp-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--dark-rgb), .08) 0%, rgba(var(--dark-rgb), .3) 42%, rgba(var(--dark-rgb), .86) 68%, rgba(var(--dark-rgb), .97) 100%) }
.esp-card .body { text-shadow: 0 1px 2px rgba(0,0,0,.25) }
.esp-cta { background: var(--dark); color: #fff; border-radius: var(--radius-card); padding: 1.6rem; display: grid; align-content: end; gap: .6rem; aspect-ratio: 4 / 4.4; position: relative; overflow: hidden; isolation: isolate }
.esp-cta .body { display: grid; gap: .6rem; position: relative }
.esp-cta.has-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2 }
.esp-cta.has-photo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--dark-rgb), .92) 0%, rgba(var(--dark-rgb), .75) 45%, rgba(var(--dark-rgb), .25) 100%) }
.esp-cta.has-photo .body { max-width: 30rem }
.esp-cta h3 { color: #fff; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem) }
.esp-cta p { color: rgba(255,255,255,.75); font-size: var(--step--1) }
.esp-cta .btn { justify-self: start; margin-top: .6rem }
.esp-cta.wide { grid-column: span 2; aspect-ratio: auto; min-height: 16rem }
@media (max-width: 560px) { .esp-cta, .esp-cta.wide { aspect-ratio: auto; grid-column: auto } }
.esp-card .body { padding: 1.4rem; display: grid; gap: .4rem }
.esp-card .num { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; font-weight: 600 }
.esp-card h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); color: #fff }
.esp-card p { font-size: var(--step--1); color: rgba(255,255,255,.8); max-width: 34ch }
.esp-card .chips { margin-top: .5rem; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .4s var(--ease) }
.esp-card:hover .chips, .esp-card:focus-visible .chips { max-height: 8rem; opacity: 1 }
.esp-card .go { position: absolute; top: 1rem; right: 1rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(255,255,255,.15); backdrop-filter: blur(6px); display: grid; place-items: center; transition: background .2s, transform .35s var(--ease) }
.esp-card:hover .go { background: #fff; color: var(--accent); transform: rotate(45deg) }
.esp-card .go svg { width: 1rem; height: 1rem }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0 }
.chips li { border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius-pill); padding: .2rem .6rem; font-size: .75rem; font-weight: 500 }
.chips.dark li { border-color: var(--border); background: var(--surface); color: var(--fg); font-size: var(--step--1); padding: .35rem .8rem }
.esp .foot { margin-top: 1.6rem; color: var(--muted); font-size: var(--step--1) }
@media (max-width: 960px) { .esp-grid { grid-template-columns: 1fr 1fr } .esp-card.wide { grid-column: span 2 } }
@media (max-width: 560px) { .esp-grid { grid-template-columns: 1fr } .esp-card.wide { grid-column: auto; aspect-ratio: 4 / 4.4 } .esp-card .chips { display: none } }

/* ---------- medicina estética: split con tarjeta de la doctora (Dermato) ---------- */
.estetica .grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start }
.dra-card { position: relative; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4 / 4.8; box-shadow: var(--shadow-card); position: sticky; top: 6rem }
.dra-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top }
.dra-card figcaption { position: absolute; left: .9rem; right: .9rem; bottom: .9rem; background: rgba(var(--dark-rgb), .6); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: var(--radius-img); padding: 1rem 1.1rem; color: #fff; display: grid; gap: .2rem }
.dra-card strong { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em }
.dra-card span { font-size: var(--step--1); opacity: .85 }
.dra-card a { color: #fff; text-decoration: none; font-size: var(--step--1); margin-top: .3rem }
.dra-card a b { font-weight: 700 }
.acc { border-top: 1px solid var(--border); margin-top: 1.8rem }
.acc details { border-bottom: 1px solid var(--border) }
.acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: center; gap: 1rem; padding: 1.1rem 0; font-weight: 600; font-size: var(--step-1); letter-spacing: -.02em }
.acc summary::-webkit-details-marker { display: none }
.acc .n { font-family: var(--font-accent); font-weight: 300; color: var(--muted); font-size: 1.1rem }
.acc .plus { width: 2.2rem; height: 2.2rem; border: 1px solid var(--border); border-radius: 50%; position: relative; transition: transform .35s var(--ease), background .16s, border-color .16s }
.acc .plus::before, .acc .plus::after { content: ''; position: absolute; top: 50%; left: 50%; width: .8rem; height: 1.5px; background: currentColor; transform: translate(-50%, -50%) }
.acc .plus::after { transform: translate(-50%, -50%) rotate(90deg) }
.acc details[open] .plus { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff }
.acc .body { padding: 0 0 1.3rem 3.4rem; display: grid; gap: .8rem }
.acc dl { margin: 0; display: grid; gap: .35rem }
.acc .row { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: .2rem 1rem; font-size: var(--step--1) }
.acc dt { font-weight: 600 } .acc dd { margin: 0; color: var(--muted) }
.note { display: inline-flex; align-items: center; gap: .6rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: .5rem 1rem .5rem .6rem; font-size: var(--step--1); font-weight: 500 }
.note b { background: var(--accent); color: #fff; border-radius: var(--radius-pill); padding: .25rem .6rem; font-weight: 600; font-size: .8em; letter-spacing: .04em }
@media (max-width: 900px) { .estetica .grid { grid-template-columns: 1fr } .dra-card { position: relative; top: auto; aspect-ratio: 4 / 4 } .acc .body { padding-left: 0 } .acc .row { grid-template-columns: 1fr } }

/* ---------- resultados: tarjetas con slider (Dentel) ---------- */
.resultados { background: var(--surface) }
.filters { display: flex; gap: .4rem; flex-wrap: wrap }
.filters button { background: var(--bg); border: 1px solid var(--border); font: inherit; font-size: var(--step--1); font-weight: 600; color: var(--muted); padding: .5rem .9rem; border-radius: var(--radius-pill); cursor: pointer; min-height: 40px; transition: all .16s var(--ease) }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff }
.ba-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem }
.ba { margin: 0; background: var(--bg); border-radius: var(--radius-card); padding: .7rem; display: grid; gap: .7rem }
.ba.is-hidden { display: none }
.ba-frame { position: relative; aspect-ratio: 2 / 1; border-radius: var(--radius-img); overflow: hidden; background: var(--accent-soft); touch-action: pan-y; user-select: none; -webkit-user-select: none }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none }
.ba-frame .after { clip-path: inset(0 0 0 var(--x, 50%)) }
.ba-frame .handle { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; background: #fff; transform: translateX(-1px); box-shadow: 0 0 0 1px rgba(0,0,0,.15) }
.ba-frame .handle::after { content: ''; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 6px 16px rgba(0,0,0,.25); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2'%3E%3Cpath d='M9 6 3 12l6 6M15 6l6 6-6 6'/%3E%3C/svg%3E"); background-size: 18px; background-repeat: no-repeat; background-position: center }
.ba-frame .lbl { position: absolute; bottom: .5rem; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #fff; background: rgba(var(--dark-rgb), .7); padding: .28rem .5rem; border-radius: 4px; pointer-events: none }
.ba-frame .lbl.l { left: .5rem } .ba-frame .lbl.r { right: .5rem }
.ba-frame input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0 }
.ba figcaption { padding: 0 .3rem .2rem; font-size: var(--step--1); color: var(--muted); display: flex; justify-content: space-between; gap: 1rem }
.ba figcaption b { color: var(--fg); font-weight: 600 }
.resultados .foot { margin-top: 1.5rem; font-size: var(--step--1); color: var(--muted) }
@media (max-width: 960px) { .ba-grid { grid-template-columns: 1fr 1fr } }
@media (max-width: 600px) { .ba-grid { grid-template-columns: 1fr } }

/* ---------- workflow: pasos + imagen (Dentel) ---------- */
.flow .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: paso; border-top: 1px solid var(--border) }
.steps li { counter-increment: paso; border-bottom: 1px solid var(--border) }
.steps button { all: unset; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: baseline; width: 100%; padding: 1.2rem 0; cursor: pointer; box-sizing: border-box }
.steps button::before { content: '0' counter(paso); font-family: var(--font-accent); font-weight: 300; font-size: var(--step-2); color: var(--muted); line-height: 1; transition: color .2s }
.steps strong { display: block; font-size: var(--step-1); font-weight: 600; letter-spacing: -.02em; color: var(--muted); transition: color .2s }
.steps p { color: var(--muted); font-size: var(--step--1); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .4s var(--ease), margin .4s }
.steps li.is-active button::before, .steps li.is-active strong { color: var(--fg) }
.steps li.is-active button::before { color: var(--accent) }
.steps li.is-active p { max-height: 8rem; opacity: 1; margin-top: .4rem }
.flow-media { position: relative; aspect-ratio: 4 / 4.2; border-radius: var(--radius-card); overflow: hidden; background: var(--accent-soft) }
.flow-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform .7s var(--ease) }
.flow-media img.is-active { opacity: 1; transform: none }
@media (max-width: 900px) { .flow .grid { grid-template-columns: 1fr } .flow-media { aspect-ratio: 16 / 10; order: -1 } }

/* ---------- bento: por qué (Dermato) ---------- */
.porque { background: var(--bg-2) }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(13rem, auto); gap: 1rem }
.tile { background: var(--surface); border-radius: var(--radius-card); padding: 1.6rem; display: grid; align-content: end; gap: .5rem; position: relative; overflow: hidden; isolation: isolate }
.tile h3 { font-size: var(--step-1) }
.tile p { font-size: var(--step--1); color: var(--muted) }
.tile.photo { color: #fff; grid-row: span 2 }
.tile.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2 }
.tile.photo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--dark-rgb), .05) 30%, rgba(var(--dark-rgb), .6) 65%, rgba(var(--dark-rgb), .95) 100%) }
.tile.photo h3, .tile.photo p { text-shadow: 0 1px 2px rgba(0,0,0,.25) }
.tile.photo h3 { color: #fff } .tile.photo p { color: rgba(255,255,255,.8) }
.tile.dark { background: var(--dark); color: #fff }
.tile.dark h3 { color: #fff } .tile.dark p { color: rgba(255,255,255,.75) }
.tile.big { grid-column: span 2 }
.tile .kpi { font-family: var(--font-accent); font-weight: 300; font-size: clamp(2.4rem, 2rem + 2vw, 3.6rem); letter-spacing: -.02em; line-height: 1; margin-bottom: .3rem }
.tile .quote { font-family: var(--font-accent); font-weight: 300; font-size: var(--step-1); line-height: 1.3; letter-spacing: -.01em; color: var(--fg) }
.tile .who { font-size: var(--step--1); color: var(--muted) }
.tile .chips { margin-top: .4rem }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr } .tile.big { grid-column: span 2 } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr } .tile.big, .tile.photo { grid-column: auto; grid-row: auto } .tile.photo { min-height: 18rem } }

/* ---------- reseñas ---------- */
.resenas .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 1.6rem; display: grid; gap: .9rem; align-content: start }
.review blockquote { margin: 0; font-family: var(--font-accent); font-weight: 300; font-size: var(--step-1); line-height: 1.3; letter-spacing: -.01em }
.review footer { font-size: var(--step--1); color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; margin-top: auto }
.review footer b { color: var(--fg); font-weight: 600 }
.resenas .foot { margin-top: 1.6rem; font-size: var(--step--1); color: var(--muted) }
@media (max-width: 900px) { .resenas .grid { grid-template-columns: 1fr } }

/* ---------- ¿qué necesita tu piel? (preguntas de su web) ---------- */
.piel { background: var(--bg-2) }
.piel .grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start }
.piel .pic { position: sticky; top: 6rem; aspect-ratio: 4 / 4.6 }
.piel .pic figcaption { position: absolute; left: .9rem; right: .9rem; bottom: .9rem; background: rgba(var(--dark-rgb), .55); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: var(--radius-img); padding: 1rem 1.1rem; color: #fff; font-size: var(--step--1) }
.piel .pic figcaption strong { display: block; font-size: 1.1rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: .15rem }
@media (max-width: 900px) { .piel .grid { grid-template-columns: 1fr } .piel .pic { position: relative; top: auto; aspect-ratio: 4 / 3 } }

/* marcas */
.marcas { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2.4rem; margin-top: 1.4rem }
.marcas img { height: 20px; width: auto; opacity: .75; filter: grayscale(1) }

/* tarjeta regalo */
.regalo .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; background: var(--dark); color: #fff; border-radius: calc(var(--radius-card) + 8px); padding: clamp(2rem, 5vw, 4rem) }
.regalo .tag { background: rgba(255,255,255,.12); color: #fff } .regalo .tag::before { background: #fff }
.regalo .lead { color: rgba(255,255,255,.78) }
.regalo .pic { aspect-ratio: 1; max-width: 26rem; justify-self: end; transform: rotate(-3deg); box-shadow: var(--shadow-float) }
@media (max-width: 800px) { .regalo .wrap { grid-template-columns: 1fr } .regalo .pic { justify-self: center; max-width: 20rem } }

/* ---------- banda de foto a sangre con parallax (Odontomedic) ---------- */
.banda { position: relative; min-height: clamp(24rem, 55vh, 36rem); display: grid; align-items: center; overflow: clip; color: #fff; padding-block: clamp(4rem, 8vw, 6rem); isolation: isolate }
.banda-bg { position: absolute; inset: -12% 0; z-index: -1 }
.banda-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30% }
.banda-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--dark-rgb), .82) 0%, rgba(var(--dark-rgb), .45) 55%, rgba(var(--dark-rgb), .15) 100%) }
.banda-card { max-width: 34rem; display: grid; gap: 1.2rem }
.banda-card h2 { color: #fff } .banda-card h2 em { color: var(--on-dark-soft) }
.banda-card p { color: rgba(255,255,255,.85); font-size: var(--step-1); line-height: 1.35 }
@media (max-width: 900px) { .banda-bg img { transform: none !important } }

/* ---------- fotos marquee ---------- */
.fotos { overflow: hidden; padding-block: 0 var(--section); -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent) }
.fotos-track { display: flex; gap: 1rem; width: max-content; list-style: none; margin: 0; padding: 0; animation: marquee 70s linear infinite }
.fotos:hover .fotos-track { animation-play-state: paused }
.fotos-track li { flex: none; height: clamp(12rem, 24vw, 19rem); border-radius: var(--radius-img); overflow: hidden; background: var(--accent-soft) }
.fotos-track li:nth-child(even) { margin-top: 1.5rem }
.fotos-track img { height: 100%; width: auto; display: block }

/* ---------- faq ---------- */
.faq { background: var(--surface) }
.faq .cols { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 5rem); align-items: start }
.faq .head { position: sticky; top: 6rem; margin: 0 }
.faq details { border-bottom: 1px solid var(--border) }
.faq details:first-of-type { border-top: 1px solid var(--border) }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 2.6rem 1.15rem 0; font-weight: 600; position: relative }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: ''; position: absolute; right: .4rem; top: 50%; width: .55rem; height: .55rem; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .35s var(--ease) }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg) }
.faq details p { padding-bottom: 1.2rem; color: var(--muted) }
@media (max-width: 800px) { .faq .cols { grid-template-columns: 1fr } .faq .head { position: static; margin-bottom: 2rem } }

/* ---------- dónde ---------- */
.donde .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: stretch }
.info { display: grid; gap: 1.5rem; align-content: start }
.info dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2rem }
.info dt { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin-bottom: .3rem }
.info dd { margin: 0; font-weight: 500 }
.info dd a { text-decoration: none }
.info dd a:hover { color: var(--accent) }
.map { position: relative; min-height: 22rem; border-radius: var(--radius-card); overflow: hidden; background: var(--bg-2); display: grid; place-items: center; text-align: center; padding: 2rem }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0 }
.map .map-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; filter: saturate(.6) }
.map > div { position: relative; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(6px); border-radius: var(--radius-img); padding: 1.4rem 1.6rem }
.map p { color: var(--muted); font-size: var(--step--1); margin-bottom: 1rem }
@media (max-width: 800px) { .donde .wrap { grid-template-columns: 1fr } }
@media (max-width: 480px) { .info dl { grid-template-columns: 1fr } }

/* ---------- cita ---------- */
.cita { background: var(--dark); color: #fff }
.cita .tag { background: rgba(255,255,255,.12); color: #fff } .cita .tag::before { background: #fff }
.cita .lead { color: rgba(255,255,255,.75) }
.cita .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start }
.form { background: var(--surface); color: var(--fg); border-radius: var(--radius-card); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow-card); display: grid; gap: 1rem }
.form label { display: grid; gap: .4rem; font-weight: 600; font-size: var(--step--1) }
.form input, .form select, .form textarea { font: inherit; font-size: max(16px, var(--step-0)); padding: .8rem .95rem; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--fg); width: 100%; min-height: 44px }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent) }
.form textarea { resize: vertical; min-height: 6rem }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem }
.form small { color: var(--muted); font-size: var(--step--1) }
.form small a { color: inherit }
.form .btn { justify-content: center }
.alt-contact { display: grid; margin-top: 2rem }
.alt-contact a { display: flex; align-items: center; gap: .9rem; text-decoration: none; padding: .9rem 0; border-top: 1px solid rgba(255,255,255,.15); font-weight: 500 }
.alt-contact a:last-child { border-bottom: 1px solid rgba(255,255,255,.15) }
.alt-contact svg { width: 1.3rem; height: 1.3rem; color: var(--on-dark-soft); flex: none }
.alt-contact span { color: rgba(255,255,255,.65); font-size: var(--step--1); margin-left: auto; text-align: right }
@media (max-width: 800px) { .cita .wrap { grid-template-columns: 1fr } .form .row2 { grid-template-columns: 1fr } .alt-contact span { display: none } }

/* ---------- footer ---------- */
.footer { padding-block: 3rem 2rem; border-top: 1px solid var(--border); font-size: var(--step--1); color: var(--muted) }
.footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem }
.footer .brand-col img { height: 72px; width: auto; margin-bottom: 1rem }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem }
.footer a { text-decoration: none }
.footer a:hover { color: var(--fg) }
.footer h4 { margin: 0 0 .8rem; font-size: var(--step--1); text-transform: uppercase; letter-spacing: .1em; color: var(--fg) }
.footer .bottom { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between }
@media (max-width: 800px) { .footer .wrap { grid-template-columns: 1fr 1fr } .footer .brand-col { grid-column: 1 / -1 } }

/* ---------- wa flotante ---------- */
.wa-float { display: none }
@media (max-width: 900px) { .wa-float { display: grid; place-items: center; position: fixed; right: 1rem; bottom: 1rem; z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,.35) } .wa-float svg { width: 26px; height: 26px } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  h2.words .w > span, .hero-labels li, .nav, .hero-content, .hero h1 .w, .hero .lead, .hero .actions, .rotor { transform: none !important; opacity: 1 !important; filter: none !important; animation: none !important } 
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important }
  [data-reveal], .hero .lead, .hero .actions, .hero-card, .hero-tres-fotos .pic, .flow-media img.is-active { opacity: 1 !important; transform: none !important }
  .hero h1 .line > span { transform: none !important }
  .marquee-track, .fotos-track { animation: none !important }
}
