/* Junta de Vecinos El Aromo del Portal — hoja de estilos
   Paleta tomada del logo: verde aromo, dorado hoja, tinta azul, papel crema. */

:root {
  --paper:      #f7f5ef;
  --surface:    #ffffff;
  --ink:        #26303a;
  --ink-soft:   #3c4650;
  --muted:      #6a7078;
  --hairline:   #e4e0d4;
  --green:      #1c7a41;
  --green-dark: #155c31;
  --green-tint: #eaf1ea;
  --gold:       #c8a24c;
  --gold-dark:  #9c7a2f;
  --gold-tint:  #f5efdf;
  --wrap:       1160px;
  --serif:      "Newsreader", Georgia, "Times New Roman", serif;
  --sans:       "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Permite que los hijos de grid/flex se encojan en pantallas angostas */
.hero-grid > *,
.two-col > *,
.grid-3 > *,
.footer-grid > *,
.agenda li > * {
  min-width: 0;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  color: #1f2933;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

p { margin: 0; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); text-decoration: underline; }

hr { border: 0; height: 1px; background: var(--hairline); margin: 20px 0; }

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

.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.light { color: #ffffff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Kicker / section labels ---------- */
.kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.kicker-accent { color: var(--green); }
.kicker .num { color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: #cdd3ce; color: var(--ink); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 2px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: #1f2933;
}
.brand-sub {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav > a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
}
.site-nav > a:hover { color: var(--green-dark); text-decoration: none; }
.site-nav > a.nav-cta,
.site-nav > a.nav-cta:hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero { padding: 84px 0 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem);
  line-height: 1.08;
  margin: 18px 0 0;
  text-wrap: pretty;
}
.lead { font-size: 18px; line-height: 1.65; color: var(--ink-soft); }
.hero .lead { margin-top: 22px; max-width: 40rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.chips {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips li {
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ---------- Card / próxima asamblea ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 4px;
}
.next-meeting {
  border-top: 3px solid var(--green);
  padding: 28px;
  box-shadow: 0 20px 44px -30px rgba(38, 48, 58, 0.4);
}
.nm-date { display: flex; align-items: baseline; gap: 12px; margin-top: 12px; }
.nm-day {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 600;
  color: #1f2933;
  line-height: 1;
}
.nm-meta { display: flex; flex-direction: column; line-height: 1.25; }
.nm-meta strong {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}
.nm-label { font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.nm-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.7;
}
.next-meeting .small { margin-top: 18px; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.section h2, .section-alt h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.25rem); margin-top: 14px; }
.h2-narrow { max-width: 32rem; text-wrap: pretty; }
.section .intro { margin-top: 14px; max-width: 44rem; }

/* ---------- Nosotros ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}
.stack { display: flex; flex-direction: column; gap: 16px; }
.list-title { font-weight: 600; font-size: 14px; margin-bottom: 14px; }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.stat {
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 22px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.section-alt .stat { background: var(--paper); }
.stat-num {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  color: #1f2933;
}

/* ---------- Objetivos ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 34px;
}
.obj { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.obj-icon { color: var(--green); }
.obj-icon svg { width: 24px; height: 24px; }
.obj h3 { font-size: 19px; }
.obj p { font-size: 14.5px; }

/* ---------- Historia / timeline ---------- */
.timeline {
  list-style: none;
  margin: 34px 0 0;
  padding: 0 0 0 30px;
  border-left: 2px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.timeline li { position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--green);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--hairline);
}
.section-alt .timeline li::before { border-color: var(--surface); }
.timeline .tl-now::before { background: var(--gold); }
.tl-year {
  display: block;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--green);
}
.tl-now .tl-year { color: var(--gold-dark); }
.timeline p { margin-top: 4px; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Calendario ---------- */
.agenda {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
}
.agenda li {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--hairline);
}
.agenda li:last-child { border-bottom: 0; }
.ag-date {
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ag-date strong {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  color: #1f2933;
}
.ag-date span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ag-body { display: flex; flex-direction: column; gap: 2px; }
.ag-title { font-weight: 600; font-size: 16px; }

.tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}
.tag-green { color: var(--green); background: var(--green-tint); }
.tag-gold { color: var(--gold-dark); background: var(--gold-tint); }

.note { margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #d7dbdf;
  padding: 56px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 1fr;
  gap: 30px;
}
.site-footer a { color: #b6bcc2; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-logo { background: #fff; border-radius: 3px; padding: 3px; }
.footer-brand .small { margin-top: 16px; max-width: 22rem; color: #9aa2a9; }
.foot-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7f878e;
  margin-bottom: 10px;
}
.site-footer p { font-size: 14px; color: #d7dbdf; }

.footer-legal,
.footer-credits {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: #7f878e;
}
.footer-legal { border-top: 1px solid #3a444e; margin-top: 40px; padding-top: 20px; }
.footer-credits { margin-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .wrap { padding: 0 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    padding: 8px 28px 20px;
    display: none;
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav > a { padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 16px; }
  .nav-cta { margin-top: 14px; border-bottom: 0; }
}

@media (max-width: 560px) {
  .hero { padding: 56px 0 52px; }
  .section { padding: 56px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .agenda li { grid-template-columns: 64px 1fr; grid-template-areas: "date body" "date tag"; row-gap: 10px; }
  .agenda .ag-date { grid-area: date; }
  .agenda .ag-body { grid-area: body; }
  .agenda .tag { grid-area: tag; justify-self: start; }
  .footer-legal, .footer-credits { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
