/* ==========================================================================
   ProActivo · web2 — Sistema de diseño
   Paleta sobria + tipografía moderna. Pensado para transmitir experiencia y
   confianza sin depender de testimonios.
   ========================================================================== */

:root {
  --brand:        #2b4f96;   /* azul del logo (cohete / texto ProActivo) */
  --brand-600:    #223f7a;
  --brand-700:    #1a3160;
  --brand-soft:   #e9eef8;
  --accent:       #c62d2d;   /* rojo del logo (llamas / aletas del cohete) */
  --accent-soft:  #fbeaea;
  --accent-600:   #a52323;
  --ok:           #1f9d57;   /* verde funcional: confirmaciones / "enviado" */
  --err:          #c0392b;
  --ink:          #111a2e;   /* texto principal (azul muy oscuro) */
  --ink-2:        #33405a;
  --muted:        #6b7688;
  --bg:           #ffffff;
  --bg-soft:      #f5f7fb;
  --bg-dark:      #16233f;   /* azul profundo del logo (footer / CTA) */
  --line:         #e6eaf2;
  --shadow-sm:    0 1px 2px rgba(16,25,45,.06), 0 1px 3px rgba(16,25,45,.05);
  --shadow-md:    0 8px 24px rgba(16,25,45,.08);
  --shadow-lg:    0 24px 60px rgba(16,25,45,.14);
  --radius:       16px;
  --radius-sm:    10px;
  --radius-lg:    26px;
  --container:    1180px;
  --font-head:   'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; color: var(--ink-2); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-2); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(64px, 9vw, 118px) 0; }
.section--soft { background: var(--bg-soft); }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-600); background: var(--brand-soft);
  padding: .4rem .85rem; border-radius: 100px; margin-bottom: 1.1rem;
}
.section-head { max-width: 720px; margin: 0 auto clamp(38px, 5vw, 60px); }
.section-head.center { text-align: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 100px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn i { font-size: 1.1em; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(43,79,150,.3); }
.btn--primary:hover { background: var(--brand-600); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(43,79,150,.38); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-600); transform: translateY(-2px); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--light:hover { background: rgba(255,255,255,.2); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.06rem; }
.btn--block { width: 100%; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 800; font-size: 1.24rem; letter-spacing: -.02em; }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), #4f79c8); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 14px rgba(43,79,150,.35); }
.brand__mark i { font-size: 1.15rem; }
.brand span b { color: var(--brand-600); }
.brand__img { height: 42px; width: auto; display: block; }
.brand--footer { display: inline-flex; background: transparent; padding: 0; margin-bottom: 1.1rem; }
.brand--footer .brand__img { height: 58px; }
.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a { font-weight: 600; color: var(--ink-2); font-size: .96rem; transition: color .15s; }
.nav__links a:hover { color: var(--brand-600); }
.nav__cta { display: flex; align-items: center; gap: .8rem; }
.nav__toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(60px, 8vw, 108px); background: radial-gradient(1100px 520px at 85% -8%, #e9eef8 0%, rgba(233,238,248,0) 60%), #fff; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__title { margin-bottom: 1.1rem; }
.hero__title .accent { color: var(--accent); }
.hero p.lead { margin-bottom: 1.8rem; max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.6rem; }
.hero__note { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .93rem; font-weight: 600; }
.hero__note i { color: var(--brand); font-size: 1.15rem; }

/* Visual del hero: mockup con formas (placeholder de foto real) */
.hero__visual { position: relative; }
.mockup {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(150deg, #16233f, #22407a 55%, #2b4f96);
  aspect-ratio: 4 / 3.2; box-shadow: var(--shadow-lg);
  display: grid; place-items: center; color: #fff;
}
.mockup__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 34px 34px; }
.hero__illu { position: relative; width: 100%; height: auto; display: block; }
.mockup__badge { position: relative; text-align: center; padding: 1.4rem; }
.mockup__badge .k { font-family: var(--font-head); font-weight: 800; font-size: 3rem; line-height: 1; }
.mockup__badge .t { opacity: .85; font-weight: 600; }
.float-card {
  position: absolute; background: #fff; color: var(--ink); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: .8rem 1rem; display: flex; align-items: center; gap: .65rem;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem; border: 1px solid var(--line);
}
.float-card i { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 1.1rem; }
.float-card--a { top: 14%; left: -26px; }
.float-card--a i { background: var(--accent-soft); color: var(--accent); }
.float-card--b { bottom: 12%; right: -22px; }
.float-card--b i { background: var(--brand-soft); color: var(--brand-600); }
.float-card small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: .78rem; }

/* ---------- Franja de confianza ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 30px 0; }
.trust__item { display: flex; align-items: center; gap: .85rem; }
.trust__item i { font-size: 1.7rem; color: var(--brand); }
.trust__item .k { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; line-height: 1.1; }
.trust__item .t { color: var(--muted); font-size: .9rem; }

/* ---------- Propuesta / esencia ---------- */
.pitch { position: relative; }
.pitch__quote { max-width: 900px; margin: 0 auto; text-align: center; }
.pitch__quote .big { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.35rem); letter-spacing: -.02em; line-height: 1.25; }
.pitch__quote .big em { color: var(--brand-600); font-style: normal; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: clamp(38px, 5vw, 56px); }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.pillar i { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-600); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 1rem; }
.pillar h3 { margin-bottom: .35rem; }
.pillar p { margin: 0; font-size: .96rem; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.4rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d7e0f2; }
.card__icon { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1.1rem; background: var(--brand-soft); color: var(--brand-600); }
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; font-size: .96rem; }
.card--feature { grid-column: span 6; background: linear-gradient(160deg, #16233f 0%, #1f3a6f 60%, #2b4f96 100%); color: #fff; border: none; }
.card--feature h3, .card--feature p { color: #fff; }
.card--feature p { color: rgba(255,255,255,.82); }
.card--feature .card__icon { background: rgba(255,255,255,.14); color: #fff; }
.card--feature .tag { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-weight: 700; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: #04231a; padding: .3rem .7rem; border-radius: 100px; margin-bottom: 1rem; }
.card--feature .card__link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.2rem; font-family: var(--font-head); font-weight: 700; color: #fff; border-bottom: 2px solid rgba(255,255,255,.35); padding-bottom: 2px; }
.card--feature .card__link:hover { border-color: #fff; }
.card--half { grid-column: span 6; }
.card--third { grid-column: span 4; }

/* Tarjetas con imagen de fondo + velo oscuro para legibilidad */
.card--photo { border: none; color: #fff; background-size: cover; background-position: center; }
.card--photo::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to top, rgba(8,14,26,.92) 0%, rgba(11,20,38,.58) 48%, rgba(18,32,60,.26) 100%); }
.card--photo > * { position: relative; z-index: 1; }
.card--photo h3 { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.card--photo p { color: rgba(255,255,255,.92); text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.card--photo .card__icon { background: rgba(255,255,255,.16); color: #fff; }
.card--photo:hover { border-color: transparent; }

/* ---------- Diseño web destacado + planes ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: clamp(34px, 4vw, 48px); }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem 1.7rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .18s, box-shadow .2s, border-color .2s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d7e0f2; }
.plan--featured { border-color: var(--brand); box-shadow: 0 14px 40px rgba(43,79,150,.2); }
.plan__badge { align-self: flex-start; font-family: var(--font-head); font-weight: 700; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-600); background: var(--brand-soft); padding: .3rem .7rem; border-radius: 100px; margin-bottom: .9rem; }
.plan h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.plan__time { color: var(--muted); font-size: .88rem; font-weight: 600; margin-bottom: 1.1rem; }
.plan__list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; }
.plan__list li { display: flex; align-items: flex-start; gap: .55rem; font-size: .94rem; color: var(--ink-2); }
.plan__list i { color: var(--brand); font-size: 1.05rem; margin-top: .15rem; }
.plan .btn { margin-top: auto; }

/* ---------- Cómo trabajamos (para "Más información") ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step { position: relative; padding-top: 1rem; }
.step__n { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; margin-bottom: 1rem; box-shadow: 0 8px 18px rgba(198,45,45,.3); }
.step h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.step p { font-size: .94rem; margin: 0; }

/* ---------- Sección dolor ---------- */
.pain__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; max-width: 900px; margin: 0 auto; }
.pain__item { display: flex; align-items: flex-start; gap: .8rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 1.05rem 1.2rem; box-shadow: var(--shadow-sm); font-size: 1.02rem; color: var(--ink); font-weight: 500; }
.pain__item i { color: var(--accent); font-size: 1.3rem; margin-top: .12rem; flex-shrink: 0; }
.pain__bridge { text-align: center; margin-top: 2.2rem; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.pain__bridge a { color: var(--brand-600); border-bottom: 2px solid var(--brand-soft); padding-bottom: 2px; }
.pain__bridge a:hover { border-color: var(--brand); }

/* ---------- FAQ ---------- */
.faq__list { max-width: 780px; margin: 0 auto; display: grid; gap: .9rem; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq__item summary { cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-family: var(--font-head); font-weight: 700; font-size: 1.04rem; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { color: var(--brand); transition: transform .2s ease; flex-shrink: 0; }
.faq__item[open] summary i { transform: rotate(180deg); }
.faq__item p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--ink-2); font-size: .98rem; line-height: 1.65; }

/* ---------- CTA final + formulario ---------- */
.cta { background: linear-gradient(150deg, #16233f 0%, #1f3a6f 55%, #2b4f96 100%); color: #fff; border-radius: var(--radius-lg); overflow: hidden; }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; }
.cta__intro { padding: clamp(40px, 5vw, 64px); }
.cta__intro .eyebrow { background: rgba(255,255,255,.14); color: #cfe0ff; }
.cta__intro h2 { color: #fff; }
.cta__intro p { color: rgba(255,255,255,.82); }
.cta__perks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .7rem; }
.cta__perks li { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.cta__perks i { color: #7fe3b0; font-size: 1.2rem; }
.cta__form { background: #fff; color: var(--ink); padding: clamp(34px, 4vw, 52px); }
.cta__form h3 { margin-bottom: .3rem; }
.cta__form > p { color: var(--muted); font-size: .95rem; margin-bottom: 1.4rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .86rem; margin-bottom: .35rem; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg-soft);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .95rem; transition: border-color .15s, background .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.field textarea { resize: vertical; min-height: 96px; }
/* Trampa honeypot: oculta para humanos, tentadora para bots */
.hidden { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
#status { margin-top: 1rem; font-weight: 600; font-size: .95rem; }
#status.success { color: var(--ok); }
#status.error { color: var(--err); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-dark); color: #b7c1d4; padding: clamp(50px, 6vw, 76px) 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer .brand { color: #fff; margin-bottom: 1rem; }
.footer p { color: #8b97ad; font-size: .95rem; max-width: 34ch; }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer a { color: #b7c1d4; font-size: .95rem; transition: color .15s; }
.footer a:hover { color: #fff; }
.footer__social { display: flex; gap: .7rem; margin-top: 1.2rem; }
.footer__social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 1.1rem; transition: background .18s, transform .18s; }
.footer__social a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.footer__bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: #6d7a91; font-size: .88rem; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.8rem; box-shadow: 0 10px 26px rgba(37,211,102,.45); transition: transform .18s; }
.wa-float:hover { transform: scale(1.07); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 460px; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .pillars, .plans, .steps { grid-template-columns: 1fr 1fr; }
  .card--feature, .card--half, .card--third { grid-column: span 6; }
  .cta__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__links.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 22px; gap: 1rem; }
}
@media (max-width: 620px) {
  .services { grid-template-columns: 1fr; }
  .card--feature, .card--half, .card--third { grid-column: span 12; }
  .pillars, .plans, .steps, .trust__grid, .footer__grid, .pain__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .brand__img { height: 34px; }
  .float-card--a { left: 6px; } .float-card--b { right: 6px; }
}
