:root {
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --accent: #1e3a8a;
  --accent-2: #2563eb;
  --accent-soft: #dbeafe;
  --danger: #b91c1c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
}
body.theme-seguros { --accent: #14327a; --accent-2: #1d4ed8; --accent-soft: #dbeafe; }
body.theme-isapre  { --accent: #0b5d56; --accent-2: #0d9488; --accent-soft: #ccfbf1; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  line-height: 1.55;
}
img, svg { max-width: 100%; }
a { color: var(--accent-2); }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand span { color: var(--accent-2); }
.nav { display: flex; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a.active { background: var(--accent-soft); color: var(--accent); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; padding: 64px 0 72px; }
.hero .eyebrow { display: inline-block; background: rgba(255,255,255,.18); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; margin: 18px 0 16px; letter-spacing: -.03em; max-width: 18ch; }
.hero p.lead { font-size: 1.2rem; max-width: 56ch; opacity: .95; margin: 0 0 28px; }
.btn { display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: 14px 26px; border-radius: 12px; text-decoration: none; background: #fff; color: var(--accent); }
.btn:hover { filter: brightness(.96); }
.btn.primary { background: var(--accent-2); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Landing */
.hero.neutral { background: linear-gradient(135deg, #0f172a, #1e3a8a); }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: -40px; position: relative; }
.choice { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; border-top: 6px solid; text-decoration: none; color: var(--ink); display: block; }
.choice.seguros { border-color: #2563eb; }
.choice.isapre { border-color: #0d9488; }
.choice h2 { margin: 0 0 8px; font-size: 1.6rem; }
.choice ul { padding-left: 18px; color: var(--muted); }
.choice .go { font-weight: 700; margin-top: 12px; display: inline-block; }
.choice.seguros .go { color: #2563eb; }
.choice.isapre .go { color: #0d9488; }

/* Sections */
section { padding: 56px 0; }
section h2.title { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.02em; margin: 0 0 8px; }
section p.sub { color: var(--muted); margin: 0 0 28px; max-width: 62ch; }
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.card .ico { font-size: 1.8rem; }
a.card { text-decoration: none; color: inherit; display: block; border: 2px solid transparent; }
a.card:hover { border-color: var(--accent-2); }

/* Mensaje potente */
.power { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 36px; }
.power h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -.02em; line-height: 1.15; }
.power h2 em { font-style: normal; color: #5eead4; }
.theme-seguros .power h2 em { color: #93c5fd; }
.power p { margin: 0 0 18px; opacity: .9; max-width: 62ch; font-size: 1.05rem; }
.power ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.power li::before { content: "✓"; margin-right: 10px; font-weight: 800; color: #5eead4; }
.theme-seguros .power li::before { color: #93c5fd; }

/* Form */
.form-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; max-width: 760px; margin-inline: auto; }
fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
legend { font-weight: 800; font-size: 1.05rem; padding: 0; margin-bottom: 12px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row.one { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .92rem; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select {
  font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent-2); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: .84rem; min-height: 0; }
.err:empty { display: none; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: block; padding: 11px 18px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; background: #fff; }
.pill input:checked + span { background: var(--accent-soft); border-color: var(--accent-2); color: var(--accent); }
.pill input:focus-visible + span { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.pill.big span { border-radius: 12px; padding: 14px 18px; }
.pill.big small { display: block; font-weight: 400; color: var(--muted); }

.extra { border: 1.5px dashed var(--line); border-radius: 12px; padding: 16px 16px 2px; margin-bottom: 14px; background: #fcfdff; }
.extra-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 700; }
.link-btn { background: none; border: 0; color: var(--danger); font: inherit; font-weight: 600; cursor: pointer; }
.add-btn { background: var(--accent-soft); color: var(--accent); border: 0; border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.consent input { margin-top: 4px; }
.form-error { background: #fef2f2; color: var(--danger); padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; }
.success { text-align: center; padding: 24px 0; }
.success .check { font-size: 3rem; }
.hidden { display: none !important; }

footer { padding: 28px 0 40px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); margin-top: 24px; }

@media (max-width: 760px) {
  .choices, .grid.cols-3, .row, .power ul { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .power { padding: 26px 20px; }
  .hero { padding: 44px 0 56px; }
}

/* Logo */
.brand img { height: 56px; width: auto; display: block; }
.site-header .wrap { height: 72px; }
@media (max-width: 760px) { .brand img { height: 46px; } .site-header .wrap { height: 62px; } }

/* Naranja de marca (botones y destacados) */
:root { --orange: #d95f0e; --orange-hover: #bf520a; --orange-light: #fb923c; }
.btn, .btn.primary { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(217, 95, 14, .35); }
.btn:hover, .btn.primary:hover { background: var(--orange-hover); filter: none; }
.hero .eyebrow { background: var(--orange); color: #fff; }
.power h2 em, .theme-seguros .power h2 em { color: var(--orange-light); }
.power li::before, .theme-seguros .power li::before { color: var(--orange-light); }
.choice .go, .choice.seguros .go, .choice.isapre .go { color: var(--orange); }
a.card:hover { border-color: var(--orange); }
.pill input:checked + span { border-color: var(--orange); }
.add-btn { background: #ffedd5; color: var(--orange-hover); }
.nav a.active { box-shadow: inset 0 -3px 0 var(--orange); border-radius: 999px 999px 8px 8px; }
.field input:focus, .field select:focus { border-color: var(--orange); outline-color: #fed7aa; }
