/* Clínica Dental Olga Puchades — «foto protagonista»: fotos grandes en blanco y negro, lavanda de la marca */

@font-face {
  font-family: "Libre Franklin";
  src: url("fonts/libre-franklin-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* Color */
  --paper: #ffffff;
  --pale: #f4eefa;
  --mid: #e4d4f4;
  --lav: #c8a6e7;
  --deep: #6d3f9e;
  --plum: #3b2453;
  --ink: #1b1820;
  --muted: #4f4757;
  --scrim: rgba(20, 17, 24, 0.52);

  /* Tipo: cinco pasos */
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --step-head: clamp(2.25rem, 1.4rem + 2.6vw, 3.75rem);
  --step-display: clamp(2.75rem, 5.4vw, 6rem);

  /* Espacio */
  --m: clamp(16px, 2.2vw, 32px);
  --sec: clamp(96px, 11vw, 168px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; -webkit-tap-highlight-color: rgba(176, 122, 217, 0.25); }
a, button, summary { touch-action: manipulation; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  hyphens: auto; -webkit-hyphens: auto;
  background: var(--paper);
  color: var(--ink);
  font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-body);
  line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: color 0.2s var(--ease-out); }
b { font-weight: 600; }
::selection { background: var(--lav); color: var(--ink); }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; }
/* Foco visible con contraste suficiente sobre cada fondo */
.hero :focus-visible, .visit :focus-visible, .cta :focus-visible, .bar :focus-visible, .jump :focus-visible, .mmenu__panel :focus-visible, .wa-float:focus-visible { outline-color: var(--lav); }
.hero__side :focus-visible, .treat :focus-visible, .enband :focus-visible, .foot :focus-visible, .about__tile :focus-visible { outline-color: var(--ink); }

/* Texto justificado, como en los libros; los titulares y datos cortos quedan a la izquierda */
main p, main li, .hero__side p { text-align: justify; }
.intro__captions p, .team__role, .hero__stat, .cases__count, .enband__found, .about__tile p, .card p, .treat__name span, .caseset figcaption, .about__facts dd, .tabs, .facts dd { text-align: left; hyphens: manual; }
h1, h2, h3, summary, .button, .bar, .jump { hyphens: manual; }

h1, h2 { font-weight: 600; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
h2 { font-size: var(--step-head); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 20; }
.skip:focus { left: 8px; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--lav); color: var(--ink);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.16s var(--ease-out);
}
.button:hover { background: var(--deep); color: var(--paper); }
.button:active { transform: scale(0.97); }
.button--small { min-height: 44px; padding: 0 18px; font-size: var(--step-small); }
.button--ink { background: var(--ink); color: var(--paper); }
.button--ink:hover { background: var(--plum); }
.button--paper { background: var(--paper); color: var(--ink); }
/* WhatsApp: el canal que queremos potenciar, con su logo en verde */
.button--wa { gap: 10px; background: var(--ink); color: var(--paper); }
.button--wa:hover { background: var(--plum); color: var(--paper); }
.button--wa-light { background: var(--paper); color: var(--ink); }
.button--wa-light:hover { background: var(--pale); color: var(--ink); }
.wa-icon { width: 1.25em; height: 1.25em; flex: none; fill: #25d366; }
.wa-float {
  position: fixed; right: calc(20px + env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 15;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 22px;
  background: var(--ink); color: var(--paper);
  font-weight: 600; text-decoration: none;
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.wa-float:hover { background: var(--plum); transform: translateY(-2px); }
.wa-float.is-away { transform: translateY(calc(100% + 32px)); pointer-events: none; }
.wa-float .wa-icon { width: 26px; height: 26px; }
.button--paper:hover { background: var(--pale); color: var(--ink); }
.textlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; padding: 10px 0; }
.textlink:hover { color: var(--deep); }
.arr { width: 1em; height: 1em; fill: currentColor; flex: none; transition: transform 0.2s var(--ease-out); }
a:hover > .arr { transform: translateX(4px); }

/* ---------- La foto protagonista ---------- */
.hero {
  position: relative; height: 100svh; min-height: 600px;
  background: var(--ink); color: var(--paper);
  overflow: hidden;
}
.hero--page { height: 72svh; min-height: 480px; }
.hero__photo, .hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__photo img { object-fit: cover; filter: brightness(0.6); }
.hero__photo[data-crossfade] img { opacity: 0; transition: opacity 1.6s ease-in-out; }
.hero__photo[data-crossfade] img.is-on { opacity: 1; }
.hero__photo img.is-on, .hero--page .hero__photo img { animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }

.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
  display: flex; align-items: center; gap: 32px;
  height: 72px; padding-right: var(--m);
  background: var(--scrim); color: var(--paper);
}
.bar__logo { align-self: stretch; display: flex; align-items: center; background: var(--paper); padding: 0 var(--m); }
.bar__logo img { width: 164px; }
.bar__nav { display: flex; gap: 28px; font-weight: 500; }
.bar__nav a, .bar__end a:not(.button) { text-decoration: none; padding: 8px 0; }
.bar__nav a:hover, .bar__end a:not(.button):hover, .bar__nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.bar__end { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: var(--step-small); font-weight: 600; }

.hero__text {
  position: absolute; left: var(--m); right: var(--m); bottom: clamp(36px, 7vh, 72px); z-index: 2;
  display: grid; grid-template-columns: 1fr minmax(280px, 34ch); gap: 32px 48px; align-items: end;
}
.hero h1 { font-size: var(--step-display); }
/* El texto sobre la foto va en un bloque lavanda para que se lea bien */
.hero__side { background: var(--lav); color: var(--ink); padding: clamp(20px, 2.4vw, 32px); }
.hero__side p { font-size: var(--step-lead); line-height: 1.35; }
.hero__side .button:not(.button--wa) { background: var(--ink); color: var(--paper); }
.hero__side .button:not(.button--wa):hover { background: var(--plum); }
.hero__actions { display: inline-flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 24px; }
.hero__stat { margin-top: 16px; font-weight: 600; }

.hero__pause {
  position: absolute; z-index: 3; top: 88px; right: var(--m);
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--scrim); color: var(--paper); border: 0; cursor: pointer;
  transition: background-color 0.2s var(--ease-out);
}
.hero__pause:hover { background: var(--ink); }
.hero__pause svg { width: 20px; height: 20px; fill: currentColor; }
.hero__pause .i-play, .hero__pause[aria-pressed="true"] .i-pause { display: none; }
.hero__pause[aria-pressed="true"] .i-play { display: inline; }
.hero__photo.is-paused img { animation-play-state: paused; }
.masked { padding-bottom: 0.2em; }
.masked .line { display: block; overflow: hidden; padding: 0.16em 0 0.06em; margin-top: -0.16em; }
.masked .line > span { display: inline-block; }
.js .masked .line > span { transform: translateY(105%); transition: transform 0.9s var(--ease-out); }
.js .masked .line:nth-child(2) > span { transition-delay: 0.11s; }
.js.is-loaded .masked .line > span { transform: none; }

/* ---------- Banda en inglés ---------- */
.enband { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--m); align-items: end; background: var(--lav); padding: clamp(64px, 7vw, 104px) var(--m); }
.enband h2 { grid-column: 1 / 8; }
.enband__side { grid-column: 9 / 13; }
.enband__found { font-size: var(--step-lead); font-weight: 700; margin-bottom: 8px; }
.enband .button { margin-top: 24px; gap: 10px; }

/* ---------- La clínica: titular que rotula una panorámica ---------- */
.intro { padding-top: var(--sec); }
.intro h2 { padding: 0 var(--m); font-size: var(--step-display); }
.intro__captions { display: flex; gap: 48px; padding: 28px var(--m) 0; font-size: var(--step-small); }
.intro__captions p { width: 220px; }
.intro__pano { margin-top: 40px; overflow: hidden; }
.intro__pano img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.intro__split {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--m);
  padding: var(--sec) var(--m) 0; align-items: end;
}
.intro__text { grid-column: 2 / 7; font-size: var(--step-lead); line-height: 1.45; }
.intro__portrait { grid-column: 8 / 13; }
.intro__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Tratamientos: banda lavanda, la tabla a la derecha ---------- */
.treat { margin-top: var(--sec); background: var(--lav); padding: var(--sec) var(--m); }
.treat h2 span { display: block; }
.treat h2 span:first-child { padding-left: 3vw; }
.treat__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--m); margin-top: 96px; align-items: end; }
.treat__photo { grid-column: 1 / 5; }
.treat__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.treat__table { grid-column: 6 / 13; }
.treat__group + .treat__group { margin-top: 44px; }
.treat__group h3 { font-size: var(--step-small); font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.treat__group li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.treat__group li + li { margin-top: 18px; }
.treat__name { display: flex; flex-direction: column; }
.treat__name b { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.treat__name span { font-size: var(--step-small); max-width: 56ch; }
.treat__group li a { display: inline-flex; align-items: center; gap: 6px; font-size: var(--step-small); font-weight: 600; white-space: nowrap; text-decoration: none; }
.treat__group li a:hover { color: var(--paper); }
.treat__table > .button { margin-top: 48px; }

/* ---------- Casos ---------- */
.cases { display: grid; grid-template-columns: 7fr 5fr; gap: var(--m); padding: var(--sec) var(--m); align-items: stretch; }
.cases__plates { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.cases__plates figure { transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out); }
.cases__plates img { width: 100%; aspect-ratio: 950 / 300; object-fit: cover; background: var(--pale); }
.cases__plates.is-swapping figure { opacity: 0; transform: translateY(10px); }
.cases__text { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-left: clamp(0px, 2vw, 32px); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.tabs button {
  font: inherit; background: none; border: 0; padding: 8px 0; cursor: pointer; color: var(--muted);
  text-decoration: underline transparent; text-underline-offset: 0.35em; text-decoration-thickness: 3px;
  transition: color 0.2s var(--ease-out), text-decoration-color 0.2s var(--ease-out);
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; text-decoration-color: var(--lav); }
.cases__copy h2 { margin-bottom: 32px; }
.cases__copy p { max-width: 42ch; }
.cases__count { margin-top: 16px; font-size: var(--step-small); color: var(--muted); }
.cases__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* ---------- Equipo: foto ancha, baldosa de color y datos ---------- */
.about { padding: 0 var(--m) var(--sec); }
.about__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--m); }
.about__head h2 { grid-column: 1 / -1; }
.about__head p { grid-column: 1 / 7; margin-top: 24px; font-size: var(--step-lead); line-height: 1.4; }
.about__tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 72px; align-items: start; }
.about__wide { grid-column: 1 / 9; position: relative; }
.about__wide img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.about__wide p { position: absolute; top: 0; right: 0; width: min(340px, 60%); padding: 20px; background: var(--paper); }
.about__side { grid-column: 9 / 13; }
.about__tile { background: var(--lav); aspect-ratio: 16 / 10; display: flex; align-items: flex-end; padding: 24px; }
.about__tile p { font-size: var(--step-display); font-weight: 600; letter-spacing: -0.04em; line-height: 0.9; }
.about__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; margin-top: 24px; font-size: var(--step-small); }
.about__facts dt { color: var(--muted); }
.about__facts dd { font-weight: 600; }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 16px; margin-top: var(--sec); }
.team img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); }
.team__ph { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; }
.team__ph rect { fill: var(--pale); }
.team li { text-align: left; }
.team__ph text { fill: var(--lav); font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif; font-size: 150px; font-weight: 600; letter-spacing: -6px; }
.team__name { margin-top: 0; }
.team__name { display: block; margin-top: 12px; font-weight: 600; }
.team__role { display: block; font-size: var(--step-small); color: var(--muted); }

/* ---------- Primera visita: cuatro pasos ---------- */
.visit { background: var(--ink); color: var(--paper); padding: var(--sec) var(--m); }
.visit__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--m); margin-bottom: 64px; align-items: end; }
.visit__head h2 { grid-column: 1 / 7; }
.visit__head p { grid-column: 8 / 12; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px var(--m); list-style: none; margin: 0 0 56px; padding: 0; }
.steps h3 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; color: var(--lav); margin-bottom: 10px; }
.steps p { max-width: 32ch; }

.step { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--m); align-items: center; padding: var(--sec) var(--m) 0; }
.step:last-of-type { padding-bottom: var(--sec); }
.step__photo { grid-column: 1 / 8; }
.step__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.step__text { grid-column: 9 / 13; }
.step--flip .step__photo { grid-column: 6 / 13; grid-row: 1; }
.step--flip .step__text { grid-column: 1 / 5; grid-row: 1; }
.step h2 { margin-bottom: 20px; }
.step__lead { font-size: var(--step-lead); line-height: 1.35; margin-bottom: 16px; }

/* ---------- Preguntas junto a una foto alta ---------- */
.faqsplit { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--m); background: var(--pale); padding: 0 var(--m) var(--sec); }
.faqsplit__text { grid-column: 1 / 6; padding-top: var(--sec); }
.faqsplit__facts { margin: 28px 0 40px; font-size: var(--step-lead); line-height: 1.4; }
.faqsplit__facts li + li { margin-top: 6px; }
.faqsplit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 40px; }
.faqsplit__photos { grid-column: 7 / 13; position: relative; padding-bottom: 80px; }
.faqsplit__tall { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(1); }
.faqsplit__square { position: absolute; left: -40px; bottom: 40px; width: 34%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1); }

/* Acordeón sin líneas: solo espacio */
.qa { display: flex; flex-direction: column; gap: 4px; }
.qa details { padding: 12px 0; }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 44px; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--deep); }
.qa summary i { position: relative; flex: none; width: 14px; height: 14px; transition: transform 0.25s var(--ease-out); }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; top: 5px; width: 9px; height: 2px; background: currentColor; }
.qa summary i::before { left: 0; transform: rotate(45deg); }
.qa summary i::after { right: 0; transform: rotate(-45deg); }
.qa details[open] summary i { transform: rotate(180deg); }
.qa details p { margin-top: 10px; max-width: 54ch; color: var(--muted); }

/* ---------- Contacto: la tarjeta sobre la foto ---------- */
.visitcard { position: relative; height: 100svh; min-height: 620px; overflow: hidden; }
.visitcard__photo, .visitcard__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.visitcard__photo img { object-fit: cover; object-position: 20% 50%; }
.card {
  position: absolute; top: 60px; right: 60px; width: 380px;
  background: var(--paper); border-radius: 8px; overflow: hidden;
  padding: 32px 32px 0;
}
.card h2 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 20px; }
.card p a { text-decoration: none; }
.card p a:hover, .card dd a:hover { color: var(--deep); }
.card dl { margin: 24px 0 32px; }
.card dl div { display: grid; gap: 2px; }
.card dl div + div { margin-top: 14px; }
.card dt { color: var(--muted); font-size: var(--step-small); }
.card dd { font-weight: 600; }
.card dd a { text-decoration: none; }
.card__button { display: flex; width: calc(100% + 64px); margin: 0 -32px; border-radius: 0; }
.card__button.button--wa { margin-bottom: 0; }

/* ---------- Pie: el teléfono como titular ---------- */
.foot {
  background: var(--lav); color: var(--ink);
  padding: 40px var(--m) 28px;
  display: grid; grid-template-rows: auto 1fr auto auto;
}
.foot__notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 24px var(--m); font-size: var(--step-small); line-height: 1.6; }
.foot__notes a { text-decoration: none; font-weight: 600; }
.foot__notes a:hover, .foot__meta a:hover { text-decoration: underline; }
.foot__top { align-self: start; }
.foot__big { grid-row: 3; align-self: end; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin: 56px 0 32px; }
.foot__tel {
  font-size: var(--step-head); font-weight: 600; letter-spacing: -0.03em; line-height: 1;
  text-decoration: none;
}
.foot__tel:hover { color: var(--paper); }
.foot__meta { grid-row: 4; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px 24px; font-size: var(--step-small); }
.foot__meta a { text-decoration: none; }
.foot__meta p:last-child { text-align: right; }

/* ---------- Páginas interiores ---------- */
.jump {
  position: sticky; top: 0; z-index: 5;
  display: flex; flex-wrap: wrap; gap: 4px 28px;
  padding: 16px var(--m);
  background: var(--ink); color: var(--paper); font-weight: 500;
}
.jump a { text-decoration: none; padding: 4px 0; }
.jump a:hover { color: var(--lav); }
.caseset { padding: var(--sec) var(--m); scroll-margin-top: 56px; }
.caseset--pale { background: var(--pale); }
.caseset__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--m); margin-bottom: 48px; align-items: end; }
.caseset__head h2 { grid-column: 1 / 7; }
.caseset__head p { grid-column: 7 / 12; }
.caseset__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px var(--m); }
.caseset__grid--one { grid-template-columns: 1fr; max-width: 950px; }
.caseset figure img { width: 100%; aspect-ratio: 950 / 300; object-fit: cover; background: var(--pale); }
.caseset figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }

.faqgroup { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--m); padding: var(--sec) var(--m); align-items: start; }
.faqgroup--pale { background: var(--pale); }
.faqgroup h2 { grid-column: 1 / 5; position: sticky; top: 32px; }
.faqgroup .qa { grid-column: 6 / 13; }

.cta { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--m); align-items: end; padding: var(--sec) var(--m); background: var(--ink); color: var(--paper); }
.cta h2 { grid-column: 1 / 7; font-size: var(--step-display); }
.cta__side { grid-column: 8 / 13; }
.cta__side p { font-size: var(--step-lead); line-height: 1.35; margin-bottom: 32px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.prose { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--m); padding: var(--sec) var(--m); }
.prose > * { grid-column: 3 / 11; }
.prose h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; margin: 36px 0 12px; }
.prose > h3:first-child { margin-top: 0; }
.prose h2 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.2; margin: 56px 0 16px; }
.prose > h2:first-child, .prose .note + h2 { margin-top: 0; }
.prose p + p { margin-top: 1em; }
.prose p, .prose li { max-width: 74ch; }
.prose ul { list-style: disc; padding-left: 1.2em; margin: 1em 0; }
.prose li + li { margin-top: 0.5em; }
.prose .note { color: var(--muted); font-size: var(--step-small); margin-bottom: 48px; }
.facts { margin: 0 0 1em; }
.facts div { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 10px 14px; }
.facts div:nth-child(odd) { background: var(--pale); }
.facts dt { font-weight: 600; }
mark.pending { background: var(--mid); color: var(--ink); padding: 0 0.3em; font-weight: 600; }

.strip { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; padding: 0 var(--m) var(--sec); }
.strip img { width: 100%; height: clamp(260px, 34vw, 520px); object-fit: cover; filter: grayscale(1); }

.mmenu { display: none; }

/* ---------- Entradas ---------- */
.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-rise].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
  .js .masked .line > span { transform: none; transition: none; }
  .hero__photo img, .hero__photo img.is-on { animation: none; transition: none; }
  .hero__pause { display: none; }
  .js .mmenu[open] .mmenu__panel { animation: none; }
  .wa-float, .wa-float:hover { transition: none; transform: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .bar__nav { gap: 18px; }
  .bar__end > .bar__call { display: none; }
  .hero__text { grid-template-columns: 1fr; }
  .intro__text { grid-column: 1 / 8; }
  .treat__photo { grid-column: 1 / 6; }
  .treat__table { grid-column: 7 / 13; }
  .cases { grid-template-columns: 1fr; }
  .enband h2 { grid-column: 1 / -1; }
  .enband__side { grid-column: 1 / 10; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step__photo, .step--flip .step__photo { grid-column: 1 / 8; }
  .step__text, .step--flip .step__text { grid-column: 8 / 13; }
  .step--flip .step__photo { grid-column: 6 / 13; }
  .step--flip .step__text { grid-column: 1 / 6; }
  .cases__text { padding-left: 0; gap: 32px; }
  .about__head p { grid-column: 1 / 10; }
  .about__wide { grid-column: 1 / -1; }
  .about__side { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .about__facts { margin-top: 0; }
  .team { grid-template-columns: repeat(3, 1fr); }
  .faqsplit__text { grid-column: 1 / 8; }
  .faqsplit__photos { grid-column: 8 / 13; }
  .foot__notes { grid-template-columns: 1fr 1fr; }
  .prose > * { grid-column: 2 / 12; }
  .faqgroup h2 { grid-column: 1 / -1; position: static; }
  .faqgroup .qa { grid-column: 1 / -1; }
  .cta h2 { grid-column: 1 / -1; }
  .cta__side { grid-column: 1 / 10; }
}

/* ---------- Teléfono ---------- */
@media (max-width: 860px) {
  :root { --step-display: clamp(2.25rem, 10vw, 3.25rem); --step-head: clamp(2rem, 8.4vw, 2.75rem); --step-lead: 1.125rem; --sec: 88px; }
  /* Cabecera fija: logo, llamar y menú */
  html { scroll-padding-top: 72px; }
  .bar { position: fixed; height: 60px; gap: 0; padding-right: calc(8px + env(safe-area-inset-right)); background: var(--ink); z-index: 20; }
  .hero__pause { top: 76px; }
  .bar__logo { padding: 0 16px; }
  .bar__logo img { width: 116px; }
  .bar__nav, .bar__lang { display: none; }
  .bar__end { gap: 6px; }
  .bar__end > .button { min-height: 40px; padding: 0 12px; }
  .bar__end > .bar__call { display: none; }
  .wa-float { right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); width: 56px; padding: 0; justify-content: center; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mmenu { display: block; }
  .mmenu__toggle {
    list-style: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 0 10px; font-weight: 600; color: var(--paper);
  }
  .mmenu__toggle::-webkit-details-marker { display: none; }
  .mmenu__toggle i { position: relative; width: 18px; height: 12px; }
  .mmenu__toggle i::before, .mmenu__toggle i::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; transition: transform 0.25s var(--ease-out), top 0.25s var(--ease-out); }
  .mmenu__toggle i::before { top: 2px; }
  .mmenu__toggle i::after { top: 8px; }
  .mmenu[open] .mmenu__toggle i::before { top: 5px; transform: rotate(45deg); }
  .mmenu[open] .mmenu__toggle i::after { top: 5px; transform: rotate(-45deg); }
  .mmenu:not([open]) .mmenu__panel { display: none; }
  .mmenu__panel {
    position: fixed; inset: 60px 0 0 0; z-index: 19; overflow-y: auto; overscroll-behavior: contain;
    display: flex; flex-direction: column; gap: 32px;
    padding: 32px var(--m) 40px;
    background: var(--ink); color: var(--paper);
  }
  .mmenu__panel nav { display: flex; flex-direction: column; }
  .mmenu__panel nav a { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; padding: 6px 0; text-decoration: none; }
  .mmenu__panel nav a:hover { color: var(--lav); }
  .mmenu__actions { display: flex; flex-direction: column; gap: 8px; }
  .mmenu__actions .button { width: 100%; }
  .mmenu__langs { display: flex; gap: 24px; }
  .mmenu__lang { font-weight: 600; padding: 8px 0; }
  .menu-open, .menu-open body { overflow: hidden; }
  .js .mmenu[open] .mmenu__panel { animation: menu-in 0.3s var(--ease-out); }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .jump { top: 60px; }
  .caseset { scroll-margin-top: 116px; }
  section[id] { scroll-margin-top: 60px; }
  .hero { min-height: 560px; }
  .hero--page { height: 64svh; min-height: 440px; }
  .hero__text { bottom: 28px; gap: 16px; }
  .hero__actions { display: flex; }
  .hero__actions .button { width: 100%; }

  .enband { display: block; }
  .enband__side { margin-top: 24px; }
  .enband .button { width: 100%; }
  .intro h2 { font-size: var(--step-display); }
  .intro__captions { flex-direction: column; gap: 6px; }
  .intro__captions p { width: auto; }
  .intro__pano img { aspect-ratio: 4 / 5; }
  .intro__split { display: block; padding-top: 56px; }
  .intro__portrait { width: 60%; margin: 40px 0 0 auto; }

  .treat h2 span:first-child { padding-left: 0; }
  .treat__grid { display: flex; flex-direction: column-reverse; margin-top: 48px; gap: 48px; }
  .treat__photo { width: 60%; align-self: flex-end; }
  .treat__group li { flex-direction: column; gap: 4px; }

  .cases__text { display: contents; }
  .cases__copy { order: 1; }
  .tabs { order: 2; }
  .cases__plates { order: 3; }
  .cases__actions { order: 4; }
  .cases { display: flex; flex-direction: column; gap: 28px; }
  .about__head p { margin-top: 16px; }
  .about__tiles { display: block; margin-top: 40px; }
  .about__wide img { aspect-ratio: 4 / 3; }
  .about__wide p { position: static; width: auto; padding: 16px 0 0; }
  .about__side { display: block; margin-top: 32px; }
  .about__tile { aspect-ratio: auto; min-height: 140px; }
  .about__facts { margin-top: 20px; }
  .team { grid-template-columns: 1fr 1fr; gap: 24px 12px; }

  .visit__head { display: block; margin-bottom: 40px; }
  .visit__head p { margin-top: 20px; }
  .steps { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .visit .button { width: 100%; }
  .step { display: block; padding-top: 64px; }
  .step__text { margin-top: 24px; }

  .faqsplit { display: flex; flex-direction: column-reverse; padding-top: 0; }
  .faqsplit__text { padding-top: 56px; }
  .faqsplit__photos { margin: 0 calc(-1 * var(--m)); padding-bottom: 40px; }
  .faqsplit__tall { aspect-ratio: 4 / 5; }
  .faqsplit__square { left: auto; right: var(--m); bottom: 0; width: 38%; }
  .faqsplit__actions .button { width: 100%; }

  .visitcard { height: auto; min-height: 0; overflow: visible; padding-bottom: 40px; background: var(--pale); }
  .visitcard__photo { position: relative; height: 50svh; }
  .card { position: relative; top: auto; right: auto; width: auto; margin: -80px var(--m) 0; }
  .card__button { min-height: 56px; }

  .foot { min-height: 0; }
  .strip { grid-template-columns: 1fr 1fr; gap: 8px; }
  .strip img:first-child { grid-column: 1 / -1; }
  .strip img { height: auto; aspect-ratio: 4 / 5; }
  .strip img:first-child { aspect-ratio: 16 / 9; }
  .foot__notes { grid-template-columns: 1fr; gap: 16px; }
  .foot__big { margin: 40px 0 24px; }
  .foot__big .button { width: 100%; }
  .foot__meta { grid-template-columns: 1fr; gap: 8px; }
  .foot__meta p:last-child { text-align: left; }

  .caseset__head { display: block; margin-bottom: 28px; }
  .caseset__head p { margin-top: 16px; }
  .caseset__grid { grid-template-columns: 1fr; gap: 28px; }
  .jump { gap: 2px 18px; padding: 12px var(--m); font-size: var(--step-small); }
  .faqgroup { display: block; }
  .faqgroup h2 { margin-bottom: 16px; }
  .cta { display: block; }
  .cta__side { margin-top: 28px; }
  .cta__actions { flex-direction: column; }
  .prose { display: block; }

}
@media (max-width: 520px) {
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}
.notfound { min-height: 100svh; }
