/* ============================================================
   Grupo Pragma — Apple-inspired design system
   ============================================================ */

:root {
  /* Color tokens (Apple HIG-derived) */
  --c-ink: #1d1d1f;          /* primary text */
  --c-ink-2: #6e6e73;        /* secondary text */
  --c-ink-3: #86868b;        /* tertiary / captions */
  --c-bg: #ffffff;
  --c-bg-soft: #f5f5f7;      /* light gray section */
  --c-bg-soft-2: #fafafc;
  --c-black: #000000;
  --c-line: #d2d2d7;         /* hairline */
  --c-line-soft: #e8e8ed;

  /* Accent — switchable via Tweaks */
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-press: #006edb;

  /* On-dark */
  --c-ink-d: #f5f5f7;
  --c-ink-2-d: #a1a1a6;
  --c-line-d: rgba(255,255,255,.16);

  /* Whatsapp green for chat mockup */
  --wa: #25d366;
  --wa-bubble: #d9fdd3;

  /* Type — SF on Apple devices, graceful fallback elsewhere */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, "Menlo", "Roboto Mono", monospace;

  --maxw: 980px;
  --maxw-wide: 1180px;
  --nav-h: 48px;

  --ease: cubic-bezier(.28,.11,.32,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.47;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { display: block; max-width: 100%; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap-wide { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 22px; }

section { position: relative; }

.section-pad { padding: clamp(80px, 11vw, 140px) 0; }
.section-pad-sm { padding: clamp(56px, 7vw, 90px) 0; }

.dark { background: var(--c-black); color: var(--c-ink-d); }
.soft { background: var(--c-bg-soft); }

/* ---------- Type scale (Apple) ---------- */
.eyebrow {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent);
  margin-bottom: 8px;
}
.dark .eyebrow { color: #2997ff; }

.display {
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.022em;
}
.h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.018em;
}
.h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.016em;
}
.h3 {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.lead {
  font-size: clamp(19px, 2.2vw, 28px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--c-ink-2);
}
.dark .lead { color: var(--c-ink-2-d); }
.body {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.5;
  color: var(--c-ink-2);
  letter-spacing: -0.006em;
}
.dark .body { color: var(--c-ink-2-d); }
.caption { font-size: 14px; color: var(--c-ink-3); letter-spacing: 0; }

.tighten { letter-spacing: -0.03em; }
.ink-2 { color: var(--c-ink-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  font-family: inherit; font-size: 17px; font-weight: 400; letter-spacing: -0.01em;
  padding: 11px 22px; border-radius: 980px; border: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: scale(.97); }
.btn-ghost { background: transparent; color: var(--accent); padding: 11px 4px; }
.btn-ghost:hover { text-decoration: underline; }
.btn-light { background: #fff; color: var(--c-ink); }
.btn-light:hover { background: #f0f0f2; }
.btn-lg { font-size: 19px; padding: 14px 28px; }

.chev::after { content: "\203A"; font-weight: 400; margin-left: 2px; }

.linkline {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: clamp(17px, 1.7vw, 21px); color: var(--accent); font-weight: 400;
}
.linkline:hover { text-decoration: none; }
.linkline:hover .arr { transform: translateX(3px); }
.arr { transition: transform .25s var(--ease); display: inline-block; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  z-index: 100;
  background: rgba(251,251,253,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-inner {
  max-width: var(--maxw-wide); margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 0; padding: 0 22px;
}
.nav-logo {
  font-weight: 600; font-size: 19px; letter-spacing: -0.02em; color: var(--c-ink);
  display: flex; align-items: center; gap: 7px;
}
.nav-logo:hover { text-decoration: none; }
.nav-mark {
  width: 22px; height: 22px; border-radius: 6px; background: var(--c-ink);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: -0.04em;
}
.nav-links {
  display: flex; align-items: center; gap: 2px; margin: 0 auto;
}
.nav-links a {
  color: var(--c-ink); font-size: 13px; font-weight: 400; letter-spacing: -0.01em;
  padding: 6px 11px; border-radius: 7px; opacity: .86;
  transition: opacity .2s, background .2s;
}
.nav-links a:hover { opacity: 1; text-decoration: none; background: rgba(0,0,0,.04); }

/* themed dropdown menus */
.nav-item { position: relative; }
.nav-top {
  font-family: inherit; color: var(--c-ink); font-size: 13px; font-weight: 400; letter-spacing: -0.01em;
  padding: 6px 11px; border-radius: 7px; opacity: .86; background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; transition: opacity .2s, background .2s;
}
.nav-top::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-1px); opacity: .55; transition: transform .25s var(--ease); }
.nav-item:hover .nav-top, .nav-item:focus-within .nav-top { opacity: 1; background: rgba(0,0,0,.04); }
.nav-item:hover .nav-top::after, .nav-item:focus-within .nav-top::after { transform: rotate(225deg) translateY(-2px); }
.nav-drop {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 200px; background: rgba(251,251,253,.86); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0,0,0,.08); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.28);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-drop a { font-size: 13px; padding: 8px 12px; border-radius: 9px; opacity: .9; white-space: nowrap; }
.nav-simple { color: var(--c-ink); font-size: 13px; font-weight: 400; letter-spacing: -0.01em; padding: 6px 11px; border-radius: 7px; opacity: .86; transition: opacity .2s, background .2s; }
.nav-simple:hover { opacity: 1; text-decoration: none; background: rgba(0,0,0,.04); }

.nav-cta {
  font-size: 13px; font-weight: 400; padding: 6px 14px; border-radius: 980px;
  background: var(--accent); color: #fff !important; opacity: 1 !important;
}
.nav-cta:hover { background: var(--accent-hover); }

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ============================================================
   HERO (3 variations toggled by [data-hero])
   ============================================================ */
.hero { display: none; }
:root[data-hero="a"] #hero-a,
:root[data-hero="b"] #hero-b,
:root[data-hero="c"] #hero-c { display: block; }
/* default */
:root:not([data-hero]) #hero-a { display: block; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--c-ink-2); letter-spacing: 0;
  padding: 7px 14px; border: 1px solid var(--c-line); border-radius: 980px;
  background: rgba(255,255,255,.6);
}
.dark .status-pill { color: var(--c-ink-2-d); border-color: var(--c-line-d); background: rgba(255,255,255,.04); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 0 rgba(52,199,89,.5); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,199,89,.45); }
  70% { box-shadow: 0 0 0 7px rgba(52,199,89,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); }
}

/* Hero A — centered */
#hero-a { padding: calc(var(--nav-h) + clamp(60px, 11vw, 130px)) 0 clamp(40px, 6vw, 80px); text-align: center; }
#hero-a .display { margin: 22px 0 18px; }
#hero-a .lead { max-width: 720px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 26px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-grad {
  background: linear-gradient(135deg, #1d1d1f 0%, var(--accent) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Hero B — split with mockups */
#hero-b { padding: calc(var(--nav-h) + clamp(56px, 9vw, 110px)) 0 clamp(50px, 7vw, 90px); }
.hero-b-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
#hero-b .h1 { margin: 18px 0 18px; }
#hero-b .lead { max-width: 460px; margin-bottom: 28px; }
#hero-b .hero-cta { justify-content: flex-start; }
@media (max-width: 880px) { .hero-b-grid { grid-template-columns: 1fr; text-align: center; } #hero-b .lead { margin-inline: auto; } #hero-b .hero-cta { justify-content: center; } }

/* Hero C — dark full-bleed */
#hero-c { padding: calc(var(--nav-h) + clamp(64px, 11vw, 130px)) 0 clamp(56px, 8vw, 96px); text-align: center; }
#hero-c .display { margin: 22px 0 18px; }
#hero-c .lead { max-width: 680px; margin: 0 auto 30px; }
#hero-c .hero-cta { justify-content: center; }
.hero-c-bg {
  position: absolute; inset: 0; overflow: hidden; z-index: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(41,151,255,.18), transparent 70%),
    #000;
}
.hero-c-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
}
#hero-c .wrap { position: relative; z-index: 1; }

.hero-scroll-mocks { display: flex; gap: 20px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }

/* ============================================================
   FEATURE / CONTENT layout
   ============================================================ */
.center-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); }
.center-head .h2 { margin-top: 6px; }
.center-head .body { margin-top: 18px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-media { min-width: 0; }
.split.rev > .split-media { order: -1; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.rev > .split-media { order: 0; } }

.split-copy .h2 { margin: 6px 0 18px; }
.checklist { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; color: var(--c-ink); letter-spacing: -0.01em; }
.dark .checklist li { color: var(--c-ink-d); }
.check {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
  margin-top: 1px;
}
.dark .check { background: rgba(41,151,255,.18); color: #2997ff; }
.split-copy .linkline { margin-top: 28px; }

/* three-up feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .feature-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.feature-card {
  background: var(--c-bg); border-radius: 22px; padding: 38px 32px;
  border: 1px solid var(--c-line-soft);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.soft .feature-card { background: #fff; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(0,0,0,.22); }
.feature-ico {
  width: 52px; height: 52px; border-radius: 14px; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 22px;
  background: var(--c-bg-soft); border: 1px solid var(--c-line-soft);
}
.feature-ico svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.014em; margin-bottom: 8px; }
.feature-card p { font-size: 16px; color: var(--c-ink-2); line-height: 1.5; }

/* ============================================================
   MOCKUPS (pure CSS)
   ============================================================ */
.device-shadow { box-shadow: 0 40px 90px -40px rgba(0,0,0,.35), 0 8px 24px -12px rgba(0,0,0,.18); }

/* Phone / WhatsApp chat */
.phone {
  width: 300px; max-width: 84vw; margin: 0 auto;
  background: #000; border-radius: 46px; padding: 11px;
  box-shadow: 0 50px 100px -45px rgba(0,0,0,.5), 0 8px 24px -12px rgba(0,0,0,.2);
}
.phone-screen { background: #efeae2; border-radius: 36px; overflow: hidden; position: relative; }
.phone-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #000; border-radius: 16px; z-index: 3; }
.wa-top {
  background: #075e54; color: #fff; padding: 36px 16px 12px; display: flex; align-items: center; gap: 11px;
}
.wa-av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,#3a3a3c,#1d1d1f); display:flex;align-items:center;justify-content:center;font-weight:700;font-size:16px; color:#fff; }
.wa-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.wa-sub { font-size: 11px; opacity: .85; display:flex; align-items:center; gap:5px; }
.wa-sub .dot { width:6px;height:6px; }
.wa-body {
  background-color: #efeae2;
  background-image: radial-gradient(rgba(0,0,0,.025) 1px, transparent 1px);
  background-size: 14px 14px;
  padding: 16px 12px 18px; display: flex; flex-direction: column; gap: 9px; min-height: 320px;
}
.bubble { max-width: 78%; padding: 7px 10px 6px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; position: relative; letter-spacing: -0.01em; box-shadow: 0 1px 1px rgba(0,0,0,.07); color: #111b21; }
.bubble .t { display: block; font-size: 10px; color: rgba(0,0,0,.4); text-align: right; margin-top: 2px; }
.bubble.in { background: #fff; align-self: flex-start; border-top-left-radius: 3px; }
.bubble.out { background: var(--wa-bubble); align-self: flex-end; border-top-right-radius: 3px; }
.bubble.out .t { color: rgba(0,0,0,.45); }

/* Card mockups (context, server, signal) */
.mock-card {
  background: #fff; border: 1px solid var(--c-line-soft); border-radius: 22px;
  padding: 26px; box-shadow: 0 30px 70px -40px rgba(0,0,0,.3);
}
.dark .mock-card { background: #1a1a1c; border-color: var(--c-line-d); }
.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mock-title { font-size: 13px; font-weight: 600; color: var(--c-ink-2); letter-spacing: 0; text-transform: uppercase; }
.dark .mock-title { color: var(--c-ink-2-d); }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--c-line-soft); font-size: 14px; }
.dark .mock-row { border-color: var(--c-line-d); }
.mock-row:last-child { border-bottom: none; }
.mock-row .mr-ico { font-size: 15px; width: 20px; text-align: center; }
.mock-row .mr-label { flex: 1; color: var(--c-ink); }
.dark .mock-row .mr-label { color: var(--c-ink-d); }
.mock-row .mr-meta { color: var(--c-ink-3); font-size: 12.5px; }

/* Monitor de seguridad en vivo (preview real) */
.siege-line { color: var(--c-ink-2); border-left: 3px solid #ff3355; padding-left: 14px; }
.badge-live { color: #ff3355; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.badge-live .dot { width: 7px; height: 7px; border-radius: 50%; background: #ff3355; box-shadow: 0 0 6px 1px #ff3355; animation: liveblink 1.4s infinite; }
@keyframes liveblink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.live-preview-card { overflow: hidden; }
.live-frame-wrap { display: block; position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--c-line-soft); background: #05080a; margin-top: 4px; cursor: pointer; }
.dark .live-frame-wrap { border-color: var(--c-line-d); }
.live-frame-wrap iframe { display: block; transform-origin: top left; border: 0; pointer-events: none; }
.live-caption { font-size: 12.5px; color: var(--c-ink-3); margin-top: 10px; }
.live-cta { margin-top: 6px; font-size: 15px; padding: 8px 4px; }
.badge-ok { color: #1a8a4f; font-size: 12px; font-weight: 600; display:inline-flex; align-items:center; gap:4px; }
.dark .badge-ok { color: #30d158; }

.suggest {
  margin-top: 16px; background: color-mix(in srgb, var(--accent) 7%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 14px; padding: 14px 16px; font-size: 13.5px; line-height: 1.45; color: var(--c-ink);
}
.dark .suggest { background: rgba(41,151,255,.1); border-color: rgba(41,151,255,.28); color: var(--c-ink-d); }
.suggest .sg-by { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; display:block; }
.dark .suggest .sg-by { color: #2997ff; }

/* Terminal */
.terminal {
  background: #0a0a0b; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.6); font-family: var(--mono); text-align: left;
}
.term-bar { background: #1c1c1e; padding: 11px 14px; display: flex; align-items: center; gap: 7px; }
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-title { color: #8e8e93; font-size: 11px; margin-left: 10px; letter-spacing: 0; }
.term-body { padding: 18px 18px 22px; font-size: 12.5px; line-height: 1.85; color: #d1d1d6; }
.term-body .ln { display: block; white-space: pre-wrap; }
.term-body .k { color: #5ac8fa; }
.term-body .g { color: #30d158; }
.term-body .y { color: #ffd60a; }
.term-body .r { color: #ff453a; }
.term-body .m { color: #6e6e73; }
.cursor { display:inline-block; width:7px; height:14px; background:#30d158; vertical-align:-2px; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 0%,50%{opacity:1} 50.01%,100%{opacity:0} }

/* Signal card (dark) */
.signal-card {
  background: linear-gradient(180deg, #161618, #0e0e10); border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px; padding: 28px; font-family: var(--mono); color: #d1d1d6;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.6);
}
.sig-head { font-size: 11px; letter-spacing: .08em; color: #8e8e93; text-transform: uppercase; margin-bottom: 18px; }
.sig-score { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; font-family: var(--font); color:#fff; }
.sig-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 4px 10px; border-radius: 6px; background: rgba(255,214,10,.16); color: #ffd60a; margin-left: 10px; vertical-align: middle; }
.sig-line { font-size: 13px; line-height: 1.9; color: #a1a1a6; }
.sig-quote { margin: 16px 0; padding-left: 14px; border-left: 2px solid #2997ff; color: #f5f5f7; font-family: var(--font); font-style: italic; font-size: 15px; line-height: 1.4; }

/* Stat band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 18px; } }
.stat .num { font-size: clamp(38px, 5vw, 64px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.stat .lbl { font-size: 15px; color: var(--c-ink-2); margin-top: 8px; }
.dark .stat .lbl { color: var(--c-ink-2-d); }

/* Body / anatomy placeholder */
.placeholder {
  border-radius: 22px; border: 1px solid var(--c-line); position: relative; overflow: hidden;
  background-color: var(--c-bg-soft);
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.035) 0 10px, transparent 10px 20px);
  display: flex; align-items: center; justify-content: center; min-height: 360px;
}
.placeholder .ph-label { font-family: var(--mono); font-size: 12px; color: var(--c-ink-3); background: rgba(255,255,255,.8); padding: 6px 12px; border-radius: 8px; border: 1px solid var(--c-line); letter-spacing: 0; }
.placeholder .ph-body { font-size: 120px; opacity: .5; }

/* ============================================================
   SIGNAL "what you receive" three-up (dark)
   ============================================================ */
.receive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
@media (max-width: 820px){ .receive-grid{ grid-template-columns:1fr; max-width:460px; margin-inline:auto;} }
.receive-card { background: #131315; border: 1px solid var(--c-line-d); border-radius: 20px; padding: 30px 26px; }
.receive-card .ri { font-size: 30px; margin-bottom: 16px; }
.receive-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; color: #fff; }
.receive-card p { font-size: 15px; color: var(--c-ink-2-d); line-height: 1.5; }

/* ============================================================
   PROJECTS
   ============================================================ */
.proj-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 860px){ .proj-grid{ grid-template-columns:1fr; max-width:480px; margin-inline:auto;} }
.proj-card {
  background: #fff; border: 1px solid var(--c-line-soft); border-radius: 20px; padding: 30px 26px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); min-height: 200px;
  display: flex; flex-direction: column;
}
.soft .proj-card { background: #fff; }
.proj-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -28px rgba(0,0,0,.25); }
.proj-tag { font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .02em; text-transform: uppercase; margin-bottom: 14px; }
.proj-card h4 { font-size: 21px; font-weight: 600; letter-spacing: -0.014em; margin-bottom: 10px; line-height: 1.2; }
.proj-card p { font-size: 15px; color: var(--c-ink-2); line-height: 1.5; }

/* ============================================================
   PRICING
   ============================================================ */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px){ .price-grid{ grid-template-columns:1fr; max-width:440px; margin-inline:auto;} }
.price-card {
  background: #fff; border: 1px solid var(--c-line-soft); border-radius: 24px; padding: 34px 30px;
  display: flex; flex-direction: column; position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -30px rgba(0,0,0,.22); }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 60px -30px rgba(0,113,227,.4); }
.price-pop { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color:#fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 5px 14px; border-radius: 980px; text-transform: uppercase; }
.price-kicker { font-size: 13px; font-weight: 600; color: var(--c-ink-3); letter-spacing: .02em; text-transform: uppercase; margin-bottom: 6px; }
.price-name { font-size: 26px; font-weight: 600; letter-spacing: -0.016em; margin-bottom: 10px; }
.price-desc { font-size: 14.5px; color: var(--c-ink-2); line-height: 1.45; min-height: 62px; }
.price-amt { font-size: 44px; font-weight: 600; letter-spacing: -0.02em; margin: 18px 0 2px; }
.price-amt span { font-size: 17px; font-weight: 500; color: var(--c-ink-3); letter-spacing: -0.01em; }
.price-sub { font-size: 13px; color: var(--c-ink-3); margin-bottom: 22px; }
.price-card .btn { width: 100%; margin-bottom: 24px; }
.price-feats { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.price-feats li { display: flex; gap: 10px; font-size: 14.5px; color: var(--c-ink); align-items: flex-start; letter-spacing: -0.005em; }
.price-feats .check { width: 19px; height: 19px; font-size: 11px; }

.price-enterprise {
  margin-top: 22px; background: var(--c-black); color: #fff; border-radius: 24px;
  padding: 34px clamp(28px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.price-enterprise h4 { font-size: clamp(20px,2.4vw,28px); font-weight: 600; letter-spacing: -0.014em; }
.price-enterprise p { color: var(--c-ink-2-d); font-size: 16px; margin-top: 6px; }
.price-enterprise .e-amt { font-weight: 600; color: #fff; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--c-line); }
.tl-item { position: relative; padding: 0 0 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -29px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.tl-date { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .01em; margin-bottom: 6px; }
.tl-item h4 { font-size: 21px; font-weight: 600; letter-spacing: -0.014em; margin-bottom: 6px; }
.tl-item p { font-size: 15.5px; color: var(--c-ink-2); line-height: 1.5; }

/* ============================================================
   FINAL CTA + FOOTER
   ============================================================ */
.final-cta { text-align: center; }
.final-cta .lead { max-width: 580px; margin: 18px auto 32px; }

.footer { background: var(--c-bg-soft); border-top: 1px solid var(--c-line-soft); padding: 40px 0 50px; }
.footer .body, .footer p { font-size: 13px; color: var(--c-ink-3); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links a { font-size: 13px; color: var(--c-ink-2); }
.footer-top { display:flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--c-line-soft); margin-bottom: 18px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 1; transform: none; }
html.armed .reveal:not(.in) { opacity: 0; transform: translateY(28px); }
html.armed .reveal.in { opacity: 1; transform: none; animation: revealUp .9s var(--ease); }
@keyframes revealUp { 0% { opacity: 0; transform: translateY(28px); } 100% { opacity: 1; transform: none; } }
html.armed .reveal.d1.in { animation-delay: .08s; }
html.armed .reveal.d2.in { animation-delay: .16s; }
html.armed .reveal.d3.in { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html.armed .reveal:not(.in) { opacity: 1; transform: none; }
  html.armed .reveal.in { animation: none; }
  .dot { animation: none; }
  .cursor { animation: none; }
}

/* ============================================================
   TIER CARDS (los 3 equipos)
   ============================================================ */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 960px) { .tier-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

.tier-card {
  background: #fff; border: 1px solid var(--c-line-soft); border-radius: 26px;
  padding: 32px 30px 34px; display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tier-card:hover { transform: translateY(-5px); box-shadow: 0 28px 64px -32px rgba(0,0,0,.24); }
.tier-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 28px 64px -32px rgba(0,113,227,.4); }
.tier-pop { position: absolute; top: 18px; right: 18px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 5px 12px; border-radius: 980px; text-transform: uppercase; }

.tier-idx { font-size: 13px; font-weight: 600; color: var(--c-ink-3); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.tier-name { font-size: 25px; font-weight: 600; letter-spacing: -0.016em; line-height: 1.1; margin-bottom: 6px; }
.tier-for { font-size: 14.5px; color: var(--c-ink-2); line-height: 1.45; min-height: 42px; }

.vram-band {
  display: flex; align-items: baseline; gap: 8px; margin: 22px 0 4px;
  padding: 18px 20px; border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, #fff), color-mix(in srgb, var(--accent) 3%, #fff));
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
}
.featured .vram-band { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, #fff), color-mix(in srgb, var(--accent) 5%, #fff)); }
.vram-num { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; color: var(--accent); line-height: 1; }
.vram-unit { font-size: 17px; font-weight: 600; color: var(--accent); }
.vram-lbl { font-size: 12px; color: var(--c-ink-3); text-transform: uppercase; letter-spacing: .06em; margin-left: auto; align-self: center; }

.spec-list { list-style: none; margin: 22px 0 0; display: flex; flex-direction: column; }
.spec-list li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--c-line-soft); font-size: 14.5px; letter-spacing: -0.005em; }
.spec-list li:last-child { border-bottom: none; }
.spec-k { flex: none; width: 88px; color: var(--c-ink-3); font-size: 13px; padding-top: 1px; }
.spec-v { flex: 1; color: var(--c-ink); font-weight: 500; }
.spec-v small { display: block; color: var(--c-ink-2); font-weight: 400; font-size: 13px; margin-top: 2px; letter-spacing: 0; }

.tier-meta { display: flex; gap: 10px; margin: 22px 0 0; }
.tier-chip { flex: 1; text-align: center; background: var(--c-bg-soft); border-radius: 14px; padding: 14px 10px; }
.tier-chip .tc-num { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.tier-chip .tc-lbl { font-size: 11.5px; color: var(--c-ink-3); margin-top: 3px; letter-spacing: .01em; }
.tier-card .btn { width: 100%; margin-top: 26px; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.compare-wrap { overflow-x: auto; border-radius: 22px; border: 1px solid var(--c-line-soft); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 18px 22px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--c-line-soft); }
.compare thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--c-ink-3); font-weight: 600; background: var(--c-bg-soft-2); }
.compare thead th:first-child { color: var(--c-ink); }
.compare tbody th { font-weight: 500; color: var(--c-ink-2); font-size: 14px; }
.compare td { font-weight: 500; color: var(--c-ink); }
.compare .col-feat { background: color-mix(in srgb, var(--accent) 5%, #fff); }
.compare thead .col-feat { color: var(--accent); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: none; }

/* ============================================================
   USE-CASE GRID (qué puedes hacer)
   ============================================================ */
.use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .use-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.use-card { background: #fff; border: 1px solid var(--c-line-soft); border-radius: 20px; padding: 30px 28px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.soft .use-card { background: #fff; }
.use-card:hover { transform: translateY(-4px); box-shadow: 0 20px 46px -26px rgba(0,0,0,.22); }
.use-ico { width: 48px; height: 48px; border-radius: 13px; background: var(--c-bg-soft); border: 1px solid var(--c-line-soft); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.use-ico svg { width: 24px; height: 24px; }
.use-card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.014em; margin-bottom: 8px; }
.use-card p { font-size: 15px; color: var(--c-ink-2); line-height: 1.5; }

/* ============================================================
   PILLARS (independencia digital) — reuse split + checklist
   ============================================================ */
.pillar-num { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: .04em; }
.dark .pillar-num { color: #2997ff; }

/* server rack mockup */
.rack { background: #0e0e10; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 20px; box-shadow: 0 40px 90px -40px rgba(0,0,0,.6); }
.rack-unit { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 11px; background: linear-gradient(180deg,#1a1a1c,#141416); border: 1px solid rgba(255,255,255,.07); margin-bottom: 10px; }
.rack-unit:last-child { margin-bottom: 0; }
.rack-led { width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 8px #30d158; flex: none; }
.rack-led.amber { background: #ffd60a; box-shadow: 0 0 8px #ffd60a; }
.rack-gpu { flex: 1; font-family: var(--mono); font-size: 12.5px; color: #d1d1d6; }
.rack-gpu b { color: #fff; font-weight: 600; }
.rack-bar { width: 70px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; flex: none; }
.rack-bar span { display: block; height: 100%; background: linear-gradient(90deg,#2997ff,#30d158); border-radius: 3px; }
.rack-pct { font-family: var(--mono); font-size: 11.5px; color: #8e8e93; width: 38px; text-align: right; flex: none; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 24px 4px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: clamp(18px, 2vw, 22px); font-weight: 600; letter-spacing: -0.014em; color: var(--c-ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 13px; height: 13px; position: relative;
  border-right: 2px solid var(--c-ink-3); border-bottom: 2px solid var(--c-ink-3);
  transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq-item summary:hover { color: var(--accent); }
.faq-a { padding: 0 4px 26px; max-width: 660px; }
.faq-a p { font-size: 17px; line-height: 1.55; color: var(--c-ink-2); letter-spacing: -0.006em; }
.faq-item[open] .faq-a { animation: faqIn .35s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ============================================================
   FLOATING BUTTONS (WhatsApp + Email)
   ============================================================ */
.fab-wsp, .fab-email {
  position: fixed; bottom: 24px; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.35); z-index: 900; transition: transform .2s, box-shadow .2s;
  text-decoration: none; border: none; cursor: pointer;
}
.fab-wsp  { right: 24px; background: #25D366; color: #fff; }
.fab-email{ right: 90px; background: #1a1a2e; color: #fff; }
.fab-wsp:hover, .fab-email:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(0,0,0,.45); }

/* ============================================================
   CONTACT MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: #0f0f17; border: 1px solid rgba(255,255,255,.1); border-radius: 16px;
  padding: 40px; width: 100%; max-width: 480px; position: relative;
  transform: translateY(20px); transition: transform .25s;
}
.modal-overlay.open .modal-box { transform: none; }
.modal-close {
  position: absolute; top: 16px; right: 20px; background: none; border: none;
  color: #888; font-size: 28px; cursor: pointer; line-height: 1; padding: 0;
}
.modal-close:hover { color: #fff; }
.modal-box h3 { font-size: 22px; font-weight: 700; color: #fff; margin: 0 0 6px; }
.modal-sub { color: #888; font-size: 14px; margin: 0 0 24px; }
.modal-box form { display: flex; flex-direction: column; gap: 12px; }
.modal-box input, .modal-box textarea {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; padding: 12px 14px; color: #fff; font-size: 15px; outline: none;
  transition: border-color .2s;
}
.modal-box input:focus, .modal-box textarea:focus { border-color: #2997ff; }
.modal-box textarea { resize: vertical; }
.modal-box input::placeholder, .modal-box textarea::placeholder { color: #555; }
.contact-status { font-size: 14px; text-align: center; margin: 4px 0 0; min-height: 18px; }
.contact-status.ok  { color: #30d158; }
.contact-status.err { color: #ff453a; }

/* ============================================================
   CHAT WIDGET
   ============================================================ */
#chat-widget { position: fixed; bottom: 24px; left: 24px; z-index: 900; }
.chat-toggle {
  width: 56px; height: 56px; border-radius: 50%; background: #1a1a2e;
  border: 2px solid rgba(41,151,255,.5); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.4); position: relative; transition: transform .2s;
}
.chat-toggle:hover { transform: scale(1.08); }
.chat-badge {
  position: absolute; top: -4px; right: -4px; background: #ff453a; color: #fff;
  border-radius: 50%; width: 18px; height: 18px; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.chat-window {
  position: absolute; bottom: 68px; left: 0; width: 320px; background: #0f0f17;
  border: 1px solid rgba(255,255,255,.1); border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5); overflow: hidden;
  opacity: 0; pointer-events: none; transform: translateY(10px) scale(.97);
  transition: opacity .25s, transform .25s;
}
.chat-window.open { opacity: 1; pointer-events: all; transform: none; }
.chat-header {
  background: #12121e; padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: #2997ff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff;
}
.chat-header strong { display: block; color: #fff; font-size: 14px; }
.chat-online { font-size: 11px; color: #30d158; }
.chat-messages { padding: 16px; height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { display: flex; }
.chat-msg.bot  { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg span {
  max-width: 80%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45;
}
.chat-msg.bot  span { background: rgba(255,255,255,.08); color: #e0e0e0; border-bottom-left-radius: 4px; }
.chat-msg.user span { background: #2997ff; color: #fff; border-bottom-right-radius: 4px; }
.chat-quick-replies {
  padding: 8px 12px 14px; display: flex; flex-wrap: wrap; gap: 7px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.qr-btn {
  background: rgba(41,151,255,.15); border: 1px solid rgba(41,151,255,.35);
  color: #2997ff; border-radius: 20px; padding: 6px 13px; font-size: 12.5px;
  cursor: pointer; transition: background .15s, color .15s;
}
.qr-btn:hover { background: #2997ff; color: #fff; }
@media (max-width: 480px) {
  .chat-window { width: calc(100vw - 32px); }
  .fab-email { right: 88px; }
}
