/* =====================================================================
   Clínica Mir i Andreu · HOME 9.0 — hoja única de la home.
   Reúne los estilos de la home 7.0 (bloques v5/v6/v7) y, al final, los ajustes 9.0
   que la unifican con el sistema visual de la v2 (style.css) que usa el resto de la web.
   ===================================================================== */
/* =====================================================================
   Clínica Mir i Andreu · HOME V5 — «La línea»
   Verde corporativo #064C54 y sus tonos + blanco puro. El símbolo del logo
   (dos óvalos entrelazados) se convierte en línea que dibuja la página.
   Solo lo carga index.html: no afecta a las páginas interiores.
   ===================================================================== */
:root {
  --g900: #022a2f; --g800: #03363c; --g700: #064c54; --g600: #0d5f68; --g300: #8fb3b6; --g100: #e6eff0; --g50: #f3f8f8;
  --line-c: #2daebe;
  --paper: #fff; --sand: #fff; --mist: var(--g100); --ink: #0f1e20; --muted: #50666a;
  --line-ink: rgba(6, 76, 84, .14);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
body { background: #fff; }
.topbar { display: none; }
#main { overflow-x: clip; }
.v5-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Cabecera transparente sobre la portada */
.header { transition: background .5s, box-shadow .5s; }
.header:not(.is-scrolled) { background: transparent; box-shadow: none; }
.header:not(.is-scrolled) .btn--light { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.55); backdrop-filter: blur(6px); }

/* Tipografía y piezas comunes */
.v5-eyebrow { display: flex; align-items: center; gap: 14px; font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--g700); margin: 0 0 26px; }
.v5-eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.v5-eyebrow--light { color: var(--g300); }
.v5-title { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 3.3rem); line-height: 1.08; letter-spacing: -.01em; color: var(--ink); margin: 0 0 32px; }
.v5-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.v5-btn { display: inline-flex; align-items: center; gap: 14px; padding: 18px 30px; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; border-radius: 999px; transition: background .35s, color .35s, transform .35s var(--ease-out), border-color .35s; }
.v5-btn span { transition: transform .35s var(--ease-out); }
.v5-btn:hover span { transform: translateX(5px); }
.v5-btn svg { width: 18px; height: 18px; }
.v5-btn--light { background: #fff; color: var(--g700); }
.v5-btn--light:hover { background: var(--g100); }
.v5-btn--teal { background: var(--g700); color: #fff; }
.v5-btn--teal:hover { background: var(--g800); }
.v5-btn--line { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.v5-btn--line:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.v5-link { position: relative; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--g700); padding-bottom: 6px; }
.v5-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: left; transition: transform .5s var(--ease-out); }
.v5-link:hover::after { transform: scaleX(.35); }
.v5-link--light { color: #fff; }

/* Apariciones */
[data-in] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
[data-in].is-in { opacity: 1; transform: none; }
[data-in]:nth-child(2) { transition-delay: .12s; } [data-in]:nth-child(3) { transition-delay: .24s; }

/* ---------------------------------------------------------------- A · PORTADA */
.v5-hero { position: relative; min-height: 100vh; min-height: 100svh; margin-top: calc(-1 * var(--hh, 92px)); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--g900); isolation: isolate; }
.v5-hero-media { position: absolute; inset: -6% 0 0; z-index: -2; will-change: transform; }
.v5-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; transform: scale(1.12); animation: v5-zoom 2.6s var(--ease-out) .1s forwards; }
@keyframes v5-zoom { to { transform: scale(1); } }
.v5-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(2,42,47,.88) 0%, rgba(3,54,60,.62) 38%, rgba(6,76,84,.08) 70%),
  linear-gradient(180deg, rgba(2,42,47,.55) 0%, rgba(2,42,47,0) 22%, rgba(2,42,47,0) 62%, rgba(2,42,47,.6) 100%); }
.v5-hero-symbol { position: absolute; right: 4vw; top: 50%; height: min(70vh, 680px); width: auto; transform: translateY(-46%); z-index: 0; fill: none; stroke: rgba(255,255,255,.75); stroke-width: .7; overflow: visible; }
.v5-hero-symbol path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: v5-draw 3.2s var(--ease-out) forwards; }
.v5-hero-symbol path:nth-child(2) { animation-delay: .5s; stroke: var(--line-c); }
.v5-hero-symbol path:nth-child(3) { animation-delay: 1.1s; }
@keyframes v5-draw { to { stroke-dashoffset: 0; } }
.v5-hero-inner { position: relative; z-index: 2; padding-top: calc(var(--hh, 92px) + 60px); padding-bottom: clamp(70px, 11vh, 130px); }
.v5-kicker { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin: 0 0 30px; font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; }
.v5-kicker b { font-weight: 600; }
.v5-kicker span { color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 22px; }
.v5-kicker span::before { content: ""; width: 28px; height: 1px; background: var(--line-c); }
.v5-h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 5.4vw, 5.6rem); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 30px; max-width: 11em; color: #fff; }
.v5-h1 em { font-style: normal; color: #cfe6e8; }
.v5-line { display: block; overflow: hidden; padding-bottom: .06em; }
.v5-line > span { display: inline-block; transform: translateY(105%); animation: v5-up 1.3s var(--ease-out) forwards; }
.v5-line + .v5-line > span { animation-delay: .18s; }
@keyframes v5-up { to { transform: none; } }
.v5-hero-lead { max-width: 34em; font-size: clamp(1rem, 1.25vw, 1.14rem); line-height: 1.65; color: rgba(255,255,255,.86); margin: 0 0 40px; }
.v5-in { opacity: 0; animation: v5-fade 1.2s var(--ease-out) forwards; }
.v5-kicker.v5-in { animation-delay: .05s; } .v5-hero-lead.v5-in { animation-delay: .55s; } .v5-ctas.v5-in { animation-delay: .75s; }
@keyframes v5-fade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.v5-scroll { position: absolute; z-index: 2; left: 50%; bottom: 26px; width: 1px; height: 64px; background: rgba(255,255,255,.25); overflow: hidden; }
.v5-scroll i { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: v5-scroll 2.2s ease-in-out infinite; }
@keyframes v5-scroll { to { top: 100%; } }

/* ---------------------------------------------------------------- B · FILOSOFÍA */
.v5-phil { padding-block: clamp(90px, 12vw, 170px) clamp(80px, 10vw, 140px); background: #fff; }
.v5-phil-top { display: grid; grid-template-columns: minmax(180px, .28fr) 1fr; gap: 24px clamp(30px, 5vw, 80px); align-items: start; }
.v5-phil-top .v5-eyebrow { margin-top: 14px; }
.v5-statement { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 3.2rem); line-height: 1.16; letter-spacing: -.012em; margin: 0; color: var(--ink); }
.v5-statement span { color: #c6d5d6; transition: color .5s ease; }
.v5-statement span.on { color: var(--ink); }
.v5-ruler { position: relative; height: 14px; margin: clamp(56px, 7vw, 96px) 0 0; background: repeating-linear-gradient(90deg, var(--line-ink) 0 1px, transparent 1px 24px) bottom / 100% 7px no-repeat, linear-gradient(var(--line-ink), var(--line-ink)) bottom / 100% 1px no-repeat; }
.v5-ruler i { position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--g700); transform-origin: left; transform: scaleX(var(--p, 0)); }
.v5-ruler i::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--line-c); }
.v5-principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); }
.v5-principles li { padding-top: 34px; }
.v5-num { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--line-c); margin-bottom: 18px; }
.v5-principles h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.45rem, 2vw, 1.85rem); line-height: 1.15; margin: 0 0 12px; color: var(--g700); }
.v5-principles p { margin: 0; color: var(--muted); line-height: 1.65; max-width: 24em; }
.v5-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); margin: clamp(70px, 9vw, 120px) 0 0; }
.v5-figures dt { font-family: var(--font-display); font-size: clamp(3.4rem, 7.4vw, 7rem); line-height: .9; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px var(--g700); }
.v5-figures dt small { font-size: .3em; letter-spacing: 0; margin-left: .2em; -webkit-text-stroke: 0; color: var(--g700); }
.v5-figures dd { margin: 16px 0 0; color: var(--muted); font-size: .92rem; max-width: 18em; }

/* ---------------------------------------------------------------- C · CLÍNICA (galería horizontal) */
.v5-space { position: relative; background: var(--g700); color: #fff; }
.v5-space-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; padding-top: var(--hh, 92px); box-sizing: border-box; }
.v5-track { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 12vw; will-change: transform; }
.v5-space-intro { flex: 0 0 min(30rem, 34vw); margin-right: clamp(20px, 4vw, 70px); }
.v5-space-title { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.08; letter-spacing: -.01em; margin: 0 0 24px; color: #fff; }
.v5-space-text { color: rgba(255,255,255,.78); line-height: 1.7; margin: 0 0 34px; }
.v5-shot { flex: none; margin: 0; height: min(62vh, 600px); aspect-ratio: 3 / 2; }
.v5-shot--wide { aspect-ratio: 2 / 1; }
.v5-shot--tall { aspect-ratio: 2 / 3; }
.v5-shot-img { height: calc(100% - 40px); overflow: hidden; border-radius: 4px; }
.v5-shot--tall .v5-shot-img { border-radius: 999px 999px 4px 4px; }
.v5-shot-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease-out); }
.v5-shot.is-in .v5-shot-img img { transform: scale(1); }
.v5-shot figcaption { display: flex; gap: 14px; align-items: baseline; padding-top: 14px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.v5-shot figcaption span { font-family: var(--font-display); letter-spacing: 0; font-size: .95rem; color: var(--line-c); }
.v5-bar { position: absolute; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); bottom: 6vh; height: 1px; background: rgba(255,255,255,.18); }
.v5-bar i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------------------------------------------------------------- D · DIRECCIÓN MÉDICA */
.v5-dir { padding-block: clamp(90px, 11vw, 160px); background: #fff; }
.v5-dir-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.v5-duo { position: relative; margin: clamp(30px, 5vw, 70px) 0 0; }
.v5-duo img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.v5-arches { position: absolute; left: 0; bottom: 30px; width: 100%; height: auto; aspect-ratio: 1536 / 1224; fill: none; stroke: var(--line-c); stroke-width: 3; overflow: visible; pointer-events: none; }
.v5-arches path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease-out) .3s; }
.v5-arches path + path { transition-delay: .8s; stroke: var(--g700); }
.v5-duo.is-in .v5-arches path { stroke-dashoffset: 0; }
.v5-duo figcaption { display: flex; justify-content: space-between; border-top: 1px solid var(--g700); padding-top: 12px; height: 30px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--g700); }
.v5-people { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 0 0 30px; }
.v5-people > div { border-top: 1px solid var(--line-ink); padding-top: 20px; }
.v5-people h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; margin: 0 0 4px; color: var(--ink); }
.v5-people span { display: block; font-size: .8rem; font-weight: 600; color: var(--g700); margin-bottom: 12px; }
.v5-people p { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--muted); }
.v5-dir-team { color: var(--ink); line-height: 1.65; margin: 0 0 34px; max-width: 32em; }

/* ---------------------------------------------------------------- E · CIERRE */
.v5-close { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 85% 10%, var(--g600) 0%, var(--g700) 38%, var(--g900) 100%); color: #fff; padding-block: clamp(100px, 13vw, 180px); }
.v5-close-symbol { position: absolute; right: -14vw; bottom: -30%; height: 150%; width: auto; fill: none; stroke: rgba(255,255,255,.13); stroke-width: .45; overflow: visible; pointer-events: none; }
.v5-close-symbol path { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); }
.v5-close-symbol path:nth-child(2) { stroke: rgba(45,174,190,.38); }
.v5-close-grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: end; }
.v5-close-title { font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: .98; letter-spacing: -.025em; margin: 0 0 30px; }
.v5-close-title em { color: #bfe0e3; }
.v5-close-text { max-width: 30em; color: rgba(255,255,255,.82); line-height: 1.7; margin: 0 0 40px; font-size: 1.05rem; }
.v5-info { display: grid; grid-template-columns: auto auto auto; justify-content: start; gap: 18px 44px; margin: 56px 0 0; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.18); }
.v5-info dt { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--g300); margin-bottom: 6px; }
.v5-info dd { margin: 0; font-size: .95rem; white-space: nowrap; }
.v5-info > div:nth-child(2) dd { white-space: normal; max-width: 15em; }
.v5-info a { color: #fff; text-decoration: none; }
.v5-quotes { position: relative; z-index: 1; border-left: 1px solid rgba(255,255,255,.2); padding-left: clamp(24px, 3vw, 44px); min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; }
.v5-stars { color: var(--line-c); letter-spacing: 4px; margin-bottom: 18px; }
.v5-q { margin: 0; position: absolute; left: clamp(24px, 3vw, 44px); right: 0; bottom: 34px; opacity: 0; transform: translateY(14px); transition: opacity .9s, transform .9s var(--ease-out); pointer-events: none; }
.v5-q.is-on { opacity: 1; transform: none; position: relative; left: 0; bottom: 0; pointer-events: auto; }
.v5-q p { font-family: var(--font-display); font-size: clamp(1.2rem, 1.6vw, 1.5rem); line-height: 1.45; margin: 0 0 18px; }
.v5-q cite { font-style: normal; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--g300); }
.v5-qdots { display: flex; gap: 8px; margin-top: 22px; }
.v5-qdots button { width: 22px; height: 3px; border: 0; padding: 0; background: rgba(255,255,255,.25); cursor: pointer; transition: background .3s, width .3s; }
.v5-qdots button[aria-current="true"] { background: #fff; width: 40px; }

.v5-swipe { display: none; }
/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1000px) {
  .v5-phil-top, .v5-dir-grid, .v5-close-grid { grid-template-columns: 1fr; }
  .v5-principles { grid-template-columns: 1fr; gap: 0; }
  .v5-principles li { padding-block: 26px; border-bottom: 1px solid var(--line-ink); }
  .v5-hero-symbol { right: -12vw; opacity: .55; }
  .v5-dir-grid { gap: 50px; }
}
@media (max-width: 900px) {
  /* Galería: desplazamiento horizontal nativo con el dedo */
  .v5-space { padding-block: 80px 60px; }
  .v5-space-pin { position: static; height: auto; display: block; padding-top: 0; }
  .v5-track { flex-direction: row; align-items: stretch; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 0 var(--gutter) 10px; transform: none !important; scrollbar-width: none; }
  .v5-track::-webkit-scrollbar { display: none; }
  .v5-space-intro { flex: 0 0 82vw; scroll-snap-align: start; margin-right: 6px; align-self: center; }
  .v5-shot { height: 58vh; max-height: 460px; scroll-snap-align: center; }
  .v5-shot--wide { aspect-ratio: 4 / 3; }
  .v5-bar { display: none; }
  .v5-swipe { display: flex; align-items: center; gap: 12px; margin-top: 34px; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--g300); }
  .v5-swipe::after { content: ""; width: 46px; height: 1px; background: currentColor; animation: v5-swipe 1.8s ease-in-out infinite; transform-origin: left; }
  @keyframes v5-swipe { 50% { transform: scaleX(.4); } }
}
@media (max-width: 760px) {
  .v5-hero-media img { object-position: 50% 50%; }
  .v5-hero::before { background: linear-gradient(180deg, rgba(2,42,47,.6) 0%, rgba(2,42,47,.1) 30%, rgba(2,42,47,.55) 58%, rgba(2,42,47,.95) 100%); }
  .v5-hero-symbol { height: 56vh; right: -22vw; top: 34%; }
  .v5-kicker span::before { display: none; }
  .v5-figures { grid-template-columns: 1fr 1fr; }
  .v5-figures > div:last-child { grid-column: 1 / -1; }
  .v5-people { grid-template-columns: 1fr; }
  .v5-info { grid-template-columns: 1fr; }
  .v5-info dd { white-space: normal; }
  .v5-duo figcaption { font-size: .6rem; letter-spacing: .1em; }
  .v5-ctas { gap: 14px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .v5-hero-media img, .v5-line > span, .v5-in, .v5-hero-symbol path { animation: none !important; transform: none; opacity: 1; stroke-dashoffset: 0; }
  [data-in] { opacity: 1; transform: none; }
  .v5-statement span { color: var(--ink); }
  .v5-arches path, .v5-close-symbol path { stroke-dashoffset: 0; }
  .v5-shot-img img { transform: none; }
}
/* =====================================================================
   Clínica Mir i Andreu · HOME V6 — añadidos sobre la V5:
   · Dirección médica editorial (collage en blanco y negro con formas del logo)
   · Casos clínicos: antes/después que se revela con el scroll
   ===================================================================== */

/* ---------------------------------------------------------------- DIRECCIÓN MÉDICA */
.v6-dir { background: #fff; padding-block: clamp(90px, 11vw, 160px); overflow: hidden; }
.v6-dir-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.v6-dir-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(3rem, 6.2vw, 5.8rem); line-height: .98; letter-spacing: -.025em; color: var(--ink); margin: 0 0 22px; }
.v6-dir-sub { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.45; color: var(--muted); font-weight: 300; max-width: 21em; margin: 0 0 clamp(40px, 5vw, 64px); }
.v6-names { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 36px; }
.v6-names > div { padding-right: 26px; }
.v6-names > div + div { padding: 0 0 0 30px; border-left: 1px solid var(--line-ink); }
.v6-names small { display: block; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.v6-names h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1.1; color: var(--ink); margin: 0; }
.v6-names i { display: block; width: 26px; height: 1px; background: var(--g700); margin: 18px 0; }
.v6-names p { margin: 0; color: var(--muted); line-height: 1.5; font-size: .98rem; }
.v6-dir-team { color: var(--muted); font-size: .95rem; line-height: 1.6; max-width: 30em; margin: 0 0 38px; }
.v6-more { display: inline-flex; align-items: center; gap: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); font-size: .8rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.v6-more svg { width: 30px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .4s var(--ease-out); }
.v6-more:hover svg { transform: translateX(8px); }

/* Collage */
.v6-collage { position: relative; aspect-ratio: 600 / 640; width: 100%; max-width: 640px; justify-self: end; }
.v6-col-lines { position: absolute; inset: -4% -6% -4% -10%; width: 116%; height: 108%; fill: none; stroke: var(--line-ink); stroke-width: 1; overflow: visible; }
.v6-col-lines path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-out); vector-effect: non-scaling-stroke; }
.v6-col-lines path:nth-child(3) { stroke: var(--g300); }
.v6-tile { position: absolute; margin: 0; overflow: hidden; display: block; }
.v6-tile img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 2s var(--ease-out); filter: grayscale(1) contrast(1.04); mix-blend-mode: multiply; }
.v6-tile--mist { left: 0; top: 50%; width: 42%; height: 50%; background: var(--g50); }
.v6-tile--xavi { left: 9%; top: 0; width: 55%; height: 55%; border-radius: 50% 50% 0 0 / 46% 46% 0 0; background: linear-gradient(160deg, #e9eeee, #d9e0e0); }
.v6-tile--xavi img { object-position: 50% 12%; }
.v6-tile--leaf { left: 9%; top: 55%; width: 30%; height: 29%; background: linear-gradient(150deg, var(--g600), var(--g700) 60%, var(--g800)); border-radius: 0 100% 0 100%; }
.v6-tile--pedro { left: 39%; top: 45%; width: 59%; height: 55%; border-radius: 0 0 50% 50% / 0 0 46% 46%; box-shadow: 0 0 0 10px #fff; background: linear-gradient(200deg, #e4eaea, #d3dbdb); }
.v6-tile--pedro img { object-position: 45% 18%; }
.v6-tag { position: absolute; font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; white-space: nowrap; }
.v6-tag--x { left: calc(64% + 14px); top: 4%; }
.v6-tag--p { left: calc(98% + 14px); bottom: 6%; transform: rotate(180deg); }
/* Entrada del collage */
.v6-collage .v6-tile { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-out); }
.v6-collage .v6-tile--mist { transition-delay: 0s; } .v6-collage .v6-tile--xavi { transition-delay: .1s; }
.v6-collage .v6-tile--leaf { clip-path: inset(0 100% 0 0); transition-delay: .55s; } .v6-collage .v6-tile--pedro { clip-path: inset(0 0 100% 0); transition-delay: .3s; }
.v6-collage .v6-tag { opacity: 0; transition: opacity 1s 1.1s; }
.v6-collage.is-in .v6-tile { clip-path: inset(0 0 0 0); }
.v6-collage.is-in .v6-tile img { transform: scale(1); }
.v6-collage.is-in .v6-col-lines path { stroke-dashoffset: 0; }
.v6-collage.is-in .v6-tag { opacity: 1; }
.v6-tile--xavi:hover img, .v6-tile--pedro:hover img { transform: scale(1.04); }

/* ---------------------------------------------------------------- CASOS CLÍNICOS */
.v6-cases { position: relative; height: calc((var(--n) * 95 + 70) * 1vh); background: #021c20; color: #fff; }
.v6-cases::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 75% 45%, rgba(13,95,104,.45), transparent 70%); pointer-events: none; }
.v6-cases-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--hh, 92px); box-sizing: border-box; overflow: hidden; }
.v6-cases-grid { position: relative; display: grid; grid-template-columns: .78fr 1.42fr; gap: clamp(32px, 5vw, 90px); align-items: center; width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.v6-cases-title { font-family: var(--font-display); font-size: clamp(2.2rem, 3.8vw, 3.6rem); line-height: 1.04; letter-spacing: -.015em; margin: 0 0 clamp(28px, 4vh, 48px); }
.v6-cases-title em { color: #bfe0e3; }
.v6-case-txts { position: relative; min-height: 15.5em; }
.v6-case-txt { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .8s var(--ease-out); pointer-events: none; }
.v6-case-txt.is-on { opacity: 1; transform: none; pointer-events: auto; }
.v6-case-spec { display: inline-block; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--line-c); margin-bottom: 14px; }
.v6-case-txt h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.35rem, 1.9vw, 1.75rem); line-height: 1.2; color: #fff; margin: 0 0 14px; }
.v6-case-txt p { color: rgba(255,255,255,.72); line-height: 1.65; font-size: .96rem; margin: 0 0 18px; max-width: 28em; }
.v6-case-link { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 4px; }
.v6-case-link:hover { border-color: #fff; }
.v6-case-bars { list-style: none; display: flex; gap: 14px; padding: 0; margin: 26px 0 0; }
.v6-case-bars li { flex: 1; display: flex; flex-direction: column; gap: 10px; font-size: .7rem; letter-spacing: .14em; color: rgba(255,255,255,.5); }
.v6-case-bars i { height: 2px; background: rgba(255,255,255,.15); position: relative; overflow: hidden; }
.v6-case-bars b { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(var(--f, 0)); }
.v6-case-bars li.is-on { color: #fff; }

.v6-frame { position: relative; aspect-ratio: 1400 / 875; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 40px 90px -40px rgba(0,0,0,.7); }
.v6-case-img { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.v6-case-img.is-on { opacity: 1; }
.v6-case-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v6-after { clip-path: inset(0 0 0 var(--cut, 100%)); }
.v6-wipe { position: absolute; top: 0; bottom: 0; left: var(--cut, 100%); width: 0; pointer-events: none; }
.v6-wipe::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 24px rgba(45,174,190,.9); }
.v6-wipe i { position: absolute; top: 50%; left: 0; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; border: 1px solid rgba(255,255,255,.9); background: rgba(2,28,32,.35); backdrop-filter: blur(6px); }
.v6-wipe i::before, .v6-wipe i::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; border: solid #fff; border-width: 0 0 1.5px 1.5px; margin-top: -4px; }
.v6-wipe i::before { left: 15px; transform: rotate(45deg); } .v6-wipe i::after { right: 15px; transform: rotate(-135deg); }
.v6-lab { position: absolute; top: 18px; padding: 8px 14px; font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; background: rgba(2,28,32,.55); backdrop-filter: blur(6px); transition: opacity .4s; }
.v6-lab--a { left: 18px; } .v6-lab--d { right: 18px; background: rgba(255,255,255,.92); color: var(--g800); }
.v6-stage-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 22px; }
.v6-count { font-family: var(--font-display); font-size: 1.1rem; color: rgba(255,255,255,.5); }
.v6-count b { font-weight: 400; font-size: 2.6rem; color: #fff; margin-right: 4px; }
.v6-cases-note { position: relative; z-index: 1; margin: clamp(18px, 3vh, 34px) auto 0; width: 100%; max-width: var(--wrap); padding-inline: var(--gutter); box-sizing: border-box; font-size: .74rem; color: rgba(255,255,255,.45); }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1000px) {
  .v6-dir-grid { grid-template-columns: 1fr; }
  .v6-collage { justify-self: center; max-width: 560px; margin-top: 10px; }
  .v6-cases-grid { grid-template-columns: 1fr; gap: 18px; }
  .v6-case-txts { min-height: 7.6em; }
  .v6-case-txt p { display: none; }
  .v6-cases-title { margin-bottom: 16px; }
  .v6-case-bars { margin-top: 12px; }
}
@media (max-width: 600px) {
  .v6-names { grid-template-columns: 1fr 1fr; }
  .v6-names > div { padding-right: 14px; } .v6-names > div + div { padding-left: 16px; }
  .v6-names p { font-size: .88rem; }
  .v6-tag { display: none; }
  .v6-tile--pedro { box-shadow: 0 0 0 6px #fff; }
  .v6-cases-title { font-size: 1.9rem; }
  .v6-case-txt h3 { font-size: 1.15rem; }
  .v6-case-link { display: none; }
  .v6-case-txts { min-height: 5.6em; }
  .v6-wipe i { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
  .v6-wipe i::before { left: 11px; } .v6-wipe i::after { right: 11px; }
  .v6-stage-foot .v5-btn { padding: 14px 20px; }
  .v6-count b { font-size: 2rem; }
  .v6-cases-note { font-size: .66rem; }
}
@media (prefers-reduced-motion: reduce) {
  .v6-collage .v6-tile { clip-path: none !important; } .v6-collage .v6-tag { opacity: 1; } .v6-col-lines path { stroke-dashoffset: 0; }
  .v6-tile img { transform: none; }
}
/* =====================================================================
   Clínica Mir i Andreu · HOME V7 — ajustes sobre V5/V6
   ===================================================================== */

/* Portada: titular más largo */
.v5-h1 { font-size: clamp(2.5rem, 5.2vw, 5.4rem); max-width: 12em; }

/* Filosofía: seis valores en dos filas */
.v5-principles { row-gap: 0; }
.v5-principles li { padding-block: 34px 30px; }
.v5-principles li:nth-child(n+4) { border-top: 1px solid var(--line-ink); }

/* ---------------------------------------------------------------- Nuestra clínica: galería libre (sin scroll obligatorio) */
.v7-space { padding-block: clamp(90px, 10vw, 140px) clamp(60px, 7vw, 90px); height: auto !important; }
.v7-space .v5-space-pin { position: static; height: auto; display: block; padding-top: 0; overflow: visible; }
.v7-space .v5-track { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); scrollbar-width: none; transform: none !important; cursor: grab; padding-bottom: 6px; }
.v7-space .v5-track::-webkit-scrollbar { display: none; }
.v7-space .v5-track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.v7-space .v5-track.is-drag img { pointer-events: none; }
.v7-space .v5-space-intro { scroll-snap-align: start; }
.v7-space .v5-shot { height: min(58vh, 540px); scroll-snap-align: start; }
.v7-space .v5-shot img { -webkit-user-drag: none; user-select: none; }
.v7-gal-nav { display: flex; align-items: center; gap: 12px; margin-top: 34px; }
.v7-gal-nav .v5-bar { position: relative; left: auto; right: auto; bottom: auto; flex: 1; margin-right: 18px; display: block; }
.v7-arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .3s, border-color .3s, opacity .3s; }
.v7-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.v7-arrow:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.v7-arrow[disabled] { opacity: .3; cursor: default; }

/* ---------------------------------------------------------------- Dirección médica */
.v6-dir-title { font-size: clamp(2.3rem, 4.3vw, 4.4rem); white-space: nowrap; }
.v6-collage { max-width: 520px; }

/* ---------------------------------------------------------------- Casos clínicos: comparador manual */
.v7-cases { height: auto; }
.v7-cases .v6-cases-pin { position: static; height: auto; padding-block: clamp(90px, 10vw, 140px) clamp(50px, 6vw, 80px); overflow: visible; }
.v7-cases .v6-case-txts { min-height: 13.5em; }
.v7-ba { border-radius: 14px; box-shadow: 0 40px 90px -40px rgba(0,0,0,.75); }
.v7-ba .ba-handle { background: #fff; color: var(--g700); }
.v7-ba .ba-tag--after { background: #fff; color: var(--g800); }
.v7-ba .ba-before, .v7-ba .ba-after { transition: opacity .45s ease; }
.v7-ba.is-swapping .ba-before, .v7-ba.is-swapping .ba-after { opacity: 0; }
.v7-case-tabs { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.v7-case-tabs button { width: 100%; text-align: left; background: none; border: 0; padding: 0 0 14px; color: rgba(255,255,255,.55); cursor: pointer; position: relative; font: inherit; display: flex; flex-direction: column; gap: 6px; }
.v7-case-tabs span { font-size: .7rem; letter-spacing: .14em; }
.v7-case-tabs b { font-weight: 500; font-size: .82rem; line-height: 1.3; }
.v7-case-tabs i { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.15); }
.v7-case-tabs i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.v7-case-tabs button[aria-pressed="true"] { color: #fff; }
.v7-case-tabs button[aria-pressed="true"] i::after, .v7-case-tabs button:hover i::after { transform: scaleX(1); }
.v7-case-tabs button:hover:not([aria-pressed="true"]) i::after { opacity: .4; }

/* ---------------------------------------------------------------- Primera visita */
.v7-ctas { gap: 12px; }
.v7-ctas .v5-btn { padding: 16px 24px; }
.v7-ctas .v5-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.v7-ctas .v5-btn--light svg { fill: currentColor; stroke: none; }

@media (max-width: 1000px) {
  .v5-principles li:nth-child(n+4) { border-top: 0; }
  .v7-cases .v6-case-txts { min-height: 7.6em; }
}
@media (max-width: 900px) {
  .v7-gal-nav { display: none; }
  .v7-space .v5-shot { height: 58vh; max-height: 440px; }
}
@media (max-width: 600px) {
  .v7-case-tabs b { font-size: .74rem; }
  .v7-cases .v6-case-txts { min-height: 5.6em; }
  .v7-ctas .v5-btn { width: 100%; justify-content: center; }
}

/* Alineación de la sección de casos con el resto de la página */
.v7-cases .v6-cases-grid, .v7-cases .v6-cases-note { width: min(100% - 2 * var(--gutter), var(--wrap)); max-width: none; padding-inline: 0; margin-inline: auto; }

/* Casos: sin contador, botón alineado a la derecha */
.v7-stage-foot { justify-content: flex-end; }

/* Dirección médica
   Escritorio: collage discreto (como antes). Móvil/tablet: collage más grande, casi a todo el ancho. */
.v6-tile picture { display: block; width: 100%; height: 100%; }
@media (min-width: 1001px) { .v6-dir-grid { grid-template-columns: 1.1fr 1fr; } }
@media (max-width: 1000px) {
  .v6-collage { max-width: 620px; width: 100%; }
  .v6-tile--xavi { left: 2%; width: 62%; height: 55%; }
  .v6-tile--pedro { left: 34%; top: 47%; width: 66%; height: 53%; }
  .v6-tile--leaf { left: 2%; top: 55%; width: 30%; height: 27%; }
  .v6-tile--mist { width: 36%; }
  .v6-tile--xavi img { object-position: 50% 6%; } .v6-tile--pedro img { object-position: 50% 10%; }
}
@media (max-width: 600px) {
  .v6-collage { width: calc(100% + var(--gutter)); margin-right: calc(-1 * var(--gutter)); justify-self: start; }
}

/* Opiniones: altura estable para todas las reseñas */
.v5-quotes { min-height: 340px; }
.v5-q p { font-size: clamp(1.1rem, 1.45vw, 1.35rem); }

/* =====================================================================
   9.0 · Unificación con la v2 y bloques nuevos
   ===================================================================== */
/* Botones rectos y titulares con cuadradito, como en las páginas interiores */
.v5-btn { border-radius: var(--r-ui); padding: 17px 30px; font-size: .82rem; letter-spacing: .12em; }
.v5-eyebrow { gap: 12px; letter-spacing: .2em; }
.v5-eyebrow::before { width: 7px; height: 7px; }
.v6-more { letter-spacing: .2em; }

/* Opiniones: carrusel de la v2 */
.v9-reviews { background: var(--g50); padding-block: clamp(80px, 9vw, 130px); }
.v9-title { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.1; letter-spacing: -.01em; color: var(--ink); margin: 0; }
.v9-title em { font-style: normal; color: var(--g700); }
.v9-reviews .section-head { margin-bottom: clamp(30px, 4vw, 52px); }
.v9-reviews .reviews-nav button { border-color: var(--g700); color: var(--g700); }
.v9-reviews .reviews-nav button:hover { background: var(--g700); color: #fff; }

/* Cierre: horario y contacto */
.v5-close-grid { align-items: start; }
.v9-contact { position: relative; z-index: 1; border-left: 1px solid rgba(255,255,255,.2); padding-left: clamp(24px, 3vw, 44px); }
.v9-hours-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.v9-hours-head h3 { margin: 0; color: #fff; font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; }
.v9-contact .hours { margin-bottom: 18px; }
.v9-contact .contact-list li { padding: 16px 0; }
@media (max-width: 1000px) {
  .v9-contact { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.2); padding-top: 30px; }
}

/* =====================================================================
   9.0 · Revisión: botones de la portada y dirección médica compacta
   ===================================================================== */
/* Portada: Llamar · WhatsApp · Dónde estamos */
.v9-hero-ctas { gap: 12px; }
.v9-hero-ctas .v5-btn { gap: 12px; padding: 16px 26px; }
.v9-hero-ctas .v5-btn svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 600px) {
  .v9-hero-ctas { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; gap: 8px; width: 100%; }
  .v9-hero-ctas .v5-btn { flex-direction: column; gap: 8px; padding: 14px 6px; font-size: .64rem; letter-spacing: .1em; text-align: center; justify-content: center; }
  .v9-hero-ctas .v5-btn svg { width: 20px; height: 20px; }
}

/* Dirección médica más compacta (escritorio) */
.v6-dir { padding-block: clamp(64px, 7vw, 100px); }
.v6-dir .v5-eyebrow { margin-bottom: 18px; }
.v6-dir-title { font-size: clamp(2.2rem, 3.6vw, 3.6rem); margin-bottom: 14px; }
.v6-dir-sub { font-size: clamp(1.05rem, 1.3vw, 1.25rem); margin-bottom: 30px; }
.v6-names { margin-bottom: 22px; }
.v6-names h3 { font-size: clamp(1.35rem, 1.8vw, 1.75rem); }
.v6-names i { margin: 12px 0; }
.v6-dir-team { margin-bottom: 26px; }
@media (min-width: 1001px) {
  .v6-dir-grid { grid-template-columns: 1.25fr .75fr; gap: clamp(30px, 5vw, 80px); }
  .v6-collage { max-width: 440px; }
}
/* Móvil: las fotos mantienen su tamaño, pero con menos aire alrededor */
@media (max-width: 1000px) {
  .v6-dir { padding-block: 56px 64px; }
  .v6-dir-grid { gap: 30px; }
  .v6-dir-sub { margin-bottom: 24px; }
}

/* 9.0 · Botones de la home redondeados y algo más pequeños */
.v5-btn { border-radius: 999px; padding: 13px 24px; font-size: .74rem; gap: 10px; }
.v9-hero-ctas .v5-btn { padding: 13px 22px; gap: 10px; }
.v9-hero-ctas .v5-btn svg { width: 16px; height: 16px; }
.v7-arrow { width: 46px; height: 46px; }
@media (max-width: 600px) {
  .v9-hero-ctas .v5-btn { border-radius: 22px; padding: 12px 6px; font-size: .6rem; gap: 6px; }
  .v9-hero-ctas .v5-btn svg { width: 18px; height: 18px; }
  .v7-ctas .v5-btn { padding: 14px 20px; }
}

/* 11.0 · Símbolo redibujado fielmente: trazo algo más definido */
.v5-hero-symbol { stroke-width: .9; stroke-linecap: round; stroke-linejoin: round; }
.v5-close-symbol { stroke-width: .6; stroke-linecap: round; }
