/*
 * Gobierno abierto — Municipio de Luján
 * Mismo estilo que datos-abiertos.lujan.gob.ar (docs/manual-de-estilo.md, secciones 2.4, 3.4 y 8).
 */

:root {
  --navy: #0f233a;
  --navy-dark: #091726;
  --navy-light: #173252;
  --celeste: #00aae4;
  --celeste-strong: #0369a1;
  --celeste-hover: #075985;
  --celeste-light: #38bdf8;

  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #334155;
  --text-muted: #64748b;
  --text-on-dark: #cbd5e1;

  --font-title: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;

  --gradient-navy: linear-gradient(135deg, #091726 0%, #0f233a 50%, #173252 100%);
  --shadow-card: 0 2px 4px rgba(0, 0, 0, .04);
  --shadow-card-hover: 0 20px 30px -10px rgba(0, 170, 228, .18), 0 10px 15px -3px rgba(15, 35, 58, .08);
  --shadow-button: 0 4px 15px rgba(0, 170, 228, .35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.25;
  color: var(--navy);
  margin: 0;
}

a { color: var(--celeste-strong); }
img { max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }

/* Foco visible: anillo celeste con borde navy (manual §9) */
:focus-visible {
  outline: 3px solid var(--celeste);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--navy);
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--celeste-strong); color: #fff;
  padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.ico {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ============ Encabezado ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 35, 58, .9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.header-bar {
  max-width: 1400px; margin: 0 auto; padding: 0 16px;
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
@media (min-width: 768px) { .header-bar { padding: 0 32px; } }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand:hover { opacity: .9; }
.brand img { height: 38px; width: auto; display: block; }
.brand-sep { width: 1px; height: 24px; background: rgba(255, 255, 255, .2); }
.brand-name { font-family: var(--font-title); font-weight: 800; font-size: 16px; color: #fff; white-space: nowrap; }

.nav { display: none; }
.nav ul { display: flex; align-items: center; gap: 4px; }
.nav a, .nav-mobile a { text-decoration: none; }
.nav a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; color: #cbd5e1;
  white-space: nowrap;
  padding: 7px 14px; border-radius: 999px;
  transition: background-color .2s, color .2s;
}
.nav a .ico { width: 13px; height: 13px; color: var(--celeste); opacity: .9; transition: transform .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); }
.nav a:hover .ico { transform: scale(1.15); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-pill {
  display: none; align-items: center; gap: 6px;
  background: var(--celeste-strong); color: #fff; text-decoration: none;
  font-size: 12.5px; font-weight: 700; padding: 8px 16px; border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 170, 228, .3);
  transition: background-color .2s, box-shadow .2s, transform .2s;
}
.btn-pill .ico { width: 13px; height: 13px; }
.btn-pill:hover { background: var(--celeste-hover); box-shadow: 0 4px 14px rgba(0, 170, 228, .45); transform: translateY(-1px); }
@media (min-width: 640px) { .btn-pill { display: inline-flex; } }

.menu-btn { background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; display: inline-flex; }
.menu-btn .ico { width: 22px; height: 22px; }
.menu-btn .ico-close { display: none; }
.menu-btn[aria-expanded="true"] .ico-open { display: none; }
.menu-btn[aria-expanded="true"] .ico-close { display: block; }

.nav-mobile {
  background: var(--navy); border-bottom: 2px solid var(--celeste);
  padding: 8px 24px 24px; box-shadow: 0 10px 25px rgba(0, 0, 0, .5);
}
.nav-mobile a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; font-size: 15px; font-weight: 600; color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav-mobile .ico { color: var(--celeste); }

@media (min-width: 1300px) {
  .nav { display: block; }
  .menu-btn, .nav-mobile { display: none !important; }
}

/* ============ Botones ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 13.5px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn-primary { background: var(--celeste-strong); color: #fff; box-shadow: var(--shadow-button); }
.btn-primary:hover { background: var(--celeste-hover); color: #fff; box-shadow: 0 6px 20px rgba(0, 170, 228, .45); transform: translateY(-2px); }
.btn-lg { font-size: 15px; padding: 14px 28px; border-radius: 12px; }
.btn-lg .ico { width: 18px; height: 18px; }
.btn-ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .35); color: #fff; transform: translateY(-1px); }
.btn-block { width: 100%; padding: 13px 20px; font-size: 14px; }

/* ============ Etiquetas ============ */
.pill {
  display: inline-flex; align-items: center;
  padding: 4px 14px; border-radius: 999px;
  background: rgba(0, 170, 228, .12); color: var(--celeste-strong);
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
  margin-bottom: 12px;
}
.pill-dark {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(0, 170, 228, .15); border: 1px solid rgba(0, 170, 228, .35);
  color: var(--celeste); font-size: 12.5px; font-weight: 700;
}
.pill-dark .ico { width: 13px; height: 13px; }
.pill-upper { text-transform: uppercase; letter-spacing: .8px; font-size: 11.5px; padding: 4px 14px; border: 0; color: var(--celeste-light); margin-bottom: 12px; }

/* ============ Portada ============ */
.hero {
  position: relative; overflow: hidden;
  background: var(--gradient-navy);
  color: #fff;
  padding: 64px 0;
}
@media (min-width: 768px) { .hero { padding: 80px 0; } }
@media (min-width: 1024px) { .hero { padding-bottom: 90px; } }

.watermark {
  position: absolute; right: -48px; bottom: -96px;
  width: 420px; height: auto; opacity: .04;
  pointer-events: none; user-select: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }

.hero-text { display: flex; flex-direction: column; gap: 20px; }
.hero h1 { color: #fff; font-size: 34px; font-weight: 900; letter-spacing: -1.2px; line-height: 1.12; }
@media (min-width: 768px) { .hero h1 { font-size: 46px; } }
.grad-text {
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-lead { font-size: 17px; color: var(--text-on-dark); max-width: 580px; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* Tarjeta de accesos rápidos */
.quick-card {
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .35);
  padding: 32px 28px; color: var(--navy);
}
@media (min-width: 768px) { .quick-card { padding: 34px 30px; } }
.quick-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.quick-head h2 { font-size: 20px; }
.quick-sub { font-size: 13px; color: var(--text-muted); margin: 0 0 18px; }
.quick-list { display: flex; flex-direction: column; gap: 8px; }
.quick-list a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 10px;
  background: #f1f5f9; border: 1px solid var(--border);
  color: var(--navy); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: border-color .2s, background-color .2s, color .2s;
}
.quick-list a > .ico:first-child { color: var(--celeste-strong); }
.quick-list a span { flex: 1; }
.quick-list .arrow { color: #94a3b8; transition: transform .2s, color .2s; }
.quick-list a:hover { background: #fff; border-color: var(--celeste); color: var(--celeste-strong); }
.quick-list a:hover .arrow { color: var(--celeste-strong); transform: translateX(3px); }

/* ============ Secciones ============ */
.section { padding: 80px 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.8px; margin-bottom: 12px; }
@media (min-width: 768px) { .section-head h2 { font-size: 34px; } }
.section-head p { font-size: 15px; color: var(--text-muted); margin: 0; }

.icon-box {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(0, 170, 228, .12); color: var(--celeste-strong);
}
.icon-box .ico { width: 20px; height: 20px; }

/* ============ Tarjetas ============ */
.cards { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, .8);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 26px 22px;
  text-decoration: none; color: inherit;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--celeste); box-shadow: var(--shadow-card-hover); }
.card .icon-box { width: 50px; height: 50px; border-radius: 14px; margin-bottom: 18px; transition: transform .3s; }
.card .icon-box .ico { width: 22px; height: 22px; }
.card:hover .icon-box { transform: scale(1.1); }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 13px; color: var(--text-muted); margin: 0 0 20px; flex: 1; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--celeste-strong);
  transition: gap .2s;
}
.card-link .ico { width: 13px; height: 13px; }
.card:hover .card-link { gap: 10px; }

/* Tonos (como las categorías del portal: fondo al 12 % + tono 700) */
.tone-sky { background: rgba(2, 132, 199, .12); color: #0369a1; }
.tone-violet { background: rgba(139, 92, 246, .12); color: #6d28d9; }
.tone-indigo { background: rgba(99, 102, 241, .12); color: #4338ca; }
.tone-amber { background: rgba(245, 158, 11, .12); color: #b45309; }
.tone-emerald { background: rgba(16, 185, 129, .12); color: #047857; }
.tone-rose { background: rgba(244, 63, 94, .12); color: #be123c; }

/* ============ Banda destacada ============ */
.band-wrap { padding: 80px 0; }
.band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #091726 0%, #0f233a 100%);
  border-radius: 24px; color: #fff;
  padding: 48px 32px;
}
@media (min-width: 768px) { .band { padding: 48px; } }
.watermark-band { right: -40px; bottom: -80px; width: 300px; }
.band-grid { position: relative; z-index: 1; display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .band-grid { grid-template-columns: 1.2fr .8fr; } }
.band h2 { color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -0.6px; margin-bottom: 12px; }
@media (min-width: 768px) { .band h2 { font-size: 28px; } }
.band p { color: var(--text-on-dark); max-width: 640px; margin: 0 0 24px; }
.checks { display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #e2e8f0; }
.checks .ico { width: 17px; height: 17px; color: var(--celeste); }

/* ============ Solicitud: pasos ============ */
.steps { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: -16px 0 32px; padding: 0; counter-reset: none; }
.step {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; border-radius: 999px;
  background: #f1f5f9; border: 1px solid var(--border);
  font-size: 13.5px; font-weight: 600; color: var(--text-muted);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: #e2e8f0; color: var(--text-muted); font-size: 12.5px; font-weight: 700;
}
.step.is-current { background: rgba(0, 170, 228, .08); border-color: var(--celeste); color: var(--navy); }
.step.is-current .step-num { background: var(--celeste-strong); color: #fff; }
.step.is-done { color: #047857; border-color: #a7f3d0; background: #ecfdf5; }
.step.is-done .step-num { background: #047857; color: #fff; }

.split { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 32px; } }

.panel {
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, .8);
  border-radius: 16px; box-shadow: var(--shadow-card);
  padding: 28px 24px;
}
@media (min-width: 768px) { .panel { padding: 30px 28px; } }
.panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.panel-head h3 { font-size: 18px; }
.panel-head h3:focus { outline: none; }
.panel-sub { margin: 2px 0 0; font-size: 13px; color: var(--text-muted); }

.progress { height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--celeste-strong); border-radius: 999px; transition: width .3s var(--ease); }
.progress-text { margin: 8px 0 16px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); }

/* Preguntas frecuentes */
.faq details {
  border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 10px; background: var(--bg);
  transition: border-color .2s, background-color .2s;
}
.faq details[open] { background: #fff; border-color: rgba(0, 170, 228, .5); }
.faq summary {
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; list-style: none;
  padding: 14px 16px; border-radius: 12px;
  font-family: var(--font-title); font-weight: 700; font-size: 14.5px; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { margin-left: auto; color: var(--celeste-strong); transition: transform .2s; }
.faq details[open] .chev { transform: rotate(180deg); }
.faq-mark {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #cbd5e1; color: transparent;
  transition: background-color .2s, border-color .2s, color .2s;
}
.faq-mark .ico { width: 14px; height: 14px; }
.faq details.is-read .faq-mark { background: #047857; border-color: #047857; color: #fff; }
.faq details > p, .faq details > ul { margin: 0; padding: 0 16px 16px 50px; font-size: 14px; }
.faq details > ul { list-style: disc; padding-left: 68px; }
.faq details > ul li { margin-bottom: 4px; }

.confirm {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 18px; padding: 14px 16px;
  border: 1px dashed #cbd5e1; border-radius: 12px;
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  cursor: not-allowed;
}
.confirm input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--celeste-strong); flex: none; }
.confirm.is-ready { border-style: solid; border-color: var(--celeste); background: rgba(0, 170, 228, .06); color: var(--navy); cursor: pointer; }
.confirm.is-ready input { cursor: pointer; }
.confirm.is-checked { border-color: #6ee7b7; background: #ecfdf5; color: #065f46; }
.confirm-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--text-muted); }

/* Formulario */
.form-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.form.is-locked .form-fields { opacity: .45; }
.lock-msg {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; margin-bottom: 18px; border-radius: 10px;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  font-size: 13.5px; font-weight: 600;
}
.form:not(.is-locked) .lock-msg { display: none; }

.grid-2 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-2[hidden] { display: none; }

.field { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend {
  display: block; font-size: 13px; font-weight: 600; color: var(--navy);
  margin-bottom: 6px; padding: 0;
}
.hint { color: var(--text-muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 44px;
  font: inherit; font-size: 14px; color: var(--navy);
  background: #f1f5f9; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--celeste);
  box-shadow: 0 0 0 3px rgba(0, 170, 228, .35);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b91c1c; }
.form-fields:disabled input, .form-fields:disabled textarea, .form-fields:disabled button { cursor: not-allowed; }

.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radio {
  display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px; cursor: pointer; font-weight: 500 !important;
}
.radio input { accent-color: var(--celeste-strong); width: 18px; height: 18px; margin: 0; }
.radio:has(input:checked) { border-color: var(--celeste); background: rgba(0, 170, 228, .06); }

.form-status { min-height: 1.6em; margin: 4px 0 14px; font-size: 13.5px; font-weight: 600; }
.form-status.error { color: #b91c1c; }
.form-status.ok { color: #047857; }
.form .btn[disabled] { opacity: .7; }

/* ============ Pie ============ */
.site-footer {
  background: var(--navy-dark); color: #94a3b8;
  font-size: 13.5px; padding: 56px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .footer-inner { padding: 0 32px; } }
.footer-grid { display: grid; gap: 40px; margin-bottom: 48px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 38px; width: auto; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand-name { font-family: var(--font-title); font-weight: 800; font-size: 14px; color: #fff; }
.footer-brand-sub { font-size: 11px; font-weight: 700; color: var(--celeste); }
.footer-desc { font-size: 13px; margin: 0 0 16px; max-width: 360px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; }

.footer-h { font-family: var(--font-title); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -0.2px; margin: 0 0 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #94a3b8; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--celeste); }
.with-icon { display: flex; gap: 8px; align-items: flex-start; }
.with-icon .ico { margin-top: 3px; color: var(--celeste); }

.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 24px; font-size: 12.5px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .card:hover, .btn:hover, .btn-pill:hover { transform: none; }
}
