/* Pipol · Landings para el sector médico
   Versión clara de la identidad Pipol: blanco y gris muy claro, navy para el texto,
   cian, violeta y naranja del cubo como acentos. Pensada para tráfico de anuncios:
   rápida, sin distracciones y con un solo destino, el calendario. */

:root {
  --ink: #13243D;
  --body: #3B4A63;
  --muted: #64748B;
  --line: #E3EAF3;
  --bg: #FFFFFF;
  --bg-soft: #F5F8FC;
  --mint: #E7F8F0;
  --cyan: #00BED8;
  --cyan-ink: #087A90;
  --violet: #6667F0;
  --orange: #FF7A00;
  --orange-d: #EE5A00;
  --coral: #F07040;
  --green: #10B981;
  --radius: 20px;
  --gutter: clamp(18px, 4.5vw, 40px);
  --shadow: 0 1px 2px rgba(19, 36, 61, .04), 0 14px 36px -14px rgba(19, 36, 61, .14);
  --shadow-lg: 0 2px 6px rgba(19, 36, 61, .05), 0 30px 70px -24px rgba(19, 36, 61, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --mbar: 0px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--bg);
  color: var(--body);
  font: 400 1.0625rem/1.65 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-bottom: var(--mbar);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(0, 190, 216, .55); outline-offset: 3px; border-radius: 6px; }
.ico { width: 1em; height: 1em; flex: none; }

h1, h2, h3 { color: var(--ink); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 3.7vw, 3.25rem); letter-spacing: -.04em; line-height: 1.06; }
h1.h1--long { font-size: clamp(1.75rem, 2.75vw, 2.625rem); line-height: 1.12; letter-spacing: -.035em; }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.125rem; letter-spacing: -.015em; line-height: 1.3; }
em { font-style: normal; }
.hl { background: linear-gradient(100deg, #00A9C4 10%, var(--violet) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.0625rem, 1.35vw, 1.1875rem); line-height: 1.6; color: var(--body); }
.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { width: min(820px, 100%); }
.center { text-align: center; }

/* ---------- Logo (versión para fondo claro) ---------- */
.logo { display: inline-flex; align-items: baseline; color: var(--ink); font-weight: 800; font-size: 1.75rem; letter-spacing: -.05em; line-height: 1; text-decoration: none; }
.logo svg { width: .66em; height: .66em; margin: 0 -.01em 0 .01em; align-self: center; transform: translateY(.1em); }

/* ---------- Encabezado: solo logo y una acción ---------- */
.hdr { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hdr.scrolled { border-bottom-color: var(--line); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.hdr nav { display: none; gap: 28px; font-size: .9375rem; font-weight: 500; color: var(--body); }
.hdr .btn { display: none; }
.hdr nav a { text-decoration: none; }
.hdr nav a:hover { color: var(--ink); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 26px;
  border: 0; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, var(--orange), var(--orange-d));
  color: #fff; font-weight: 700; font-size: 1.0625rem; letter-spacing: -.01em; line-height: 1.2; text-decoration: none; text-align: center;
  box-shadow: 0 10px 26px -10px rgba(238, 90, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .2s var(--ease), box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(238, 90, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .25); filter: saturate(1.08); }
.btn .ico { font-size: 1.2em; }
.btn--sm { min-height: 44px; padding: 10px 16px; font-size: .9375rem; border-radius: 12px; }
.btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.btn--ghost:hover { box-shadow: var(--shadow-lg); filter: none; }
.btn--block { width: 100%; }
.btn--wa { background: #1FAF55; box-shadow: 0 10px 26px -10px rgba(31, 175, 85, .6); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 190, 216, .1); color: var(--cyan-ink); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

/* ---------- Fondo suave del hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 88% 18%, rgba(0, 190, 216, .14), transparent 70%),
    radial-gradient(34% 44% at 72% 82%, rgba(102, 103, 240, .1), transparent 70%),
    radial-gradient(30% 40% at 6% 12%, rgba(231, 248, 240, .95), transparent 70%),
    linear-gradient(180deg, #F7FAFD, #FFFFFF 75%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(19, 36, 61, .09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 60% at 75% 40%, #000, transparent 75%);
  mask-image: radial-gradient(60% 60% at 75% 40%, #000, transparent 75%);
}
.hero__grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
.hero__copy .lead { margin: 20px 0 28px; max-width: 600px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.assure { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: .875rem; color: var(--muted); }
.assure li { display: inline-flex; align-items: center; gap: 7px; }
.assure .ico { color: var(--green); font-size: 1.05rem; }
.aud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.aud li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .875rem; font-weight: 600; color: var(--ink); }
.aud .ico { color: var(--cyan-ink); font-size: 1.1rem; }
.proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; max-width: 560px; }
.proof div { padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.proof b { display: block; color: var(--ink); font-size: 1.375rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.proof span { font-size: .8125rem; line-height: 1.4; color: var(--muted); }

/* ---------- Demostración del sistema (hero) ---------- */
.demo { position: relative; width: 100%; max-width: 640px; margin: 0 auto; aspect-ratio: 560 / 500; container-type: inline-size; perspective: 1400px; }
.demo__stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(8deg) rotateY(-12deg) rotateZ(1deg); transition: transform .6s var(--ease); }
.demo:hover .demo__stage { transform: rotateX(4deg) rotateY(-6deg); }
.demo__wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.demo__wire path { fill: none; stroke: rgba(0, 190, 216, .55); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.dcard { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 3.4cqw; box-shadow: var(--shadow-lg); font-size: 2.45cqw; line-height: 1.35; color: var(--body); overflow: hidden; }
.dcard__bar { display: flex; align-items: center; gap: 1.4cqw; padding: 2cqw 2.4cqw; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.dcard__bar .tag { margin-left: auto; padding: .4cqw 1.4cqw; border-radius: 99px; background: var(--mint); color: #0B7A55; font-size: .82em; font-weight: 700; }
.dcard .mini { width: 3.6cqw; height: 3.6cqw; border-radius: 1cqw; display: grid; place-items: center; color: #fff; font-size: 2.2cqw; }

.dcard--ad { left: 0; top: 3%; width: 37%; transform: translateZ(30px); }
.ad__img { position: relative; height: 15cqw; margin: 2.2cqw 2.2cqw 0; border-radius: 2cqw; background: linear-gradient(135deg, #DDF6FB, #E9E9FF 60%, #FFE9DC); overflow: hidden; }
.ad__img svg { position: absolute; color: #fff; }
.ad__img .p1 { width: 10cqw; height: 10cqw; left: 50%; bottom: -1cqw; transform: translateX(-50%); color: #fff; filter: drop-shadow(0 2px 6px rgba(19, 36, 61, .15)); }
.ad__img .cross { width: 5cqw; height: 5cqw; right: 2cqw; top: 2cqw; color: var(--cyan); }
.ad__body { padding: 2cqw 2.4cqw 2.6cqw; }
.ad__body b { display: block; color: var(--ink); font-size: 1.08em; letter-spacing: -.01em; }
.ad__line { height: 1.2cqw; margin-top: 1.2cqw; border-radius: 1cqw; background: var(--line); }
.ad__cta { margin-top: 2cqw; padding: 1.4cqw; border-radius: 1.6cqw; background: linear-gradient(135deg, var(--orange), var(--orange-d)); color: #fff; font-weight: 700; text-align: center; }

.dcard--crm { left: 33%; top: 27%; width: 46%; transform: translateZ(60px); }
.crm__rows { position: relative; height: 31cqw; padding: 1.4cqw 2cqw; overflow: hidden; }
.crm__row { position: absolute; left: 2cqw; right: 2cqw; display: flex; align-items: center; gap: 1.6cqw; height: 6.6cqw; padding: 0 1.6cqw; border-radius: 1.6cqw; background: var(--bg-soft); transition: transform .7s var(--ease), opacity .5s; }
.crm__row i { width: 4cqw; height: 4cqw; flex: none; border-radius: 50%; display: grid; place-items: center; background: #E3EAF3; color: #94A3B8; }
.crm__row i svg { width: 3cqw; height: 3cqw; }
.crm__row span { flex: 1; min-width: 0; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm__row em { flex: none; padding: .3cqw 1.2cqw; border-radius: 99px; font-size: .8em; font-weight: 700; }
.st-new { background: #E8F7FB; color: var(--cyan-ink); }
.st-ai { background: #EEEEFF; color: #4A4BD6; }
.st-fu { background: #FFF1E6; color: #B54A00; }
.st-ok { background: var(--mint); color: #0B7A55; }

.dcard--cal { right: 0; bottom: 0; width: 47%; transform: translateZ(90px); }
.cal__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1cqw; padding: 1.8cqw 2.2cqw 2.4cqw; }
.cal__grid small { text-align: center; font-size: .78em; font-weight: 700; color: var(--muted); }
.slot { height: 4.4cqw; border-radius: 1cqw; background: var(--bg-soft); border: 1px dashed #D6E0EC; transition: background .4s, border-color .4s, transform .4s var(--ease); }
.slot.on { background: linear-gradient(135deg, #18C7DF, #0AA6C0); border: 1px solid transparent; transform: scale(1.04); box-shadow: 0 4px 10px -4px rgba(0, 190, 216, .7); }
.slot.on::after { content: ''; display: block; width: 100%; height: 100%; background: no-repeat center / 2.6cqw url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E"); }

.demo__people { position: absolute; inset: 0; pointer-events: none; transform: translateZ(120px); }
.demo__people svg { position: absolute; width: 5.2cqw; height: 5.2cqw; margin: -2.6cqw 0 0 -2.6cqw; color: #94A3B8; filter: drop-shadow(0 3px 6px rgba(19, 36, 61, .25)); transition: color .4s; }
.demo__people svg.ok { color: var(--cyan); }
.demo__note { position: absolute; left: 0; bottom: -2px; font-size: max(11px, 2.1cqw); color: var(--muted); }
.demo__note::before { content: '● '; color: var(--cyan); }

/* ---------- Secciones ---------- */
.sec { padding: clamp(64px, 9vw, 112px) 0; }
.sec--soft { background: var(--bg-soft); }
.sec__head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.sec__head .lead { margin-top: 16px; }
.sec__cta { margin-top: clamp(32px, 5vw, 48px); text-align: center; }
.kicker { margin-top: clamp(28px, 4vw, 40px); text-align: center; color: var(--ink); font-size: clamp(1.125rem, 1.8vw, 1.375rem); font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }

.card { position: relative; padding: 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin: 14px 0 6px; }
.card p { font-size: .9688rem; line-height: 1.6; }
.tile { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 13px; font-size: 1.4rem; }
.t-cyan { background: #E6F8FB; color: var(--cyan-ink); }
.t-violet { background: #EEEEFF; color: #4A4BD6; }
.t-orange { background: #FFF1E6; color: #C25200; }
.t-green { background: var(--mint); color: #0B7A55; }
.t-coral { background: #FFEDE6; color: #C2461C; }
.t-navy { background: #E8EDF5; color: var(--ink); }

.grid3 { display: grid; gap: 16px; }
.grid2 { display: grid; gap: 16px; }

/* Sistema conectado: el cubo al centro de los módulos */
.system { position: relative; }
.system__hub { display: none; }

/* Indicadores */
.stats { display: grid; gap: 14px; }
.stat { padding: 26px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat b { display: block; color: var(--ink); font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat b small { font-size: .5em; letter-spacing: -.02em; }
.stat h3 { margin: 12px 0 6px; font-size: 1rem; }
.stat p { font-size: .9375rem; }

/* Lista con palomitas */
.checks li { position: relative; padding: 10px 0 10px 36px; line-height: 1.55; }
.checks li::before { content: ''; position: absolute; left: 0; top: 11px; width: 24px; height: 24px; border-radius: 50%; background: var(--mint) no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B7A55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E"); }

/* Quién es Pipol / diferenciador */
.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split .lead + .lead { margin-top: 14px; }
.principles { display: grid; gap: 12px; margin-top: 26px; }
.principle { display: flex; gap: 14px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.principle h3 { font-size: 1rem; margin-bottom: 4px; }
.principle p { font-size: .9375rem; line-height: 1.55; }
.roles { display: flex; flex-wrap: wrap; gap: 10px; }
.roles li { display: inline-flex; align-items: center; gap: 9px; padding: 11px 15px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 600; color: var(--ink); font-size: .9375rem; }
.roles .ico { color: var(--cyan-ink); font-size: 1.15rem; }
.cube-art { position: relative; aspect-ratio: 1; max-width: 420px; margin: 0 auto; width: 100%; }
/* Cubo Pipol en 3D: cada cara es un módulo del sistema */
.cube-scene { position: relative; display: grid; place-items: center; min-height: 380px; perspective: 1100px; }
.cube-scene::before { content: ''; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 190, 216, .18), rgba(102, 103, 240, .08) 60%, transparent); }
.cube-scene::after { content: ''; position: absolute; bottom: 10%; width: 46%; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(19, 36, 61, .16), transparent); }
.cube-scene { cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.cube-scene.dragging { cursor: grabbing; }
/* El giro lo controla med.js (automático, arrastrable y con impulso). */
.cube { --s: clamp(150px, 22vw, 210px); position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(38deg); will-change: transform; }
.cube__f { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 14px; border-radius: 22px; color: #fff; font-weight: 800; font-size: clamp(.8125rem, 1.4vw, 1rem); letter-spacing: -.01em; text-align: center; line-height: 1.2; backface-visibility: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), inset 0 -18px 40px rgba(0, 0, 0, .08); }
.cube__f .ico { font-size: 2em; }
.f1 { background: linear-gradient(140deg, #22CFE6, #00A9C4); transform: translateZ(calc(var(--s) / 2)); }
.f2 { background: linear-gradient(140deg, #7B7CF5, #5354DE); transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.f3 { background: linear-gradient(140deg, #FF9248, #F06A2E); transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.f4 { background: linear-gradient(140deg, #22CFE6, #0A9DB8); transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.f5 { background: linear-gradient(140deg, #7B7CF5, #4C4DD2); transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.f6 { background: linear-gradient(140deg, #FF9248, #E8601F); transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }

.note-legal { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--mint); color: #0F5B43; font-size: .875rem; line-height: 1.5; }

/* Problemas (B) */
.pain { display: flex; gap: 14px; align-items: flex-start; }
.pain p { color: var(--ink); font-weight: 600; line-height: 1.45; }

/* Recorrido del paciente (B) */
.journey { position: relative; display: grid; gap: 12px; }
.journey__track { display: none; }
.jstep { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: border-color .4s, box-shadow .4s, transform .4s var(--ease); }
.jstep .tile { transition: background .4s, color .4s; }
.jstep small { display: block; margin-bottom: 2px; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
.jstep h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.jstep p { font-size: .9375rem; line-height: 1.5; }
.jstep.on { border-color: rgba(0, 190, 216, .55); box-shadow: 0 12px 30px -16px rgba(0, 190, 216, .55); }
.jstep.on .tile { background: linear-gradient(135deg, #18C7DF, #0AA6C0); color: #fff; }

/* Beneficios (B) */
.benefits { display: grid; gap: 12px; }
.benefit { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700; line-height: 1.35; }

/* Videollamada (B) */
.laptop { position: relative; width: 100%; max-width: 520px; margin: 0 auto; }
.laptop__screen { position: relative; aspect-ratio: 16 / 10; padding: 3.2%; border-radius: 18px 18px 6px 6px; background: #1A2333; box-shadow: var(--shadow-lg); }
.laptop__view { position: relative; height: 100%; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, #EAF6FA, #F2F0FF); }
.laptop__base { height: 14px; margin: 0 -6%; border-radius: 0 0 16px 16px; background: linear-gradient(180deg, #D6DEE8, #B9C4D3); }
.vc__main { position: absolute; inset: 0; display: grid; place-items: center; }
.vc__main svg { width: 38%; height: auto; color: #8FA3BC; }
.vc__pip { position: absolute; right: 4%; top: 6%; width: 26%; aspect-ratio: 4 / 3; border-radius: 8px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
.vc__pip svg { width: 52%; color: var(--cyan); }
.vc__logo { position: absolute; left: 4%; top: 6%; font-size: clamp(12px, 2.6vw, 18px); }
.vc__ctrl { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); display: flex; gap: 8px; }
.vc__ctrl i { width: 30px; height: 30px; border-radius: 50%; background: rgba(19, 36, 61, .75); }
.vc__ctrl i:last-child { background: #EF4444; }
.vc__live { position: absolute; left: 4%; bottom: 7%; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .9); font-size: .75rem; font-weight: 700; color: var(--ink); }
.vc__live::before { content: '●'; color: #EF4444; margin-right: 6px; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--muted); font-size: .9375rem; font-weight: 600; }
.meta span { display: inline-flex; align-items: center; gap: 7px; }
.meta .ico { color: var(--cyan-ink); }

/* ---------- Agenda: el calendario real ---------- */
.agenda { position: relative; padding: clamp(64px, 9vw, 112px) 0; overflow: hidden; }
.agenda::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40% 60% at 10% 20%, rgba(0, 190, 216, .16), transparent 70%),
    radial-gradient(40% 60% at 95% 90%, rgba(102, 103, 240, .14), transparent 70%),
    linear-gradient(180deg, #F3F8FC, #EEF6FA);
}
.agenda__grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
.agenda__copy .lead { margin: 16px 0 22px; }
.cal-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; }
.cal-card__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cal-card__head b { color: var(--ink); }
.cal-card__head div > span { display: block; font-size: .8125rem; color: var(--muted); }
.cal-card__head .tile { flex: none; }
.cal-frame { position: relative; min-height: 900px; }
.cal-frame iframe { display: block; width: 100%; height: 900px; border: 0; transition: height .3s var(--ease); }
.cal-loading { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); font-size: .9375rem; }
.cal-loading i { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--cyan); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cal-alt { padding: 12px 20px 18px; text-align: center; font-size: .875rem; color: var(--muted); }
.cal-alt a { color: var(--cyan-ink); font-weight: 600; }
.alt-wa { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; color: #128C48; font-weight: 700; text-decoration: none; }
.alt-wa .ico { font-size: 1.2rem; }

/* ---------- Preguntas ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { border-color: rgba(0, 190, 216, .5); box-shadow: var(--shadow); }
.faq summary { position: relative; display: flex; align-items: center; min-height: 62px; padding: 14px 34px 14px 0; color: var(--ink); font-weight: 700; line-height: 1.35; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 0; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--bg-soft) no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313243D' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: 18px; font-size: .9688rem; }

/* ---------- Pie ---------- */
.foot { padding: 32px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
.foot .wrap { display: grid; gap: 12px; }
.foot a { color: var(--body); }
.foot__legal { max-width: 760px; line-height: 1.55; }

/* ---------- Barra fija en el celular ---------- */
.mbar { position: fixed; inset: auto 0 0; z-index: 40; display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease); }
.mbar .btn { flex: 1; min-height: 50px; }
.mbar .wa { display: grid; place-items: center; width: 50px; flex: none; border-radius: 14px; background: #1FAF55; color: #fff; }
.mbar .wa .ico { font-size: 1.6rem; }
.show-mbar .mbar { transform: none; }

/* ---------- Entradas al hacer scroll ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Tableta y ordenador ---------- */
@media (min-width: 640px) {
  .grid3, .grid2, .benefits, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  :root { --mbar: 0px; }
  .mbar { display: none; }
  .hdr nav, .hdr .btn { display: flex; }
  .cal-frame:not(.fit), .cal-frame:not(.fit) iframe { min-height: 760px; height: 760px; }
  .agenda__copy { align-self: start; }
  .hero__grid { grid-template-columns: 1.08fr 1fr; }
  .grid3, .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .benefits { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .benefit { flex-direction: column; align-items: flex-start; }
  .split { grid-template-columns: 1fr 1fr; }
  .split--rev > :first-child { order: 2; }
  .agenda__grid { grid-template-columns: .85fr 1.15fr; }
  .agenda__copy { position: sticky; top: 104px; }

  .journey { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; padding-top: 34px; }
  .journey__track { display: block; position: absolute; left: 4%; right: 4%; top: 10px; height: 4px; border-radius: 4px; background: var(--line); }
  .journey__track span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
  .journey__track svg { position: absolute; top: 50%; width: 30px; height: 30px; margin: -26px 0 0 -15px; color: var(--cyan); filter: drop-shadow(0 4px 8px rgba(0, 190, 216, .45)); }
  .jstep { flex-direction: column; }
}
@media (max-width: 979px) {
  body.has-mbar { --mbar: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; }
}
