:root {
  --navy: #061a3d;
  --navy-2: #0a3a82;
  --ink: #0d2240;
  --muted: #4f5f75;
  --line: #e6ebf2;
  --bg-soft: #f4f7fb;
  --bg-grey: #f5f5f5;
  --brand-1: #5b7be8;
  --brand-2: #22d3d0;
  --orange: #f06d0b;
  --orange-d: #d85f05;
  --red: #d93025;
  --wa: #25d366;
  --wa-d: #1ebe5b;
  --radius: 14px;
  --shadow: 0 6px 22px rgba(13, 34, 64, .08);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--brand-1); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand img { height: 52px; width: auto; }
.main-nav { display: flex; gap: 26px; margin-left: 12px; font-size: 14px; font-weight: 500; }
.main-nav a { padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-color: var(--brand-1); }
.header-call { margin-left: auto; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; }
.header-call:hover { background: var(--bg-soft); }

/* Hero */
.hero {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 38px, transparent 38px 90px),
    linear-gradient(100deg, #020f2b 0%, #04245b 55%, #064a9e 100%);
  color: #fff; padding: 76px 0 84px;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.hero hr { width: min(360px, 100%); margin: 22px 0; border: 0; border-top: 1px solid rgba(255,255,255,.25); }
.hero-sub { font-size: 18px; font-weight: 600; }
.hero-price { margin-top: 8px; font-size: 24px; font-weight: 800; }

.search-card { background: #fff; color: var(--ink); border-radius: 16px; padding: 34px 36px; box-shadow: 0 20px 50px rgba(0,0,0,.28); }
.search-card label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.plate-input { display: flex; align-items: stretch; border: 2px solid #c9d3e0; border-radius: 10px; overflow: hidden; background: #fff; transition: border-color .15s, box-shadow .15s; }
.plate-input:focus-within { border-color: var(--navy-2); box-shadow: 0 0 0 4px rgba(10,58,130,.12); }
.plate-input.invalid { border-color: var(--red); }
.plate-flag { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 10px; background: #eef3fb; font-size: 10px; font-weight: 800; color: #1c4fa8; }
.plate-flag i { width: 8px; height: 8px; border-radius: 50%; border: 2px solid #1c4fa8; }
.plate-input input { flex: 1; min-width: 0; border: 0; padding: 14px 16px; font: inherit; font-size: 22px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: transparent; }
.plate-input input:focus { outline: none; }
.plate-input input::placeholder { color: #a8b0bd; letter-spacing: .08em; }
.field-error { color: var(--red); font-size: 13px; margin-top: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; font: inherit; font-weight: 700; border-radius: 8px; transition: background .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-orange { width: 100%; margin-top: 18px; padding: 14px; background: var(--orange); color: #fff; font-size: 14px; letter-spacing: .06em; }
.btn-orange:hover { background: var(--orange-d); }
.btn-soft { padding: 12px 28px; background: #fde7d6; color: var(--orange); font-size: 15px; }
.btn-soft:hover { background: #fbdcc4; }

/* Sections */
.section { padding: 56px 0 8px; }
.section h2, .how h2, .faq h2 { font-size: 20px; font-weight: 700; color: var(--navy); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.section > .container > h2 { margin-bottom: 22px; }

.card-tint { position: relative; background: #f3f8fe; border-radius: var(--radius); padding: 20px 20px 22px; }
.badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; background: #fff; border: 1px solid #f3c6c2; }
.badge-red { color: var(--red); }
.card-art { width: 92px; height: 92px; margin: 14px auto 18px; filter: drop-shadow(0 6px 10px rgba(13,34,64,.15)); }
.card-tint h3 { font-size: 14px; font-weight: 700; }
.card-tint p { margin-top: 4px; font-size: 12px; color: var(--muted); }

.risks { margin-top: 0; }
.risk { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.risk-img { height: 62px; display: grid; place-items: center; }
.risk-img img { width: 44px; height: 44px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.r1 { background: linear-gradient(135deg, #0a1e3a, #1b4a7a); }
.r2 { background: linear-gradient(135deg, #111827, #2c3b52); }
.r3 { background: linear-gradient(135deg, #1b1f27, #3a3f4b); }
.r4 { background: linear-gradient(135deg, #0f2a3d, #2f5d77); }
.risk-tag { padding: 8px 14px; font-size: 11px; font-weight: 700; color: #4a5568; background: #f4f4f4; }
.risk-body { padding: 14px 14px 26px; display: grid; gap: 6px; }
.risk-body strong { font-size: 20px; color: var(--navy); }
.risk-body span { font-size: 12px; color: var(--muted); }

.how { margin-top: 64px; background: var(--bg-grey); padding: 56px 0 64px; }
.how h2 { margin-bottom: 22px; }
.step { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 12px; overflow: hidden; padding-right: 14px; }
.step-img { position: relative; flex: none; width: 74px; height: 74px; display: grid; place-items: center; }
.step-img img { width: 40px; height: 40px; position: relative; z-index: 1; }
.step-img b { position: absolute; right: 4px; bottom: 0; font-size: 28px; line-height: 1; color: rgba(255,255,255,.55); }
.s1 { background: linear-gradient(135deg, #5b7be8, #22d3d0); }
.s2 { background: linear-gradient(135deg, #1fa855, #25d366); }
.s3 { background: linear-gradient(135deg, #f59e0b, #f06d0b); }
.step h3 { font-size: 15px; font-weight: 700; color: #3b4659; }
.step p { font-size: 12px; color: var(--muted); margin-top: 4px; }

.faq { margin-top: 64px; background: #fafafa; padding: 56px 0 64px; }
.faq h2 { font-size: 22px; margin-bottom: 20px; }
.faq-list { display: grid; gap: 14px; }
.faq details { background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(13,34,64,.06); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 24px; font-size: 13px; font-weight: 700; color: #3b4659; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid #3b4659; border-bottom: 2px solid #3b4659; transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 24px 20px; font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.65; }

/* Footer */
.site-footer { background: linear-gradient(120deg, #fbfff3 0%, #effff6 60%, #f4fffb 100%); padding: 20px 0 22px; font-size: 12px; }
.crumbs { color: var(--muted); }
.crumbs a { color: var(--ink); font-weight: 700; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin: 22px 0 26px; font-size: 15px; }
.foot-brand img { height: 56px; width: auto; }
.foot-brand span { color: var(--muted); }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.foot-cols h4 { font-size: 12px; font-weight: 800; letter-spacing: .02em; margin-bottom: 14px; }
.foot-cols a { display: block; color: #4a4a4a; margin-bottom: 12px; }
.foot-cols a:hover { color: var(--navy-2); text-decoration: underline; }
.foot-contact { display: flex !important; align-items: center; gap: 8px; }
.copy { text-align: center; color: #4a5568; margin-top: 30px; }
.copy a { text-decoration: underline; }

/* Modal */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 26, 61, .6); backdrop-filter: blur(3px); animation: fade .2s ease; }
.modal-card { position: relative; width: min(420px, 100%); background: #fff; border-radius: 18px; padding: 32px 28px 26px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.35); animation: pop .22s ease; display: grid; justify-items: center; gap: 12px; }
.modal-card h3 { font-size: 19px; color: var(--navy); }
.plate-chip { display: inline-block; margin-top: 6px; padding: 4px 12px; border: 2px solid var(--navy); border-radius: 8px; background: #fff7cc; font-weight: 800; letter-spacing: .1em; font-size: 18px; }
.modal-sub { font-size: 13px; color: var(--muted); max-width: 320px; }
.modal-x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 50%; }
.modal-x:hover { background: var(--bg-soft); }
.btn-wa, .btn-call { width: 100%; padding: 14px 16px; font-size: 15px; }
.btn-wa { background: var(--wa); color: #fff; margin-top: 6px; }
.btn-wa:hover { background: var(--wa-d); }
.btn-wa img { background: #fff; border-radius: 50%; padding: 2px; }
.btn-call { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn-call:hover { background: var(--bg-soft); }
.modal-note { font-size: 11.5px; color: var(--muted); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }

/* Floating WhatsApp + Call (always visible) */
.float-contact { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
body.modal-open .float-contact { display: none; }
.float-btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 12px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 8px 22px rgba(0,0,0,.28); transition: transform .15s, box-shadow .15s, background .15s; }
.float-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.32); }
.float-btn:active { transform: translateY(0); }
.float-btn img { flex: none; }
.float-wa { background: #168040; } /* darker than --wa so white label meets 4.5:1 */
.float-wa:hover { background: #0f6a33; }
.float-wa img { background: #fff; border-radius: 50%; padding: 2px; }
.float-call { background: var(--navy-2); }
.float-call:hover { background: var(--navy); }
.float-call img { background: #fff; border-radius: 50%; padding: 3px; }

/* Responsive */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .main-nav { display: none; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  .search-card { padding: 26px 20px; }
  .plate-input input { font-size: 18px; }
  .brand img { height: 44px; }
  .header-call span { display: none; }
  .header-call { padding: 8px 10px; }
  .float-contact { right: 14px; bottom: 14px; gap: 10px; }
  .float-btn { width: 54px; height: 54px; padding: 0; justify-content: center; }
  .float-btn span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
