/* vitary · multipage layer on top of bento.css
   Same palette, type and bento grid; calmer motion, page headers,
   client bar and the live event-stream hero. */

/* ── Calmer motion ───────────────────────────────────────────── */
#deco { display: none; }

/* ── Hero: live event stream ─────────────────────────────────── */
.hero-visual--stream { min-height: 0; display: flex; align-items: center; }
.stream-tile { width: 100%; padding: clamp(1.1rem, 2.2vw, 1.5rem); }
.stream-tile .evlog { background: rgba(4,20,18,0.5); }
.stream-tile .evlog-body { min-height: 19.5rem; justify-content: flex-end; overflow: hidden; }
.stream-tile .ev { animation: none; opacity: 1; transform: none; }
.stream-tile .ev--in { animation: ev-in .5s var(--ease) both; }
.stream-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; }
.stream-meta .chips { margin-top: 0; }
.stream-note { font-family: var(--mono); font-size: .62rem; letter-spacing: .06em; color: var(--on-dark-2); opacity: .75; }
.stream-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.stream-kpi { padding: .8rem .9rem; border-radius: var(--r-in); background: rgba(255,255,255,0.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }
.stream-kpi b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(1.35rem, 2.4vw, 1.75rem); color: #fff; letter-spacing: -0.02em; line-height: 1.1; }
.stream-kpi span { font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); }
@media (max-width: 440px){ .stream-kpis { grid-template-columns: 1fr 1fr; } .stream-kpi:last-child { grid-column: 1 / -1; } .stream-tile .evlog-body { min-height: 16rem; } }

/* ── Client bar ──────────────────────────────────────────────── */
.clients { border-block: 1px solid var(--hair); padding-block: clamp(1.6rem, 3.5vw, 2.4rem); }
.clients-h { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.1rem; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.clients-h i { width: 7px; height: 7px; border-radius: 50%; background: #3DD68C; box-shadow: 0 0 0 3px rgba(61,214,140,0.2); animation: hvchipdot 2.4s ease-out infinite; }
.clients-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.client { position: relative; flex: 1 1 210px; max-width: 290px; display: flex; align-items: center; gap: .85rem; padding: .8rem 1rem .8rem .8rem; border-radius: var(--r-in); background: rgba(255,255,255,0.6); box-shadow: inset 0 0 0 1px var(--hair), inset 0 1px 0 rgba(255,255,255,0.85); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .35s; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .client { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); } }
.client:hover { transform: translateY(-3px); background: #fff; box-shadow: inset 0 0 0 1px rgba(var(--teal-rgb),0.28), 0 16px 30px -18px rgba(10,123,110,0.5); }
.client-logo { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; }
.client-logo img { display: block; max-width: 30px; max-height: 30px; width: auto; height: auto; }
.client-logo--full { box-shadow: none; }
.client-logo--full img { max-width: none; max-height: none; width: 100%; height: 100%; }
.client-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.client-t b { font-family: var(--sans); font-weight: 700; font-size: .92rem; letter-spacing: -0.01em; color: var(--ink); }
.client-t small { display: inline-flex; align-items: center; gap: .4rem; margin-top: .2rem; font-size: .7rem; color: var(--ink-3); }
.client-t small::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: #3DD68C; }
@media (prefers-reduced-motion: reduce) { .clients-h i { animation: none; } .client { transition: none; } .client:hover { transform: none; } }

/* ── Sub-page header ─────────────────────────────────────────── */
.page-hero { position: relative; padding-top: clamp(7.5rem, 13vw, 9.5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .spec { margin-bottom: 1.1rem; }
.page-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.02; letter-spacing: -0.035em; color: var(--ink); max-width: 18ch; }
.page-hero .lead { max-width: 40rem; margin-top: 1.3rem; font-size: 1.12rem; }
.page-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.page-hero::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--teal-rgb),0.10), transparent 65%); pointer-events: none; }

/* ── Section link + footnotes ────────────────────────────────── */
.section-more { margin-top: clamp(1.5rem, 3vw, 2rem); display: flex; justify-content: flex-start; }
.section-head.center + .bento + .section-more, .section-more.center { justify-content: center; }
.metric-note { margin-top: 1rem; font-family: var(--mono); font-size: .66rem; letter-spacing: .03em; line-height: 1.6; color: var(--ink-3); max-width: 72ch; }
.tile--dark .metric-note { color: var(--on-dark-2); }

/* ── Trust controls grid (/seguridad) ────────────────────────── */
.ctrl { display: flex; flex-direction: column; gap: .4rem; }
.ctrl .proof { margin-top: auto; padding-top: .9rem; font-family: var(--mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.status-tile { grid-column: span 12; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem; }
.status-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: var(--pill); background: rgba(74,222,128,0.10); color: #1F7A45; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; }
@media (max-width: 720px){ .status-tile { grid-template-columns: 1fr; } }

/* ── Case study (/casos) ─────────────────────────────────────── */
.case-tile { grid-column: span 12; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.case-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.2rem; }
.case-head img { height: 44px; width: auto; }
.case-ba { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.case-ba div { padding: 1rem 1.1rem; border-radius: var(--r-in); background: var(--tile-2); box-shadow: inset 0 0 0 1px var(--hair); }
.case-ba .after { background: rgba(var(--teal-rgb),0.06); box-shadow: inset 0 0 0 1px rgba(var(--teal-rgb),0.18); }
.case-ba h6 { margin: 0 0 .35rem; font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.case-ba b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.02em; color: var(--ink); line-height: 1.05; }
.case-ba .after b { color: var(--teal); }
.case-ba span { font-size: .82rem; color: var(--ink-2); }
@media (max-width: 860px){ .case-tile { grid-template-columns: 1fr; } }
/* Testimonial quotes inside a case: a full-width row under text + figures */
.case-quotes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: .8rem; }
.case-quote { position: relative; margin: 0; padding: 1.5rem 1.6rem 1.3rem 3.4rem; border-radius: var(--r-in); background: var(--tile-2); box-shadow: inset 0 0 0 1px var(--hair); display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.case-quote::before { content: "«"; position: absolute; left: 1.15rem; top: 1rem; font-family: var(--display); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--teal); }
.case-quote blockquote { margin: 0; font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.42; letter-spacing: -0.01em; color: var(--ink); }
.case-quote blockquote::after { content: "»"; }
.case-quote figcaption { font-size: .85rem; color: var(--ink-2); }
.case-quote figcaption b { color: var(--ink); font-weight: 700; }

/* ── Footer status link ──────────────────────────────────────── */
.foot-status { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .05em; color: var(--ink-2); text-decoration: none; }
.foot-status:hover { color: var(--teal); }

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce){
  .stream-tile .ev--in { animation: none; }
  .blob { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Manchas del hero también en las páginas interiores, con salida suave */
.page-hero .hero-mesh { inset: -10% -10% 0; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.page-hero::before { display: none; }

/* ── Liquid glass (selectivo) ────────────────────────────────── */
/* 1. Navegación: vidrio esmerilado con borde de luz al hacer scroll */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  nav.nav.solid {
    background: linear-gradient(180deg, rgba(255,255,255,0.58), rgba(244,241,235,0.44));
    -webkit-backdrop-filter: saturate(190%) blur(22px);
    backdrop-filter: saturate(190%) blur(22px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 -1px 0 rgba(22,33,30,0.06) inset, 0 8px 28px -18px rgba(22,33,30,0.25);
  }
}

/* 2. KPIs del hero: cristal con brillo especular en el borde */
.stream-kpi { position: relative; overflow: hidden; background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03)); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), inset 0 1px 0 rgba(255,255,255,0.35), 0 10px 24px -14px rgba(0,0,0,0.5); }
.stream-kpi::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120px 80px at var(--mx, 20%) var(--my, 0%), rgba(255,255,255,0.22), transparent 70%); opacity: .7; transition: opacity .3s; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .stream-kpi { -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%); }
}

/* 3. Botón principal: reflejo que sigue al cursor */
.btn--primary { position: relative; overflow: hidden; isolation: isolate; box-shadow: var(--lift-coral), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn--primary::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(90px 60px at var(--mx, 30%) var(--my, -20%), rgba(255,255,255,0.38), transparent 70%); opacity: 0; transition: opacity .25s; }
.btn--primary:hover::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .stream-kpi::before, .btn--primary::after { transition: none; }
}

/* Especialidad bajo cada clínica */
.pb-wm .pb-esp { display: block; margin-top: .15rem; font-family: var(--mono); font-weight: 400; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.tile--dark .pb-wm .pb-esp { color: var(--on-dark-2); }

/* ── Sellos de estándares ────────────────────────────────────── */
.seals { padding-block: clamp(1.6rem, 3.5vw, 2.4rem); }
.seals-h { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.1rem; }
.seals-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
.seal { display: flex; align-items: center; gap: .7rem; padding: .85rem .9rem; border-radius: var(--r-in); background: rgba(255,255,255,0.55); box-shadow: inset 0 0 0 1px var(--hair), inset 0 1px 0 rgba(255,255,255,0.8); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .seal { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); } }
.seal-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(var(--teal-rgb),0.09); color: var(--teal); }
.seal-ico svg { width: 18px; height: 18px; }
.seal-t { display: flex; flex-direction: column; min-width: 0; }
.seal-t b { font-family: var(--sans); font-weight: 700; font-size: .78rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.seal-t small { font-size: .66rem; line-height: 1.25; color: var(--ink-3); margin-top: .15rem; }
@media (max-width: 1100px) { .seals-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .seals-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ═══ HERO · teléfono + agenda (para quien atiende pacientes) ═══ */
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1rem, 3vw, 3rem); }
.hero-h1--doc { font-size: clamp(2.4rem, 4.2vw, 3.7rem); line-height: 1; letter-spacing: -0.04em; }
.hero-h1--doc .em-teal { font-size: 1.04em; }
.hero-micro { margin-top: 1.1rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 1.2rem clamp(1.4rem, 3vw, 2.6rem); margin: 2.2rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--hair); }
.hero-proof > div { display: flex; flex-direction: column; gap: .35rem; }
.hero-proof dt { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: .95; color: var(--teal); letter-spacing: -0.03em; }
.hero-proof > div:nth-child(2) dt { color: var(--coral); }
.hero-proof dd { margin: 0; font-size: .82rem; line-height: 1.3; color: var(--ink-2); max-width: 11.5rem; }
.hero-proof sup { font-family: var(--mono); font-size: .56rem; letter-spacing: .08em; margin-left: .35em; color: var(--ink-3); vertical-align: super; }

.hv { position: relative; min-height: 600px; display: grid; place-items: center; }
.hv-glow { position: absolute; width: min(620px, 110%); aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 42% 40%, rgba(var(--teal-2-rgb),0.42), transparent 58%), radial-gradient(circle at 70% 70%, rgba(var(--coral-rgb),0.34), transparent 55%); filter: blur(34px); opacity: .9; animation: hvbreath 9s ease-in-out infinite; }
@keyframes hvbreath { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-52%) scale(1.06); } }

.hb { position: relative; max-width: 84%; padding: .55rem .7rem .4rem; border-radius: 16px; font-size: .78rem; line-height: 1.35; color: var(--ink); box-shadow: 0 1px 2px rgba(22,33,30,0.08); }
.hb p { margin: 0; }
.hb time { display: block; margin-top: .15rem; text-align: right; font-size: .56rem; color: var(--ink-3); }
.hb--in { align-self: flex-end; background: #D9F1E8; border-bottom-right-radius: 5px; }
.hb--out { align-self: flex-start; background: #fff; border-bottom-left-radius: 5px; }
.hb--ok { box-shadow: 0 0 0 1.5px rgba(var(--teal-rgb),0.28), 0 6px 16px -8px rgba(var(--teal-rgb),0.45); }
.ok-tag { display: inline-flex; align-items: center; gap: .3rem; margin-top: .4rem; padding: .22rem .55rem; border-radius: 999px; background: rgba(var(--teal-rgb),0.1); color: var(--teal); font-family: var(--mono); font-size: .56rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.ok-tag svg { width: 10px; height: 10px; }
.hb--typing { align-self: flex-start; display: flex; gap: 4px; padding: .7rem .8rem; background: #fff; border-bottom-left-radius: 5px; }
.hb--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: typing 1.1s infinite; }
.hb--typing i:nth-child(2) { animation-delay: .15s; } .hb--typing i:nth-child(3) { animation-delay: .3s; }

/* reproducción: oculto todo y lo muestro en secuencia (sin JS o con movimiento reducido queda completo) */
.hv.play .hb:not(.hb--typing) { display: none; }
.hv.play .hb.show { display: block; animation: hbin .45s var(--ease-out) both; }
.hv.play .hb--in.show, .hv.play .hb--out.show { display: block; }
@keyframes hbin { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

.hv-card { position: absolute; z-index: 3; border-radius: 20px; background: rgba(255,255,255,0.82); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.9), 0 30px 50px -24px rgba(6,30,26,0.38), 0 0 0 1px var(--hair); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .hv-card, .hv-pill { -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); } }
.hv-agenda { left: 0; bottom: 9%; width: 214px; padding: .95rem 1rem .85rem; transform: rotate(1.6deg); animation: hvfloat 8s ease-in-out infinite; }
@keyframes hvfloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.hva-hd { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.hva-hd b { font-family: var(--display); font-weight: 500; font-size: 1.05rem; color: var(--ink); }
.hva-hd span { font-family: var(--mono); font-size: .56rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.hv-agenda ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .32rem; }
.hv-agenda li { display: grid; grid-template-columns: 2.6rem 1fr auto; align-items: center; gap: .4rem; padding: .38rem .55rem; border-radius: 10px; background: rgba(22,33,30,0.04); font-size: .72rem; color: var(--ink); }
.hv-agenda li time { font-family: var(--mono); font-size: .62rem; color: var(--ink-3); }
.hv-agenda li em { font-style: normal; font-size: .6rem; color: var(--ink-3); }
.hv-agenda li i { display: none; }
.hva-new { background: rgba(var(--coral-rgb),0.12) !important; box-shadow: inset 0 0 0 1px rgba(var(--coral-rgb),0.35); }
.hva-new i { display: inline-block !important; grid-column: 3; font-style: normal; font-family: var(--mono); font-size: .5rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--coral); padding: .12rem .4rem; border-radius: 999px; }
.hva-new em { display: none; }
.hva-ft { margin-top: .6rem; font-size: .66rem; color: var(--ink-2); }
.hva-live { color: var(--coral); font-weight: 600; }
.hv.play .hva-new { display: none; }
.hv.play.confirmed .hva-new { display: grid; animation: hbin .6s var(--ease-out) both; }
.hv.play .hva-count { display: inline-block; }

.hv-pill { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: .55rem; padding: .6rem .95rem; border-radius: 999px; background: rgba(255,255,255,0.8); box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 0 0 1px var(--hair), 0 18px 32px -18px rgba(6,30,26,0.35); font-size: .76rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.hv-pill--a { left: -6%; top: 14%; animation: hvfloat 7s ease-in-out -2s infinite; }
.hv-pill--b { right: 0; top: 34%; animation: hvfloat 9s ease-in-out -4s infinite; }
.hv-pill--b b { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.08rem; color: var(--coral); letter-spacing: -0.02em; }
.hv-note { position: absolute; z-index: 4; bottom: 0; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }

@media (max-width: 1100px) { .hv-agenda { left: -4%; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hv { min-height: 660px; margin-top: 1rem; }
  .hv-agenda { left: 0; }
  .hv-pill--b { right: 2%; }
}
@media (max-width: 560px) {
  .hv { min-height: 640px; }
  .phone { width: 268px; }
  .hv-agenda { left: -2%; bottom: 4%; width: 208px; padding: .8rem .85rem .7rem; }
  .hv-pill--a { left: 0; top: 7%; }
  .hv-pill--b { right: 0; top: 30%; font-size: .7rem; }
  .hero-proof dd { max-width: 9rem; }
}
@media (prefers-reduced-motion: reduce) { .hv-glow, .hv-agenda, .hv-pill { animation: none; } }

.hero { padding-top: 92px; padding-bottom: clamp(2rem, 4vw, 3rem); }
.hero-eyebrow { margin-bottom: 1.2rem; }
.hero-sub { margin-top: 1.4rem; }
.hero-cta { margin-top: 1.8rem; }
.hero-proof { margin-top: 1.7rem; padding-top: 1.3rem; }
@media (max-width: 560px) { .phone { width: 252px; } .hv { min-height: 600px; } }

.hva-c3 { display: none; }
.hv.play .hva-c3 { display: inline; }
.hv.play .hva-c4 { display: none; }
.hv.play.confirmed .hva-c3 { display: none; }
.hv.play.confirmed .hva-c4 { display: inline; }
.hero-proof { gap: 1rem 1.6rem; }
.hero-proof dt { font-size: clamp(1.8rem, 2.6vw, 2.2rem); }
.hero-proof dd { max-width: 9rem; }
@media (max-width: 900px) { .hv-pill--a { left: 2%; } }
.hv-pill--a { left: -10%; }
@media (max-width: 900px) { .hv-pill--a { left: 0; top: 4%; } }
@media (max-width: 560px) {
  .hv { min-height: 690px; place-items: start center; padding-top: 14px; }
  .hv-pill--a { display: none; }
  .hv-pill--b { top: 22%; }
  .hv-agenda { bottom: 34px; left: 3%; }
}

/* ═══ DISPOSITIVO v2 (recto, proporciones de iPhone) ═══ */
.phone { position: relative; z-index: 2; width: 276px; aspect-ratio: 9 / 18.6; padding: 10px; border-radius: 54px; transform: none;
  background: linear-gradient(145deg, #55645f 0%, #1a2623 22%, #0c1513 55%, #2d3b37 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset, 0 0 0 3px rgba(0,0,0,0.5) inset, 0 60px 100px -34px rgba(6,30,26,0.6), 0 24px 44px -20px rgba(6,30,26,0.42); }
.phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(120deg, rgba(255,255,255,0.22), transparent 22%, transparent 78%, rgba(255,255,255,0.1)); mix-blend-mode: overlay; }
.phone-btn { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(180deg, #3a4944, #17211e); }
.phone-btn--a { left: -2.5px; top: 17%; height: 22px; } .phone-btn--b { left: -2.5px; top: 25%; height: 40px; } .phone-btn--c { left: -2.5px; top: 33.5%; height: 40px; }
.phone-btn--p { right: -2.5px; top: 28%; height: 62px; }
.phone-screen { position: relative; height: 100%; border-radius: 44px; overflow: hidden; display: flex; flex-direction: column; background: #EFE8DC;
  background-image: radial-gradient(rgba(var(--teal-rgb),0.06) 1px, transparent 1.2px); background-size: 14px 14px; box-shadow: 0 0 0 2px #000; isolation: isolate; }
.phone-island { position: absolute; z-index: 6; top: 10px; left: 50%; width: 86px; height: 25px; transform: translateX(-50%); border-radius: 20px; background: #000; }
.ph-status { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 6px 24px 0 28px; background: #fff; color: #111; }
.ph-status b { font-family: var(--sans); font-weight: 700; font-size: .78rem; letter-spacing: -0.01em; }
.ph-sys { display: inline-flex; align-items: center; gap: 5px; }
.ph-sys svg:nth-child(1) { width: 15px; } .ph-sys svg:nth-child(2) { width: 14px; } .ph-sys svg:nth-child(3) { width: 22px; }
.chat-hd { position: relative; z-index: 4; display: flex; align-items: center; gap: .5rem; padding: .35rem .8rem .65rem .5rem; background: #fff; box-shadow: 0 1px 0 rgba(22,33,30,0.08), 0 8px 18px -14px rgba(22,33,30,0.35); }
.chat-back { width: 20px; height: 20px; color: var(--teal); flex: none; }
.chat-av { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(140deg, var(--teal-2), var(--teal)); color: #fff; }
.chat-av svg { width: 15px; height: 15px; }
.chat-id { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.chat-id b { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--sans); font-weight: 700; font-size: .82rem; color: var(--ink); }
.chat-id b svg { width: 13px; height: 13px; }
.chat-id small { display: inline-flex; align-items: center; gap: .35rem; font-size: .64rem; color: var(--ink-3); }
.chat-id small i { width: 6px; height: 6px; border-radius: 50%; background: #3DD68C; box-shadow: 0 0 0 3px rgba(61,214,140,0.2); }
.chat-body { position: relative; z-index: 1; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .45rem; padding: 0 .7rem .65rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent 0, #000 34px); mask-image: linear-gradient(transparent 0, #000 34px); }
.chat-ft { position: relative; z-index: 4; display: flex; align-items: center; gap: .55rem; margin: 0; padding: .5rem .7rem 1.35rem; background: rgba(255,255,255,0.92); box-shadow: 0 -1px 0 rgba(22,33,30,0.08); color: var(--teal); }
.chat-ft svg { width: 20px; height: 20px; flex: none; }
.chat-ft span { flex: 1; padding: .42rem .8rem; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(22,33,30,0.14); font-size: .72rem; color: var(--ink-3); }
.phone-home { position: absolute; z-index: 6; bottom: 7px; left: 50%; width: 96px; height: 4px; transform: translateX(-50%); border-radius: 4px; background: #111; }
.phone-sheen { position: absolute; z-index: 7; inset: 0; pointer-events: none; background: linear-gradient(112deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.05) 22%, transparent 38%); }
.hb { font-size: .76rem; }
.hv-agenda { transform: none; left: 0; bottom: 6%; width: 212px; }
.hv-agenda::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(140deg, rgba(255,255,255,0.7), transparent 45%); }
.hv-pill--a { left: -9%; top: 13%; }
@media (max-width: 1240px) { .hv-agenda { width: 196px; left: -2%; } .hv-pill--a { left: -2%; top: 8%; } }
@media (max-width: 900px) { .phone { width: 280px; } .hv-agenda { left: 4%; } }
@media (max-width: 560px) { .phone { width: 256px; } .hv-agenda { left: 2%; bottom: 30px; width: 196px; } }
.hv-agenda { left: 79%; bottom: 5%; width: 204px; }
.hv-pill--b { right: -6%; }
.phone-island { width: 78px; height: 23px; top: 11px; }
.ph-status { padding: 6px 22px 0 26px; }
.ph-sys svg:nth-child(1) { width: 13px; } .ph-sys svg:nth-child(2) { width: 13px; } .ph-sys svg:nth-child(3) { width: 20px; }
@media (max-width: 1240px) { .hv-agenda { left: -3%; width: 190px; } .hv-pill--b { right: -3%; } }
@media (max-width: 900px) { .hv-agenda { left: 6%; } .hv-pill--b { right: 4%; } }
@media (max-width: 560px) { .hv-agenda { left: 2%; width: 190px; } .hv-pill--b { right: 0; } }
.hv-agenda li span { white-space: nowrap; }
@media (max-width: 1240px) { .hv-pill { display: none; } .hv-agenda li em { display: none; } .hv-agenda li { grid-template-columns: 2.4rem 1fr auto; } }
@media (max-width: 560px) { .hv { min-height: 724px; } .hv-agenda { bottom: 8px; left: 50%; translate: -50% 0; animation: none; } }

/* nota ilustrativa dentro del contenedor + teléfono más ancho en móvil */
.hv { padding-bottom: 30px; }
.hv-note { bottom: 4px; max-width: 100%; text-align: center; white-space: normal; }
@media (max-width: 560px) {
  .phone { width: min(88vw, 340px); }
  .hv { min-height: 0; padding-bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 0; }
  .hv-agenda { position: relative; left: auto; bottom: auto; translate: none; width: min(88vw, 340px); margin-top: -40px; animation: none; }
  .hv-note { position: static; transform: none; margin-top: .9rem; }
}
/* tablet / laptop angosto: teléfono y agenda lado a lado en una fila (sin superponerse) */
@media (min-width: 561px) and (max-width: 1240px) {
  .hv { display: flex; flex-direction: row; align-items: flex-end; justify-content: center; gap: .9rem; }
  .hv-agenda { position: relative; left: auto; bottom: auto; translate: none; flex: none; width: 190px; margin: 0 0 8%; animation: none; }
}

/* iOS: espaciado de palabras y teléfono más compacto en alto */
.hb, .chat-id, .chat-ft span, .hv-agenda, .hv-pill, .btn, .nav-links a { word-spacing: .07em; }
.hb { letter-spacing: 0; }
@media (max-width: 560px) {
  .phone { width: min(86vw, 320px); aspect-ratio: 9 / 16.6; }
  .hv-agenda { width: min(86vw, 320px); }
}

.seal-ico--meta { background: rgba(0,100,225,0.07); }
.seal-ico--meta img { display: block; width: 22px; height: auto; }

/* chip del hero: mismo lenguaje que el encabezado del chat de Vita (avatar, nombre verificado, estado en línea) */
.hero-chip { display: inline-flex; align-items: center; gap: .65rem; margin: 0 0 1.4rem; padding: .4rem 1.1rem .4rem .4rem; border-radius: var(--pill); background: #fff; box-shadow: 0 1px 0 rgba(22,33,30,0.04), 0 10px 24px -12px rgba(10,123,110,0.38), inset 0 0 0 1px var(--hair); }
.hero-chip-av { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(140deg, var(--teal-2), var(--teal)); color: #fff; }
.hero-chip-av svg { width: 15px; height: 15px; }
.hero-chip-id { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.hero-chip-id b { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--sans); font-weight: 700; font-size: .84rem; color: var(--ink); }
.hero-chip-id b svg { width: 13px; height: 13px; flex: none; }
.hero-chip-id small { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; color: var(--ink-3); }
.hero-chip-id small i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #3DD68C; box-shadow: 0 0 0 3px rgba(61,214,140,0.2); animation: hvchipdot 2.4s ease-out infinite; }
@keyframes hvchipdot { 70% { box-shadow: 0 0 0 7px rgba(61,214,140,0); } 100% { box-shadow: 0 0 0 0 rgba(61,214,140,0); } }
@media (max-width: 560px) { .hero-chip-id small { font-size: .66rem; } }
@media (prefers-reduced-motion: reduce) { .hero-chip-id small i { animation: none; } }

/* conoce a vita: tarjeta de perfil + cuatro rasgos */
.d4 { transition-delay: .32s; }
.meet { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.meet-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2.4rem 1.6rem 2rem; border-radius: 28px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair), 0 24px 48px -28px rgba(10,123,110,0.45); overflow: hidden; }
.meet-card::before { content: ""; position: absolute; inset: -40% -20% auto; height: 70%; background: radial-gradient(closest-side, rgba(var(--teal-rgb),0.16), transparent); pointer-events: none; }
.meet-av { position: relative; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: linear-gradient(140deg, var(--teal-2), var(--teal)); color: #fff; box-shadow: 0 0 0 8px rgba(var(--teal-rgb),0.10), 0 14px 28px -10px rgba(10,123,110,0.55); }
.meet-av svg { width: 42px; height: 42px; }
.meet-name { position: relative; display: inline-flex; align-items: center; gap: .4rem; margin: 1.3rem 0 0; font-family: var(--display); font-style: italic; font-weight: 400; font-size: 2.2rem; line-height: 1; color: var(--ink); }
.meet-name svg { width: 22px; height: 22px; }
.meet-role { position: relative; display: inline-flex; align-items: center; gap: .45rem; margin: .7rem 0 0; font-size: .82rem; color: var(--ink-3); }
.meet-role i { width: 7px; height: 7px; border-radius: 50%; background: #3DD68C; box-shadow: 0 0 0 3px rgba(61,214,140,0.2); animation: hvchipdot 2.4s ease-out infinite; }
.meet-tags { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.meet-tags li { padding: .32rem .7rem; border-radius: 999px; background: rgba(var(--teal-rgb),0.08); font-size: .72rem; font-weight: 600; color: var(--teal); }
.meet-body .section-head { margin-bottom: clamp(1.4rem, 3vw, 2rem); }
.meet-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.6rem; margin: 0; padding: 0; list-style: none; }
.meet-list li { display: flex; flex-direction: column; gap: .3rem; padding-top: 1rem; border-top: 1px solid var(--hair-2); }
.meet-list b { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.35rem; color: var(--teal); }
.meet-list span { font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 900px) { .meet { grid-template-columns: 1fr; } .meet-card { max-width: 380px; width: 100%; margin-inline: auto; } }
@media (max-width: 560px) { .meet-list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .meet-role i { animation: none; } }

/* ritmo vertical unificado: una sola medida entre secciones (antes 128px + 128px = 256px entre dos secciones, y 78px entre franjas) */
:root { --sec-y: clamp(3.5rem, 7vw, 6rem); }
.section { padding-block: var(--sec-y); }
.section + .section, .section + style + .section { padding-top: 0; }
#inicio + .section, .page-hero + .section, .page-hero + style + .section { padding-top: calc(var(--sec-y) * .6); }
.clients + .section, .seals + .section { padding-top: calc(var(--sec-y) * .6); }
.section:has(+ .clients), .section:has(+ .seals) { padding-bottom: calc(var(--sec-y) * .6); }
.section:has(+ .cta) { padding-bottom: 0; }
.page-hero { padding-bottom: calc(var(--sec-y) * .4); }

/* números de capítulo: su alcance por encima del título no debe superar el espacio entre secciones (--sec-y) */
.section-head::before { font-size: clamp(3.5rem, 7vw, 6rem); top: -0.8em; }
.section-head.center::before { position: static; display: block; transform: none; margin: 0 auto .12em; padding: 0 .2em; font-size: clamp(3.25rem, 6vw, 5rem); line-height: 1; text-align: center; }
@media (max-width: 640px) { .section-head::before { font-size: 3rem; top: -0.8em; } .section-head.center::before { font-size: 3rem; top: auto; } }

/* las bandas (fondo propio) y lo que viene tras ellas conservan su espacio completo: el borde de la banda queda a media distancia */
.section.section--band, .section--band + .section, .section--band + style + .section { padding-top: var(--sec-y); }

/* footer: más aire, columnas con menos enlaces y cabecera con la llamada a la acción */
.foot { padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem; background: rgba(22,33,30,0.025); }
.foot-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 3rem clamp(2rem, 4vw, 3.5rem); align-items: start; }
.foot-grid:has(> .foot-col:nth-child(5)) { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr); }
.foot-lead { max-width: 32ch; line-height: 1.6; margin: 0 0 1.5rem; }
.foot-cta { padding: .7rem 1.3rem; font-size: .9rem; }
.foot-status { display: flex; width: max-content; margin-top: 1.4rem; }
.foot h4 { margin-bottom: 1.25rem; }
.foot-col a { padding: .45rem 0; line-height: 1.4; overflow-wrap: anywhere; }
.foot-bottom { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.75rem; gap: .6rem 2rem; line-height: 1.5; }
@media (max-width: 1000px) { .foot-grid, .foot-grid:has(> .foot-col:nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand-col { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot-grid { gap: 2.25rem 1.5rem; } .foot-bottom { flex-direction: column; } }

/* hero móvil: la altura del bloque no debe cambiar mientras corre la animación (evita saltos de layout).
   1) el teléfono respeta su aspect-ratio aunque los mensajes ocupen más que la pantalla (el chat ya recorta arriba);
   2) la fila de la cita nueva reserva su espacio desde el inicio y solo se revela al confirmar. */
.phone { min-height: 0; }
.hv.play .hva-new { display: grid; visibility: hidden; animation: none; }
.hv.play.confirmed .hva-new { visibility: visible; animation: hbin .6s var(--ease-out) both; }
