:root {
  --green-dark: #0b3b2d;
  --green: #145c45;
  --green-soft: #ecf5f1;
  --gold: #b8922f;
  --light: #f4f7f6;
  --text: #18222d;
  --muted: #627080;
  --white: #ffffff;
  --border: #d9e4e0;
  --shadow-soft: 0 6px 22px rgba(16, 44, 34, 0.08);
  --shadow-hover: 0 10px 24px rgba(16, 44, 34, 0.12);
  --radius-card: 18px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.section {
  padding: 62px 0;
}

.section-soft {
  background: linear-gradient(180deg, #f2f8f5 0%, var(--green-soft) 100%);
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.45rem, 1.9vw, 2.05rem);
  margin-bottom: 0.85rem;
  letter-spacing: -0.015em;
  color: #15212b;
}

.caps-title {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 750;
  font-size: 0.95em;
}

p {
  margin: 0 0 0.9rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(20, 92, 69, 0.1);
  box-shadow: 0 3px 16px rgba(20, 34, 45, 0.05);
}

.navbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.2px;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(6, 63, 42, 0.18));
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.08rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 0.42rem 0.74rem;
  border-radius: 999px;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.nav-links a:hover {
  background: var(--green-soft);
  color: var(--green-dark);
}

.hero {
  position: relative;
  min-height: clamp(540px, 66vh, 600px);
  background: url("images/hero-ciudad-jardin.jpg") center 34% / cover no-repeat;
  display: flex;
  align-items: center;
  padding: 72px 0 90px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(184, 146, 47, 0.72) 50%, transparent 100%);
  z-index: 2;
}

.hero::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -42px;
  height: 86px;
  background: var(--light);
  border-top-left-radius: 50% 70%;
  border-top-right-radius: 50% 70%;
  transform: rotate(-2.1deg);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(98deg, rgba(11, 59, 45, 0.66) 0%, rgba(11, 59, 45, 0.42) 43%, rgba(11, 59, 45, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--white);
  max-width: 760px;
  margin-right: auto;
}

.hero h1 {
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  margin-bottom: 0.72rem;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero p {
  font-size: clamp(0.95rem, 1.1vw, 1.02rem);
  color: rgba(255, 255, 255, 0.94);
  max-width: 660px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid transparent;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.97rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.btn-primary {
  background: var(--green-dark);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--green-dark);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-facebook {
  background: #1877f2;
  color: var(--white);
  box-shadow: 0 8px 18px rgba(24, 119, 242, 0.22);
}

.btn-facebook span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  margin-right: 0.45rem;
}

.btn-ghost {
  background: transparent;
  color: var(--green-dark);
  border-color: rgba(20, 92, 69, 0.35);
}

.hero-transition {
  height: 12px;
}

.assembly-card {
  display: grid;
  grid-template-columns: auto 1.3fr 1fr 1fr 1.35fr;
  gap: 1rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(11, 90, 60, 0.08);
  padding: 0.95rem 1.1rem;
}

.assembly-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  background: linear-gradient(145deg, rgba(11, 90, 60, 0.17), rgba(11, 90, 60, 0.07));
  color: var(--green-dark);
  border: 1px solid rgba(11, 90, 60, 0.16);
}

.assembly-main h2 {
  font-size: clamp(1.15rem, 1.3vw, 1.35rem);
  margin-bottom: 0.15rem;
}

.assembly-main small {
  color: var(--muted);
  font-size: 0.8rem;
}

.assembly-col {
  padding-left: 1rem;
  border-left: 1px solid rgba(201, 162, 39, 0.45);
  min-height: 88px;
}

.assembly-col h3 {
  margin: 0 0 0.4rem;
  color: var(--green-dark);
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.assembly-col p {
  margin: 0 0 0.22rem;
  font-size: 0.9rem;
}

.assembly-col ul {
  margin: 0;
  padding-left: 1.05rem;
}

.assembly-col li {
  margin-bottom: 0.15rem;
  font-size: 0.86rem;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.1fr);
  gap: 2.75rem;
  align-items: center;
}

.community-text h2 {
  margin-bottom: 0.75rem;
}

.community-text p {
  font-size: 1.02rem;
  color: #34414f;
}

.docs-block {
  margin-top: 1rem;
}

.docs-block h3 {
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

.docs-block p {
  font-size: 0.9rem;
  color: var(--muted);
}

.docs-grid {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.doc-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(20, 92, 69, 0.14);
  padding: 0.65rem 0.72rem;
  box-shadow: var(--shadow-soft);
}

.doc-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.84rem;
}

.doc-status {
  margin: 0 0 0.5rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.doc-card .btn {
  padding: 0.42rem 0.65rem;
  font-size: 0.75rem;
  border-radius: 10px;
}

.community-text ul {
  padding-left: 1.2rem;
  margin-top: 0.7rem;
}

.community-text li {
  margin-bottom: 0.35rem;
}

.important-phones {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: #f3f8f5;
  border: 1px solid rgba(11, 90, 60, 0.14);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.important-phones h3 {
  font-size: 1rem;
  margin: 0 0 0.6rem;
  color: var(--green-dark);
}

.phone-grid {
  display: grid;
  gap: 0.5rem;
}

.phone-grid p {
  margin: 0;
  font-size: 0.88rem;
  display: grid;
  gap: 0.15rem;
}

.phone-grid span {
  color: var(--muted);
}

.phone-grid a,
.board-members a {
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 700;
}

.board-members {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(11, 90, 60, 0.2);
}

.board-members h4 {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  color: var(--green-dark);
}

.board-members ul {
  margin: 0;
  padding-left: 1.1rem;
}

.board-members li {
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.board-members small {
  color: var(--muted);
  font-size: 0.72rem;
}

.placeholder-note {
  color: var(--muted);
  font-size: 0.73rem;
}

.community-map {
  margin: 0;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  border: 1px solid rgba(11, 90, 60, 0.09);
}

.community-map img {
  border-radius: 18px;
  min-height: 360px;
  width: 100%;
  object-fit: cover;
}

.community-map figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.cards-grid {
  display: grid;
  gap: 1rem;
}

.three-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-cols {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 1.2rem 1.15rem;
  border: 1px solid rgba(11, 90, 60, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card::before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #50ad84, #0b5a3c);
  position: absolute;
  top: 14px;
  right: 14px;
  opacity: 0.17;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.card h3 {
  margin-bottom: 0.55rem;
  padding-right: 2rem;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.project-card {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid rgba(11, 90, 60, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.project-card img {
  width: 100%;
  height: 186px;
  object-fit: cover;
}

.project-content {
  position: relative;
  padding: 0.95rem 0.95rem 1rem;
}

.project-content::before {
  content: "";
  position: absolute;
  top: -18px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid rgba(11, 90, 60, 0.18);
  box-shadow: 0 8px 18px rgba(11, 90, 60, 0.15);
}

.badge {
  display: inline-block;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.28rem 0.72rem;
  margin-bottom: 0.56rem;
  border: 1px solid transparent;
}

.badge.process {
  background: rgba(11, 90, 60, 0.12);
  color: var(--green-dark);
  border-color: rgba(11, 90, 60, 0.2);
}

.badge.evaluate {
  background: rgba(201, 162, 39, 0.18);
  color: #6f5702;
  border-color: rgba(201, 162, 39, 0.4);
}

.project-content h3 {
  margin-bottom: 0.45rem;
}

.project-content p {
  color: var(--muted);
  margin-bottom: 0;
}

.section-intro {
  color: var(--muted);
  max-width: 840px;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(11, 90, 60, 0.08);
  padding: 0.72rem 0.66rem;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.service-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.service-card summary::-webkit-details-marker {
  display: none;
}

.service-card h3,
.service-card summary {
  font-size: 0.83rem;
  font-weight: 700;
  color: #213241;
}

.service-card summary span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
}

.service-card p {
  margin: 0.52rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.service-wa {
  display: inline-block;
  margin-top: 0.48rem;
  font-size: 0.74rem;
  text-decoration: none;
  color: var(--green-dark);
  font-weight: 700;
}

.services-note {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.services-link {
  display: inline-block;
  margin-top: 0.9rem;
  text-decoration: none;
  color: var(--green-dark);
  font-weight: 700;
  border-bottom: 1px solid rgba(11, 90, 60, 0.25);
  padding-bottom: 0.1rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.services-link:hover {
  color: #0f6f4a;
  border-color: #0f6f4a;
}

.community-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}

.tool-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(11, 90, 60, 0.09);
  padding: 0.82rem 0.88rem;
}

.tool-card h2 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.poll-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6faf8 100%);
  border-radius: 16px;
  box-shadow: none;
  border: 0;
  padding: 0;
  text-align: center;
}

.poll-card h2 {
  margin-bottom: 0.62rem;
}

.poll-question {
  font-size: 0.94rem;
  font-weight: 700;
  max-width: 760px;
  margin: 0 auto 0.55rem;
}

.poll-vote {
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.poll-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

.poll-cta {
  margin: 0.35rem 0 0.65rem;
}

.btn-yes {
  background: var(--green);
  color: var(--white);
  min-width: 110px;
}

.btn-no {
  background: var(--white);
  color: #992626;
  border-color: rgba(196, 44, 44, 0.4);
  min-width: 110px;
}

.poll-card small {
  display: block;
  color: var(--muted);
  max-width: 100%;
  margin: 0 auto;
  font-size: 0.82rem;
}

.contact-card p {
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-card small {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.contact-form {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: 0;
  padding: 0;
  max-width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  font-size: 0.82rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d3dfd7;
  border-radius: 10px;
  padding: 0.66rem 0.75rem;
  font: inherit;
  background: #fcfdfc;
}

.contact-form textarea {
  resize: vertical;
  min-height: 74px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(11, 90, 60, 0.5);
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 90, 60, 0.08);
}

.full-width {
  grid-column: 1 / -1;
}

.contact-form .btn {
  margin-top: 0.72rem;
  width: auto;
  min-width: 180px;
  padding: 0.64rem 0.9rem;
}

.site-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.95);
  padding: 1.8rem 0 1.3rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.78rem;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.footer-content h2 {
  font-size: 1.12rem;
  margin-bottom: 0.3rem;
  color: var(--white);
}

.footer-content p {
  margin: 0 0 0.24rem;
}

/* Editorial hierarchy tweaks by section */
.assembly-main .caps-title {
  font-size: 0.9rem;
}

#comunidad .caps-title,
#anuncios .caps-title,
#proyectos .caps-title,
#servicios .caps-title {
  font-size: 1rem;
}

#encuestas .tool-card .caps-title {
  font-size: 0.82rem;
}

.important-phones .caps-title {
  font-size: 0.78rem;
}

.footer-sponsor {
  text-align: right;
}

.footer-content a {
  color: #f0d979;
  font-weight: 700;
}

.legal {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.legal small {
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 1080px) {
  .assembly-card {
    grid-template-columns: auto 1fr 1fr;
    row-gap: 0.9rem;
  }

  .assembly-main {
    grid-column: 2 / 4;
  }

  .assembly-col {
    min-height: 0;
  }

  .assembly-col:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(201, 162, 39, 0.45);
    margin-top: 0.2rem;
    padding-top: 0.7rem;
    border-left: 0;
    padding-left: 0;
  }

  .three-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .four-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-tools-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .docs-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .section {
    padding: 45px 0;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0 0.65rem;
  }

  .brand img {
    width: 56px;
    height: 56px;
  }

  .nav-links {
    width: 100%;
    gap: 0.1rem;
  }

  .hero {
    min-height: 540px;
    padding: 70px 0 85px;
    background-position: center 28%;
  }

  .hero::after {
    bottom: -38px;
    height: 80px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .assembly-card {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .assembly-main {
    grid-column: auto;
  }

  .assembly-col {
    border-left: 0;
    border-top: 1px solid rgba(201, 162, 39, 0.45);
    padding-left: 0;
    padding-top: 0.65rem;
  }

  .three-cols,
  .four-cols,
  .services-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .caps-title {
    letter-spacing: 0.05em;
  }

  .community-tools-grid {
    grid-template-columns: 1fr;
  }

  .contact-form .btn,
  .btn-yes,
  .btn-no {
    width: 100%;
  }

  .footer-content,
  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-sponsor {
    text-align: left;
  }
}
