/* JO·Automation — hoja de estilos compartida por / (Clínicas) y /empresas/ (Empresas).
   Sin build ni frameworks. Fuentes: Google Fonts (Plus Jakarta Sans, Inter). */

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --sky:       #0EA5E9;
  --royal:     #2563EB;
  --midnight:  #0B1D35;
  --bg:        #F0F7FF;
  --white:     #FFFFFF;
  --slate-900: #1E293B;
  --slate-600: #64748B;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --radius:    0.75rem;
  --shadow:    0 0.25rem 1.5rem rgba(11,29,53,.08);
  --shadow-md: 0 0.5rem 2.5rem rgba(11,29,53,.12);
}
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--slate-900);
  background: var(--bg);
  line-height: 1.6;
}
h1,h2,h3,h4 { font-family: 'Plus Jakarta Sans', sans-serif; line-height: 1.2; }
h1, h2 { letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Layout helpers ── */
.container { max-width: 67.5rem; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1rem;
}
.section-label::before { content: ''; width: 1.25rem; height: 2px; background: var(--sky); border-radius: 2px; }
/* Ritmo de scroll: la hora de la escena abre la sección */
.section-time {
  display: inline-block; margin-bottom: .875rem;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: .75rem; letter-spacing: .02em;
  color: #fff; background: var(--midnight); border-radius: 999px; padding: .3rem .75rem;
}
.section-time.light { background: rgba(14,165,233,.18); color: #7DD3FC; }
.section-time + .section-label { display: flex; }
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  font-weight: 800;
  color: var(--midnight);
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.125rem;
  color: var(--slate-600);
  max-width: 37.5rem;
  text-wrap: pretty;
}
.section-title { text-wrap: balance; }
.reveal { opacity: 0; transform: translateY(1.75rem); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Navbar ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11,29,53,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 67.5rem; margin: 0 auto; padding: 0 1.5rem;
  height: 4rem;
}
.nav-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 1.125rem; color: var(--white);
  letter-spacing: -.01em;
}
.nav-brand span { color: var(--sky); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,.75);
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--sky); color: var(--white) !important;
  padding: 0.5rem 1.25rem; border-radius: 0.5rem;
  font-weight: 600 !important; font-size: 0.875rem !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--royal) !important; }
/* Selector de modo: Clínicas | Empresas (enlace normal entre las dos páginas) */
.mode-switch {
  display: inline-flex; align-items: center;
  margin: 0 auto 0 1.75rem; padding: 0.1875rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
}
.mode-switch a {
  display: inline-flex; align-items: center;
  padding: 0.375rem 0.875rem; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600; line-height: 1;
  color: rgba(255,255,255,.72);
  transition: background .2s, color .2s;
}
.mode-switch a:hover { color: var(--white); }
.mode-switch a.is-active { background: var(--sky); color: var(--white); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.25rem; }
.nav-toggle span {
  display: block; width: 1.375rem; height: 2px;
  background: var(--white); border-radius: 2px;
  margin: 0.3125rem 0; transition: transform .3s, opacity .3s;
}

/* ── Hero ── */
#hero {
  background: linear-gradient(160deg, var(--midnight) 0%, #0F2D50 60%, #1A3A6B 100%);
  padding: 10rem 0 6.25rem;
  position: relative; overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; top: -5rem; right: -7.5rem;
  width: 31.25rem; height: 31.25rem;
  background: radial-gradient(circle, rgba(14,165,233,.18) 0%, transparent 70%);
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute; bottom: -6.25rem; left: -3.75rem;
  width: 25rem; height: 25rem;
  background: radial-gradient(circle, rgba(37,99,235,.14) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(14,165,233,.15);
  border: 1px solid rgba(14,165,233,.3);
  border-radius: 999px;
  padding: 0.375rem 1rem;
  font-size: 0.8125rem; font-weight: 600; color: var(--sky);
  margin-bottom: 2rem;
}
.hero-tag::before { content: '●'; font-size: 0.5rem; }
h1.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800; color: var(--white);
  margin-bottom: 0.75rem;
  max-width: 48.75rem;
}
h1.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--sky), #60C8F5);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub-title {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,.75);
  margin-bottom: 2.5rem;
  max-width: 38.75rem;
}
.hero-sub-title strong { color: var(--white); font-weight: 600; }
.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--sky); color: var(--white);
  padding: 1rem 2rem; border-radius: 0.625rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 0.25rem 1.25rem rgba(14,165,233,.35);
}
.btn-primary:hover { background: var(--royal); transform: translateY(-2px); box-shadow: 0 0.5rem 1.875rem rgba(37,99,235,.4); }
.btn-primary:active, .btn-form:active { transform: translateY(0) scale(.98); }
.btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-form:focus-visible, .btn-outline:focus-visible { outline: 3px solid #7DD3FC; outline-offset: 3px; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: rgba(255,255,255,.85);
  padding: 1rem 2rem; border-radius: 0.625rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600; font-size: 1rem;
  border: 1px solid rgba(255,255,255,.25);
  cursor: pointer; transition: border-color .2s, color .2s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,.6); color: var(--white); }
.hero-trust { display: flex; gap: 2rem; flex-wrap: wrap; }
.trust-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: rgba(255,255,255,.6);
}
.trust-item svg { color: var(--sky); flex-shrink: 0; }

/* Hero: texto + escena en dos columnas (una en móvil) */
.hero-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media(max-width:768px){ .hero-layout { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ══ Escena del hero: el sistema funcionando (teléfono + aviso + cambio de app + tarjeta detrás) ══
   Solo se animan opacity/transform; todo tiene su sitio reservado desde el primer pintado (sin saltos).
   Con prefers-reduced-motion se muestra el estado final, sin secuencia. */
.scene { position: relative; width: 17.25rem; margin: 0 auto; --t-push: 6.6s; --t-push-out: 11.2s; --t-switch: 8.4s; }
.phone {
  position: relative; width: 100%; height: 34rem; border-radius: 2.6rem; padding: .7rem;
  background: #0a0f1a; z-index: 1;
  box-shadow: 0 2.5rem 4rem rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.1), inset 0 0 0 2px rgba(255,255,255,.06);
}
.screen { position: absolute; inset: .7rem; border-radius: 2rem; overflow: hidden; background: #E5DDD5; }
.notch { position: absolute; top: .55rem; left: 50%; transform: translateX(-50%); width: 5.5rem; height: 1.35rem; background: #0a0f1a; border-radius: 1rem; z-index: 8; }
.app { position: absolute; inset: 0; display: flex; flex-direction: column; }
.app .bar { height: 2.4rem; flex-shrink: 0; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 1.1rem .3rem; font-size: .7rem; font-weight: 600; color: #fff; }
.app-a .bar { background: #075E54; }
.app-a .s-card { border-radius: 0; box-shadow: none; flex: 1; display: flex; flex-direction: column; }
.app-a .s-body { flex: 1; min-height: 0; }
.app-b { background: #F8FAFC; opacity: 0; }
.app-b .bar { background: var(--royal); }
.app-b .s-card { border-radius: 0; box-shadow: none; flex: 1; display: flex; flex-direction: column; background: #F8FAFC; }
.app-b .s-head { background: #fff; }
.app-b .s-body { flex: 1; }
.play .app-b { animation: appIn .6s ease both; animation-delay: var(--t-switch); }
.play .app-a { animation: appOut .6s ease both; animation-delay: var(--t-switch); }
@keyframes appIn { to { opacity: 1; } }
@keyframes appOut { to { opacity: 0; } }
.push {
  position: absolute; top: 2.2rem; left: .6rem; right: .6rem; z-index: 9;
  display: flex; gap: .6rem; align-items: flex-start;
  background: rgba(255,255,255,.97); border-radius: 1rem; padding: .55rem .7rem;
  box-shadow: 0 .6rem 1.5rem rgba(0,0,0,.3);
  font-size: .75rem; color: var(--slate-900); opacity: 0; transform: translateY(-160%);
}
.push .s-ava { width: 1.75rem; height: 1.75rem; background: #54A9EB; font-size: .625rem; }
.push b { display: block; font-size: .75rem; }
.push small { float: right; color: var(--slate-600); font-size: .625rem; }
.play .push { animation: pushIn .6s cubic-bezier(.2,.8,.2,1) both, pushOut .5s ease-in both; animation-delay: var(--t-push), var(--t-push-out); }
@keyframes pushIn { to { opacity: 1; transform: none; } }
@keyframes pushOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-160%); } }
.stamp {
  position: absolute; z-index: 3; opacity: 0;
  background: var(--sky); color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: .75rem;
  letter-spacing: .02em; padding: .25rem .6rem; border-radius: 999px; box-shadow: 0 .4rem 1rem rgba(14,165,233,.45);
}
.scene .stamp { left: -2.75rem; top: 4.5rem; transform: rotate(-6deg); }
.play .stamp { animation: stepIn .4s both; animation-delay: .3s; }
.scene .caption { text-align: center; font-size: .8125rem; color: rgba(255,255,255,.65); margin-top: 1rem; }
/* Detalle de A: la tarjeta de la agenda asoma detrás del teléfono en escritorio */
.peek { position: absolute; left: 15.25rem; top: 5.5rem; width: 13.5rem; transform: rotate(3deg); z-index: 0; display: none; font-size: .75rem; }
@media (min-width: 900px) {
  .hero-layout .scene { margin: 0 0 0 .5rem; }
  .peek { display: block; }
}
@media (max-width: 768px) { .scene { width: 16rem; } .phone { height: 31rem; } .scene .stamp { left: -1.25rem; top: 3rem; } }

/* Piezas de mockup (WhatsApp, agenda, Telegram) reutilizables en la escena y en las secciones */
.s-card { background: #fff; border-radius: 1rem; overflow: hidden; box-shadow: 0 1.25rem 2.5rem rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.08); font-size: .8125rem; }
.s-wa .s-head { background: #075E54; color: #fff; padding: .625rem .75rem; display: flex; align-items: center; gap: .625rem; }
.s-ava { width: 2rem; height: 2rem; border-radius: 50%; background: linear-gradient(135deg, var(--sky), var(--royal)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .6875rem; color: #fff; flex-shrink: 0; }
.s-name { font-weight: 600; font-size: .8125rem; line-height: 1.2; }
.s-status { font-size: .6875rem; opacity: .8; position: relative; height: .9rem; }
.s-status span { position: absolute; left: 0; top: 0; }
.s-status .typing { opacity: 0; }
.s-wa .s-body { background: #E5DDD5; padding: .75rem; display: flex; flex-direction: column; gap: .5rem; min-height: 13.5rem; }
.bub { border-radius: .75rem; padding: .5rem .7rem; line-height: 1.45; max-width: 88%; color: var(--slate-900); }
.bub.in { background: #fff; border-bottom-left-radius: 4px; align-self: flex-start; }
.bub.out { background: #DCF8C6; border-bottom-right-radius: 4px; align-self: flex-end; }
.bub time { display: block; font-size: .625rem; color: var(--slate-600); text-align: right; margin-top: .15rem; }
.s-cal .s-head { padding: .625rem .75rem; border-bottom: 1px solid var(--slate-200); display: flex; align-items: center; gap: .5rem; }
.s-cal .s-head b { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.25rem; color: var(--royal); }
.s-cal .s-head b.txt { font-size: .9375rem; }
.s-cal .s-head span { color: var(--slate-600); font-size: .75rem; }
.s-cal .s-body { padding: .625rem .75rem; display: flex; flex-direction: column; gap: .4rem; min-height: 9.5rem; }
.ev { border-left: 4px solid var(--slate-200); background: var(--slate-100); border-radius: 0 .4rem .4rem 0; padding: .35rem .55rem; line-height: 1.35; color: var(--slate-900); }
.ev small { display: block; font-size: .6875rem; color: var(--slate-600); }
.ev.new { border-left-color: var(--sky); background: rgba(14,165,233,.12); }
.ev .tag { float: right; font-size: .625rem; font-weight: 700; color: #fff; background: var(--sky); border-radius: 999px; padding: .05rem .45rem; margin-left: .4rem; }
.ev.gap { background: transparent; border-left-color: transparent; color: var(--slate-600); font-size: .75rem; }
.s-tg .s-head { background: #54A9EB; color: #fff; padding: .625rem .75rem; display: flex; align-items: center; gap: .625rem; }
.s-tg .s-ava { background: rgba(255,255,255,.25); }
.s-tg .s-body { background: #EFF3F7; padding: .75rem; min-height: 7.5rem; }
.tg { background: #fff; border-radius: .625rem; padding: .55rem .7rem; line-height: 1.55; white-space: pre-line; color: var(--slate-900); box-shadow: 0 1px 2px rgba(11,29,53,.08); }
.tg + .tg { margin-top: .5rem; }
.tg.own { background: #DCF1FF; margin-left: 1.5rem; font-family: monospace; font-size: .75rem; }
.tg time { display: block; text-align: right; font-size: .625rem; color: var(--slate-600); }

/* Secuencia: cada .step entra con su retraso --d cuando la escena tiene .play */
.step { opacity: 0; transform: translateY(.5rem) scale(.98); }
.play .step { animation: stepIn .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); }
@keyframes stepIn { to { opacity: 1; transform: none; } }
.play .s-status .online { animation: hideOn 1.2s step-end both; animation-delay: var(--t); }
.play .s-status .typing { animation: showOn 1.2s step-end both; animation-delay: var(--t); }
@keyframes hideOn { 0%, 99% { opacity: 0; } 100% { opacity: 1; } }
@keyframes showOn { 0%, 99% { opacity: 1; } 100% { opacity: 0; } }
.play .glow { animation: glow 1.6s ease-out both; animation-delay: var(--d); }
@keyframes glow { 0% { box-shadow: 0 1.25rem 2.5rem rgba(0,0,0,.4), 0 0 0 0 rgba(14,165,233,.9); } 100% { box-shadow: 0 1.25rem 2.5rem rgba(0,0,0,.4), 0 0 0 1.25rem rgba(14,165,233,0); } }
@media (prefers-reduced-motion: reduce) {
  .step, .play .step, .play .glow, .play .s-status span, .play .stamp, .play .push, .play .app-a, .play .app-b { animation: none !important; }
  .step, .stamp, .push { opacity: 1; transform: none; }
  .s-status .typing { display: none; }
  .app-a { opacity: 1; } .app-b { display: none; }
}

/* ── Servicios ── */
#servicios { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.125rem, 1fr));
  gap: 1.5rem; margin-top: 3.5rem;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover, .service-card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 3.25rem; height: 3.25rem; border-radius: 0.875rem;
  background: linear-gradient(135deg, rgba(14,165,233,.12), rgba(37,99,235,.12));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.service-icon svg { width: 1.625rem; height: 1.625rem; color: var(--sky); }
.service-badge {
  display: inline-block;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(37,99,235,.1); color: var(--royal);
  padding: 0.1875rem 0.625rem; border-radius: 999px;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.25rem; font-weight: 700;
  color: var(--midnight); margin-bottom: 0.75rem;
}
.service-card p { color: var(--slate-600); font-size: 0.9375rem; line-height: 1.65; }
.service-card.featured { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(14,165,233,.12), var(--shadow); }
.service-note {
  margin-top: 0.875rem; padding-left: 0.875rem;
  border-left: 3px solid rgba(14,165,233,.5);
  font-size: 0.875rem !important; color: var(--slate-600);
}
.service-price {
  display: flex; align-items: baseline; gap: 0.375rem;
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--slate-200);
}
.service-price strong {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.625rem; font-weight: 800; color: var(--midnight);
}
.service-price span { font-size: 0.8125rem; color: var(--slate-600); }
.service-price .includes {
  display: block; font-size: 0.75rem; color: var(--sky);
  font-weight: 600; margin-top: 0.25rem;
}
/* ── Calculadora ROI ── */
#roi {
  background: linear-gradient(160deg, var(--midnight) 0%, #0F2D50 60%, #1A3A6B 100%);
  position: relative; overflow: hidden;
}
#roi::before {
  content: '';
  position: absolute; top: -8rem; right: -8rem;
  width: 28rem; height: 28rem;
  background: radial-gradient(circle, rgba(14,165,233,.15) 0%, transparent 70%);
  pointer-events: none;
}
#roi .section-title { color: var(--white); }
.roi-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center; position: relative; z-index: 1;
}
@media(max-width:768px){ .roi-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.roi-text p { color: rgba(255,255,255,.7); font-size: 1.0625rem; line-height: 1.75; }
.roi-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1rem;
  padding: 2.25rem 2rem;
  backdrop-filter: blur(8px);
}
.roi-card label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.9375rem; font-weight: 500; color: rgba(255,255,255,.75);
  margin-bottom: 0.625rem;
}
.roi-card label strong {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem; font-weight: 800; color: var(--sky);
  flex-shrink: 0; margin-left: 0.75rem;
}
.roi-card label small { display: block; font-size: 0.8125rem; font-weight: 400; color: rgba(255,255,255,.55); }
.roi-card input[type="range"] {
  width: 100%; margin-bottom: 1.75rem;
  accent-color: var(--sky);
  cursor: pointer;
}
/* Selector «¿exenta de IVA?» de la calculadora */
.roi-toggle {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin: -0.25rem 0 1.5rem;
  font-size: 0.9375rem; font-weight: 500; color: rgba(255,255,255,.75);
}
.roi-toggle small { display: block; font-size: 0.8125rem; font-weight: 400; color: rgba(255,255,255,.55); }
.roi-toggle-btns {
  display: inline-flex; flex-shrink: 0; padding: 0.1875rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
}
.roi-toggle-btns label { position: relative; }
.roi-toggle-btns input { position: absolute; opacity: 0; pointer-events: none; }
.roi-toggle-btns span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.75rem; min-height: 2.25rem; padding: 0 0.875rem; border-radius: 999px;
  font-size: 0.875rem; font-weight: 600; color: rgba(255,255,255,.75); cursor: pointer;
  transition: background .2s, color .2s;
}
.roi-toggle-btns input:checked + span { background: var(--sky); color: var(--white); }
.roi-toggle-btns input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.roi-nota { display: block; margin-top: 0.5rem; font-size: 0.8125rem; color: rgba(255,255,255,.55); }
.roi-result {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 1.5rem; text-align: center;
}
.roi-result > span {
  display: block;
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 0.375rem;
}
.roi-result > strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 800;
  color: var(--white); line-height: 1.1;
  margin-bottom: 0.625rem;
}
.roi-result p { font-size: 0.875rem; color: rgba(255,255,255,.72); line-height: 1.6; }
.roi-result p strong { color: #60C8F5; }

/* ── El sistema por dentro ── */
#sistema { background: var(--white); }
.sistema-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem; margin-top: 3.5rem;
}
.sistema-card {
  background: var(--bg);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.sistema-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sistema-card h3 {
  font-size: 1.125rem; font-weight: 700;
  color: var(--midnight); margin-bottom: 0.5rem;
}
.sistema-card > p {
  color: var(--slate-600); font-size: 0.875rem; line-height: 1.6;
  margin-bottom: 1.25rem;
}
/* Mockup Telegram */
.tg-mockup {
  background: var(--white); border-radius: 0.75rem;
  border: 1px solid var(--slate-200);
  box-shadow: 0 .5rem 1.25rem rgba(11,29,53,.10), 0 1.5rem 3rem rgba(11,29,53,.06); overflow: hidden;
  margin-top: auto;
  font-size: 0.8125rem;
}
.tg-header {
  background: #54A9EB; color: var(--white);
  padding: 0.625rem 0.875rem;
  display: flex; align-items: center; gap: 0.625rem;
}
.tg-avatar {
  width: 1.875rem; height: 1.875rem; border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.6875rem; flex-shrink: 0;
}
.tg-name { font-weight: 600; font-size: 0.8125rem; line-height: 1.2; }
.tg-tag { font-size: 0.6875rem; opacity: .8; }
.tg-body { padding: 0.875rem; background: #EFF3F7; }
.tg-msg {
  background: var(--white); border-radius: 0.625rem;
  padding: 0.625rem 0.75rem; line-height: 1.6;
  color: var(--slate-900);
  box-shadow: 0 1px 2px rgba(11,29,53,.08);
  white-space: pre-line;
}
.tg-msg + .tg-msg { margin-top: 0.5rem; }
.tg-msg.own {
  background: #DCF1FF; margin-left: 1.5rem;
  font-family: monospace; font-size: 0.75rem;
}
/* Mockup Google Calendar */
.cal-mockup {
  background: var(--white); border-radius: 0.75rem;
  border: 1px solid var(--slate-200);
  box-shadow: 0 .5rem 1.25rem rgba(11,29,53,.10), 0 1.5rem 3rem rgba(11,29,53,.06); overflow: hidden;
  margin-top: auto;
  font-size: 0.8125rem;
}
.cal-head {
  display: flex; align-items: baseline; gap: 0.5rem;
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid var(--slate-200);
}
.cal-head strong {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.375rem; font-weight: 800; color: var(--royal);
}
.cal-head span { color: var(--slate-600); font-size: 0.75rem; }
.cal-body { padding: 0.75rem 0.875rem; display: flex; flex-direction: column; gap: 0.5rem; }
.cal-event {
  border-left: 4px solid var(--sky);
  background: rgba(14,165,233,.08);
  border-radius: 0 0.375rem 0.375rem 0;
  padding: 0.375rem 0.625rem;
  line-height: 1.45; color: var(--slate-900);
}
.cal-event span { display: block; font-size: 0.6875rem; color: var(--slate-600); }
.cal-event.alt { border-left-color: var(--royal); background: rgba(37,99,235,.08); }

/* ── Cómo funciona ── */
#como-funciona { background: var(--bg); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0; margin-top: 3.5rem;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute; top: 2.25rem; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--royal));
  opacity: .3;
}
@media(max-width:860px){
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 0;
  }
  .steps-grid::before { display: none; }
}
@media(max-width:560px){
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.step {
  text-align: center;
  padding: 0 1rem;
  position: relative;
}
.step-num {
  width: 4.5rem; height: 4.5rem;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--sky);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 1.375rem; color: var(--sky);
  position: relative; z-index: 1;
  box-shadow: 0 0 0 0.375rem var(--bg);
}
.step h3 {
  font-size: 1.0625rem; font-weight: 700;
  color: var(--midnight); margin-bottom: 0.625rem;
}
.step p { font-size: 0.875rem; color: var(--slate-600); line-height: 1.65; }

/* ── Sobre mí ── */
#sobre-mi { background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem;
  align-items: center; margin-top: 1rem;
}
@media(max-width:768px){ .about-grid { grid-template-columns: 1fr; } }
.about-text p {
  color: var(--slate-600); font-size: 1rem; line-height: 1.8;
  margin-bottom: 1.25rem;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--slate-900); }
.about-visual {
  background: linear-gradient(135deg, var(--midnight), #1A3A6B);
  border-radius: 1.25rem;
  padding: 2.5rem 2.25rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.about-stat { display: flex; align-items: flex-start; gap: 1rem; }
.about-stat-icon {
  width: 2.75rem; height: 2.75rem; border-radius: 0.75rem;
  background: rgba(14,165,233,.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.about-stat-icon svg { width: 1.375rem; height: 1.375rem; color: var(--sky); }
.about-stat-text strong {
  display: block; font-size: 0.9375rem; font-weight: 700; color: var(--white); margin-bottom: 0.25rem;
}
.about-stat-text span { font-size: 0.8125rem; color: rgba(255,255,255,.6); }

/* ── FAQ ── */
#faq { background: var(--bg); }
.faq-grid { margin-top: 3.5rem; display: flex; flex-direction: column; gap: 0.75rem; max-width: 46.25rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item.open { border-color: rgba(14,165,233,.5); box-shadow: var(--shadow); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none;
  cursor: pointer; padding: 1.375rem 1.75rem;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem; font-weight: 700; color: var(--midnight);
  transition: color .2s;
  gap: 1rem;
}
.faq-question:hover { color: var(--sky); }
.faq-chevron {
  width: 1.5rem; height: 1.5rem; flex-shrink: 0;
  border-radius: 50%; background: var(--slate-100);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s, background .2s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); background: var(--sky); }
.faq-item.open .faq-chevron svg { color: white; }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
  padding: 0 1.75rem;
}
.faq-item.open .faq-answer { max-height: 60rem; padding: 0 1.75rem 1.375rem; }
.faq-answer p { color: var(--slate-600); font-size: 0.9375rem; line-height: 1.7; }

/* ── Formulario ── */
#contacto { background: var(--midnight); }
#contacto .section-label { color: var(--sky); }
#contacto .section-title { color: var(--white); }
#contacto .section-sub { color: rgba(255,255,255,.65); }
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-top: 2.5rem;
}
@media(max-width:600px){ .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.8125rem; font-weight: 600; color: rgba(255,255,255,.7);
  letter-spacing: .02em;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 0.625rem;
  padding: 0.875rem 1.125rem;
  color: var(--white);
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  transition: border-color .2s, background .2s;
  outline: none;
  resize: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,.45); }
.form-field select option { background: var(--midnight); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--sky);
  background: rgba(14,165,233,.08);
}
.btn-form {
  display: inline-flex; align-items: center; gap: 0.625rem;
  background: #25D366; color: var(--white);
  padding: 1.125rem 2.25rem; border-radius: 0.625rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 1.0625rem;
  border: none; cursor: pointer;
  transition: background .2s, transform .15s;
  box-shadow: 0 0.25rem 1.25rem rgba(37,211,102,.3);
  margin-top: 0.5rem;
}
.btn-form:hover { background: #1fba58; transform: translateY(-2px); }
.form-note {
  font-size: 0.8125rem; color: rgba(255,255,255,.6);
  margin-top: 0.75rem;
}

/* Chips de interés */
.chip-group { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 0.625rem 1.125rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.75);
  font-size: 0.875rem; font-weight: 500;
  cursor: pointer; user-select: none;
  transition: background .2s, border-color .2s, color .2s;
}
.chip span:hover { border-color: rgba(255,255,255,.45); color: var(--white); }
.chip input:checked + span {
  background: var(--sky); border-color: var(--sky);
  color: var(--white); font-weight: 600;
}
.chip input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }

/* Vista previa del mensaje */
.form-preview {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
}
.form-preview-label {
  display: block;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 0.75rem;
}
.form-preview-bubble {
  background: #DCF8C6; color: var(--slate-900);
  border-radius: 0.75rem; border-bottom-right-radius: 4px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem; line-height: 1.55;
  white-space: pre-line;
  max-width: 34rem; margin-left: auto;
  box-shadow: 0 1px 2px rgba(11,29,53,.15);
}

/* ── Footer ── */
footer {
  background: #07111F;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 1rem; color: var(--white);
}
.footer-brand span { color: var(--sky); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8125rem; color: rgba(255,255,255,.65); transition: color .2s; }
.footer-links a:hover { color: rgba(255,255,255,.8); }
.footer-copy { font-size: 0.8125rem; color: rgba(255,255,255,.55); width: 100%; text-align: center; margin-top: 0.5rem; }

/* ── Banner de cookies ── */
#cookieBanner {
  display: none;
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem;
  z-index: 200;
  max-width: 42rem; margin: 0 auto;
  background: var(--midnight);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 1.125rem 1.375rem;
  box-shadow: 0 0.5rem 2.5rem rgba(0,0,0,.4);
  align-items: center; gap: 1.25rem; flex-wrap: wrap;
}
#cookieBanner p {
  flex: 1; min-width: 15rem;
  font-size: 0.8125rem; color: rgba(255,255,255,.75); line-height: 1.55;
}
#cookieBanner a { color: var(--sky); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.625rem; }
.cookie-btn {
  border: none; cursor: pointer;
  padding: 0.625rem 1.25rem; border-radius: 0.5rem;
  font-family: 'Inter', sans-serif; font-size: 0.8125rem; font-weight: 600;
  transition: background .2s, color .2s, border-color .2s;
}
.cookie-btn.accept { background: var(--sky); color: var(--white); }
.cookie-btn.accept:hover { background: var(--royal); }
.cookie-btn.reject {
  background: transparent; color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.25);
}
.cookie-btn.reject:hover { border-color: rgba(255,255,255,.6); color: var(--white); }

/* ── Deslizadores usables con el dedo ── */
.roi-card input[type="range"] {
  -webkit-appearance: none; appearance: none;
  height: 0.375rem; border-radius: 999px;
  background: rgba(255,255,255,.22);
}
.roi-card input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--sky); border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.35); cursor: pointer;
}
.roi-card input[type="range"]::-moz-range-thumb {
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--sky); border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.35); cursor: pointer;
}
.roi-card input[type="range"]:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; }

/* ── Móvil: menos relleno, botones y chips de 44 px ── */
@media(max-width:768px){
  .section { padding: 4rem 0; }
  #hero { padding: 6.5rem 0 3.5rem; }
  .hero-tag { margin-bottom: 1.25rem; }
  .hero-sub-title { margin-bottom: 1.75rem; }
  .hero-cta-group { margin-bottom: 2.5rem; }
  .hero-trust { gap: 0.75rem 1.5rem; }
  .btn-secondary { padding: 0.875rem 1.5rem; }
  .chip span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.625rem 1.125rem; }
  .btn-form { width: 100%; justify-content: center; }
  .services-grid, .sistema-grid { margin-top: 2.5rem; }
  .faq-grid { margin-top: 2.5rem; }
}

/* ── Página de Empresas (/empresas/) ── */
#situaciones, #piezas { background: var(--white); }
.pieces-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.piece { background: var(--bg); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 1.5rem 1.375rem; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.piece:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.piece h3 { font-size: 1.0625rem; font-weight: 700; color: var(--midnight); margin-bottom: .5rem; }
.piece > p { color: var(--slate-600); font-size: .9rem; line-height: 1.6; margin-bottom: 1.125rem; }
.piece .mini { margin-top: auto; }
.piece .mini .s-card { box-shadow: 0 .5rem 1.25rem rgba(11,29,53,.10), 0 1.5rem 3rem rgba(11,29,53,.06); border: 1px solid var(--slate-200); font-size: .75rem; }
.piece .mini .s-wa .s-body { min-height: 0; }
.piece .mini .s-cal .s-body, .piece .mini .s-tg .s-body { min-height: 0; }
.section-foot { margin-top: 2.5rem; font-size: .9375rem; color: var(--slate-600); }
.section-foot a { color: var(--sky); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 768px) { .pieces-grid { margin-top: 2.5rem; } }
.q-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem; margin-top: 3rem;
}
.q-card {
  background: var(--bg);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.q-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--midnight); margin-bottom: 0.625rem; }
.q-card p { color: var(--slate-600); font-size: 0.9375rem; line-height: 1.65; }
.services-grid.two-by-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media(max-width:640px){ .services-grid.two-by-two { grid-template-columns: 1fr; } }
.steps-grid.four { grid-template-columns: repeat(4, 1fr); }
@media(max-width:860px){ .steps-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:560px){ .steps-grid.four { grid-template-columns: 1fr; } }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2rem; border-radius: 0.625rem;
  border: 1.5px solid var(--sky); color: var(--sky);
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1rem;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--sky); color: var(--white); }
@media(max-width:768px){
  .q-grid { margin-top: 2.5rem; }
}

/* ── Reducción de movimiento: sin apariciones ni desplazamientos ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .service-card, .sistema-card, .piece, .btn-primary, .btn-form, .faq-answer, .faq-chevron { transition: none; }
}

/* ── Mobile nav ── */
@media(max-width:768px){
  .nav-links { display: none; flex-direction: column; gap: 0; position: absolute;
    top: 4rem; left: 0; right: 0; background: var(--midnight);
    border-top: 1px solid rgba(255,255,255,.08); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 1rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-toggle { display: block; }
  .nav-cta { border-radius: 0; }
  .nav-brand { font-size: 1rem; }
  .mode-switch { margin: 0 0.75rem 0 auto; }
  .mode-switch a { min-height: 2.375rem; padding: 0.5rem 0.625rem; font-size: 0.75rem; }
}
