/* ─── TOKENS ──────────────────────────────────────────────────────── */
:root {
  --navy-950: #0A1F36;
  --navy-900: #0E2A47;
  --navy-800: #15375A;
  --teal-600: #2C6E8F;
  --teal-500: #3B86A8;
  --teal-400: #6FA9C4;
  --cream-50:  #FBF6EC;
  --cream-100: #F4EBDC;
  --cream-200: #E9DCC4;
  --cream-300: #D8C7A8;
  --ink-900: #14202E;
  --ink-700: #324356;
  --ink-500: #5C6B7C;
  --ink-400: #8392A2;
  --line:   rgba(14, 42, 71, .10);
  --line-s: rgba(14, 42, 71, .18);
  --success: #2F8F5E;
  --danger:  #C0392B;
  --wa:      #25D366;
  --wa-dark: #128C7E;
  --sh-sm: 0 1px 2px rgba(10,31,54,.06), 0 1px 1px rgba(10,31,54,.04);
  --sh-md: 0 4px 14px rgba(10,31,54,.10), 0 2px 4px rgba(10,31,54,.06);
  --sh-lg: 0 18px 40px rgba(10,31,54,.18), 0 6px 14px rgba(10,31,54,.08);
  --glow:  0 0 0 4px rgba(59, 134, 168, .18);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --sans:   'Inter', system-ui, sans-serif;
  --script: 'Cormorant Garamond', Georgia, serif;
}

/* ─── RESET & BASE ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--sans);
  color: var(--ink-900);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }

/* ─── HEX BACKGROUNDS ─────────────────────────────────────────────── */
.hex-navy {
  background-color: var(--navy-900);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'><g fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'><polygon points='28,2 53,16 53,46 28,60 3,46 3,16'/><polygon points='0,30 14,38 14,54 0,62 -14,54 -14,38'/><polygon points='56,30 70,38 70,54 56,62 42,54 42,38'/></g></svg>");
}
.hex-cream {
  background-color: var(--cream-100);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'><g fill='none' stroke='%230E2A47' stroke-opacity='0.07' stroke-width='1'><polygon points='28,2 53,16 53,46 28,60 3,46 3,16'/><polygon points='0,30 14,38 14,54 0,62 -14,54 -14,38'/><polygon points='56,30 70,38 70,54 56,62 42,54 42,38'/></g></svg>");
}
.hex-navy-overlay {
  background-color: var(--navy-900);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'><g fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'><polygon points='28,2 53,16 53,46 28,60 3,46 3,16'/></g></svg>");
  position: absolute;
  inset: 0;
  opacity: .5;
}

/* ─── REVEAL ON SCROLL ────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ─── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; font-size: 15px; font-weight: 600;
  border-radius: var(--r-md); border: none; text-decoration: none;
  letter-spacing: .005em;
  transition: transform .12s, box-shadow .15s, background .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-navy  { background: var(--navy-900); color: #fff; box-shadow: var(--sh-md); }
.btn-navy:hover  { background: var(--navy-800); box-shadow: var(--sh-lg); }
.btn-teal  { background: var(--teal-600); color: #fff; box-shadow: var(--sh-md); }
.btn-teal:hover  { background: var(--teal-500); }
.btn-wa    { background: var(--wa); color: #fff; box-shadow: var(--sh-md); }
.btn-wa:hover    { background: var(--wa-dark); }
.btn-outline { background: #fff; color: var(--navy-900); border: 1px solid var(--line-s); }
.btn-outline:hover { background: var(--cream-100); }
.btn-ghost { background: transparent; color: var(--cream-50); border: 1px solid rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-lg    { padding: 15px 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* ─── PILL BADGES ─────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.pill-cream { background: var(--cream-100); color: var(--navy-900); }
.pill-teal  { background: rgba(44,110,143,.12); color: var(--teal-600); }
.pill-navy  { background: rgba(14,42,71,.08); color: var(--navy-900); }

/* ─── FORM ────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.lbl { font-size: 13px; font-weight: 500; color: var(--ink-700); }
.lbl .opt { color: var(--ink-500); font-weight: 400; }
.inp, .sel, .txa {
  width: 100%; padding: 12px 14px;
  border-radius: var(--r-md); border: 1px solid var(--line-s);
  background: #fff; font-size: 15px; color: var(--ink-900);
  font-family: var(--sans); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.inp::placeholder, .txa::placeholder { color: var(--ink-400); }
.inp:focus, .sel:focus, .txa:focus { border-color: var(--teal-500); box-shadow: var(--glow); }
.inp.bad, .sel.bad { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(192,57,43,.12); }
.err-msg { font-size: 12.5px; color: var(--danger); display: none; }
.err-msg.show { display: block; }
.txa { resize: vertical; min-height: 84px; }
.sel {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23324356' stroke-width='1.6' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { margin: 0; font-size: 12px; color: var(--ink-500); text-align: center; line-height: 1.5; }

/* ─── SUCCESS SCREEN ──────────────────────────────────────────────── */
.success-screen { text-align: center; padding: 16px 8px; animation: fadein-up .5s ease both; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(47,143,94,.14); color: var(--success);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.success-screen h3  { margin: 0 0 8px; font-size: 22px; font-weight: 700; color: var(--navy-900); }
.success-screen p   { margin: 0 0 20px; color: var(--ink-500); font-size: 14.5px; line-height: 1.55; }
.success-screen strong { color: var(--navy-900); }
.retry-btn { margin-top: 14px; background: transparent; border: none; color: var(--ink-500); font-size: 13px; cursor: pointer; text-decoration: underline; }

/* ─── WHATSAPP PULSE ──────────────────────────────────────────────── */
.wa-primary { position: relative; }
.wa-pulse   { position: absolute; inset: 0; border-radius: var(--r-md); pointer-events: none; animation: pulse-ring 2.4s infinite; }
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0   rgba(37,211,102,.55); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0   rgba(37,211,102,0); }
}
@keyframes spin       { to { transform: rotate(360deg); } }
@keyframes fadein-up  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}

/* ─── HEADER ──────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,246,236,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px; max-width: 1180px; margin: 0 auto;
}
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink-700); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .15s; }
.site-nav a:hover { color: var(--navy-900); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.burger {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  background: transparent; border: 1px solid var(--line-s);
  align-items: center; justify-content: center;
  color: var(--navy-900); padding: 0;
}
.mobile-drawer { display: none; overflow: hidden; max-height: 0; transition: max-height .3s ease; background: var(--cream-50); }
.mobile-drawer.open { max-height: 520px; border-top: 1px solid var(--line); }
.drawer-nav { padding: 16px 24px 22px; display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a:not(.btn) {
  padding: 14px 4px; font-size: 16px; font-weight: 500;
  color: var(--navy-900); text-decoration: none;
  border-bottom: 1px solid var(--line); display: block;
}

/* ─── HERO ────────────────────────────────────────────────────────── */
#hero { position: relative; overflow: hidden; color: #fff; }
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(59,134,168,.35), transparent 60%),
              linear-gradient(180deg, transparent 60%, rgba(10,31,54,.6));
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
  padding: 64px 28px 80px; max-width: 1180px; margin: 0 auto;
}
.hero-h1 { margin: 0 0 14px; font-size: clamp(40px,5.4vw,64px); line-height: 1.02; font-weight: 800; letter-spacing: -.02em; }
.hero-h1 em { font-family: var(--script); font-style: italic; font-weight: 500; color: var(--teal-400); }
.hero-sub { margin: 0 0 12px; font-size: clamp(20px,2.2vw,26px); font-weight: 600; color: var(--cream-100); }
.hero-sub span { color: var(--teal-400); }
.hero-desc { margin: 0 0 28px; font-size: 16.5px; color: rgba(255,255,255,.78); line-height: 1.6; max-width: 520px; }
.wa-trio { max-width: 380px; margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.wa-secondary-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; color: rgba(255,255,255,.78); font-size: 13.5px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.form-card {
  background: var(--cream-50); color: var(--ink-900);
  border-radius: var(--r-xl); padding: 28px 28px 26px;
  box-shadow: var(--sh-lg); border: 1px solid rgba(255,255,255,.5);
  position: relative;
}
.form-badge {
  position: absolute; top: -14px; left: 28px;
  background: var(--teal-600); color: #fff;
  font-size: 12px; font-weight: 600; padding: 6px 12px;
  border-radius: 999px; letter-spacing: .04em;
}
.form-card .form-card-title { margin: 8px 0 4px; font-size: 22px; font-weight: 700; color: var(--navy-900); line-height: 1.2; }
.form-card .form-card-sub { margin: 0 0 18px; font-size: 14px; color: var(--ink-500); }
.hero-strip { position: relative; border-top: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.18); }
.hero-strip-inner {
  max-width: 1180px; margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
  color: rgba(255,255,255,.78); font-size: 12px; font-weight: 500;
  letter-spacing: .02em; text-transform: uppercase;
}
.hero-strip-inner .prefix { color: var(--teal-400); }
.dot { opacity: .3; }

/* ─── SECTIONS ────────────────────────────────────────────────────── */
.section { padding: 88px 28px; }
.wrap    { max-width: 1180px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-h2   { margin: 14px 0 10px; font-size: clamp(30px,3.6vw,42px); font-weight: 800; color: var(--navy-900); letter-spacing: -.02em; }
.section-lead { margin: 0 auto; color: var(--ink-500); font-size: 16.5px; max-width: 580px; }

/* ─── SEGMENTS ────────────────────────────────────────────────────── */
#a-quien { background: var(--cream-50); }
.seg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.seg-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 22px 24px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.seg-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--teal-500); }
.seg-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--cream-100); color: var(--navy-900); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.seg-card h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 700; color: var(--navy-900); line-height: 1.25; }
.seg-card p  { margin: 0; font-size: 13.5px; color: var(--ink-500); line-height: 1.55; }
.seg-card .seg-scope { margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--teal-600); letter-spacing: 0.02em; }

/* ─── STEPS ───────────────────────────────────────────────────────── */
#como { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 22px; }
.step-card  { background: #fff; border-radius: var(--r-lg); padding: 28px 26px 30px; box-shadow: var(--sh-sm); border: 1px solid var(--line); }
.step-n     { font-family: var(--script); font-style: italic; font-size: 56px; line-height: 1; color: var(--teal-500); font-weight: 500; margin-bottom: 6px; }
.step-card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: var(--navy-900); }
.step-card p  { margin: 0; color: var(--ink-700); font-size: 14.5px; line-height: 1.6; }

/* ─── WHY + REQUIREMENTS ──────────────────────────────────────────── */
#por-que { background: var(--cream-50); }
.twocol       { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.reasons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.reason       { display: flex; gap: 12px; }
.reason-icon  { flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; background: var(--navy-900); color: #fff; display: flex; align-items: center; justify-content: center; }
.reason h3    { margin: 4px 0 4px; font-size: 15.5px; font-weight: 700; color: var(--navy-900); }
.reason p     { margin: 0; font-size: 13.5px; color: var(--ink-500); line-height: 1.55; }
.req-card     { background: var(--navy-900); color: #fff; border-radius: var(--r-xl); padding: 32px 30px; position: relative; overflow: hidden; }
.req-inner    { position: relative; }
.req-pill     { background: rgba(255,255,255,.1); color: var(--cream-100); }
.req-card h3  { margin: 14px 0 14px; font-size: 24px; font-weight: 700; }
.req-lead     { margin: 0 0 20px; font-size: 14.5px; color: rgba(255,255,255,.78); line-height: 1.6; }
.req-list     { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; }
.req-list li  { display: flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255,255,255,.92); }
.req-check    { width: 22px; height: 22px; border-radius: 50%; background: var(--teal-600); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.req-hr       { height: 1px; background: rgba(255,255,255,.12); margin-bottom: 18px; }
.req-footer   { font-size: 13.5px; color: rgba(255,255,255,.7); line-height: 1.55; display: flex; align-items: center; gap: 6px; }

/* ─── FAQ ─────────────────────────────────────────────────────────── */
#faq       { background: var(--cream-100); border-top: 1px solid var(--line); }
.faq-wrap  { max-width: 760px; margin: 0 auto; }
.faq-list  { display: flex; flex-direction: column; gap: 10px; }
.faq-item  { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.faq-item.open { border-color: var(--line-s); box-shadow: var(--sh-md); }
.faq-q {
  width: 100%; text-align: left; padding: 16px 18px;
  background: transparent; border: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: var(--navy-900); font-weight: 600; font-size: 15px; font-family: var(--sans);
}
.faq-chevron { color: var(--teal-600); transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-body { max-height: 240px; }
.faq-a { padding: 0 18px 16px; color: var(--ink-700); font-size: 14.5px; line-height: 1.6; }

/* ─── CONTACT ─────────────────────────────────────────────────────── */
#contacto { background: var(--cream-50); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: stretch; }
.contact-card { background: #fff; border-radius: var(--r-lg); padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.contact-card h3  { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: var(--navy-900); }
.contact-card .sub { margin: 0; font-size: 13.5px; color: var(--ink-500); }
.wa-list { display: flex; flex-direction: column; gap: 10px; }
.wa-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  border-radius: var(--r-md); text-decoration: none; color: var(--navy-900);
  border: 1px solid var(--line); transition: transform .12s, background .15s;
}
.wa-row.primary { background: rgba(37,211,102,.10); border-color: rgba(37,211,102,.35); }
.wa-row:hover   { transform: translateX(3px); }
.wa-row-icon    { width: 36px; height: 36px; border-radius: 8px; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wa-row-label   { font-weight: 700; font-size: 16px; }
.wa-row-sub     { font-size: 12.5px; color: var(--ink-500); }
.divider        { height: 1px; background: var(--line); }
.clinks         { display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--ink-700); }
.clinks a, .clinks span { display: flex; align-items: center; gap: 10px; color: var(--ink-700); text-decoration: none; }
.clinks a:hover { color: var(--navy-900); }
.map-wrap  { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-s); flex: 1; }
.map-col   { display: flex; flex-direction: column; }

/* ─── FOOTER ──────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.7); padding: 36px 28px 28px; }
.footer-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; align-items: start; }
.footer-brand p { margin: 14px 0 0; font-size: 13px; line-height: 1.6; max-width: 360px; }
.footer-h4  { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: #fff; letter-spacing: .05em; text-transform: uppercase; }
.footer-ul  { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.footer-legal { font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,.55); }
.footer-copy  { max-width: 1180px; margin: 28px auto 0; border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; font-size: 12.5px; color: rgba(255,255,255,.72); text-align: center; }

/* ─── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .site-nav      { display: none; }
  .burger        { display: inline-flex; }
  .mobile-drawer { display: block; }
  .hero-grid     { grid-template-columns: 1fr 1fr; gap: 32px; padding: 56px 28px 64px; }
  .twocol        { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .footer-brand  { grid-column: 1 / -1; }
  .seg-grid      { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .header-inner  { padding: 12px 18px; }
  .header-cta    { display: none; }
  .hero-grid     { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px 56px; }
  .contact-grid  { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
  .row2          { grid-template-columns: 1fr; }
  .reasons-grid  { grid-template-columns: 1fr; }
  .seg-grid      { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .header-inner  { padding: 10px 14px; }
}
