/* Vagalerta — one stylesheet, no framework.
 *
 * The whole site is static HTML on purpose: an AI crawler or Googlebot reads
 * the real content on the first request with no JS, which is the entire point
 * of the domain. A CSS framework would add a build step and a bundle for
 * layout a few hundred lines can do.
 */

:root {
  --navy: #0f2547;
  --navy-2: #1b3a6b;
  --amber: #f59e0b;
  --amber-dark: #b45309;
  --ink: #16202e;
  --body: #3c4858;
  --muted: #6b7787;
  --line: #dfe4ea;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --ok: #0f766e;
  --ok-bg: #ecfdf5;
  --warn-bg: #fffbeb;
  --radius: 12px;
  --wrap: 46rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.15rem; }

h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .6rem; }
h1 { font-size: 1.9rem; letter-spacing: -.015em; }
h2 { font-size: 1.4rem; margin-top: 2.6rem; letter-spacing: -.01em; }
h3 { font-size: 1.08rem; margin-top: 1.6rem; }
p { margin: 0 0 1rem; }
strong { color: var(--ink); }
a { color: var(--navy-2); }
a:hover { color: var(--amber-dark); }

ul, ol { padding-left: 1.2rem; margin: 0 0 1rem; }
li { margin: .35rem 0; }

/* ── Header ─────────────────────────────────────────────────────────────── */

.top {
  background: var(--navy);
  color: #fff;
  padding: .8rem 0;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.08rem; color: #fff; text-decoration: none; }
.brand svg { display: block; }
.langs { font-size: .87rem; }
.langs a { color: #cbd6e6; text-decoration: none; }
.langs a[aria-current] { color: #fff; font-weight: 700; text-decoration: underline; }

/* ── Hero + tool ────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 2.2rem 0 2.6rem;
}
.hero h1 { color: #fff; font-size: 1.75rem; }
.hero p { color: #d7e0ee; font-size: 1.02rem; margin-bottom: 1.4rem; }
.hero .free { color: #fff; }

.stamp {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #9fb3ce;
  margin-bottom: .5rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(6, 20, 44, .22);
}
.card h2 { margin-top: 0; font-size: 1.1rem; }

label { display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase;
        letter-spacing: .05em; color: var(--muted); margin: .9rem 0 .3rem; }
select, input[type=email], input[type=text], input[type=date] {
  width: 100%; padding: .65rem .7rem; font-size: .96rem; font-family: inherit;
  color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 9px;
}
select:focus, input:focus { outline: 2px solid var(--navy-2); outline-offset: 1px; border-color: var(--navy-2); }
select:disabled { background: #f2f4f7; color: #9aa4b2; }

.btn {
  display: inline-block; width: 100%; margin-top: 1.1rem;
  padding: .8rem 1rem; font: inherit; font-weight: 800; font-size: 1rem;
  color: #23180a; background: var(--amber);
  border: 0; border-radius: 9px; cursor: pointer;
}
.btn:hover { background: #fbbf24; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-ghost {
  background: transparent; color: var(--navy-2); border: 1px solid var(--line);
  font-weight: 600; margin-top: .6rem;
}
.btn-ghost:hover { background: var(--bg-soft); }

/* Two-up rows: state+city, then unit+service. Mirrors the field order and
   pairing of the original form, which people have already learned. */
.fgrid { display: grid; gap: 0 .75rem; }
@media (min-width: 560px) { .fgrid { grid-template-columns: 1fr 1fr; } }

/* The unit address. Two units in one city are routinely at different
   addresses, and the sigla alone does not say which door to walk through. */
.addr { margin: .45rem 0 0; font-size: .82rem; color: var(--muted); }

textarea {
  width: 100%; padding: .65rem .7rem; font: inherit; font-size: .95rem;
  color: var(--ink); border: 1px solid var(--line); border-radius: 9px; resize: vertical;
}
textarea:focus { outline: 2px solid var(--navy-2); outline-offset: 1px; border-color: var(--navy-2); }

fieldset.svc { border: 0; padding: 1rem 0 0; margin: .5rem 0 0; border-top: 1px solid var(--line); }
fieldset.svc legend {
  padding: 0; font-size: .74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted);
}
fieldset.svc .hint { margin-top: .15rem; }
.chk {
  display: flex; align-items: flex-start; gap: .55rem;
  margin: 0; padding: .3rem 0; font-size: .93rem; font-weight: 400;
  text-transform: none; letter-spacing: 0; color: var(--body); cursor: pointer;
}
.chk input { margin: .28rem 0 0; flex: 0 0 auto; width: 1rem; height: 1rem; accent-color: var(--navy-2); }
.tag {
  display: inline-block; margin-left: .3rem; padding: .05rem .4rem;
  font-size: .76rem; font-weight: 700; color: #14532d;
  background: var(--ok-bg); border: 1px solid #a7f3d0; border-radius: 5px;
}
.disclosure { border-left: 3px solid var(--line); padding-left: .7rem; }

.result { margin-top: 1rem; padding: .85rem .95rem; border-radius: 9px; font-size: .95rem; }
.result-ok { background: var(--ok-bg); color: #14532d; border: 1px solid #a7f3d0; }
.result-wait { background: var(--warn-bg); color: #713f12; border: 1px solid #fde68a; }
.result-err { background: #fef2f2; color: #7f1d1d; border: 1px solid #fecaca; }
.result strong { color: inherit; }
.hint { font-size: .84rem; color: var(--muted); margin: .5rem 0 0; }
.hero .hint { color: #a9bad2; }

/* ── Body sections ──────────────────────────────────────────────────────── */

section { padding: .2rem 0; }
.answer {
  background: var(--bg-soft);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.15rem;
  margin: 2rem 0;
}
.answer p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: .9rem; margin: 1.1rem 0; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.box { border: 1px solid var(--line); border-radius: var(--radius); padding: .95rem 1.05rem; background: #fff; }
.box h3 { margin-top: 0; font-size: 1rem; }
.box p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 1rem 0; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.scroll-x { overflow-x: auto; }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 2.3rem; margin: .9rem 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: .05rem;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: .85rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

details { border-bottom: 1px solid var(--line); padding: .75rem 0; }
details summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "+ "; color: var(--amber-dark); font-weight: 800; }
details[open] summary::before { content: "− "; }
details p { margin: .6rem 0 0; }

.cta {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 1.3rem 1.25rem; margin: 2.4rem 0;
}
.cta h2 { color: #fff; margin-top: 0; }
.cta p { color: #d7e0ee; }
.cta .btn { width: auto; padding: .7rem 1.4rem; text-decoration: none; }

.notice { font-size: .9rem; color: var(--muted); background: var(--bg-soft);
          border-radius: var(--radius); padding: 1rem 1.1rem; margin: 2rem 0; }
.notice strong { color: var(--ink); }

footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.6rem 0 2.4rem;
         font-size: .89rem; color: var(--muted); }
footer a { color: var(--muted); }
