/* ============================================================
   Clyra — Plataforma clínica operativa
   Sistema visual: salud clara + teal clínico
   ============================================================ */
:root {
  --paper:    #E9EEF2;
  --paper-2:  #FFFFFF;
  --paper-3:  #DCE3EA;
  --ink:      #16323B;
  --ink-soft: #4F5F6E;
  --ink-faint:#8593A0;
  --line:     #DCE3EA;
  --line-2:   #C7D1DB;
  --navy:     #11414C;
  --navy-2:   #0E343D;
  --navy-3:   #1B5566;
  --teal:     #12C2A0;
  --teal-deep:#0C9C82;
  --teal-tint:#D7F4ED;
  --mint:     #2FE6C6;
  --amber:    #F4A93C;
  --amber-tint:#FCEFD8;
  --rose:     #FF6B6B;
  --rose-tint:#FFE6E6;
  --radius:   18px;
  --radius-sm:12px;
  --shadow-s: 0 1px 2px rgba(12,27,42,.05), 0 2px 6px rgba(12,27,42,.04);
  --shadow-m: 0 8px 24px -8px rgba(12,27,42,.16), 0 2px 8px rgba(12,27,42,.05);
  --shadow-l: 0 28px 64px -20px rgba(10,20,34,.42), 0 8px 22px -10px rgba(12,27,42,.16);
  --maxw: 1200px;
  --ease: cubic-bezier(.4,.05,.1,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--teal); color: #06231D; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Botones ---------- */
.btn { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 15px; border: none;
  border-radius: 12px; padding: 13px 22px; cursor: pointer; display: inline-flex; align-items: center;
  gap: 9px; transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--teal); color: #06231D; box-shadow: 0 4px 14px -2px rgba(18,194,160,.5); }
.btn-primary:hover { background: var(--teal-deep); color: #fff; box-shadow: 0 8px 22px -4px rgba(18,194,160,.55); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-3); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(0,0,0,.02); }
.btn-amber { background: var(--amber); color: #3A2606; box-shadow: 0 4px 14px -2px rgba(244,169,60,.45); }
.btn-amber:hover { background: #e89a26; }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

.eyebrow { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal-deep); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--teal); border-radius: 2px; }

/* ============================================================
   NAV
   ============================================================ */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(233,238,242,.82);
  backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.brand .logo { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(150deg, var(--teal), var(--teal-deep)); display: grid; place-items: center; flex: none; box-shadow: 0 4px 12px -3px rgba(18,194,160,.5); }
.brand .logo span { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: #fff; font-size: 19px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.cart-btn { position: relative; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line-2);
  background: var(--paper-2); display: grid; place-items: center; cursor: pointer; transition: border-color .15s, transform .15s; }
.cart-btn:hover { border-color: var(--teal); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-count { position: absolute; top: -7px; right: -7px; min-width: 21px; height: 21px; padding: 0 5px;
  background: var(--teal); color: #06231D; font-size: 12px; font-weight: 800; border-radius: 999px;
  display: grid; place-items: center; border: 2px solid var(--paper); transform: scale(0); transition: transform .25s var(--ease); }
.cart-count.show { transform: scale(1); }
.cart-btn.bump { animation: bump .4s var(--ease); }
@keyframes bump { 0%,100% { transform: scale(1); } 35% { transform: scale(1.18); } }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 70px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 52px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.1vw, 62px); font-weight: 700; }
.hero h1 .hl { position: relative; color: var(--teal-deep); }
.hero h1 .hl svg { position: absolute; left: 0; bottom: -8px; width: 100%; height: 12px; }
.hero-sub { font-size: 19px; color: var(--ink-soft); margin: 26px 0 32px; max-width: 470px; line-height: 1.55; }
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 30px; font-size: 14px; color: var(--ink-faint); font-weight: 600; }
.avatars { display: flex; }
.avatars span { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid var(--paper); margin-left: -10px; font-size: 13px; font-weight: 800; color: #fff; display: grid; place-items: center; }
.avatars span:first-child { margin-left: 0; }
.stars { color: var(--amber); letter-spacing: 1px; }

/* ---------- Mockup dashboard (réplica del producto) ---------- */
.mock { position: relative; perspective: 2200px; perspective-origin: 62% 36%; z-index: 1; }
.mock-glow { position: absolute; inset: -16% -14% -20% -14%; z-index: 0; border-radius: 50%;
  background: radial-gradient(58% 52% at 62% 34%, rgba(18,194,160,.5), rgba(18,194,160,0) 68%),
              radial-gradient(46% 48% at 22% 82%, rgba(47,230,198,.34), rgba(47,230,198,0) 70%),
              radial-gradient(70% 60% at 80% 88%, rgba(17,65,76,.22), rgba(17,65,76,0) 72%);
  filter: blur(34px); opacity: .95; animation: glowPulse 7s var(--ease) infinite; }
@keyframes glowPulse { 0%,100% { opacity: .7; transform: scale(1) translateY(0); } 50% { opacity: 1; transform: scale(1.05) translateY(-6px); } }

.mock-tilt { position: relative; z-index: 2; transform-style: preserve-3d;
  transition: transform .6s var(--ease);
  animation: mockFloat 9s ease-in-out infinite; }
@keyframes mockFloat {
  0%,100% { transform: rotateX(9deg) rotateY(-15deg) rotateZ(1deg) translateY(0); }
  50%     { transform: rotateX(6.5deg) rotateY(-11deg) rotateZ(.6deg) translateY(-18px); }
}
.mock.interact .mock-tilt { animation: none; }

/* Sombra de contacto en el "suelo" — ancla el objeto en el espacio */
.mock-tilt::after { content: ""; position: absolute; left: 50%; bottom: -10%; width: 86%; height: 56px;
  transform: translateX(-50%) translateZ(-90px) rotateX(78deg); transform-origin: center;
  background: radial-gradient(50% 60% at 50% 50%, rgba(13,40,46,.5), rgba(13,40,46,0) 72%);
  filter: blur(20px); z-index: -1; animation: shadowBreathe 9s ease-in-out infinite; }
@keyframes shadowBreathe { 0%,100% { opacity: .75; transform: translateX(-50%) translateZ(-90px) rotateX(78deg) scale(1); } 50% { opacity: .5; transform: translateX(-50%) translateZ(-90px) rotateX(78deg) scale(.9); } }

.mock-window { background: var(--paper-2); border: 1px solid rgba(255,255,255,.7); border-radius: 20px;
  box-shadow:
    0 2px 4px rgba(17,65,76,.1),
    0 12px 24px -8px rgba(17,65,76,.22),
    0 40px 60px -24px rgba(17,65,76,.4),
    0 90px 120px -50px rgba(15,69,64,.6);
  overflow: hidden; transform-style: preserve-3d; position: relative; }
/* Reflejo especular que cruza la pantalla */
.mock-window::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 6;
  background: linear-gradient(118deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.12) 12%, rgba(255,255,255,0) 30%, rgba(255,255,255,0) 70%, rgba(255,255,255,.06) 88%, rgba(255,255,255,.22) 100%);
  mix-blend-mode: screen; opacity: .8; }
/* Borde de luz superior (edge highlight tipo aluminio) */
.mock-window::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 7; border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 0 0 1px rgba(255,255,255,.25); }
@media (prefers-reduced-motion: reduce) {
  .mock-tilt, .mock-glow, .mock-tilt::after { animation: none; }
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 15px; border-bottom: 1px solid var(--line); background: #F4F7F9; }
.mock-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.mock-bar .dot:nth-child(1){ background:#FF5F57; } .mock-bar .dot:nth-child(2){ background:#FEBC2E; } .mock-bar .dot:nth-child(3){ background:#28C840; }
.mock-bar .url { margin-left: 12px; font-size: 12px; color: var(--ink-faint); font-weight: 600; background: var(--paper); padding: 4px 12px; border-radius: 6px; }
.mock-body { display: grid; grid-template-columns: 92px minmax(0, 1fr); height: 430px; background: #EDF1F4; }

/* sidebar oscuro */
.mock-side { background: var(--navy); padding: 13px 9px; display: flex; flex-direction: column; gap: 3px; transform: translateZ(8px); box-shadow: 6px 0 24px -10px rgba(13,40,46,.6); }
.mock-side .ms-brand { display: flex; align-items: center; gap: 7px; padding: 2px 4px 12px; }
.mock-side .ms-brand .b { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(150deg,var(--teal),var(--teal-deep)); display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; font-family: 'Space Grotesk', sans-serif; flex: none; }
.mock-side .ms-brand .t { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px; color: #fff; }
.mock-side .ms-lbl { font-size: 7.5px; font-weight: 700; letter-spacing: .12em; color: rgba(255,255,255,.32); padding: 7px 6px 4px; }
.mock-side .si { display: flex; align-items: center; gap: 7px; padding: 6px 7px; border-radius: 7px; color: rgba(255,255,255,.6); font-size: 9.5px; font-weight: 600; }
.mock-side .si svg { width: 12px; height: 12px; flex: none; }
.mock-side .si.on { background: linear-gradient(120deg, rgba(18,194,160,.28), rgba(18,194,160,.12)); color: #fff; box-shadow: inset 0 0 0 1px rgba(47,230,198,.4); }
.mock-side .si.on svg { color: var(--mint); }

.mock-main { padding: 13px; overflow: hidden; transform-style: preserve-3d; }
.mock-hero { background: linear-gradient(135deg, #164A4E 0%, #123B47 55%, #0F4540 100%); border-radius: 14px; padding: 15px 16px; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 86px; gap: 10px; transform: translateZ(60px); box-shadow: 0 30px 50px -24px rgba(15,69,64,.85); }
.mock-hero .chips { display: flex; gap: 5px; margin-bottom: 9px; }
.mock-hero .chip { font-size: 7.5px; font-weight: 700; padding: 3px 7px; border-radius: 999px; color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.14); }
.mock-hero .chip.live { color: var(--mint); border-color: rgba(47,230,198,.4); display: flex; align-items: center; gap: 4px; }
.mock-hero .chip.live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }
.mock-hero .eb { font-size: 7.5px; font-weight: 700; letter-spacing: .1em; color: var(--mint); margin-bottom: 5px; }
.mock-hero h5 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; line-height: 1.12; color: #fff; font-weight: 700; letter-spacing: -.02em; }
.mock-hero .rec { margin-top: 11px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 9px; padding: 8px 9px; display: flex; align-items: center; gap: 8px; }
.mock-hero .rec .rt { font-size: 8px; color: rgba(255,255,255,.6); line-height: 1.3; flex: 1; }
.mock-hero .rec .rb { font-size: 8px; font-weight: 700; color: #06231D; background: var(--teal); padding: 5px 8px; border-radius: 6px; white-space: nowrap; }
.donut { width: 78px; height: 78px; border-radius: 50%; place-self: center; display: grid; place-items: center;
  background: conic-gradient(var(--mint) 0% 100%, rgba(255,255,255,.1) 0); position: relative; }
.donut::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #123B47; }
.donut .dv { position: relative; text-align: center; }
.donut .dv b { font-family: 'Space Grotesk', sans-serif; font-size: 16px; color: #fff; font-weight: 700; display: block; line-height: 1; }
.donut .dv span { font-size: 6.5px; color: rgba(255,255,255,.6); font-weight: 700; letter-spacing: .08em; }
.mock-hero .side-stats { grid-column: 2; align-self: center; display: none; }

.mock-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 11px; transform: translateZ(34px); }
.mock-cards .mcard:nth-child(1) { transform: translateZ(6px); }
.mock-cards .mcard:nth-child(2) { transform: translateZ(16px); }
.mock-cards .mcard:nth-child(3) { transform: translateZ(6px); }
.mcard { background: var(--paper-2); border: 1px solid var(--line); border-radius: 11px; padding: 11px; }
.mcard .ch { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.mcard .ce { font-size: 7px; font-weight: 700; letter-spacing: .1em; color: var(--teal-deep); }
.mcard .ci { width: 18px; height: 18px; border-radius: 6px; background: var(--teal-tint); display: grid; place-items: center; }
.mcard .ci svg { width: 10px; height: 10px; }
.mcard h6 { font-family: 'Space Grotesk', sans-serif; font-size: 10px; color: var(--ink); margin-bottom: 9px; font-weight: 600; }
.bar-row { margin-bottom: 8px; }
.bar-row .bl { display: flex; justify-content: space-between; font-size: 8px; font-weight: 600; color: var(--ink-soft); margin-bottom: 3px; }
.bar-row .bl b { color: var(--ink); }
.bar-track { height: 4px; border-radius: 999px; background: var(--paper-3); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--mint)); }

.float-card { position: absolute; background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-m); padding: 12px 14px; display: flex; align-items: center; gap: 11px; animation: floaty 5s ease-in-out infinite; z-index: 3; }
.float-card .fi { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-card .ft { font-size: 11px; color: var(--ink-faint); font-weight: 700; }
.float-card .fv { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; }
.fc-1 { top: 24px; left: -30px; animation-delay: 0s; }
.fc-2 { bottom: 30px; right: -26px; animation-delay: 1.5s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Logos strip ---------- */
.logos { padding: 30px 0 8px; }
.logos p { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 24px; }
.logos-row { display: flex; align-items: center; justify-content: center; gap: 50px; flex-wrap: wrap; opacity: .6; }
.logos-row span { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -.01em; color: var(--ink-soft); }

/* ============================================================
   SECTIONS
   ============================================================ */
section { position: relative; }
.section { padding: 94px 0; }
.section-head { max-width: 660px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4vw, 47px); margin: 18px 0 16px; }
.section-head p { font-size: 18.5px; color: var(--ink-soft); line-height: 1.55; }

/* Features */
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feat { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--line-2); }
.feat .fic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; }
.feat .fic svg { width: 23px; height: 23px; }
.feat h3 { font-size: 20px; margin-bottom: 9px; }
.feat p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.55; }
.feat.wide { grid-column: span 2; display: flex; align-items: center; gap: 28px; background: linear-gradient(135deg, #FFFFFF 0%, #EAF7F5 100%); color: var(--ink); border-color: rgba(18,194,160,.28); }
.feat.wide p { color: var(--ink-soft); }
.feat.wide .fic { background: linear-gradient(150deg,var(--teal),var(--teal-deep)); color: #fff; flex: none; }
.feat.wide .ftxt h3 { font-size: 23px; }

/* ============================================================
   MÉTODO CLÍNICO
   ============================================================ */
.clinical-method-sec { background: linear-gradient(180deg, #F8FCFB 0%, #EAF7F5 100%); color: var(--ink); position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clinical-method-amb { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(40% 50% at 88% 6%, rgba(18,194,160,.22), rgba(18,194,160,0) 70%),
              radial-gradient(44% 54% at 6% 96%, rgba(47,230,198,.16), rgba(47,230,198,0) 72%); }
.clinical-method-sec .wrap { position: relative; z-index: 1; }
.clinical-method-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.clinical-method-head .eyebrow { justify-content: center; color: var(--teal-deep); }
.clinical-method-head .eyebrow::before { background: var(--teal); }
.clinical-method-head h2 { color: var(--ink); font-size: clamp(32px, 4vw, 47px); margin: 18px 0 16px; }
.clinical-method-head h2 span { color: var(--teal-deep); }
.clinical-method-head p { color: var(--ink-soft); font-size: 18.5px; line-height: 1.55; }
.clinical-method-rows { display: flex; flex-direction: column; gap: 14px; max-width: 960px; margin: 0 auto; }
.clinical-method-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 26px; align-items: center;
  padding: 22px 28px; border-radius: 18px; background: rgba(255,255,255,.84); border: 1px solid var(--line); box-shadow: var(--shadow-s);
  transition: background .3s var(--ease), border-color .3s, transform .3s; }
.clinical-method-row:hover { background: #fff; border-color: rgba(18,194,160,.45); transform: translateX(5px); box-shadow: var(--shadow-m); }
.sc-letter { width: 64px; height: 64px; border-radius: 17px; display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 32px; color: #06231D;
  background: linear-gradient(150deg, var(--mint), var(--teal-deep)); box-shadow: 0 12px 28px -10px rgba(18,194,160,.7), inset 0 1px 0 rgba(255,255,255,.35); }
.sc-body h3 { font-size: 20px; color: var(--ink); margin-bottom: 5px; }
.sc-body p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; max-width: 580px; }
.sc-chip { font-size: 12px; font-weight: 700; color: var(--teal-deep); border: 1px solid rgba(18,194,160,.32);
  padding: 9px 15px; border-radius: 999px; white-space: nowrap; background: var(--teal-tint); }

/* Pricing */
.pricing { background: var(--paper-3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toggle { display: inline-flex; align-items: center; gap: 4px; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; margin: 0 auto; }
.toggle button { border: none; background: transparent; font-family: 'Plus Jakarta Sans'; font-weight: 700; font-size: 14px; padding: 9px 20px; border-radius: 999px; cursor: pointer; color: var(--ink-soft); transition: color .2s, background .2s; }
.toggle button.on { color: #06231D; background: var(--teal); }
.toggle-wrap { display: flex; justify-content: center; margin-bottom: 16px; }
.save-tag { display: inline-block; font-size: 12px; font-weight: 800; color: var(--teal-deep); background: var(--teal-tint); padding: 3px 10px; border-radius: 999px; margin-left: 8px; }
.toggle button.on .save-tag { background: rgba(6,35,29,.15); color: #06231D; }
.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: start; margin-top: 44px; }
.plan { background: var(--paper-2); border: 1px solid var(--line); border-radius: 22px; padding: 32px 28px; position: relative; transition: transform .2s var(--ease), box-shadow .2s; }
.plan.pop { border: 2px solid var(--teal); box-shadow: var(--shadow-l); transform: scale(1.02); }
.plan.pop::before { content: "Más elegido"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--teal); color: #06231D; font-size: 12px; font-weight: 800; padding: 5px 16px; border-radius: 999px; letter-spacing: .02em; }
.plan .pname { font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 700; }
.plan .pdesc { font-size: 14px; color: var(--ink-soft); margin: 6px 0 22px; min-height: 40px; }
.plan .price { display: flex; align-items: baseline; gap: 4px; }
.plan .price .cur { font-size: 22px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.plan .price .amt { font-size: 52px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; letter-spacing: -.03em; line-height: 1; }
.plan .price .per { font-size: 14px; color: var(--ink-faint); font-weight: 600; }
.plan .bill-note { font-size: 13px; color: var(--ink-faint); margin: 8px 0 24px; font-weight: 600; }
.plan ul { list-style: none; margin: 24px 0 28px; display: flex; flex-direction: column; gap: 13px; }
.plan li { display: flex; gap: 11px; font-size: 14.5px; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--teal-deep); }
.plan li.off { color: var(--ink-faint); } .plan li.off svg { color: var(--ink-faint); }

/* Add-ons */
.addons { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 44px; }
.addon { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.addon:hover { border-color: var(--line-2); box-shadow: var(--shadow-s); }
.addon .ai { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.addon h4 { font-size: 17px; }
.addon p { font-size: 14px; color: var(--ink-soft); margin: 7px 0 18px; flex: 1; line-height: 1.5; }
.addon .arow { display: flex; align-items: center; justify-content: space-between; }
.addon .ap { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px; }
.addon .ap small { font-size: 12px; color: var(--ink-faint); font-weight: 600; }
.add-mini { background: var(--navy); color: #fff; border: none; border-radius: 11px; width: 40px; height: 40px; cursor: pointer; display: grid; place-items: center; transition: transform .15s, background .2s; flex: none; }
.add-mini:hover { background: var(--teal); color: #06231D; }
.add-mini svg { width: 19px; height: 19px; }
.add-mini.added { background: var(--teal); color: #06231D; }

/* CTA band */
.ctaband { background: linear-gradient(135deg, #F7FFFD 0%, #DFF6F1 100%); color: var(--ink); border: 1px solid rgba(18,194,160,.22); border-radius: 28px; padding: 64px 56px; text-align: center; position: relative; overflow: hidden; }
.ctaband h2 { font-size: clamp(30px,3.6vw,44px); margin-bottom: 16px; }
.ctaband p { font-size: 18px; color: var(--ink-soft); max-width: 540px; margin: 0 auto 30px; }
.ctaband .glow { position: absolute; width: 460px; height: 460px; border-radius: 50%; filter: blur(80px); opacity: .4; }
.ctaband .g1 { background: var(--teal); top: -180px; left: -80px; }
.ctaband .g2 { background: var(--mint); bottom: -200px; right: -60px; opacity: .25; }
.ctaband > * { position: relative; }

/* Testimonial */
.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote p { font-family: 'Space Grotesk', sans-serif; font-size: clamp(24px,3vw,34px); font-weight: 500; line-height: 1.28; letter-spacing: -.02em; }
.quote .qby { display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: 30px; }
.quote .qby .av { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(150deg,var(--teal),var(--teal-deep)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.quote .qby .qn { text-align: left; }
.quote .qby .qn b { font-size: 15px; } .quote .qby .qn span { font-size: 13px; color: var(--ink-faint); display: block; }

/* Footer */
footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 68px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.foot-brand .brand { color: #fff; margin-bottom: 16px; }
.foot-brand p { font-size: 14.5px; max-width: 280px; line-height: 1.6; }
.foot-col h5 { color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 14px; margin-bottom: 16px; letter-spacing: .02em; }
.foot-col a { display: block; font-size: 14.5px; margin-bottom: 11px; transition: color .15s; }
.foot-col a:hover { color: #fff; }
.foot-bot { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 13.5px; flex-wrap: wrap; gap: 14px; }
.foot-bot .soc { display: flex; gap: 12px; }
.foot-bot .soc a { width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(255,255,255,.15); display: grid; place-items: center; }
.foot-bot .soc a:hover { border-color: var(--teal); }
.foot-bot .soc svg { width: 16px; height: 16px; }

/* ============================================================
   CART DRAWER
   ============================================================ */
.overlay { position: fixed; inset: 0; background: rgba(10,20,34,.5); backdrop-filter: blur(3px); z-index: 90; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.overlay.show { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: 440px; max-width: 92vw; background: var(--paper); z-index: 100; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .38s var(--ease); box-shadow: var(--shadow-l); }
.drawer.show { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 21px; display: flex; align-items: center; gap: 10px; }
.drawer-head .cc { font-size: 13px; background: var(--navy); color: #fff; padding: 2px 9px; border-radius: 999px; font-weight: 800; font-family: 'Plus Jakarta Sans'; }
.x-btn { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--paper-2); cursor: pointer; display: grid; place-items: center; transition: border-color .15s; }
.x-btn:hover { border-color: var(--ink); }
.x-btn svg { width: 18px; height: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 26px; }
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; color: var(--ink-faint); gap: 16px; padding: 40px; }
.cart-empty svg { width: 60px; height: 60px; opacity: .35; }
.cart-empty b { font-family: 'Space Grotesk', sans-serif; font-size: 18px; color: var(--ink); }
.citem { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.citem .cic { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.citem .cmid { flex: 1; min-width: 0; }
.citem .cnm { font-weight: 700; font-size: 15.5px; }
.citem .cdesc { font-size: 12.5px; color: var(--ink-faint); margin-top: 1px; }
.citem .cbot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.qty button { width: 30px; height: 30px; border: none; background: var(--paper-2); cursor: pointer; font-size: 17px; color: var(--ink-soft); display: grid; place-items: center; transition: background .15s; }
.qty button:hover { background: var(--paper-3); color: var(--ink); }
.qty span { min-width: 34px; text-align: center; font-weight: 700; font-size: 14px; }
.citem .cprice { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; }
.citem .crm { background: none; border: none; color: var(--ink-faint); font-size: 12px; font-weight: 700; cursor: pointer; margin-top: 6px; padding: 0; transition: color .15s; }
.citem .crm:hover { color: var(--rose); }
.seat-note { font-size: 11px; color: var(--ink-faint); font-weight: 600; }
.drawer-foot { padding: 22px 26px 26px; border-top: 1px solid var(--line); background: var(--paper-2); }
.sumrow { display: flex; justify-content: space-between; font-size: 14.5px; margin-bottom: 10px; color: var(--ink-soft); }
.sumrow.total { font-size: 19px; font-weight: 800; color: var(--ink); margin: 14px 0 18px; padding-top: 14px; border-top: 1px solid var(--line); font-family: 'Space Grotesk', sans-serif; }
.sumrow .v { font-weight: 700; color: var(--ink); }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; color: var(--ink-faint); margin-top: 14px; font-weight: 600; }
.secure-note svg { width: 14px; height: 14px; }

/* ============================================================
   CHECKOUT MODAL
   ============================================================ */
.modal-wrap { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.modal-wrap.show { opacity: 1; visibility: visible; }
.modal-wrap .mbg { position: absolute; inset: 0; background: rgba(10,20,34,.6); backdrop-filter: blur(4px); }
.modal { position: relative; background: var(--paper); border-radius: 24px; width: 920px; max-width: 100%; max-height: 92vh; overflow: hidden; box-shadow: var(--shadow-l); display: grid; grid-template-columns: 1.15fr 1fr; transform: scale(.96) translateY(10px); transition: transform .35s var(--ease); }
.modal-wrap.show .modal { transform: scale(1) translateY(0); }
.checkout-main { padding: 34px 38px; overflow-y: auto; }
.checkout-side { background: linear-gradient(180deg, #F7FFFD 0%, #E7F5F2 100%); color: var(--ink); padding: 34px 32px; overflow-y: auto; }
.co-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.co-head h3 { font-size: 23px; }
.steps { display: flex; gap: 8px; margin-bottom: 26px; }
.steps .st { flex: 1; height: 4px; border-radius: 999px; background: var(--line-2); transition: background .3s; }
.steps .st.on { background: var(--teal); }
.gateway-block { margin: 0 0 22px; }
.gateway-title { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; }
.gateway-title b { font-family: 'Space Grotesk', sans-serif; font-size: 17px; color: var(--ink); }
.gateway-title span { color: var(--ink-soft); font-size: 13.5px; }
.gateway-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gateway-option { text-align: left; border: 1.5px solid var(--line-2); background: var(--paper-2); border-radius: 14px; padding: 13px; cursor: pointer; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; position: relative; transition: border-color .2s, box-shadow .2s, transform .15s, background .2s; min-height: 102px; }
.gateway-option:hover { transform: translateY(-2px); border-color: rgba(18,194,160,.48); box-shadow: var(--shadow-s); }
.gateway-option.on { border-color: var(--teal); background: #F7FFFD; box-shadow: 0 0 0 3px rgba(18,194,160,.13); }
.gateway-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif; font-weight: 800; color: #fff; background: var(--teal-deep); }
.gateway-webpay .gateway-mark { background: #642AB5; }
.gateway-mercadopago .gateway-mark { background: #009EE3; }
.gateway-stripe .gateway-mark { background: #635BFF; }
.gateway-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gateway-copy b { font-family: 'Space Grotesk', sans-serif; font-size: 15px; color: var(--ink); }
.gateway-copy small { color: var(--ink-soft); font-size: 11.5px; line-height: 1.35; }
.gateway-label { position: absolute; top: 9px; right: 9px; font-size: 10.5px; font-weight: 800; color: var(--teal-deep); background: var(--teal-tint); border-radius: 999px; padding: 3px 7px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-sum-item { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.co-sum-item .csn { font-weight: 700; } .co-sum-item .csq { color: var(--ink-faint); font-size: 12.5px; }
.co-sum-item .csp { font-family: 'Space Grotesk', sans-serif; font-weight: 700; white-space: nowrap; }
.co-side-h { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-deep); font-weight: 700; margin-bottom: 8px; }
.co-tot { margin-top: 22px; }
.co-tot .r { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-soft); margin-bottom: 9px; }
.co-tot .r.big { font-size: 24px; font-weight: 800; color: var(--ink); font-family: 'Space Grotesk', sans-serif; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.guarantee { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
.guarantee svg { width: 18px; height: 18px; flex: none; color: var(--mint); margin-top: 1px; }

/* Success state */
.success { grid-column: 1 / -1; text-align: center; padding: 64px 40px; display: flex; flex-direction: column; align-items: center; }
.success .check { width: 92px; height: 92px; border-radius: 50%; background: var(--teal-tint); display: grid; place-items: center; margin-bottom: 26px; animation: pop .5s var(--ease); }
.success .check svg { width: 46px; height: 46px; color: var(--teal-deep); }
@keyframes pop { 0% { transform: scale(0); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.success h2 { font-size: 33px; margin-bottom: 12px; }
.success p { font-size: 16px; color: var(--ink-soft); max-width: 420px; margin-bottom: 8px; }
.success .order-id { font-family: 'Space Grotesk', sans-serif; font-weight: 700; background: var(--paper-3); border: 1px solid var(--line); padding: 10px 20px; border-radius: 12px; margin: 18px 0 28px; font-size: 15px; }

.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(6,35,29,.3); border-top-color: #06231D; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 44px 0 60px; }
  .nav-inner { height: auto; min-height: 74px; flex-wrap: wrap; gap: 10px 14px; padding-top: 12px; padding-bottom: 12px; }
  .nav-links { order: 3; width: 100%; display: flex; gap: 12px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: 0 0 auto; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: 13px; }
  .feat-grid, .plans, .addons { grid-template-columns: 1fr; }
  .feat.wide { grid-column: span 1; flex-direction: column; align-items: flex-start; }
  .plan.pop { transform: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .modal { grid-template-columns: 1fr; max-height: 94vh; }
  .checkout-side { order: -1; }
  .float-card { display: none; }
  /* Móvil: aplanar el mockup 3D para que no se corte ni desborde */
  .mock { perspective: none; }
  .mock-tilt { animation: none; transform: none; }
  .mock-tilt::after { display: none; }
  .mock-window, .mock-main, .mock-side, .mock-hero, .mock-cards, .mock-cards .mcard { transform: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .nav-actions > a { display: none; }
  .brand { font-size: 20px; }
  .section { padding: 62px 0; }
  .ctaband { padding: 44px 26px; }
  .foot-grid { grid-template-columns: 1fr; }
  .gateway-options { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; }
  .checkout-main, .checkout-side { padding: 26px 22px; }
  .clinical-method-row { grid-template-columns: 52px 1fr; gap: 16px 18px; padding: 20px; }
  .sc-letter { width: 52px; height: 52px; font-size: 26px; border-radius: 14px; }
  .sc-chip { grid-column: 2; justify-self: start; }
}

.activation-note { background: var(--teal-tint); border: 1px solid rgba(18,194,160,.28); border-radius: 14px; padding: 16px 18px; margin-bottom: 22px; display: flex; flex-direction: column; gap: 5px; }
.activation-note b { font-family: 'Space Grotesk', sans-serif; color: var(--ink); font-size: 17px; }
.activation-note span { color: var(--ink-soft); font-size: 14px; line-height: 1.5; }

/* ============================================================
   Próximamente (módulos) + Founder Pricing
   ============================================================ */
.soon-tag { display: inline-block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; color: var(--teal-deep); background: var(--teal-tint);
  border: 1px solid rgba(18,194,160,.3); padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.addon.soon { opacity: .94; }
.addon.soon .ai { filter: saturate(.55); }
.ap.soon-price { color: var(--ink-faint); font-weight: 700; font-family: 'Space Grotesk', sans-serif; font-size: 15px; }

.founder-banner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  max-width: 780px; margin: 0 auto 28px; padding: 14px 24px; border-radius: 16px; text-align: center;
  background: linear-gradient(120deg, rgba(18,194,160,.15), rgba(47,230,198,.07));
  border: 1px solid rgba(18,194,160,.32); }
.founder-banner .fb-badge { font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--teal-deep);
  padding: 6px 13px; border-radius: 999px; flex: none; }
.founder-banner .fb-text { font-size: 15px; color: var(--ink); font-weight: 500; line-height: 1.4; }
.founder-banner .fb-text b { color: var(--teal-deep); font-weight: 800; }
