/*
 * Invalci — web pública. Colores del logotipo: azul marino y dorado.
 * Sin fuentes ni recursos de fuera: la CSP solo admite lo que sirve el propio sitio.
 */
:root {
  --navy: #041c44;
  --navy-2: #0c2d61;
  --gold: #c48c34;
  --gold-2: #d9a24a;
  --gold-soft: #f7eddc;
  --ink: #1a2130;
  --muted: #5a6475;
  --line: #e3e7ee;
  --bg: #f6f7f9;
  --white: #fff;
  --ok: #17704b;
  --danger: #a12b2b;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(4, 28, 68, .06), 0 12px 32px rgba(4, 28, 68, .08);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--navy-2); }
h1, h2, h3 { line-height: 1.2; margin: 0; color: var(--navy); letter-spacing: -.01em; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 40px); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 8px; }
.skip:focus { left: 12px; }

/* ---------------------------------------------------------------- Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 6px 18px rgba(196, 140, 52, .35); }
.btn-gold:hover { background: #b37d29; }
.btn-gold:disabled { opacity: .7; cursor: wait; transform: none; }
.btn-outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }

/* ------------------------------------------------------------------- Barra */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(6px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.topbar.scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(4, 28, 68, .06); }
.topbar-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand img { display: block; height: 48px; width: auto; }
.menu { display: flex; gap: 26px; margin-left: auto; }
.menu a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.menu a:hover { color: var(--gold); }

/* ------------------------------------------------------------------ Portada */
.hero { position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(217, 162, 74, .28), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(255, 255, 255, .08), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: repeating-linear-gradient(115deg, #fff 0 1px, transparent 1px 44px); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .85fr; gap: 56px; align-items: center; padding: 88px 0 96px; }
.eyebrow { display: inline-block; margin-bottom: 18px; padding: 6px 14px; border: 1px solid rgba(217, 162, 74, .5); border-radius: 999px; color: var(--gold-2); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.hero h1 span { display: block; color: var(--gold-2); }
.lead { margin-top: 20px; max-width: 560px; font-size: 18px; color: rgba(255, 255, 255, .86); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; font-size: 15px; color: rgba(255, 255, 255, .88); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); }

.hero-card { background: var(--white); color: var(--ink); border-radius: 22px; padding: 32px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); border-top: 5px solid var(--gold); }
.hero-card-kicker { color: var(--gold); font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.hero-card h2 { margin: 8px 0 18px; font-size: 24px; }
.hero-card-foot { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 14px; }

.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-soft); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 8px; height: 5px; border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(-45deg); }

/* ---------------------------------------------------------------- Secciones */
.section { padding: 88px 0; }
.section-alt { background: var(--bg); }
.section-navy { background: var(--navy); color: rgba(255, 255, 255, .86); }
.section-navy .section-title, .section-navy h3 { color: #fff; }
.kicker { color: var(--gold); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.kicker-light { color: var(--gold-2); }
.section-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.section-lead { margin-top: 14px; max-width: 640px; color: var(--muted); font-size: 17px; }
.note { margin-top: 18px; color: var(--muted); font-size: 15px; }

.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.product { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6c3a1; }
.product h3 { font-size: 20px; }
.product p { color: var(--muted); font-size: 15px; flex: 1; }
.icon { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: var(--gold-soft); fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product-link { font-weight: 700; color: var(--navy-2); text-decoration: none; }
.product-link::after { content: " →"; color: var(--gold); }
.product-link:hover { color: var(--gold); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 44px 0 0; padding: 0; list-style: none; counter-reset: paso; }
.steps li { position: relative; padding: 28px 24px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%; background: var(--navy); color: var(--gold-2); font-weight: 800; font-size: 18px; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }

.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.two-cols .checks { margin-top: 28px; }
.checks-dark li { font-weight: 500; }
.info-card { padding: 32px; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); }
.info-card h3 { font-size: 17px; margin: 22px 0 12px; }
.info-card h3:first-child { margin-top: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pills li { padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--navy-2); }

.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.reason { padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.reason h3 { font-size: 18px; margin-bottom: 8px; }
.reason h3::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 14px; background: var(--gold-2); border-radius: 2px; }
.reason p { font-size: 15px; }

/* -------------------------------------------------------------- Formulario */
.section-form { background: linear-gradient(180deg, var(--bg), var(--white)); }
.form-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.form-intro p { margin-top: 16px; color: var(--muted); font-size: 17px; }
.contact-box { margin-top: 32px; padding: 24px; border-radius: var(--radius); background: var(--navy); color: rgba(255, 255, 255, .85); }
.contact-box h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.contact-box p { margin: 0; color: rgba(255, 255, 255, .8); font-size: 15px; }
.contact-link { display: block; margin-top: 10px; color: var(--gold-2); font-weight: 700; text-decoration: none; }
.contact-link:hover { text-decoration: underline; }

.form-card, .form-success { padding: 34px; border-radius: 22px; background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--line); }
fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin: 0 0 26px; padding: 0; border: 0; }
legend { grid-column: 1 / -1; margin-bottom: 14px; padding: 0; font-size: 18px; font-weight: 800; color: var(--navy); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.field small { font-weight: 500; color: var(--muted); }
.field-full { grid-column: 1 / -1; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink);
  font: inherit; font-weight: 500; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(196, 140, 52, .18); }
textarea { resize: vertical; }
.pair { display: grid; grid-template-columns: 1fr 1.1fr; gap: 10px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); background: #fdf3f3; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--gold); }
.consent.invalid span { color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { margin-bottom: 20px; padding: 14px 16px; border-radius: 12px; background: #fdf0f0; color: var(--danger); font-weight: 600; font-size: 15px; }
.form-note { margin-top: 14px; text-align: center; color: var(--muted); font-size: 13px; }
.form-success { text-align: center; }
.form-success h3 { font-size: 26px; margin: 12px 0 10px; }
.form-success p { color: var(--muted); margin-top: 8px; }
.form-success strong { color: var(--navy); }
.success-icon { width: 64px; height: 64px; fill: var(--gold-soft); stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 12px; margin-top: 36px; }
.faq details { padding: 0 22px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.faq summary { position: relative; padding: 18px 32px 18px 0; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* -------------------------------------------------------------------- Pie */
.footer { padding: 64px 0 28px; background: #031433; color: rgba(255, 255, 255, .75); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 52px; width: auto; padding: 6px 10px; background: #fff; border-radius: 10px; }
.footer p { margin-top: 14px; font-size: 15px; }
.footer h3 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.footer-link { display: block; margin-top: 8px; color: rgba(255, 255, 255, .8); text-decoration: none; font-size: 15px; }
.footer-link:hover { color: var(--gold-2); }
.footer .contact-fallback { margin-top: 0; }
.copy { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }

.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #1faa59; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.whatsapp-float svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }

/* --------------------------------------------------------- Páginas simples */
.page { padding: 64px 0 88px; }
.page h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 18px; }
.page h2 { font-size: 22px; margin: 34px 0 10px; }
.page p, .page li { color: var(--ink); margin-top: 10px; }
.page ul { padding-left: 22px; }
.thanks { text-align: center; max-width: 620px; }
.thanks .success-icon { width: 84px; height: 84px; }
.thanks p { color: var(--muted); }
.thanks .btn { margin-top: 28px; }

/* ------------------------------------------------------------- Pantallas */
@media (max-width: 980px) {
  .menu { display: none; }
  .topbar-inner { justify-content: space-between; }
  .hero-grid, .two-cols, .form-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-grid { padding: 64px 0 72px; }
  .products, .steps, .reasons { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .products, .steps, .reasons, fieldset, .footer-grid { grid-template-columns: 1fr; }
  .form-card, .form-success, .hero-card, .info-card { padding: 24px 20px; }
  .btn-lg { width: 100%; }
  .brand img { height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
