/* ==========================================================
   R2LAB · Portal para creadores
   ========================================================== */
:root {
  --bg: #F7F5F1;
  --mint: #E2F5EE;
  --lavender: #E8E5F6;
  --cream: #FBEFD9;
  --pink: #FBE2E6;
  --coral: #F0476B;
  --teal: #2FC4A4;
  --text: #15151B;
  --muted: #6b6b75;
  --line: rgba(21, 21, 27, .08);
  --white: #fff;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pad: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--coral); }
img { display: block; }
::selection { background: var(--coral); color: var(--white); }

/* ---------- Fondo ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: var(--bg); }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); will-change: transform; }
.b-mint  { width: 70vmax; height: 70vmax; background: radial-gradient(circle at 40% 40%, #d3f2e6, var(--mint) 60%, transparent 72%); right: -32vmax; top: 6vh; }
.b-lav   { width: 34vmax; height: 34vmax; background: radial-gradient(circle, #dcd7f3, var(--lavender) 60%, transparent 72%); right: 8vw; top: -8vmax; }
.b-pink  { width: 46vmax; height: 46vmax; background: radial-gradient(circle, #f9d3da, var(--pink) 60%, transparent 72%); left: -26vmax; top: -14vmax; }
.b-cream { width: 50vmax; height: 50vmax; background: radial-gradient(circle, #f8e4bf, var(--cream) 60%, transparent 72%); left: -22vmax; bottom: -24vmax; }
.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .07; mix-blend-mode: multiply;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 12px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1120px; margin: 12px auto 0; padding: 8px 8px 8px 10px;
  width: calc(100% - 2 * var(--pad));
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .8);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(21, 21, 27, .06);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .5px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--white); }
.nav-links { display: none; gap: 4px; }
.nav-links a { font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: background .25s; }
.nav-links a:hover { background: rgba(21, 21, 27, .06); }
.live {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--coral); color: var(--white);
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  padding: 8px 16px; border-radius: 999px;
}
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--white); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.nav-right { display: flex; align-items: center; gap: 8px; }

/* Botón menú (celular) */
.menu-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--text); display: grid; place-items: center;
}
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--white); transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-open .menu-btn span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 21px; transform: rotate(-45deg); }

/* Panel del menú (celular) */
.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 28px;
  padding: 110px 24px 36px;
  background: rgba(247, 245, 241, .82);
  backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  visibility: hidden; opacity: 0;
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(34px, 10vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.25;
  padding: 6px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu nav a small { font-size: 12px; font-weight: 700; color: var(--coral); letter-spacing: 1px; min-width: 34px; }
.mobile-menu .mm-wa { width: 100%; }
.no-js .mobile-menu { display: none; }
html.scroll-lock { overflow: hidden; overscroll-behavior: none; }
.mobile-menu { overscroll-behavior: contain; touch-action: none; }
.menu-btn { touch-action: manipulation; }

/* ---------- Hero ---------- */
.hero {
  max-width: 1120px; margin: 0 auto;
  padding: 56px var(--pad) 40px;
  display: grid; gap: 64px; align-items: center;
}
.pill-dark {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--text); color: var(--white);
  font-size: 13px; font-weight: 600;
  padding: 6px 6px 6px 18px; border-radius: 999px;
}
.pill-dark b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: var(--text); font-size: 13px; }
h1 {
  font-size: clamp(42px, 12vw, 92px);
  font-weight: 800; line-height: .98; letter-spacing: -.035em;
  margin: 22px 0 18px;
}
.lead { font-size: 17px; color: var(--muted); max-width: 30ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* Split text (palabras) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; will-change: transform; }

/* Botones */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 15px;
  padding: 15px 26px; border-radius: 999px;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), color .3s;
  will-change: transform;
}
.btn span { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-dark { background: var(--text); color: var(--white); }
.btn-dark:hover { box-shadow: 0 12px 28px rgba(21, 21, 27, .25); }
.btn-ghost { background: rgba(255, 255, 255, .7); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--white); }
.btn-coral { background: var(--coral); color: var(--white); }
.btn-coral:hover { box-shadow: 0 12px 28px rgba(240, 71, 107, .35); }
.btn-teal { background: var(--teal); color: var(--text); }
.btn-teal:hover { box-shadow: 0 12px 28px rgba(47, 196, 164, .35); }

/* Teléfono */
.hero-visual { position: relative; display: grid; place-items: center; padding: 10px 0 30px; perspective: 1200px; }
.phone {
  position: relative; width: min(270px, 72vw); aspect-ratio: 9 / 18.5;
  border-radius: 44px; padding: 10px;
  background: linear-gradient(145deg, #2a2a33, #0e0e12);
  box-shadow: 0 40px 80px -20px rgba(21, 21, 27, .45), inset 0 0 0 2px rgba(255, 255, 255, .06);
  transform-style: preserve-3d; will-change: transform;
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; translate: -50% 0; width: 80px; height: 22px; border-radius: 20px; background: #0e0e12; z-index: 3; }
.phone-screen {
  position: relative; height: 100%; border-radius: 34px; overflow: hidden;
  background:
    radial-gradient(120% 60% at 20% 10%, #fde3e8 0%, transparent 60%),
    radial-gradient(100% 60% at 90% 40%, #dff5ec 0%, transparent 60%),
    radial-gradient(100% 70% at 30% 100%, #e6e1f7 0%, transparent 60%),
    #f7f2ee;
}
.ph-top { position: absolute; top: 48px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.ph-user { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .75); border-radius: 999px; padding: 4px 12px 4px 4px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ph-user img { width: 30px; height: 30px; border-radius: 50%; }
.ph-user b { display: block; font-size: 11px; line-height: 1.1; }
.ph-user small { font-size: 10px; color: var(--muted); }
.ph-live { background: var(--coral); color: var(--white); font-size: 10px; font-weight: 700; letter-spacing: 1px; padding: 4px 10px; border-radius: 6px; }
.ph-stage { position: absolute; inset: 0 0 18% 0; display: grid; place-items: center; }
.ring { position: absolute; border-radius: 50%; border: 2px solid rgba(47, 196, 164, .35); }
.r1 { width: 110px; height: 110px; background: rgba(47, 196, 164, .12); }
.ph-avatar { position: relative; width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 10px 24px rgba(21, 21, 27, .15); }
.r2 { width: 150px; height: 150px; }
.r3 { width: 210px; height: 210px; border-color: rgba(240, 71, 107, .25); }
.ph-chat { position: absolute; left: 12px; right: 56px; bottom: 18px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.msg { font-size: 11px; line-height: 1.35; background: rgba(21, 21, 27, .72); color: var(--white); padding: 7px 11px; border-radius: 14px; width: fit-content; max-width: 100%; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.msg b { color: #9ef0dc; font-weight: 600; margin-right: 4px; }
.hearts { position: absolute; right: 14px; bottom: 24px; width: 40px; height: 1px; z-index: 2; }
.heart { position: absolute; bottom: 0; left: 50%; width: 22px; height: 22px; pointer-events: none; }
.heart svg { width: 100%; height: 100%; fill: currentColor; filter: drop-shadow(0 2px 4px rgba(21, 21, 27, .15)); }

.float-chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .9);
  font-size: 13px; font-weight: 500; padding: 10px 16px; border-radius: 16px;
  box-shadow: 0 14px 30px rgba(21, 21, 27, .10);
  will-change: transform;
}
.float-chip b { font-size: 18px; font-weight: 800; color: var(--coral); }
.c1 { left: 0; top: 30%; }
.c2 { right: 0; top: 46%; }
.c3 { left: 0; bottom: 30%; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot.teal { background: var(--teal); box-shadow: 0 0 0 4px rgba(47, 196, 164, .2); }

/* ---------- Marquee ---------- */
.marquee { background: var(--text); color: var(--white); overflow: hidden; padding: 18px 0; transform: rotate(-2deg) scale(1.04); margin: 30px 0 10px; }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 28s linear infinite; }
.marquee span { font-size: clamp(22px, 5vw, 40px); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.marquee b { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 72px 0 24px; scroll-margin-top: 80px; }
.sec-head { margin-bottom: 28px; }
.label { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
h2 { font-size: clamp(32px, 8vw, 60px); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; margin-top: 12px; }

/* Meta */
.meta-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.cal-card { grid-column: 1 / -1; background: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .9); border-radius: 28px; padding: 22px; box-shadow: 0 20px 50px -20px rgba(21, 21, 27, .12); }
.cal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.cal-head span { color: var(--muted); font-size: 14px; }
.cal-head strong { color: var(--coral); font-size: 22px; font-weight: 800; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: #a5a5ae; background: rgba(21, 21, 27, .04); }
.day.on { background: var(--teal); color: var(--white); }
.stat { border-radius: 28px; padding: 24px 22px; }
.stat strong { display: block; font-size: clamp(48px, 13vw, 84px); font-weight: 800; line-height: .95; letter-spacing: -.04em; }
.stat > span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.35; }
.mint { background: var(--mint); }
.pink { background: var(--pink); }
.lav { background: var(--lavender); }
.cream { background: var(--cream); }

/* Intranet (creadores top) */
.section-tight { padding-top: 48px; }
.vip {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: center;
  padding: 30px 20px; border-radius: 32px; color: var(--white);
  background: linear-gradient(125deg, #15151B 0%, #2a1f3d 45%, #F0476B 120%);
  box-shadow: 0 30px 60px -24px rgba(240, 71, 107, .45);
}
.vip-glow { position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 0deg, transparent 0 60%, rgba(47, 196, 164, .35) 70%, transparent 80%, rgba(240, 71, 107, .4) 90%, transparent); animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.vip::after { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: 31px; background: linear-gradient(125deg, rgba(21, 21, 27, .96), rgba(42, 31, 61, .94) 55%, rgba(240, 71, 107, .85) 130%); }
.vip-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.vip-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vip-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #ffd27a; }
.vip h2 { font-size: clamp(28px, 7vw, 46px); margin-top: 8px; }
.vip h2 em { color: #ff8aa3; }
.vip p { color: #cfcfd8; margin-top: 10px; font-size: 16px; }
.vip p b { color: var(--white); }
.vip-cta { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.vip-label { flex: 1; min-width: 0; }
.vip > * { min-width: 0; }
.btn-vip {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 12px; border-radius: 999px;
  color: var(--text);
  background: linear-gradient(100deg, #ffd27a, #ff9fb3 35%, #9ef0dc 65%, #ffd27a);
  background-size: 250% 100%;
  animation: vipFlow 6s linear infinite, vipGlow 2.6s ease-in-out infinite;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 14px 34px -8px rgba(255, 159, 179, .65);
  transition: transform .4s var(--ease);
  will-change: transform;
}
.btn-vip::before { /* destello que cruza el botón */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .85) 50%, transparent 65%);
  transform: translateX(-120%); animation: vipShine 3.2s ease-in-out infinite;
}
@keyframes vipFlow { to { background-position: -250% 0; } }
@keyframes vipShine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes vipGlow { 50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .6) inset, 0 18px 46px -6px rgba(158, 240, 220, .75); } }
.vip-lock { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--text); flex: none; }
.vip-lock svg { width: 22px; height: 22px; fill: none; stroke: #ffd27a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.vip-lock .shackle { transition: transform .45s cubic-bezier(.5, -0.6, .3, 1.6); transform-origin: 16px 11px; }
.vip-label { display: flex; flex-direction: column; line-height: 1.15; padding-right: 4px; }
.vip-label b { font-size: clamp(14px, 3.9vw, 18px); white-space: nowrap; font-weight: 700; }
.vip-label small { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; opacity: .65; }
.vip-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); font-size: 18px; font-weight: 700; flex: none; transition: transform .4s var(--ease); }
.btn-vip:hover { transform: scale(1.04); }
.btn-vip:hover .shackle { transform: translate(-1px, -3px) rotate(-28deg); }
.btn-vip:hover .vip-arrow { transform: translateX(4px) rotate(-45deg); }
.btn-vip:active { transform: scale(.97); }
.vip-note { font-size: 12px; color: #cfcfd8; letter-spacing: .3px; padding-left: 8px; }

/* Recursos */
.res-list { display: grid; gap: 12px; }
.res {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  padding: 18px; border-radius: 24px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.res::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-100%); transition: transform .8s var(--ease); }
.res:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -12px rgba(21, 21, 27, .18); }
.res:hover::after { transform: translateX(100%); }
.res:active { transform: scale(.98); }
.res-num { font-size: 12px; font-weight: 700; color: rgba(21, 21, 27, .35); width: 18px; flex: none; }
.res-icon { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--white); }
.res-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.res-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.res-text b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.res-text small { font-size: 13px; color: var(--muted); }
.arrow { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--text); color: var(--white); font-size: 14px; transition: background .3s, transform .4s var(--ease); }
.res:hover .arrow { background: var(--coral); transform: translateX(4px) scale(1.08); }

/* Examen */
.exam { display: grid; gap: 28px; align-items: center; background: var(--lavender); border-radius: 32px; padding: 32px 24px; position: relative; overflow: hidden; }
.exam p { color: var(--muted); margin: 12px 0 24px; font-size: 17px; }
.exam p b { color: var(--text); }
.exam .exam-facts { margin: 14px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .3px; }
.gauge { position: relative; width: min(240px, 70vw); justify-self: center; }
.gauge svg { width: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 16; stroke-linecap: round; }
.g-track { stroke: rgba(255, 255, 255, .8); }
.g-bar { stroke: var(--coral); stroke-dasharray: 527.79; stroke-dashoffset: 158.34; }
.g-val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.g-val strong { font-size: 64px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.g-val span { font-size: 28px; font-weight: 800; color: var(--coral); }
.g-val small { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- Casos de éxito: adelanto en el inicio ---------- */
.t2 { display: grid; gap: 26px; align-items: end; }
.t2 h2 { font-size: clamp(40px, 11vw, 72px); margin-top: 10px; }
.t2-sub { color: var(--muted); font-size: 16px; margin-top: 8px; }
.t2-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 600; font-size: 15px; padding-bottom: 4px; border-bottom: 1.5px solid var(--text); }
.t2-link span { transition: translate .35s var(--ease); }
.t2-link:hover span { translate: 5px 0; }
.t2-people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.person {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 3 / 4; border-radius: 22px; background: var(--mint);
  box-shadow: 0 24px 50px -28px rgba(21, 21, 27, .45);
}
.person:nth-child(2) { background: var(--pink); }
.person:nth-child(3) { background: var(--cream); }
.person img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; object-position: center top; transition: scale .9s var(--ease); }
.person::after { content: ""; position: absolute; inset: 45% 0 0 0; background: linear-gradient(to top, rgba(21, 21, 27, .7), transparent); pointer-events: none; }
.p-info { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; display: flex; flex-direction: column; color: var(--white); line-height: 1.2; }
.p-info b { font-size: clamp(14px, 3.8vw, 18px); font-weight: 700; }
.p-info small { font-size: 11px; opacity: .8; }
.p-go { position: absolute; top: 10px; right: 10px; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--text); font-size: 14px; opacity: 0; translate: 0 -6px; transition: opacity .35s, translate .35s var(--ease); }
.person:hover img { scale: 1.06; }
.person:hover .p-go { opacity: 1; translate: 0 0; }

/* ---------- Casos de éxito ---------- */
.sec-lead { color: var(--muted); font-size: 17px; margin-top: 12px; max-width: 46ch; }

.steps { display: grid; gap: 10px; margin-top: 32px; }
.step { display: flex; gap: 16px; align-items: flex-start; border-radius: 22px; padding: 18px 20px; }
.step > b { font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--coral); }
.step.mint > b { color: var(--teal); }
.step.cream > b { color: #D99A14; }
.step h4 { font-size: 16px; font-weight: 700; }
.step p { font-size: 14px; color: var(--muted); }
.cases-quote { margin-top: 28px; font-size: clamp(24px, 6vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; max-width: 22ch; }

/* ---------- Soporte ---------- */
.support { display: grid; gap: 32px; background: var(--text); color: var(--white); border-radius: 32px; padding: 34px 24px; position: relative; overflow: hidden; }
.support::before { content: ""; position: absolute; width: 380px; height: 380px; right: -140px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 196, 164, .35), transparent 65%); }
.support p { color: #b9b9c3; margin: 12px 0 24px; font-size: 17px; }
.support h2 em { color: var(--teal); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px; padding: 6px 14px; border-radius: 999px; background: rgba(47, 196, 164, .18); color: var(--teal); }
.bubbles { display: flex; flex-direction: column; gap: 10px; position: relative; }
.bubble { max-width: 85%; font-size: 14px; padding: 12px 16px; border-radius: 20px; width: fit-content; }
.b-in { background: rgba(255, 255, 255, .1); border-bottom-left-radius: 6px; }
.b-out { background: var(--teal); color: var(--text); align-self: flex-end; border-bottom-right-radius: 6px; font-weight: 500; }
.b-typing { display: flex; gap: 5px; background: rgba(255, 255, 255, .1); padding: 14px 16px; }
.b-typing i { width: 7px; height: 7px; border-radius: 50%; background: #b9b9c3; animation: typing 1.2s infinite; }
.b-typing i:nth-child(2) { animation-delay: .15s; }
.b-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* Footer */
.footer { max-width: 1120px; margin: 0 auto; padding: 90px var(--pad) 100px; }
.f-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-bottom: 22px; border-bottom: 1px solid rgba(21, 21, 27, .12); }
.f-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .5px; }
.f-brand img { width: 40px; height: 40px; border-radius: 12px; }
.f-motto { font-size: 15px; color: var(--muted); }
.f-motto em { font-weight: 600; }
.f-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 18px; }
.f-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.f-links a { font-size: 14px; font-weight: 500; position: relative; }
.f-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.f-links a:hover::after { transform: scaleX(1); }
.footer small { font-size: 12px; color: var(--muted); }

/* ---------- Transición entre páginas ---------- */
/* Velo suave del color de la página con el logo: aparece y desaparece rápido. */
.page-curtain { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.pc-layer { position: absolute; inset: 0; display: grid; place-items: center; background: var(--bg); opacity: 0; transition: opacity .28s ease; }
.pc-mark { display: flex; flex-direction: column; align-items: center; gap: 12px; transform: scale(.94); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.pc-mark img { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 10px 26px rgba(21, 21, 27, .1); }
.pc-mark i { display: block; width: 56px; height: 3px; border-radius: 3px; background: rgba(21, 21, 27, .08); overflow: hidden; position: relative; }
.pc-mark i::after { content: ""; position: absolute; inset: 0; background: #A3B8F3; transform: scaleX(0); transform-origin: left; transition: transform .35s ease .05s; }

/* Franja azul que cruza la pantalla una sola vez (por encima del velo) */
.pc-band { position: absolute; z-index: 1; left: 0; right: 0; top: 50%; height: 16vh; margin-top: -8vh; background: #A3B8F3; transform: translateY(70vh); transition: transform .8s cubic-bezier(.45, .05, .3, 1); will-change: transform; }

.page-curtain.is-covering { pointer-events: auto; }
.page-curtain.is-covering .pc-layer { opacity: 1; transition-duration: .4s; transition-delay: .2s; }
.page-curtain.is-covering .pc-band { transform: translateY(-70vh); }
.page-curtain.is-covering .pc-mark { transform: none; }
.page-curtain.is-covering .pc-mark i::after { transform: scaleX(1); }
.page-curtain.is-leaving .pc-layer { opacity: 0; transition-duration: .35s; }
.page-curtain.is-leaving .pc-band { transform: translateY(-70vh); transition: none; }
.page-curtain.no-anim, .page-curtain.no-anim * { transition: none !important; }

/* Mientras carga la página nueva: el mismo velo desde el primer instante (sin destello) */
html.pc-arrive::after {
  content: ""; position: fixed; inset: 0; z-index: 199;
  background: url("img/logo-badge.png") 50% calc(50% - 7.5px) / 56px 56px no-repeat, var(--bg);
  animation: pcSafety .3s ease 2s forwards;
}
@keyframes pcSafety { to { opacity: 0; visibility: hidden; } }

/* ---------- Ventana de video ---------- */
.vmodal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.vmodal[hidden] { display: none; }
.vm-backdrop { position: absolute; inset: 0; background: rgba(21, 21, 27, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.vm-box { position: relative; width: min(920px, 100%); background: var(--text); border-radius: 26px; padding: 14px; box-shadow: 0 40px 80px rgba(0, 0, 0, .4); }
.vm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--white); padding: 4px 6px 12px 10px; }
.vm-head b { font-size: 16px; font-weight: 600; }
.vm-close { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, .12); color: var(--white); font-size: 16px; transition: background .25s, transform .3s var(--ease); }
.vm-close:hover { background: var(--coral); transform: rotate(90deg); }
.vm-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.vm-frame.vertical { aspect-ratio: 9 / 16; max-height: 78vh; margin: 0 auto; }
.vm-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vm-soon { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center; color: var(--white); padding: 24px;
  background: radial-gradient(60% 80% at 20% 20%, rgba(240, 71, 107, .35), transparent 60%), radial-gradient(60% 80% at 80% 80%, rgba(47, 196, 164, .35), transparent 60%), #1c1c24; }
.vm-soon strong { font-size: clamp(24px, 6vw, 36px); font-weight: 800; letter-spacing: -.02em; }
.vm-soon span { color: #b9b9c3; font-size: 15px; }
.vm-soon i { display: grid; place-items: center; }
.vm-soon i svg { width: 46px; height: 46px; fill: none; stroke: var(--white); stroke-width: 1.4; stroke-linejoin: round; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: var(--white);
  box-shadow: 0 14px 30px -6px rgba(37, 211, 102, .6);
  transition: transform .35s var(--ease);
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1; animation: waPing 2.4s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes waPing { 70%, 100% { transform: scale(1.6); opacity: 0; } 0% { opacity: .5; } }
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }
.wa-float:hover { transform: scale(1.08); }
.wa-tip {
  position: absolute; right: 72px; white-space: nowrap;
  background: var(--text); color: var(--white); font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; pointer-events: none;
  opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .3s var(--ease);
}
.wa-float:hover .wa-tip, .wa-float.tip .wa-tip { opacity: 1; transform: none; }
.js .wa-float { opacity: 0; visibility: hidden; transform: scale(.6); }
.js .wa-float.show { opacity: 1; visibility: visible; transform: none; transition: opacity .4s, transform .5s cubic-bezier(.3, 1.6, .5, 1), visibility 0s; }
.js .wa-float.show:hover { transform: scale(1.08); }

/* Estado inicial (solo con JS, evita parpadeo) */
.js [data-intro], .js .hero-visual, .js .hero h1 { visibility: hidden; }

/* ---------- Escritorio ---------- */
@media (min-width: 860px) {
  :root { --pad: 32px; }
  .nav-links { display: flex; }
  .menu-btn, .mobile-menu { display: none; }
  .hero { grid-template-columns: 1.15fr .85fr; padding-top: 80px; min-height: calc(100vh - 80px); }
  .lead { font-size: 19px; }
  .phone { width: 290px; }
  .c1 { left: -8%; top: 16%; }
  .c2 { right: -6%; }
  .c3 { left: -14%; }
  .meta-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .cal-card { grid-column: auto; }
  .stat { display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; }
  .res-list { grid-template-columns: 1fr 1fr; }
  .exam, .support { grid-template-columns: 1.2fr .8fr; padding: 56px; }
  .vip { grid-template-columns: auto 1fr auto; gap: 32px; padding: 44px 48px; }
  .vip-cta { align-items: flex-start; }
  
  .steps { grid-template-columns: repeat(3, 1fr); }
  .t2 { grid-template-columns: .8fr 1.2fr; gap: 48px; }
  .footer { padding-bottom: 40px; }
  .t2-people { gap: 14px; }
  .p-info { left: 16px; bottom: 16px; }
  .p-info small { font-size: 12px; }
  
  
  .btn-vip { gap: 14px; padding: 12px 12px 12px 14px; }
  .vip-lock, .vip-arrow { width: 48px; height: 48px; }
  .section-tight { padding-top: 64px; }
  .section { padding-top: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
.vm-frame.vertical { width: min(100%, calc(78vh * 9 / 16)); }
.vm-box:has(.vm-frame.vertical) { width: min(460px, 100%); }
