/* ===================== VARIABLES ===================== */
:root {
  --blue: #2e5aa8;
  --blue-dark: #21407a;
  --blue-light: #4a78c9;
  --blue-50: #eef3fb;
  --blue-100: #dce7f6;
  --accent: #f5a623;
  --ink: #15233d;
  --muted: #5b6b85;
  --line: #e4e9f2;
  --bg: #ffffff;
  --bg-soft: #f6f9fe;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(33, 64, 122, .08);
  --shadow-md: 0 12px 30px rgba(33, 64, 122, .12);
  --shadow-lg: 0 24px 60px rgba(33, 64, 122, .18);
  --max: 1160px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Plus Jakarta Sans', var(--font);
}

/* ===================== RESET ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; color: var(--ink); font-weight: 800; }

.grad {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-light) 60%, var(--accent) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===================== BOTONES ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; cursor: pointer; border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue-100); }
.btn-ghost:hover { background: var(--blue-50); border-color: var(--blue); }
.btn-block { width: 100%; }

/* ===================== NAVBAR ===================== */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 42px; height: 42px; }
.brand-text { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--blue-dark); letter-spacing: .3px; }
.brand-text strong { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--blue); }
.nav-cta { background: var(--blue); color: #fff !important; padding: 10px 20px; border-radius: 999px; }
.nav-cta:hover { background: var(--blue-dark); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ===================== HERO ===================== */
.hero { position: relative; overflow: hidden; background: var(--bg-soft); }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 85% -10%, rgba(74, 120, 201, .25), transparent 60%),
    radial-gradient(600px 400px at 0% 110%, rgba(245, 166, 35, .12), transparent 60%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px;
  align-items: center; padding: 72px 24px 88px;
}
.badge-promo {
  display: inline-block; background: #fff; color: var(--blue-dark);
  border: 1px solid var(--blue-100); font-weight: 700; font-size: .85rem;
  padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero-copy h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.5px; }
.hero-sub { margin-top: 20px; font-size: 1.12rem; color: var(--muted); max-width: 540px; }

.price-row { display: flex; align-items: center; gap: 16px; margin-top: 30px; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 24px; box-shadow: var(--shadow-sm); text-align: center; min-width: 140px;
}
.price-label { display: block; font-size: .82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.price-value { display: block; font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--blue); }
.price-value small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price-plus { font-size: 1.6rem; font-weight: 800; color: var(--blue-light); }
.price-note { margin-top: 12px; font-size: .85rem; color: var(--muted); font-style: italic; }

.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.hero-trust { display: flex; gap: 32px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-family: var(--font-head); font-size: 1.7rem; color: var(--blue-dark); }
.trust-item span { font-size: .82rem; color: var(--muted); }

/* Hero mock */
.hero-visual { display: flex; justify-content: center; }
.invoice-mock {
  width: 100%; max-width: 380px; background: #fff; border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 24px; border: 1px solid var(--line);
  transform: rotate(1.5deg); animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) rotate(1.5deg); } 50% { transform: translateY(-12px) rotate(1.5deg); } }
.invoice-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.invoice-head img { width: 40px; height: 40px; }
.invoice-head div { display: flex; flex-direction: column; flex: 1; }
.invoice-head strong { font-size: 1rem; }
.invoice-head span { font-size: .78rem; color: var(--muted); }
.invoice-status { background: #e8f7ee; color: #1a8f4c; font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.invoice-line { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--bg-soft); font-size: .92rem; }
.invoice-line span { color: var(--muted); }
.invoice-line.muted { color: var(--blue); font-weight: 600; }
.invoice-foot { margin-top: 16px; background: var(--blue-50); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.invoice-foot span { font-size: .75rem; color: var(--muted); }
.invoice-foot code { font-family: monospace; color: var(--blue-dark); font-weight: 700; font-size: .9rem; }

/* ===================== SECCIONES GENERALES ===================== */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.eyebrow {
  display: inline-block; color: var(--blue); font-weight: 700; font-size: .82rem;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px;
}
.eyebrow.light { color: var(--accent); }
.section-head h2 { font-size: clamp(1.7rem, 3.3vw, 2.4rem); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.06rem; }

/* ===================== OFERTA ===================== */
.offer { background: var(--bg); }
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.offer-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.offer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.offer-card.highlight { background: linear-gradient(160deg, var(--blue), var(--blue-dark)); border-color: var(--blue-dark); color: #fff; }
.offer-card.highlight h3, .offer-card.highlight p { color: #fff; }
.offer-card.highlight p strong { color: var(--accent); }
.offer-icon { font-size: 2rem; margin-bottom: 14px; }
.offer-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.offer-card p { color: var(--muted); font-size: .96rem; }

/* ===================== INCLUYE ===================== */
.includes { background: var(--bg-soft); }
.includes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.include-item {
  display: flex; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
}
.include-item .check {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 1rem;
}
.include-item h4 { font-size: 1.05rem; margin-bottom: 4px; }
.include-item p { color: var(--muted); font-size: .92rem; }

/* ===================== DTE ===================== */
.dte { background: var(--bg); }
.dte-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dte-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-sm); transition: border-color .2s, transform .2s;
}
.dte-card:hover { border-color: var(--blue); transform: translateY(-4px); }
.dte-ico { font-size: 1.8rem; }
.dte-card h4 { font-size: 1.05rem; }

/* ===================== BENEFICIOS ===================== */
.benefits { background: var(--bg-soft); }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 28px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.benefit-icon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 18px;
  background: var(--blue-50); display: grid; place-items: center; font-size: 1.8rem;
}
.benefit-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.benefit-card p { color: var(--muted); font-size: .96rem; }

/* ===================== REGISTRO ===================== */
.register { background: linear-gradient(160deg, var(--blue-dark), var(--blue)); }
.register-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.register-copy { color: #fff; padding-top: 10px; }
.register-copy h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.register-copy > p { color: rgba(255,255,255,.85); margin-top: 16px; font-size: 1.05rem; }
.register-copy strong { color: var(--accent); }
.register-list { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.register-list li { color: #fff; font-weight: 600; }

.cupos-box { margin-top: 32px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: 22px; }
.cupos-num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--accent); }
.cupos-text { color: #fff; font-weight: 600; margin-left: 8px; }
.cupos-bar { margin-top: 12px; height: 8px; background: rgba(255,255,255,.18); border-radius: 999px; overflow: hidden; }
.cupos-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .6s ease; }

.register-form {
  background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .98rem; color: var(--ink); background: var(--bg-soft); transition: border-color .15s, background .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.field textarea { resize: vertical; }
.field input.invalid, .field textarea.invalid { border-color: #e05252; background: #fdf2f2; }
.error { display: block; color: #e05252; font-size: .8rem; margin-top: 5px; min-height: 14px; }
.form-note { margin-top: 12px; font-size: .8rem; color: var(--muted); text-align: center; }
.form-note a { color: var(--blue); text-decoration: underline; }

.success-card {
  background: #fff; border-radius: var(--radius); padding: 48px 34px; box-shadow: var(--shadow-lg);
  text-align: center; grid-column: 2; align-self: center;
}
.success-ico { font-size: 3rem; margin-bottom: 12px; }
.success-card h3 { font-size: 1.6rem; margin-bottom: 12px; color: var(--blue-dark); }
.success-card p { color: var(--muted); margin-bottom: 22px; }

/* ===================== FOOTER ===================== */
.footer { background: var(--ink); color: #cdd6e6; padding-top: 56px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; max-width: 420px; }
.footer-brand img { width: 56px; height: 56px; background: #fff; border-radius: 12px; padding: 4px; }
.footer-brand div { display: flex; flex-direction: column; gap: 4px; }
.footer-brand strong { color: #fff; font-size: 1rem; }
.footer-brand span { font-size: .88rem; color: #9aa8c2; }
.footer-contact h4 { color: #fff; margin-bottom: 14px; font-size: 1.05rem; }
.footer-contact a { display: block; color: #cdd6e6; margin-bottom: 10px; transition: color .15s; }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: .85rem; color: #8696b3; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links h4 { color: #fff; margin-bottom: 6px; font-size: 1.05rem; }
.footer-links a { color: #cdd6e6; font-size: .9rem; transition: color .15s; }
.footer-links a:hover { color: var(--accent); }

/* ===================== PÁGINAS INTERNAS ===================== */
.page-hero {
  padding: 56px 0 40px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 12px; }
.page-hero p { color: var(--muted); font-size: 1.05rem; max-width: 640px; }
.page-content { padding: 56px 0 80px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin: 36px 0 12px; color: var(--blue-dark); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); margin-bottom: 14px; font-size: 1rem; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 18px; }
.prose a { color: var(--blue); text-decoration: underline; }
.services-page-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 28px; }
.service-page-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
}
.service-page-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-page-card p { margin-bottom: 0; font-size: .95rem; }
.service-page-card .svc-ico { font-size: 2rem; margin-bottom: 12px; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0; }
.about-value {
  background: var(--bg-soft); border-radius: var(--radius); padding: 24px; text-align: center;
}
.about-value strong { display: block; font-family: var(--font-head); color: var(--blue-dark); margin-bottom: 6px; }
.about-value span { font-size: .9rem; color: var(--muted); }

/* ===================== WHATSAPP FLOTANTE ===================== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 24px rgba(37,211,102,.45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ===================== ANIMACIONES SCROLL ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .hero-visual { order: -1; }
  .invoice-mock { max-width: 340px; }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .dte-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: 1fr; }
  .register-inner { grid-template-columns: 1fr; }
  .success-card { grid-column: 1; }
}
@media (max-width: 680px) {
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-150%); transition: transform .3s ease; pointer-events: none;
  }
  .nav-links.open { transform: translateY(0); pointer-events: auto; }
  .nav-links a { padding: 14px 8px; border-bottom: 1px solid var(--bg-soft); }
  .nav-cta { text-align: center; margin-top: 8px; }
  .nav-toggle { display: flex; }
  .section { padding: 60px 0; }
  .offer-grid, .dte-grid { grid-template-columns: 1fr; }
  .includes-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .price-row { flex-wrap: wrap; }
  .hero-trust { gap: 20px; flex-wrap: wrap; }
  .services-page-grid, .about-values { grid-template-columns: 1fr; }
}
