:root {
  --navy: #0b2a55;
  --navy-2: #123a70;
  --teal: #149fb0;
  --green: #74a33a;
  --ochre: #d9901f;
  --ink: #1b2433;
  --muted: #5b6678;
  --line: #e3e8ef;
  --bg: #ffffff;
  --tint: #f4f7fa;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 42, 85, .06), 0 8px 24px rgba(11, 42, 85, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3 { font-family: Montserrat, Inter, sans-serif; color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.eyebrow {
  font: 700 .78rem/1 Montserrat, sans-serif;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ochre); margin: 0 0 .9rem;
}

/* Buttons */
.btn {
  display: inline-block; padding: .85rem 1.5rem; border-radius: 999px;
  background: var(--teal); color: #fff; text-decoration: none;
  font: 600 .95rem Montserrat, sans-serif; border: 2px solid var(--teal);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: #0f8a99; border-color: #0f8a99; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: #eef3f8; border-color: #eef3f8; }
.btn--small { padding: .5rem 1.1rem; font-size: .88rem; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--teal); }
.nav .btn { color: #fff; }
.topbar__right { display: flex; align-items: center; gap: 1.25rem; }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.lang__btn {
  display: flex; align-items: center; gap: .35rem; border: 0; background: transparent; cursor: pointer;
  padding: .3rem .6rem; border-radius: 999px; font: 600 .78rem Inter, sans-serif; color: var(--muted);
  opacity: .65; transition: all .15s ease;
}
.lang__btn svg { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.lang__btn:hover { opacity: 1; }
.lang__btn.is-active { background: var(--tint); color: var(--navy); opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }

/* ProChile band */
.backed { padding: 2.5rem 0 1rem; }
.backed__inner {
  display: flex; align-items: center; gap: 2.5rem; padding: 1.75rem 2rem;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: #fff;
}
.backed__logo { flex: none; }
.backed__logo img { width: 190px; height: auto; }
.backed h2 { font-size: 1.3rem; margin-bottom: .3rem; }
.backed p { margin: 0; color: var(--muted); }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(20,159,176,.45), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(217,144,31,.25), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(6rem, 12vw, 9rem);
}
.hero__bg { position: absolute; inset: auto 0 0 0; color: #fff; line-height: 0; }
.hero__bg svg { width: 100%; height: 90px; }
.hero__inner { position: relative; max-width: 860px; margin-left: max(16px, (100% - 1160px) / 2); }
.hero .eyebrow { color: #f2b553; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
.hero h1 span { color: #7fd6e0; display: block; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.85); max-width: 680px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 2.5rem; }
.stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 2.5rem; }
.stats strong { display: block; font: 800 2rem Montserrat, sans-serif; color: #fff; }
.stats span { color: rgba(255,255,255,.75); font-size: .9rem; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tint { background: var(--tint); }

.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: start; }
.about p { color: var(--muted); }
.pillars { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.pillars li {
  display: flex; gap: 1rem; padding: 1.1rem 1.25rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.pillars h3 { margin: 0 0 .15rem; font-size: 1rem; }
.pillars p { margin: 0; font-size: .93rem; }
.dot { flex: none; width: 12px; height: 12px; border-radius: 50%; margin-top: .4rem; }
.dot--teal { background: var(--teal); } .dot--green { background: var(--green); }
.dot--ochre { background: var(--ochre); } .dot--navy { background: var(--navy); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2rem; }
.chip {
  font: 600 .88rem Inter, sans-serif; color: var(--navy);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem 1rem; cursor: pointer; transition: all .15s ease;
}
.chip:hover { border-color: var(--teal); }
.chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.card {
  display: flex; flex-direction: column; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  border-top: 4px solid var(--teal);
}
.card:nth-child(3n+2) { border-top-color: var(--green); }
.card:nth-child(3n) { border-top-color: var(--ochre); }
.card[hidden] { display: none; }
.card__logo {
  height: 150px; display: grid; place-items: center; padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--line);
}
.card__logo img { max-height: 110px; width: auto; max-width: 100%; object-fit: contain; }
.card__body { padding: 1.4rem 1.5rem .5rem; flex: 1; }
.card__body > p { color: var(--muted); font-size: .95rem; }
.tag {
  display: inline-block; font-size: .8rem !important; font-weight: 600;
  color: var(--teal) !important; background: rgba(20,159,176,.09);
  padding: .25rem .65rem; border-radius: 6px; margin: 0 0 .9rem;
}
details { margin: .25rem 0 1rem; }
summary { cursor: pointer; font-weight: 600; color: var(--navy); font-size: .92rem; }
summary:hover { color: var(--teal); }
details p, details li { color: var(--muted); font-size: .93rem; }
.list { padding-left: 1.1rem; margin: .5rem 0 0; }
.list li { margin-bottom: .4rem; }
.link { font-weight: 600; text-decoration: none; }

.contact {
  list-style: none; margin: 0; padding: 1rem 1.5rem 1.3rem;
  border-top: 1px solid var(--line); background: #fafcfd; font-size: .88rem;
}
.contact li { padding: .2rem 0 .2rem 1.6rem; position: relative; word-break: break-word; }
.contact li::before {
  content: ""; position: absolute; left: 0; top: .5rem; width: 14px; height: 14px;
  background: var(--teal); -webkit-mask: var(--icon) center/contain no-repeat; mask: var(--icon) center/contain no-repeat;
}
.contact li:nth-child(1) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h20v14H2z M2 5l10 8 10-8' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
.contact li:nth-child(2) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3h4l2 5-3 2a11 11 0 0 0 6 6l2-3 5 2v4a2 2 0 0 1-2 2A17 17 0 0 1 3 5a2 2 0 0 1 2-2z' fill='black'/%3E%3C/svg%3E"); }
.contact li:nth-child(3) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z' fill='black'/%3E%3C/svg%3E"); }
.contact a { color: var(--ink); text-decoration: none; }
.contact a:hover { color: var(--teal); text-decoration: underline; }

/* Areas */
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.area { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
.area p { color: var(--muted); font-size: .93rem; margin: 0; }
.area__icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(20,159,176,.1); margin-bottom: 1rem;
}
.area:nth-child(2) .area__icon { background: rgba(116,163,58,.12); }
.area:nth-child(3) .area__icon { background: rgba(217,144,31,.12); }
.area:nth-child(4) .area__icon { background: rgba(11,42,85,.08); }
.area__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--teal), #0d7f8d 55%, var(--navy)); color: #fff; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta h2 { color: #fff; max-width: 640px; }
.cta p { color: rgba(255,255,255,.88); max-width: 640px; margin: 0; }

/* Footer */
.footer { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer img { height: 48px; width: auto; }
.footer__logos { display: flex; align-items: center; gap: 1.5rem; }
.footer__sep { width: 1px; height: 44px; background: var(--line); }
.footer__pc { display: flex; flex-direction: column; gap: .2rem; text-decoration: none; }
.footer__pc small { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.footer__pc img { height: 38px; }
.footer__text { text-align: right; }
.footer p { margin: 0; color: var(--navy); font-weight: 500; font-size: .92rem; }
.footer .muted { color: var(--muted); font-weight: 400; }

/* Responsive */
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 2rem; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .nav-toggle { display: block; }
  .topbar__right { gap: .5rem; }
  .backed__inner { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.5rem; }
  .backed__logo img { width: 150px; }
  .footer__text { text-align: left; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 16px 1rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .8rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: .8rem; }
}
@media (max-width: 400px) {
  .grid { grid-template-columns: 1fr; }
  .stats { gap: 1.25rem 1.75rem; }
  .brand img { height: 38px; }
  .lang__btn { padding: .3rem .45rem; }
  .lang__btn span { display: none; }
}
