/* ══════════════════════════════════════════════════════════
   empresarial.cloud — v2
   Paleta: noche cálida + verde WhatsApp + arena cantera
   ══════════════════════════════════════════════════════════ */

:root {
  --bg:        #090a0d;
  --bg-2:      #0d0f13;
  --panel:     #12141a;
  --panel-2:   #171a21;
  --line:      rgba(255, 255, 255, 0.08);
  --ink:       #f4f3ee;
  --dim:       #a5a59c;
  --dim-2:     #71716a;
  --green:     #25d366;
  --green-dk:  #128c4b;
  --green-glo: rgba(37, 211, 102, 0.35);
  --sand:      #e2bd8c;
  --sand-dim:  rgba(226, 189, 140, 0.14);
  --r:         18px;
  --f-head:    "Sora", system-ui, sans-serif;
  --f-body:    "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grano sutil sobre todo el sitio */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--f-head); letter-spacing: -0.03em; line-height: 1.08; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
h1 em, h2 em { font-style: normal; color: var(--green); }
h2 .em-sand, .em-sand { font-style: normal; color: var(--sand); }

p { color: var(--dim); }
p strong { color: var(--ink); font-weight: 600; }
a { text-decoration: none; color: inherit; }
img, svg { display: block; }

.wrap { width: min(1160px, calc(100% - 2.6rem)); margin-inline: auto; }

/* ───────── botones ───────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--f-head);
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn--wa {
  background: linear-gradient(160deg, #2ee06f, #1db457);
  color: #04140a;
  box-shadow: 0 10px 34px var(--green-glo), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn--wa:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 16px 48px var(--green-glo); filter: brightness(1.05); }

.btn--nav  { font-size: 0.86rem; padding: 0.6rem 1.15rem; }
.btn--big  { font-size: clamp(0.95rem, 2vw, 1.1rem); padding: 1.05rem 1.8rem; }
.btn--huge { font-size: clamp(1rem, 2.4vw, 1.25rem); padding: 1.2rem 2.4rem; }

/* secundario: contorno */
.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: rgba(37, 211, 102, 0.5); background: rgba(37, 211, 102, 0.06); }
.btn--ghost .ico-play { width: 1.05em; height: 1.05em; fill: var(--green); flex: none; }

.ico-wa { width: 1.35em; height: 1.35em; fill: currentColor; flex: none; }

/* ───────── nav ───────── */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  padding: 0.85rem 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.is-scrolled {
  background: rgba(9, 10, 13, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }

.brand {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.brand span { color: var(--green); }

/* ───────── hero ───────── */

.hero {
  position: relative;
  padding: clamp(7rem, 14vh, 9.5rem) 0 5rem;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52% 42% at 78% 18%, rgba(37, 211, 102, 0.13), transparent 70%),
    radial-gradient(40% 35% at 8% 85%, rgba(226, 189, 140, 0.07), transparent 70%),
    radial-gradient(60% 50% at 50% -10%, rgba(255, 255, 255, 0.05), transparent 70%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--dim);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.tag__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 var(--green-glo);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 34em;
  margin: 1.5rem 0 2.1rem;
}

.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; }
.hero__cta .hero__micro { flex-basis: 100%; }
.hero__micro { font-size: 0.9rem; margin-top: 1rem; color: var(--dim-2); }
.hero__micro strong { color: var(--dim); }

/* ── teléfono / chat ── */

.hero__phone { justify-self: center; width: min(370px, 100%); }

.phone {
  background: #0b141a;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 8px #14161c,
    0 0 90px rgba(37, 211, 102, 0.1);
}

.phone__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: #14222b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.phone__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: #04140a;
  background: linear-gradient(160deg, #2ee06f, #1db457);
}
.phone__who { display: grid; line-height: 1.3; }
.phone__who strong { font-size: 0.95rem; }
.phone__who span { font-size: 0.74rem; color: #7fa08f; display: inline-flex; align-items: center; gap: 0.35rem; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }

.phone__chat {
  min-height: 330px;
  padding: 1.1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(37, 211, 102, 0.04), transparent 60%),
    #0b141a;
}

.msg {
  max-width: 84%;
  padding: 0.6rem 0.8rem 0.45rem;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #e7ede9;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  animation: msgIn 0.35s ease forwards;
}
@keyframes msgIn { to { opacity: 1; transform: none; } }

.msg--in  { align-self: flex-start; background: #1f2c34; border-top-left-radius: 4px; }
.msg--out { align-self: flex-end;   background: #005c4b; border-top-right-radius: 4px; }
.msg time {
  display: block;
  text-align: right;
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.25rem;
}
.msg--out time::after { content: " ✓✓"; color: #53bdeb; }

.typing {
  align-self: flex-start;
  background: #1f2c34;
  border-radius: 12px;
  border-top-left-radius: 4px;
  padding: 0.7rem 0.9rem;
  display: inline-flex;
  gap: 4px;
}
.typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #8696a0;
  animation: tp 1.1s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes tp { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

.phone__bar {
  padding: 0.7rem 1.1rem;
  background: #14222b;
  font-size: 0.82rem;
  color: #6a7f75;
}

.phone__caption {
  margin-top: 1.1rem;
  font-size: 0.86rem;
  text-align: center;
  color: var(--dim-2);
  padding-inline: 0.5rem;
}
.phone__caption strong { color: var(--green); }

/* ───────── secciones ───────── */

.sec { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }

.sec__head { max-width: 760px; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.sec__num {
  display: block;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: var(--green);
  margin-bottom: 0.9rem;
}
.sec__num::after { content: " ─────"; color: var(--line); letter-spacing: 0; }
.sec__num--sand { color: var(--sand); }

/* ── bloque 2: dolores ── */

.sec--pains { background: var(--bg-2); border-block: 1px solid var(--line); }

.pains {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.pain {
  position: relative;
  display: flex;
  gap: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem 1.6rem;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.pain:hover { transform: translateY(-4px); border-color: rgba(255, 99, 99, 0.35); }
.pain--wide { grid-column: 1 / -1; }

.pain__x {
  flex: none;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ff7b7b;
  background: rgba(255, 99, 99, 0.1);
  border: 1px solid rgba(255, 99, 99, 0.22);
}
.pain p { font-size: 0.98rem; }

.pains__close {
  margin-top: 2.6rem;
  border-left: 3px solid var(--green);
  padding: 0.4rem 0 0.4rem 1.6rem;
}
.pains__close p {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--ink);
  max-width: 46em;
}
.pains__close em { font-style: normal; color: var(--green); }

/* ── bloque 3: prueba ── */

.sec--proof {
  background:
    radial-gradient(60% 45% at 85% 8%, var(--sand-dim), transparent 70%),
    var(--bg);
}

.proof__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.proof__story p { margin-bottom: 1.1rem; font-size: 1.02rem; }

.proof__list { list-style: none; display: grid; gap: 0.9rem; margin-top: 1.4rem; }
.proof__list li {
  display: flex;
  gap: 0.9rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  font-size: 0.96rem;
  color: var(--dim);
}
.proof__list .check {
  flex: none;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 700;
  color: var(--sand);
  background: var(--sand-dim);
  border: 1px solid rgba(226, 189, 140, 0.25);
}
.proof__list strong { color: var(--ink); }

/* mockup reporte */
.proof__visual { position: sticky; top: 6rem; }

.report {
  background: var(--panel-2);
  border: 1px solid rgba(226, 189, 140, 0.2);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
}
.report__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.3rem;
  background: rgba(226, 189, 140, 0.07);
  border-bottom: 1px solid var(--line);
}
.report__title { font-family: var(--f-head); font-weight: 700; font-size: 0.95rem; }
.report__time { font-size: 0.78rem; color: var(--dim-2); }

.report__row {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.85rem 1.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.report__row span { flex: none; }
.report__row p { font-size: 0.88rem; }
.report__row--warn { background: rgba(255, 180, 84, 0.05); }

.report__foot {
  padding: 0.8rem 1.3rem;
  font-size: 0.76rem;
  color: var(--dim-2);
  text-align: center;
}

.proof__visualcap {
  margin-top: 1rem;
  font-size: 0.85rem;
  text-align: center;
  color: var(--dim-2);
}

.proof__close {
  margin-top: clamp(2.5rem, 5vw, 3.8rem);
  text-align: center;
}
.proof__close p {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 30em;
  margin-inline: auto;
  line-height: 1.35;
}

/* ── bloque 4: pasos ── */

.sec--steps { background: var(--bg-2); border-block: 1px solid var(--line); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  counter-reset: paso;
}

.step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 2rem 1.7rem 1.8rem;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.step:hover { transform: translateY(-5px); border-color: rgba(37, 211, 102, 0.35); }

.step__n {
  position: absolute;
  top: -0.5rem;
  right: 0.6rem;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 5.5rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(37, 211, 102, 0.3);
}

.step h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.step__meta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.9rem;
}
.step p:last-child { font-size: 0.95rem; }

.trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2.8rem;
  font-size: 0.98rem;
  color: var(--dim);
  text-align: center;
  flex-wrap: wrap;
}
.ico-lock { width: 20px; height: 20px; fill: var(--sand); flex: none; }

/* ── bloque 5: cta final ── */

.final {
  position: relative;
  padding: clamp(5.5rem, 12vw, 9rem) 0;
  text-align: center;
  overflow: hidden;
}
.final__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 55% at 50% 100%, rgba(37, 211, 102, 0.16), transparent 72%),
    radial-gradient(35% 30% at 50% 0%, rgba(255, 255, 255, 0.04), transparent 70%);
}

.final__inner h2 { max-width: 15em; margin-inline: auto; }

.final__copy {
  max-width: 38em;
  margin: 1.5rem auto 2.4rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.final__alt {
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--dim-2);
  max-width: 34em;
  margin-inline: auto;
}

/* ───────── footer ───────── */

.foot { border-top: 1px solid var(--line); padding: 2.8rem 0; background: var(--bg-2); }
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.foot p { font-size: 0.88rem; }
.foot__wa { font-size: 0.88rem; font-weight: 600; color: var(--green); }
.foot__wa:hover { text-decoration: underline; }

/* ───────── FAB ───────── */

.fab {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  z-index: 95;
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, #2ee06f, #1db457);
  color: #04140a;
  box-shadow: 0 12px 34px var(--green-glo);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.fab .ico-wa { width: 30px; height: 30px; }
.fab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { transform: scale(1.08); }

/* ───────── reveals ───────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .msg { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ───────── responsive ───────── */

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__phone { width: min(340px, 100%); }
  .proof__grid { grid-template-columns: 1fr; }
  .proof__visual { position: static; max-width: 460px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .pains { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .btn--nav { font-size: 0.78rem; padding: 0.55rem 0.9rem; }
  .btn--big, .btn--huge { width: 100%; justify-content: center; }
  .hero { padding-top: 6rem; }
  .phone__chat { min-height: 290px; }
  .foot__inner { flex-direction: column; align-items: flex-start; }
}
