:root {
  --ink: #17181c;
  --muted: #5d6470;
  --paper: #f7f6f1;
  --surface: #ffffff;
  --line: #dedbd2;
  --brand: #0aa6a6;
  --brand-dark: #002852;
  --green: #54a52d;
  --orange: #f47b18;
  --purple: #6f2c91;
  --gold: #d6a847;
  --rose: #b85b68;
  --blue: #1768b7;
  --shadow: 0 18px 50px rgba(23, 24, 28, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 246, 241, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 180px;
}

.brand-mark {
  width: 164px;
  height: 58px;
  object-fit: contain;
}

.brand-word {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.brand-sub {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #30343b;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
  background: #e9e5da;
  color: var(--brand-dark);
}

.menu-toggle { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.button.accent {
  background: var(--brand);
}

.hero .button.secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.76);
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(23, 24, 28, 0.88), rgba(23, 24, 28, 0.62), rgba(23, 24, 28, 0.2)),
    url("images/hero-cooperativismo.png") center right / cover no-repeat;
  color: white;
  padding: 76px 0 40px;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-copy {
  width: min(720px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f0d999;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 2px;
  background: currentColor;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  margin-top: 22px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  max-width: 860px;
}

.lead {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2.1vw, 1.32rem);
  max-width: 640px;
  margin: 24px 0 30px;
}

.hero-actions,
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-metrics {
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 1px;
  width: min(760px, 100%);
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.metric {
  background: rgba(23, 24, 28, 0.56);
  padding: 20px;
}

.metric strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.section {
  padding: 86px 0;
}

.section.tight { padding: 54px 0; }
.section.dark { background: var(--ink); color: white; }
.section.white { background: var(--surface); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 38px;
}

.section-head h2,
.page-title h1 {
  font-size: clamp(2rem, 4.6vw, 4.2rem);
}

.section-head p,
.page-title p {
  color: var(--muted);
  margin: 0;
  font-size: 1.04rem;
}

.dark .section-head p,
.dark .muted {
  color: rgba(255, 255, 255, 0.72);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  min-height: 100%;
}

.dark .card {
  background: #22242b;
  border-color: rgba(255, 255, 255, 0.12);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.card p { color: var(--muted); margin: 0; }
.dark .card p { color: rgba(255, 255, 255, 0.72); }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 44px;
  align-items: center;
}

.feature.identity-feature {
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
}

.feature-media {
  background: #25262b;
  padding: 24px;
  box-shadow: var(--shadow);
}

.feature-media img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
}

.feature-media img[src$="isoti-logo.png"],
.feature-media img[src$="logo-isoti-oficial.png"] {
  aspect-ratio: 16 / 7;
  object-fit: contain;
  padding: 22px;
  background: #1f2024;
}

.kicker {
  color: var(--brand-dark);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.feature h2 { font-size: clamp(2rem, 4vw, 4rem); margin: 10px 0 20px; }
.feature p { color: var(--muted); font-size: 1.08rem; }

.list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.62);
}

.identity-board {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(0, 40, 82, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 70% 20%, rgba(10, 166, 166, 0.2), transparent 30%),
    radial-gradient(circle at 18% 78%, rgba(84, 165, 45, 0.22), transparent 28%),
    linear-gradient(135deg, #fffdf6 0%, #eef7f2 52%, #f4f0fb 100%);
  box-shadow: var(--shadow);
}

.identity-board::before {
  content: "";
  position: absolute;
  inset: 42px;
  background-image:
    linear-gradient(120deg, transparent 0 42%, rgba(0, 40, 82, 0.18) 42.2% 42.7%, transparent 43%),
    linear-gradient(28deg, transparent 0 48%, rgba(10, 166, 166, 0.2) 48.2% 48.8%, transparent 49%),
    linear-gradient(155deg, transparent 0 52%, rgba(244, 123, 24, 0.2) 52.2% 52.8%, transparent 53%);
  opacity: 0.9;
}

.identity-orbit {
  position: absolute;
  inset: 46px;
  border: 2px solid rgba(0, 40, 82, 0.16);
  border-radius: 999px;
  transform: rotate(-14deg);
}

.identity-orbit.second {
  inset: 96px 54px 72px 88px;
  border-color: rgba(84, 165, 45, 0.25);
  transform: rotate(18deg);
}

.identity-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--brand-dark);
  color: white;
  box-shadow: 0 22px 60px rgba(0, 40, 82, 0.3);
  font-weight: 900;
  line-height: 1.1;
  padding: 24px;
}

.identity-node {
  position: absolute;
  width: 138px;
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 6px;
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 40, 82, 0.12);
  backdrop-filter: blur(8px);
}

.identity-node strong {
  color: var(--brand-dark);
  font-size: 0.95rem;
  line-height: 1.1;
}

.identity-node span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.identity-node::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--node-color, var(--brand));
}

.identity-node.work { --node-color: var(--orange); left: 7%; top: 12%; }
.identity-node.community { --node-color: var(--green); right: 8%; top: 14%; }
.identity-node.business { --node-color: var(--blue); left: 10%; bottom: 12%; }
.identity-node.solidarity { --node-color: var(--purple); right: 9%; bottom: 11%; }

.principle-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.principle {
  padding: 14px;
  border-radius: 8px;
  color: white;
  font-weight: 900;
  text-align: center;
}

.principle.green { background: var(--green); }
.principle.orange { background: var(--orange); }
.principle.purple { background: var(--purple); }
.principle.teal { background: var(--brand); }

.support-loop {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(0, 40, 82, 0.14);
  background:
    radial-gradient(circle at 30% 24%, rgba(84, 165, 45, 0.18), transparent 28%),
    radial-gradient(circle at 78% 72%, rgba(244, 123, 24, 0.17), transparent 32%),
    #fffdf8;
  box-shadow: var(--shadow);
}

.support-loop::before {
  content: "";
  position: absolute;
  inset: 56px;
  border: 16px solid rgba(10, 166, 166, 0.16);
  border-left-color: rgba(84, 165, 45, 0.24);
  border-bottom-color: rgba(111, 44, 145, 0.2);
  border-radius: 50%;
}

.support-loop::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--brand-dark);
  box-shadow: 0 18px 42px rgba(0, 40, 82, 0.24);
}

.loop-item {
  position: absolute;
  width: 148px;
  padding: 14px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  font-weight: 900;
  color: var(--brand-dark);
  text-align: center;
}

.loop-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
}

.loop-item.people { left: 42px; top: 44px; }
.loop-item.company { right: 42px; top: 54px; }
.loop-item.project { right: 54px; bottom: 54px; }
.loop-item.value { left: 52px; bottom: 48px; }

.page-hero {
  padding: 72px 0 54px;
  background: var(--ink);
  color: white;
}

.page-title {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.5fr);
  gap: 40px;
  align-items: end;
}

.page-title p { color: rgba(255, 255, 255, 0.74); }

.program-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.program-row {
  display: grid;
  grid-template-columns: 220px 1fr 160px;
  gap: 24px;
  align-items: start;
  background: var(--surface);
  padding: 26px;
}

.program-row strong {
  color: var(--brand-dark);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.program-row h3 { margin-bottom: 8px; }
.program-row p { margin: 0; color: var(--muted); }

.project-showcase {
  display: grid;
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-card-media {
  min-height: 100%;
  background: var(--brand-dark);
}

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

.project-card-body {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(28px, 5vw, 54px);
}

.project-status {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10, 166, 166, 0.12);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.project-facts {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.project-facts div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 13px 14px;
  background: #fbfaf6;
}

.project-facts dt {
  color: var(--brand-dark);
  font-weight: 900;
}

.project-facts dd {
  margin: 0;
  color: var(--muted);
}

.team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.person {
  background: var(--surface);
  border: 1px solid var(--line);
}

.person img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.person div { padding: 20px; }
.person h3 { font-size: 1.16rem; margin-bottom: 6px; }
.person p { margin: 0; color: var(--muted); }

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
  gap: 32px;
}

.contact-box {
  background: var(--ink);
  color: white;
  padding: 34px;
  border-radius: 8px;
}

.contact-box p { color: rgba(255,255,255,0.75); }

.contact-box .list li {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
  font-size: 0.9rem;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  background: white;
  color: var(--ink);
  font: inherit;
}

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

.site-footer {
  padding: 46px 0;
  background: #101114;
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(240px, 0.55fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.footer-grid p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.65);
}

.footer-title {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.footer-contact {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.footer-contact a:hover,
.footer-links a:hover {
  color: white;
}

.partner-logos {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.partner-logo {
  width: 92px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 800;
}

.partner-logo:empty::before {
  content: "";
  width: 44px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.partner-logo img {
  max-width: 78px;
  max-height: 38px;
  object-fit: contain;
}

.partner-logos + .footer-links {
  margin-top: 16px;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
    font-size: 1.35rem;
  }

  .nav { flex-wrap: wrap; padding: 12px 0; }
  .nav-links {
    display: none;
    width: 100%;
    align-items: stretch;
  }
  .nav-links.open { display: grid; grid-template-columns: 1fr; }
  .nav-links a { padding: 12px; }

  .hero { min-height: auto; padding: 76px 0 34px; }
  .hero-metrics { grid-template-columns: 1fr; }
  .section-head,
  .page-title,
  .feature,
  .contact-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .grid,
  .team {
    grid-template-columns: 1fr;
  }
  .project-card {
    grid-template-columns: 1fr;
  }
  .project-card-media img {
    min-height: 260px;
  }
  .project-facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .feature.identity-feature {
    grid-template-columns: 1fr;
  }
  .identity-board,
  .support-loop {
    min-height: 560px;
  }
  .identity-core {
    width: 150px;
    height: 150px;
    font-size: 0.88rem;
  }
  .identity-node,
  .loop-item {
    width: min(145px, 42vw);
  }
  .identity-node.work { left: 5%; top: 8%; }
  .identity-node.community { right: 5%; top: 9%; }
  .identity-node.business { left: 5%; bottom: 8%; }
  .identity-node.solidarity { right: 5%; bottom: 8%; }
  .principle-strip {
    grid-template-columns: 1fr 1fr;
  }
  .program-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
