/* =============================================================================
   Edificio Gardenia · Lince — sitio institucional
   Manual de identidad: Azul #005D9D · Verde #85BF00 (solo acento) · Tinta
   #1C2A36 · Montserrat · esquinas 8/16 px · SIN sombras (filetes y tintes).
   ========================================================================== */

:root {
  --azul: #005d9d;
  --verde: #85bf00;
  --verde-texto: #4a6e00;
  --tinta: #1c2a36;
  --tinta-suave: #5b6b78;
  --surf: #f4f7fa;
  --azul-suave: #e5eff7;
  --verde-suave: #f1f7e0;
  --alerta: #b3261e;
  --alerta-suave: #fbe9e7;
  --filete: #dde6ee;

  --r: 8px;
  --r-lg: 16px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur: 220ms;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Montserrat", -apple-system, system-ui, "Segoe UI", sans-serif;
  color: var(--tinta);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- Tipografía -------------------------------------------------------- */
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; color: var(--tinta); }
h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azul);
  margin-bottom: 14px;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--verde);
}
.eyebrow-light { color: #bfe0f6; }
.eyebrow-light::after { background: var(--verde); }

.lead, .section-lead {
  color: var(--tinta-suave);
  font-size: 1.05rem;
  max-width: 56ch;
}
.section-lead { margin-top: 14px; }

.dot-green { color: var(--verde); }

/* ---- Botones ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r);
  border: 1.5px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color var(--dur) ease,
    border-color var(--dur) ease, color var(--dur) ease;
}
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

.btn-primary { background: var(--azul); color: #fff; }
.btn-ghost { border-color: var(--filete); color: var(--azul); background: #fff; }
.btn-white { background: #fff; color: var(--azul); }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #014f85; }
  .btn-ghost:hover { border-color: var(--azul); background: var(--azul-suave); }
  .btn-white:hover { background: var(--azul-suave); }
  .main-nav a:hover { color: var(--azul); }
}

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) ease;
}
.site-header.is-scrolled { border-bottom-color: var(--filete); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 68px;
}

.lockup { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.lockup-text strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--azul);
  line-height: 1;
}
.lockup-text small {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--verde-texto);
  margin-top: 2px;
}

.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 8px 12px;
  border-radius: var(--r);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tinta-suave);
  text-decoration: none;
  transition: color var(--dur) ease, background-color var(--dur) ease;
}

@media (max-width: 760px) {
  .main-nav { display: none; }
}

/* ---- Hero --------------------------------------------------------------- */
.hero { padding: 72px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .lead { margin-top: 20px; }
.hero-note { margin-top: 16px; font-size: 0.8rem; color: var(--tinta-suave); }
.hero-art svg { width: 100%; height: auto; }

@media (max-width: 860px) {
  .hero { padding: 48px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { max-width: 320px; }
}

/* ---- Secciones ----------------------------------------------------------- */
.section { padding: 84px 0; }
.section-alt { background: var(--surf); }

/* ---- Pasos --------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.step {
  border: 1px solid var(--filete);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  background: #fff;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--azul);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--tinta-suave); }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---- Papeleta demo ------------------------------------------------------- */
.ballot-demo {
  margin-top: 44px;
  border: 1px solid var(--filete);
  border-radius: var(--r-lg);
  padding: 26px;
  max-width: 620px;
}
.ballot-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.ballot-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--tinta-suave);
}
.ballot-quorum { font-size: 0.8rem; color: var(--azul); }
.ballot-title { font-weight: 700; margin-bottom: 16px; }
.ballot-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ballot-btn {
  padding: 16px 8px;
  border-radius: var(--r);
  border: 1.5px solid var(--filete);
  background: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--tinta);
  pointer-events: none;
}
.ballot-btn.is-selected { background: var(--azul); border-color: var(--azul); color: #fff; }
.ballot-foot { margin-top: 14px; font-size: 0.78rem; color: var(--tinta-suave); }

@media (max-width: 560px) {
  .ballot-options { grid-template-columns: 1fr; }
}

/* ---- Banda azul (portal) -------------------------------------------------- */
.section-band {
  background: var(--azul);
  background-image: radial-gradient(ellipse at top left, #1b77b8 0%, transparent 55%);
}
.band-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.on-dark { color: #fff; }
.feature-list {
  list-style: none;
  margin: 24px 0 28px;
  display: grid;
  gap: 12px;
}
.feature-list li {
  color: #ffffff;
  font-size: 0.98rem;
  padding-left: 26px;
  position: relative;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--verde);
}
.band-note { margin-top: 14px; font-size: 0.8rem; color: #bfe0f6; }

.band-card { display: flex; justify-content: center; }
.mini-acta {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 24px;
  width: 100%;
  max-width: 340px;
  overflow: hidden;
  position: relative;
}
.mini-acta-band {
  position: absolute; inset: 0 0 auto 0; height: 8px;
  background: linear-gradient(90deg, var(--verde) 0 55%, var(--azul) 55% 100%);
}
.mini-acta-title { font-size: 0.8rem; font-weight: 800; color: var(--azul); margin: 10px 0 14px; letter-spacing: 0.04em; }
.mini-line { height: 8px; border-radius: 4px; background: var(--surf); margin-bottom: 8px; }
.w-90 { width: 90%; } .w-70 { width: 70%; } .w-50 { width: 50%; }
.mini-label { font-size: 0.7rem; font-weight: 700; color: var(--tinta-suave); margin: 14px 0 8px; }
.mini-bar { height: 10px; border-radius: 5px; background: var(--surf); margin-bottom: 8px; overflow: hidden; }
.mini-bar span { display: block; height: 100%; border-radius: 5px; background: var(--azul); }
.mini-bar-red span { background: var(--alerta); }
.mini-stamp { margin-top: 14px; font-size: 0.78rem; font-weight: 700; color: var(--verde-texto); }

@media (max-width: 860px) {
  .band-grid { grid-template-columns: 1fr; }
}

/* ---- Comunicados (recuadros del manual) ----------------------------------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.notice { border-radius: var(--r-lg); padding: 24px; }
.notice h3 { margin-bottom: 8px; }
.notice p { font-size: 0.92rem; }
.notice-info { background: var(--azul-suave); }
.notice-info h3 { color: var(--azul); }
.notice-info p { color: var(--tinta); }
.notice-good { background: var(--verde-suave); }
.notice-good h3 { color: var(--verde-texto); }
.notice-urgent { background: var(--alerta-suave); }
.notice-urgent h3 { color: var(--alerta); }

@media (max-width: 760px) {
  .cards-3 { grid-template-columns: 1fr; }
}

/* ---- El edificio ----------------------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fact {
  background: #fff;
  border: 1px solid var(--filete);
  border-radius: var(--r-lg);
  padding: 18px;
}
.fact dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tinta-suave); }
.fact dd { margin-top: 6px; font-weight: 700; font-size: 0.95rem; }

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
}

/* ---- Contacto --------------------------------------------------------------- */
.contact-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  border: 1px solid var(--filete);
  border-radius: var(--r-lg);
  padding: 44px;
  background: var(--surf);
}
.contact-actions { text-align: center; }
.contact-actions .hero-note { margin-top: 12px; }

@media (max-width: 760px) {
  .contact-box { grid-template-columns: 1fr; padding: 28px; }
  .contact-actions { text-align: left; }
}

/* ---- Footer ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--filete); padding: 28px 0; margin-top: 40px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer p { font-size: 0.8rem; color: var(--tinta-suave); }

/* ---- Reveals (robustos: visibles por defecto si falla JS) -------------------- */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.js .reveal.is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; transition: opacity 300ms ease; }
}
