/* Be Happy Odontología · propuestas de home, tercera ronda (2026-10-12)
   Lo que NO se repite de las rondas anteriores: títulos a la izquierda con texto al lado,
   rótulo pequeño encima de cada título y listas separadas por líneas.
   Cada sección es una escena con su propia composición. */
:root {
  --ink: #2b3137;
  --ink-soft: #5a626b;
  --paper: #faf8f4;
  --sand: #eee8dc;
  --mint: #9acdb7;
  --mint-deep: #2f6e59;
  --white: #fff;
  --f: "Quicksand", "Avenir Next", system-ui, sans-serif;
  --fs: "Bodoni Moda", "Didot", "Bodoni MT", serif;
  --gutter: clamp(1.1rem, 4vw, 3.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --z-nav: 20; --z-float: 30; --z-cursor: 40;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f); font-size: 1.0625rem; font-weight: 500; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.bw { filter: grayscale(1) contrast(1.07); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.4rem; padding: 0.85rem 1.9rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background 0.3s, color 0.3s; }
.btn:hover { background: transparent; color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn svg { width: 1.2rem; height: 1.2rem; }
.stars { display: inline-flex; gap: 3px; vertical-align: -2px; }
.stars svg { width: 0.95rem; height: 0.95rem; fill: currentColor; }
.gr { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-size: 0.98rem; }
.gr b { font-weight: 700; }

.js [data-in] { opacity: 0; transform: translateY(2rem); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js [data-in].is-in { opacity: 1; transform: none; }

/* ═══════════════ 1 · Servicios ═══════════════
   A sangre, sin marcos ni esquinas redondas, con el verde de la marca. */
.p3 { --green: #1b4336; --green-2: #245646; --nav: 4.25rem; background: var(--paper); }
.p3 h1, .p3 h2, .p3 h3 { font-family: var(--f); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.p3 .btn { border-radius: 4px; background: var(--mint); border-color: var(--mint); color: var(--ink); font-weight: 700; }
.p3 .btn:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.p3 .btn--dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.p3 .btn--dark:hover { background: var(--green); border-color: var(--green); color: var(--paper); }
.p3 .btn--out { background: transparent; border-color: currentColor; color: inherit; }
.p3 .btn--out:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.s-nav { position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav); height: var(--nav); display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-inline: clamp(1rem, 2.5vw, 2rem); background: var(--paper); border-bottom: 1px solid rgba(43, 49, 55, 0.1); }
.s-nav img { width: clamp(7.5rem, 10vw, 9rem); }
.s-nav ul { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); font-weight: 600; font-size: 0.97rem; }
.s-nav a { text-decoration: none; }
.s-nav ul a:hover { color: var(--green-2); }
.s-nav .btn { min-height: 2.6rem; padding: 0.4rem 1.1rem; font-size: 0.95rem; }
@media (max-width: 860px) { .s-nav ul { display: none; } }

/* portada partida: el panel verde elige, la foto responde */
.s-hero { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); min-height: 100vh; padding-top: var(--nav); }
.s-hero__t { background: var(--green); color: var(--paper); padding: clamp(2rem, 5vw, 5rem) clamp(1.25rem, 4vw, 4.5rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; }
.s-hero h1 { font-size: clamp(2.6rem, 5.4vw, 5.25rem); max-width: 10ch; }
.s-hero__t > div > p { margin-top: 1.5rem; max-width: 34ch; font-size: 1.12rem; line-height: 1.55; opacity: 0.9; }
.s-pick { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.s-pick a { padding: 0.7rem 1.1rem; border: 1px solid rgba(250, 248, 244, 0.35); border-radius: 4px; font-weight: 600; font-size: 1.05rem; text-decoration: none; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.s-pick a:hover, .s-pick a.on { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.s-pick p { flex-basis: 100%; margin-bottom: 0.4rem; font-weight: 600; opacity: 0.75; }
.s-hero__f { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.s-hero__f .gr { color: var(--paper); }
.s-hero__ph { position: relative; overflow: hidden; background: var(--green-2); min-height: 22rem; }
.s-hero__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.8s var(--ease), transform 1.6s var(--ease); }
.s-hero__ph img.on { opacity: 1; transform: none; }
.s-hero__cap { position: absolute; left: 0; bottom: 0; padding: 0.9rem 1.4rem; background: var(--paper); font-weight: 700; font-size: 1.05rem; }
@media (max-width: 860px) { .s-hero { grid-template-columns: 1fr; min-height: 0; } .s-hero__ph { aspect-ratio: 4 / 3.4; min-height: 0; order: -1; } }

/* barra de servicios que acompaña y marca dónde vas */
.s-rail { position: sticky; top: var(--nav); z-index: 15; display: flex; background: var(--ink); color: var(--paper); overflow-x: auto; scrollbar-width: none; }
.s-rail::-webkit-scrollbar { display: none; }
.s-rail a { flex: 1 0 auto; padding: 0.95rem 1.25rem; text-align: center; font-weight: 600; font-size: 0.97rem; text-decoration: none; white-space: nowrap; transition: background 0.3s, color 0.3s; }
.s-rail a:hover { background: rgba(250, 248, 244, 0.1); }
.s-rail a[aria-current="true"] { background: var(--mint); color: var(--ink); }

/* cada servicio es una pantalla; la siguiente se desliza encima */
.s-panel { position: sticky; top: calc(var(--nav) + 3.2rem); display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--nav) - 3.2rem); background: var(--paper); box-shadow: 0 -1px 0 rgba(43, 49, 55, 0.12); }
.s-panel:nth-of-type(even) .s-panel__ph { order: 2; }
.s-panel:nth-of-type(3n + 2) { background: var(--sand); }
.s-panel:nth-of-type(3n) { background: var(--white); }
.s-panel.is-dark { background: var(--green); color: var(--paper); }
.s-panel__ph { position: relative; overflow: hidden; min-height: 20rem; }
.s-panel__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-panel__t { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 5.5rem) clamp(1.25rem, 5vw, 5.5rem); }
.s-panel h2 { font-size: clamp(2.4rem, 5vw, 4.75rem); }
.s-panel__t > p { margin-top: 1.4rem; max-width: 36ch; font-size: 1.15rem; line-height: 1.6; }
.s-inc { margin-top: 1.75rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 1.5rem; max-width: 30rem; font-weight: 600; }
.s-inc li { display: flex; align-items: baseline; gap: 0.6rem; line-height: 1.35; }
.s-inc li::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; background: var(--mint); translate: 0 -0.05rem; }
.s-meta { display: flex; flex-wrap: wrap; gap: 1.75rem 3rem; margin-top: 2.25rem; }
.s-meta div { line-height: 1.3; }
.s-meta span { display: block; font-size: 0.9rem; opacity: 0.7; }
.s-meta b { display: block; margin-top: 0.2rem; font-size: 1.15rem; font-weight: 700; }
.s-who { display: flex; align-items: center; gap: 0.75rem; }
.s-who img { width: 3rem; height: 3rem; object-fit: cover; object-position: 50% 12%; border-radius: 4px; }
.s-panel .btn { margin-top: 2.25rem; align-self: flex-start; }
@media (max-width: 860px) { .s-panel { position: relative; top: auto; grid-template-columns: 1fr; min-height: 0; } .s-panel:nth-of-type(even) .s-panel__ph { order: 0; } .s-panel__ph { aspect-ratio: 4 / 3; min-height: 0; } .s-inc { grid-template-columns: 1fr; } }

/* la clínica: tres fotos pegadas y una franja con los datos */
.s-place { position: relative; z-index: 16; background: var(--paper); }
.s-place__ph { display: grid; grid-template-columns: 5fr 4fr 4fr; }
.s-place__ph figure { height: clamp(18rem, 44vw, 38rem); overflow: hidden; }
.s-place__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.s-place__ph figure:hover img { transform: scale(1.04); }
.s-place__b { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 3fr)); background: var(--ink); color: var(--paper); }
.s-place__b > * { padding: clamp(1.5rem, 3vw, 2.75rem) clamp(1.25rem, 2.5vw, 2.25rem); }
.s-place__b h2 { font-size: clamp(1.9rem, 3.2vw, 3rem); }
.s-place__b p { font-size: 1rem; line-height: 1.5; }
.s-place__b p b { display: block; margin-bottom: 0.35rem; color: var(--mint); font-weight: 700; }
.s-place__b a { font-weight: 700; }
@media (max-width: 860px) { .s-place__ph { grid-template-columns: 1fr 1fr; } .s-place__ph figure:first-child { grid-column: span 2; } .s-place__b { grid-template-columns: 1fr; } }

/* el equipo, en una sola tira */
.s-team { position: relative; z-index: 16; background: var(--paper); padding-top: clamp(4rem, 8vw, 7rem); }
.s-team h2 { padding-inline: clamp(1.25rem, 4vw, 4.5rem); font-size: clamp(2rem, 4.2vw, 3.75rem); max-width: 22ch; }
.s-team__g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: clamp(2rem, 4vw, 3.5rem); }
.s-team__g a { position: relative; display: block; aspect-ratio: 3 / 4.4; overflow: hidden; text-decoration: none; color: var(--paper); }
.s-team__g img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; filter: grayscale(1) contrast(1.05); transition: filter 0.6s, transform 1.3s var(--ease); }
.s-team__g a:hover img { filter: none; transform: scale(1.04); }
.s-team__g div { position: absolute; inset: auto 0 0 0; padding: 2.5rem 0.9rem 0.9rem; background: linear-gradient(to top, rgba(27, 67, 54, 0.92), rgba(27, 67, 54, 0)); line-height: 1.25; }
.s-team__g b { display: block; font-weight: 700; font-size: 1rem; }
.s-team__g span { font-size: 0.88rem; opacity: 0.9; }
@media (max-width: 860px) { .s-team__g { grid-template-columns: repeat(7, 46vw); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; } .s-team__g a { scroll-snap-align: start; } }

/* cierre */
.s-end { position: relative; z-index: 16; background: var(--green); color: var(--paper); padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 4vw, 4.5rem) 1.75rem; }
.s-end__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem 5rem; align-items: end; }
.s-end h2 { font-size: clamp(2.6rem, 6.4vw, 6rem); max-width: 12ch; }
.s-end__a { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.5rem; }
.s-end__r p { font-size: 1.1rem; line-height: 1.5; }
.s-end__r p:first-child { font-size: clamp(3.5rem, 7vw, 6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 0.9; margin-bottom: 1rem; }
.s-end__r .stars { color: var(--mint); margin-left: 0.6rem; vertical-align: 0.5em; }
.s-end__r .stars svg { width: 1.15rem; height: 1.15rem; }
.s-end__r a { display: inline-block; margin-top: 1rem; font-weight: 700; }
.s-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 3rem; margin-top: clamp(3.5rem, 7vw, 6rem); padding-top: 1.5rem; border-top: 1px solid rgba(250, 248, 244, 0.22); font-size: 0.95rem; }
.s-foot a { text-decoration: none; }
.s-foot a:hover { text-decoration: underline; }
.s-foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
@media (max-width: 860px) { .s-end__in { grid-template-columns: 1fr; } }

.ctrl { display: flex; align-items: center; gap: 0.5rem; flex: none; }
.ctrl button { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border: 1px solid var(--ink); background: transparent; cursor: pointer; transition: background 0.3s, color 0.3s; }
.ctrl button:hover { background: var(--ink); color: var(--paper); }
.ctrl button svg { width: 1.2rem; height: 1.2rem; }
.ctrl output { min-width: 4.5rem; text-align: center; }

/* ═══════════════ 2 · Agenda ═══════════════ */
.p2 { --r: 14px; background: var(--white); }
.p2 h1, .p2 h2, .p2 h3 { font-family: var(--f); font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; }
.p2 .btn { border-radius: var(--r); }

.p2-hero { position: relative; margin: 0.75rem; min-height: min(calc(100vh - 1.5rem), 54rem); border-radius: var(--r); overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; color: var(--white); }
.p2-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.p2-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(20, 23, 26, 0.66), rgba(20, 23, 26, 0.42) 45%, rgba(20, 23, 26, 0.6)); }
.p2-hero > *:not(img) { position: relative; z-index: 2; }
.p2-nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.25rem clamp(1rem, 3vw, 2.5rem); }
.p2-nav img { width: clamp(8.5rem, 11vw, 10.5rem); }
.p2-nav ul { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); font-weight: 600; font-size: 0.98rem; }
.p2-nav a { text-decoration: none; }
.p2-nav ul a:hover { text-decoration: underline; text-underline-offset: 0.4em; }
@media (max-width: 860px) { .p2-nav ul { display: none; } }
.p2-hero__t { align-self: center; text-align: center; padding: 2rem var(--gutter); }
.p2-hero h1 { font-size: clamp(2.5rem, 6.6vw, 6.25rem); max-width: 15ch; margin-inline: auto; }
.p2-hero__t p { margin: 1.5rem auto 0; max-width: 40ch; font-size: 1.15rem; line-height: 1.5; }
.p2-bar { margin: 0 clamp(0.75rem, 3vw, 2.5rem) clamp(0.75rem, 3vw, 2.5rem); display: grid; grid-template-columns: 1.3fr 1fr auto; background: var(--white); color: var(--ink); border-radius: var(--r); padding: 0.5rem; }
.p2-bar label { display: grid; gap: 0.1rem; padding: 0.7rem 1.1rem; border-right: 1px solid rgba(43, 49, 55, 0.14); }
.p2-bar label span { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.p2-bar select { appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b3137' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right center / 1.1rem no-repeat; font: inherit; font-weight: 600; font-size: 1.08rem; color: var(--ink); padding: 0.15rem 1.6rem 0.15rem 0; cursor: pointer; min-height: 2rem; }
.p2-bar .btn { margin-left: 0.5rem; border-radius: 10px; min-height: 100%; }
.p2-under { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 2.5rem; padding: 1.5rem var(--gutter) 0; font-size: 0.98rem; color: var(--ink-soft); }
.p2-under .gr { color: var(--ink); }
@media (max-width: 860px) { .p2-bar { grid-template-columns: 1fr; } .p2-bar label { border-right: 0; border-bottom: 1px solid rgba(43, 49, 55, 0.14); } .p2-bar .btn { margin: 0.5rem 0 0; min-height: 3.4rem; } }

.p2-tabs { padding: clamp(5rem, 10vw, 9rem) var(--gutter) 0; max-width: 84rem; margin-inline: auto; }
.p2-tabs > h2 { text-align: center; font-size: clamp(2.2rem, 5vw, 4.5rem); }
.p2-tablist { display: flex; justify-content: center; gap: clamp(0.25rem, 1vw, 0.75rem); margin-top: clamp(2rem, 4vw, 3.25rem); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.p2-tablist::-webkit-scrollbar { display: none; }
.p2-tablist button { flex: none; padding: 0.8rem 1.1rem; border: 0; border-bottom: 2px solid transparent; background: none; font-weight: 600; font-size: 1.05rem; color: var(--ink-soft); cursor: pointer; white-space: nowrap; transition: color 0.3s, border-color 0.3s; }
.p2-tablist button:hover { color: var(--ink); }
.p2-tablist button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
@media (max-width: 860px) { .p2-tablist { justify-content: flex-start; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); } }
.p2-panel { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4.5rem); align-items: center; margin-top: clamp(1.75rem, 3vw, 2.75rem); }
.p2-panel[hidden] { display: none; }
.p2-panel figure { aspect-ratio: 5 / 4; border-radius: var(--r); overflow: hidden; background: var(--sand); }
.p2-panel figure img { width: 100%; height: 100%; object-fit: cover; }
.p2-panel h3 { font-size: clamp(1.9rem, 3.4vw, 3.1rem); }
.p2-panel > div > p { margin-top: 1.1rem; font-size: 1.12rem; line-height: 1.6; max-width: 38ch; }
.p2-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.4rem; }
.p2-tags li { padding: 0.35rem 0.8rem; border-radius: 8px; background: var(--sand); font-size: 0.93rem; font-weight: 600; }
.p2-who { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.75rem; }
.p2-who img { width: 3.6rem; height: 3.6rem; border-radius: 10px; object-fit: cover; object-position: 50% 12%; }
.p2-who b { display: block; font-weight: 700; line-height: 1.25; }
.p2-who span { font-size: 0.93rem; color: var(--ink-soft); }
.p2-go { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 1.75rem; }
.p2-go em { font-style: normal; font-size: 0.98rem; color: var(--ink-soft); }
.p2-go em b { color: var(--ink); font-size: 1.2rem; font-weight: 700; }
.js .p2-panel.swap figure { animation: p2a 0.8s var(--ease); }
.js .p2-panel.swap > div { animation: p2b 0.8s var(--ease); }
@keyframes p2a { from { opacity: 0; transform: scale(0.97); } }
@keyframes p2b { from { opacity: 0; transform: translateX(1.5rem); } }
@media (max-width: 860px) { .p2-panel { grid-template-columns: 1fr; } }

.p2-team { padding: clamp(5rem, 10vw, 9rem) var(--gutter) 0; max-width: 84rem; margin-inline: auto; }
.p2-team h2 { text-align: center; font-size: clamp(2.2rem, 5vw, 4.5rem); max-width: 16ch; margin-inline: auto; }
.p2-team__g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.6rem, 1.2vw, 1.1rem); margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.p2-team__g > * { border-radius: var(--r); overflow: hidden; }
.p2-team__g > a { position: relative; display: block; aspect-ratio: 3 / 4; text-decoration: none; color: var(--white); }
.p2-team__g > :nth-child(4n + 2), .p2-team__g > :nth-child(4n + 4) { translate: 0 2.5rem; }
.p2-team__g img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; filter: grayscale(1) contrast(1.06); transition: filter 0.7s, transform 1.3s var(--ease); }
.p2-team__g > a:hover img { filter: none; transform: scale(1.04); }
.p2-team__g > a::after { content: ""; position: absolute; inset: 50% 0 0 0; background: linear-gradient(to top, rgba(20, 23, 26, 0.82), rgba(20, 23, 26, 0)); }
.p2-team__g > a div { position: absolute; z-index: 1; inset: auto 1rem 0.95rem 1rem; }
.p2-team__g b { display: block; font-weight: 700; font-size: 1.08rem; line-height: 1.2; }
.p2-team__g span { display: block; margin-top: 0.15rem; font-size: 0.9rem; opacity: 0.9; }
.p2-team__c { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; aspect-ratio: 3 / 4; padding: 1.4rem; background: var(--sand); }
.p2-team__c p { font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.25; letter-spacing: -0.02em; }
.p2-team__c .btn { width: 100%; padding-inline: 0.75rem; }
@media (max-width: 860px) { .p2-team__g { grid-template-columns: 1fr 1fr; } .p2-team__g > :nth-child(4n + 2), .p2-team__g > :nth-child(4n + 4) { translate: none; } .p2-team__g > :nth-child(even) { translate: 0 1.5rem; } }

.p2-tour { padding-top: clamp(7rem, 13vw, 12rem); }
.p2-tour__h { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding-inline: var(--gutter); max-width: 84rem; margin-inline: auto; }
.p2-tour h2 { font-size: clamp(2.2rem, 5vw, 4.5rem); max-width: 13ch; }
.p2 .ctrl button { border-radius: 10px; }
.p2 .ctrl output { font-family: var(--f); font-weight: 600; font-size: 1rem; }
.p2-reel { --side: max(var(--gutter), calc((100vw - 84rem) / 2 + var(--gutter))); display: flex; gap: clamp(0.6rem, 1.2vw, 1.1rem); margin-top: clamp(2rem, 4vw, 3.5rem); padding-inline: var(--side); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: var(--side); }
.p2-reel::-webkit-scrollbar { display: none; }
.p2-reel figure { position: relative; flex: none; width: clamp(16rem, 34vw, 30rem); aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; scroll-snap-align: start; }
.p2-reel img { width: 100%; height: 100%; object-fit: cover; }
.p2-reel figcaption { position: absolute; left: 0.75rem; bottom: 0.75rem; padding: 0.45rem 0.85rem; border-radius: 8px; background: var(--white); font-weight: 600; font-size: 0.95rem; }
.p2-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.6rem, 1.2vw, 1.1rem); max-width: 84rem; margin: clamp(0.6rem, 1.2vw, 1.1rem) auto 0; padding-inline: var(--gutter); }
.p2-info div { padding: 1.4rem; border-radius: var(--r); background: var(--sand); }
.p2-info b { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.p2-info p { font-size: 1rem; line-height: 1.5; }
.p2-info a { font-weight: 700; }
@media (max-width: 860px) { .p2-info { grid-template-columns: 1fr; } .p2-tour__h { flex-direction: column; align-items: start; } }

.p2-end { margin: clamp(5rem, 10vw, 9rem) 0.75rem 0.75rem; border-radius: var(--r); background: var(--ink); color: var(--paper); padding: clamp(2.5rem, 6vw, 6rem) clamp(1.25rem, 5vw, 5rem) 1.75rem; }
.p2-end__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem 5rem; align-items: end; }
.p2-end h2 { font-size: clamp(2.4rem, 6vw, 5.5rem); }
.p2-end__r { padding: 1.5rem; border-radius: var(--r); background: rgba(250, 248, 244, 0.08); }
.p2-end__r p { font-size: 1.08rem; line-height: 1.5; }
.p2-end__r p b { font-size: 2.6rem; font-weight: 400; letter-spacing: -0.03em; line-height: 1; margin-right: 0.5rem; }
.p2-end__r .stars { color: var(--mint); }
.p2-end__r a { display: inline-block; margin-top: 0.9rem; font-weight: 700; }
.p2-end__a { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.p2-end .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.p2-end .btn:hover { background: transparent; color: var(--paper); }
.p2-end .btn--line { background: transparent; color: var(--paper); border-color: rgba(250, 248, 244, 0.4); }
.p2-end .btn--line:hover { background: var(--paper); color: var(--ink); }
.p2-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 3rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.5rem; border-top: 1px solid rgba(250, 248, 244, 0.2); font-size: 0.95rem; }
.p2-foot a { text-decoration: none; }
.p2-foot a:hover { text-decoration: underline; }
.p2-foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
@media (max-width: 860px) { .p2-end__in { grid-template-columns: 1fr; } }

/* ═══════════════ Sistema de diseño ═══════════════ */
.ds { background: var(--white); }
.ds-top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem var(--gutter); border-bottom: 1px solid rgba(43, 49, 55, 0.12); }
.ds-top img { width: 9rem; }
.ds-top nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; font-weight: 600; font-size: 0.97rem; }
.ds-top a { text-decoration: none; }
.ds-top a:hover { text-decoration: underline; text-underline-offset: 0.35em; }
.ds-wrap { max-width: 78rem; margin-inline: auto; padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) 5rem; }
.ds h1 { font-family: var(--f); font-weight: 400; font-size: clamp(2.4rem, 5.5vw, 4.5rem); letter-spacing: -0.035em; line-height: 1.02; }
.ds-wrap > p { margin-top: 1.25rem; max-width: 60ch; font-size: 1.12rem; }
.ds section { margin-top: clamp(3.5rem, 7vw, 6rem); }
.ds h2 { font-family: var(--f); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.025em; line-height: 1.1; }
.ds h2 + p { margin-top: 0.6rem; max-width: 64ch; color: var(--ink-soft); }
.ds h3 { font-family: var(--f); font-weight: 700; font-size: 1.05rem; letter-spacing: 0; line-height: 1.3; }
.ds code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.86em; }
.ds-sw { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.75rem; margin-top: 1.75rem; }
.ds-sw div { border: 1px solid rgba(43, 49, 55, 0.14); }
.ds-sw i { display: block; height: 6.5rem; }
.ds-sw p { padding: 0.7rem 0.8rem 0.8rem; font-size: 0.92rem; line-height: 1.4; }
.ds-sw b { display: block; font-weight: 700; }
.ds-sw span { color: var(--ink-soft); }
.ds-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1.75rem; }
.ds-box { padding: clamp(1.25rem, 2.5vw, 2rem); border: 1px solid rgba(43, 49, 55, 0.14); }
.ds-box > h3 { margin-bottom: 1.25rem; }
.ds-box .muestra { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.ds-box .muestra + .muestra { margin-top: 1rem; }
.ds-box .oscuro { padding: 1.25rem; background: var(--ink); color: var(--paper); }
.ds-box .verde { padding: 1.25rem; background: #1b4336; color: var(--paper); }
.ds-type p { line-height: 1.05; letter-spacing: -0.03em; }
.ds-type small { display: block; margin: 0.35rem 0 1.4rem; font-size: 0.88rem; letter-spacing: 0; color: var(--ink-soft); line-height: 1.4; }
.ds-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-top: 1.75rem; }
.ds-logos div { display: grid; place-items: center; padding: 2rem 1.25rem; border: 1px solid rgba(43, 49, 55, 0.14); }
.ds-logos img { width: min(100%, 11rem); }
.ds-fotos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-top: 1.75rem; }
.ds-fotos figure { margin: 0; }
.ds-fotos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 15%; }
.ds-fotos figcaption { margin-top: 0.55rem; font-size: 0.92rem; line-height: 1.4; }
.ds-fotos b { display: block; }
.ds-reglas { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1.75rem; }
.ds-reglas ul { padding: clamp(1.25rem, 2.5vw, 2rem); background: var(--sand); }
.ds-reglas ul + ul { background: var(--ink); color: var(--paper); }
.ds-reglas li { padding-left: 1.4rem; text-indent: -1.4rem; line-height: 1.5; }
.ds-reglas li + li { margin-top: 0.7rem; }
.ds-reglas li:first-child { text-indent: 0; padding-left: 0; font-weight: 700; margin-bottom: 1rem; }
.ds-reglas li:not(:first-child)::before { content: "✓"; display: inline-block; width: 1.4rem; text-indent: 0; font-weight: 700; }
.ds-reglas ul + ul li:not(:first-child)::before { content: "×"; }
.ds-tabla { width: 100%; margin-top: 1.75rem; border-collapse: collapse; font-size: 0.98rem; }
.ds-tabla th, .ds-tabla td { padding: 0.8rem 1rem 0.8rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(43, 49, 55, 0.14); line-height: 1.45; }
.ds-tabla th { font-weight: 700; }
@media (max-width: 860px) { .ds-2, .ds-reglas { grid-template-columns: 1fr; } .ds-logos, .ds-fotos { grid-template-columns: 1fr 1fr; } .ds-tabla { display: block; overflow-x: auto; } }

/* portada de propuestas */
.cover { min-height: 100vh; display: grid; align-content: center; padding: 4rem var(--gutter); text-align: center; }
.cover > img { margin-inline: auto; }
.cover h1 { font-family: var(--fs); font-weight: 400; font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.02em; margin-top: 2.5rem; }
.cover__more { display: inline-block; margin-top: 2rem; font-weight: 700; }
.cover__g { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; max-width: 70rem; margin: 3rem auto 0; width: 100%; }
.cover__c { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; text-decoration: none; color: var(--white); text-align: left; }
.cover__c img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.cover__c:hover img { transform: scale(1.05); }
.cover__c::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 23, 26, 0.88), rgba(20, 23, 26, 0.05) 70%); }
.cover__c div { position: absolute; z-index: 1; inset: auto 1.5rem 1.4rem 1.5rem; }
.cover__c b { display: block; font-size: 2rem; font-weight: 400; line-height: 1.05; }
.cover__c span { display: block; margin-top: 0.5rem; font-size: 0.98rem; opacity: 0.9; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js [data-in] { opacity: 1 !important; transform: none !important; }
  .g-steps::after { transform: none !important; }
}

@media (max-width: 860px) {
  .p1-team__h { flex-direction: column; align-items: start; }
  .p1-team h2 { max-width: none; }
}

/* ── ajustes de la revisión (2026-10-12): toque, lectura y pantallas bajas ── */
.s-nav ul a, .p2-nav ul a, .s-foot a, .p2-foot a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.gr { min-height: 2.75rem; }
.s-nav .btn { min-height: 2.75rem; }
.s-place__b a, .p2-info a, .s-end__r a, .p2-end__r a { display: inline-block; padding-block: 0.7rem; margin-block: -0.2rem; }
.p2-end__r a, .s-end__r a { margin-top: 0.3rem; }
.p2-bar label span { font-size: 0.875rem; }
.p2-bar select { min-height: 2.75rem; }
.m-menu { display: none; position: relative; }
.m-menu summary { list-style: none; display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: 0.9rem; border: 1px solid currentColor; border-radius: 4px; font-weight: 600; cursor: pointer; }
.m-menu summary::-webkit-details-marker { display: none; }
.m-menu nav { position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 5; display: grid; min-width: 13rem; padding: 0.5rem; background: var(--white); color: var(--ink); border: 1px solid rgba(43, 49, 55, 0.14); border-radius: 6px; }
.m-menu nav a { padding: 0.8rem 0.9rem; font-weight: 600; text-decoration: none; }
.m-menu nav a:hover { background: var(--sand); }
.p2 .m-menu summary, .p2 .m-menu nav { border-radius: 10px; }
@media (max-width: 860px) { .m-menu { display: block; } .s-nav { gap: 0.6rem; } .s-nav > a:first-child { margin-right: auto; } }
/* en pantallas bajas un servicio no cabe en una sola pantalla: sin apilado, para que nada quede tapado */
@media (min-width: 861px) and (max-height: 819px) { .s-panel { position: relative; top: auto; min-height: 0; } .s-panel__ph { min-height: 30rem; } }
@media (min-width: 861px) and (min-height: 820px) { .s-panel__t { padding-block: clamp(1.5rem, 5vh, 4.5rem); } }
.p2-hero > .p2-nav { z-index: 4; }
.s-panel { scroll-margin-top: calc(var(--nav) + 3.2rem); }

/* Versión final: home 2 con el cierre de la 1 */
.p2 .s-end { margin-top: clamp(5rem, 10vw, 9rem); }
.p2 .s-foot { align-items: center; }
/* Forma del cierre de la 1 (a sangre, titular grande, calificación a la derecha) con los colores de la 2 */
.p2 .s-end { background: var(--ink); color: var(--paper); }
.p2 .s-end h2 { font-weight: 400; }
.p2 .s-end .btn { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.p2 .s-end .btn:hover { background: transparent; color: var(--paper); }
.p2 .s-end .btn--out { background: transparent; border-color: rgba(250, 248, 244, 0.4); color: var(--paper); }
.p2 .s-end .btn--out:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
