/* =========================================================
   PROTEGO — Landing / presentación
   Paleta verde de marca
   ========================================================= */

:root {
  --green-100: #EBFCEF;
  --green-200: #C9F5D4;
  --green-300: #8CE7A2;
  --green-400: #5ED66A;
  --green-500: #34C759;   /* principal */
  --green-600: #22A64A;
  --green-700: #1E9E4A;
  --green-800: #147a39;
  --green-900: #0d5127;

  --ink-900: #0c1f14;
  --ink-800: #12261a;
  --ink-700: #1f2d25;
  --text: #17241d;
  --muted: #5c6b63;
  --line: #e6ece8;

  --bg: #ffffff;
  --bg-soft: #f4faf6;
  --bg-dark: #0c1f14;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 16px rgba(16, 60, 33, .06);
  --shadow-md: 0 18px 44px rgba(16, 60, 33, .12);
  --shadow-green: 0 16px 40px rgba(34, 199, 89, .28);

  --maxw: 1160px;
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--ink-900); font-weight: 800; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  color: #fff; box-shadow: var(--shadow-green);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 46px rgba(34,199,89,.4); }
.btn-ghost {
  background: rgba(255,255,255,.08); color: var(--green-100);
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(12, 31, 20, 0);
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  box-shadow: 0 2px 18px rgba(16,60,33,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 46px; display: block; filter: drop-shadow(0 6px 14px rgba(34,199,89,.35)); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text {
  display: flex; flex-direction: column; line-height: 1.05;
  font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: #fff;
  letter-spacing: -.02em;
}
.brand-text small { font-weight: 500; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.scrolled .brand-text { color: var(--ink-900); }
.scrolled .brand-text small { color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a:not(.btn) {
  font-family: var(--font-head); font-weight: 600; font-size: .96rem;
  color: rgba(255,255,255,.9); position: relative; padding: 4px 0;
}
.nav-links > a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--green-400); transition: width .25s ease;
}
.nav-links > a:not(.btn):hover::after { width: 100%; }
.scrolled .nav-links > a:not(.btn) { color: var(--text); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; transition: .25s; }
.scrolled .nav-toggle span { background: var(--ink-900); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 80% -10%, #1c5c33 0%, transparent 55%),
    linear-gradient(160deg, #0c1f14 0%, #0f2a1b 45%, #0a2113 100%);
  color: #fff; padding: 40px 0 70px; margin-top: -76px; padding-top: 116px;
  overflow: hidden;
}
.hero-glow {
  position: absolute; width: 620px; height: 620px; left: -160px; top: -120px;
  background: radial-gradient(circle, rgba(52,199,89,.55), transparent 62%);
  filter: blur(30px); pointer-events: none; opacity: .6;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(52,199,89,.14); border: 1px solid rgba(94,214,106,.4);
  color: var(--green-200); font-weight: 600; font-size: .82rem;
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
}
.pill .dot { width: 8px; height: 8px; background: var(--green-400); border-radius: 50%; box-shadow: 0 0 0 4px rgba(94,214,106,.25); }
.hero-copy h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); color: #fff; letter-spacing: -.025em; }
.hero-copy h1 .hl { color: var(--green-400); }
.lead { color: rgba(235,252,239,.82); font-size: clamp(1rem, 1.6vw, 1.18rem); margin: 20px 0 30px; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-badges { list-style: none; display: grid; gap: 10px; }
.hero-badges li { display: flex; align-items: center; gap: 10px; color: rgba(235,252,239,.9); font-size: .96rem; }
.hero-badges .ic { width: 20px; height: 20px; stroke: var(--green-400); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Phone mockup ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; background: #0a1a11; border-radius: 42px;
  padding: 12px; box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 2px rgba(94,214,106,.18);
  border: 1px solid rgba(255,255,255,.08);
}
.phone-notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 120px; height: 22px; background: #0a1a11; border-radius: 0 0 14px 14px; z-index: 3; }
.phone-screen {
  background: linear-gradient(180deg, #f3fbf5, #ffffff); border-radius: 32px;
  padding: 30px 16px 20px; height: 560px; overflow: hidden;
}
.app-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.app-hi { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--ink-900); }
.app-sub { font-size: .78rem; color: var(--muted); }
.app-bell { font-size: 1.1rem; }
.status-card {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  border-radius: 18px; padding: 16px; color: #fff; box-shadow: var(--shadow-green); margin-bottom: 18px;
}
.status-head { display: flex; justify-content: space-between; align-items: center; }
.status-name { font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.status-ok { font-size: .8rem; opacity: .9; }
.status-shield { font-size: 1.3rem; }
.status-row { display: flex; gap: 10px; margin-top: 14px; }
.status-row > div { flex: 1; background: rgba(255,255,255,.16); border-radius: 12px; padding: 9px 12px; display: flex; flex-direction: column; }
.status-row .muted { font-size: .68rem; opacity: .85; }
.status-row strong { font-size: .9rem; }
.app-section { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--ink-900); margin: 4px 4px 12px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.quick {
  min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 4px; text-align: center; font-size: .66rem; font-weight: 600; color: var(--text);
  display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.q-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 1rem; }
.q-a { background: #E3F7E9; } .q-b { background: #E6F0FF; } .q-c { background: #EAF6FF; }
.q-d { background: #FFF1E0; } .q-e { background: #FDE8E8; } .q-f { background: #EFE9FF; }

.floaty {
  position: absolute; background: #fff; color: var(--text); font-weight: 600; font-size: .8rem;
  padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow-md); white-space: nowrap;
}
.floaty-1 { left: -26px; top: 90px; }
.floaty-2 { right: -14px; bottom: 120px; }

/* ---------- Stats ---------- */
.stats {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 54px;
}
.stat {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 22px 24px; backdrop-filter: blur(6px);
}
.stat strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--green-300); }
.stat span { color: rgba(235,252,239,.8); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--green-700);
  background: var(--green-100); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -.02em; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Problema ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pain-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.pain-card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; margin-bottom: 18px; }
.pain-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--green-100); display: grid; place-items: center; font-size: 1.4rem; }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--muted); }
.check-list.bad li::before { content: '✕'; position: absolute; left: 0; top: 0; color: #e05656; font-weight: 700; background: #fde8e8; width: 20px; height: 20px; border-radius: 50%; font-size: .7rem; display: grid; place-items: center; }

/* ---------- Pilares ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--green-300); }
.pillar-ic { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 16px; background: linear-gradient(135deg, var(--green-100), var(--green-200)); font-size: 1.7rem; margin-bottom: 16px; }
.pillar h3 { font-size: 1.12rem; margin-bottom: 8px; }
.pillar p { font-size: .9rem; color: var(--muted); }

/* ---------- Fases ---------- */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.phase {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.phase:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.phase.featured { border-color: var(--green-400); box-shadow: var(--shadow-green); }
.phase-head { padding: 26px 26px 22px; color: #fff; }
.phase-head.p1 { background: linear-gradient(135deg, #34C759, #1E9E4A); }
.phase-head.p2 { background: linear-gradient(135deg, #17a2b8, #1170a8); }
.phase-head.p3 { background: linear-gradient(135deg, #7c5cff, #5b3fd6); }
.phase-tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.22); padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.phase-head h3 { color: #fff; font-size: 1.3rem; }
.feat { list-style: none; padding: 22px 26px; display: grid; gap: 11px; }
.feat li { position: relative; padding-left: 28px; font-size: .92rem; color: var(--text); }
.feat li::before { content: '✓'; position: absolute; left: 0; top: 1px; color: var(--green-600); font-weight: 800; }
.phase-goal { padding: 0 26px 26px; font-size: .88rem; color: var(--muted); }
.phase-goal strong { color: var(--ink-900); }

/* ---------- Módulos ---------- */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.module {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.module:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.mod-ic { width: 54px; height: 54px; border-radius: 14px; background: var(--green-100); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 14px; }
.module h3 { font-size: 1.15rem; margin-bottom: 6px; }
.module p { color: var(--muted); font-size: .92rem; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .95rem;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, border-color .2s ease;
}
.service:hover { transform: translateY(-4px); border-color: var(--green-300); }
.service span { font-size: 1.5rem; }

/* ---------- Usuarios ---------- */
.users { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.user {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px;
  text-align: center; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.user:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.user-ic { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: linear-gradient(135deg, var(--green-100), var(--green-200)); font-size: 2rem; margin-bottom: 16px; }
.user h3 { font-size: 1.1rem; margin-bottom: 8px; }
.user p { color: var(--muted); font-size: .9rem; }

/* ---------- Beneficios ---------- */
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.benefits-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 14px 0 16px; }
.benefits-copy p { color: var(--muted); margin-bottom: 26px; font-size: 1.05rem; }
.benefits-list { list-style: none; display: grid; gap: 14px; }
.benefits-list li {
  display: flex; align-items: flex-start; gap: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow-sm); font-weight: 500;
}
.b-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--green-500); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 120% at 15% 0%, #1c5c33 0%, transparent 55%), linear-gradient(150deg, #0c1f14, #0f2a1b);
  padding: 80px 0;
}
.cta-glow { position: absolute; right: -140px; bottom: -160px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(52,199,89,.5), transparent 62%); filter: blur(30px); }
.cta-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cta-copy h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.cta-copy p { color: rgba(235,252,239,.85); margin: 16px 0 24px; font-size: 1.08rem; }
.cta-direct { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-chip {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25); padding: 11px 18px; border-radius: 999px; font-weight: 600;
  transition: background .2s ease;
}
.contact-chip:hover { background: rgba(255,255,255,.2); }

.cta-form { background: #fff; border-radius: 22px; padding: 30px; box-shadow: var(--shadow-md); color: var(--text); }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .85rem; margin-bottom: 6px; color: var(--ink-900); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: .95rem; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 12px; background: var(--bg-soft); resize: vertical; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(52,199,89,.15); background: #fff; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { margin-top: 12px; font-size: .9rem; font-weight: 600; min-height: 1.2em; text-align: center; }
.form-note.ok { color: var(--green-700); }
.form-note.err { color: #d64545; }

/* ---------- Footer ---------- */
.site-footer { background: #08160e; color: rgba(235,252,239,.75); padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.brand-footer { align-items: center; }
.brand-footer .brand-text { color: #fff; }
.brand-footer .brand-text small { color: rgba(235,252,239,.6); }
.footer-brand p { margin-top: 16px; font-size: .92rem; max-width: 30em; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-col a { display: block; font-size: .9rem; padding: 5px 0; color: rgba(235,252,239,.72); transition: color .2s ease; }
.footer-col a:hover { color: var(--green-300); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 22px; font-size: .85rem; }
.footer-tag { color: var(--green-300); font-weight: 600; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy .pill, .hero-actions { justify-content: center; }
  .hero-badges { justify-items: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .phases { grid-template-columns: 1fr; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .users { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid, .cta-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 12px 22px 22px; box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .35s ease; z-index: 55;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links > a:not(.btn) { color: var(--text); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links > a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 14px; }
  .site-header { background: rgba(255,255,255,.95); backdrop-filter: blur(10px); }
  .brand-text { color: var(--ink-900); }
  .brand-text small { color: var(--muted); }
  .nav-toggle span { background: var(--ink-900); }

  .stats { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .pillars, .modules, .services, .users, .footer-grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .floaty-1 { left: 0; } .floaty-2 { right: 0; }
  .footer-bottom { flex-direction: column; }
}

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