@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #15372e;
  --forest: #0e4938;
  --forest-dark: #082f25;
  --leaf: #7fa928;
  --lime: #dceca9;
  --cream: #f4f1e8;
  --paper: #fbfaf5;
  --line: rgba(21, 55, 46, .18);
  --muted: #62736d;
  --white: #fff;
  --container: 1200px;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body, button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { color: inherit; }
::selection { background: var(--lime); color: var(--forest-dark); }

.container { width: min(calc(100% - 36px), var(--container)); margin-inline: auto; }
.section { padding: 88px 0; }
.skip-link { position: fixed; z-index: 999; top: 10px; left: 10px; padding: 10px 16px; background: #fff; color: var(--forest); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: absolute; z-index: 50; inset: 0 0 auto; color: var(--ink); }
.header-inner { height: 86px; display: flex; align-items: center; justify-content: space-between; }
.brand { width: clamp(170px, 24vw, 220px); aspect-ratio: 352 / 124; position: relative; z-index: 53; }
.brand img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.menu-button { position: relative; z-index: 53; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.65); display: grid; place-content: center; gap: 6px; cursor: pointer; }
.menu-button span { display: block; width: 18px; height: 2px; background: var(--ink); }
.main-nav { position: fixed; z-index: 52; inset: 0; background: var(--paper); padding: 120px 28px 40px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-105%); transition: transform .35s ease, opacity .2s ease, visibility 0s linear .35s; }
.main-nav.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }
.main-nav > a { border-bottom: 1px solid var(--line); padding: 15px 0; font-family: "Manrope", sans-serif; font-size: clamp(24px, 7vw, 38px); font-weight: 600; }
.main-nav .nav-cta { margin-top: 14px; padding: 16px 20px; border: 0; border-radius: 50px; background: var(--forest); color: #fff; text-align: center; font-family: "DM Sans", sans-serif; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }

.eyebrow { margin: 0 0 22px; display: flex; align-items: center; gap: 10px; color: var(--leaf); font-size: 12px; line-height: 1; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; }
.eyebrow > span { width: 26px; height: 1px; background: currentColor; }
.eyebrow.light { color: var(--lime); }
.button { min-height: 52px; padding: 0 22px; border-radius: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button span { font-size: 18px; font-weight: 400; }
.button-primary { background: var(--forest); color: var(--white); }
.button-outline { border: 1px solid var(--forest); color: var(--forest); }
.button-light { background: var(--lime); color: var(--forest-dark); }

.hero { min-height: 800px; padding: 126px 0 52px; position: relative; overflow: hidden; background: var(--cream); }
.hero-wash { position: absolute; width: 420px; height: 420px; top: -150px; right: -190px; border-radius: 50%; background: var(--lime); opacity: .65; }
.hero-grid { display: grid; position: relative; z-index: 1; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { max-width: 740px; margin: 0; color: var(--forest-dark); font-family: "Manrope", sans-serif; font-size: clamp(42px, 10.5vw, 86px); line-height: .98; letter-spacing: -.055em; font-weight: 650; }
.hero-lead { max-width: 540px; margin: 28px 0 0; color: #3f5f55; font-size: 17px; line-height: 1.55; }
.hero-actions { margin-top: 32px; display: flex; align-items: flex-start; flex-direction: column; gap: 20px; }
.text-link { padding: 12px 0; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 600; }
.text-link span { margin-left: 12px; }
.hero-meta { display: none; }
.hero-visual { margin: 52px 0 0 28px; position: relative; }
.image-frame { max-height: 470px; border-radius: 150px 0 0 0; overflow: hidden; background: #fff; }
.image-frame img { width: 100%; height: 100%; max-height: 470px; object-fit: cover; object-position: center top; }
.hero-stamp { position: absolute; width: 84px; height: 84px; left: -26px; bottom: 26px; border-radius: 50%; background: var(--leaf); color: #fff; display: grid; place-content: center; text-align: center; font-family: "Manrope", sans-serif; transform: rotate(-8deg); }
.hero-stamp b, .hero-stamp span { font-size: 14px; line-height: .9; letter-spacing: .08em; }

.about { background: var(--paper); }
.about-grid { display: grid; gap: 25px; }
.section-intro h2, .weather-heading h2, .news-head h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(38px, 8vw, 70px); line-height: 1.02; letter-spacing: -.045em; }
.about-copy > p { margin: 0 0 28px; font-size: 17px; line-height: 1.75; color: #435e56; }
.audience-grid { margin-top: 56px; display: grid; gap: 12px; }
.audience-card { min-height: 280px; padding: 24px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s ease, background .25s ease; }
.audience-card:hover { transform: translateY(-5px); }
.audience-card.featured { background: var(--forest); color: white; border-color: var(--forest); }
.card-index { font-size: 11px; opacity: .6; letter-spacing: .12em; }
.card-mark { position: absolute; top: 40px; right: 20px; color: var(--lime); font-family: "Manrope", sans-serif; font-size: 118px; line-height: .8; font-weight: 700; opacity: .52; }
.audience-card:not(.featured) .card-mark { color: var(--leaf); opacity: .24; }
.audience-card h3 { position: relative; margin: 120px 0 8px; font-family: "Manrope", sans-serif; font-size: 27px; letter-spacing: -.03em; }
.audience-card p { margin: 0; max-width: 245px; font-size: 14px; line-height: 1.45; opacity: .72; }
.card-arrow { position: absolute; right: 24px; bottom: 24px; width: 38px; height: 38px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-content: center; }

.resources { background: var(--cream); }
.resources-grid { display: grid; gap: 48px; }
.resource-photo { min-height: 380px; position: relative; overflow: hidden; border-radius: var(--radius); }
.resource-photo::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(8,47,37,.78)); }
.resource-photo img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.resource-photo > span { position: absolute; z-index: 2; bottom: 24px; left: 24px; color: #fff; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }
.resource-list .eyebrow { margin-bottom: 8px; }
.resource-item { padding: 32px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; }
.resource-number { color: var(--leaf); font-size: 11px; letter-spacing: .12em; }
.resource-item h2 { margin: 12px 0; font-family: "Manrope", sans-serif; font-size: clamp(28px, 6vw, 44px); line-height: 1.05; letter-spacing: -.04em; }
.resource-item p { margin: 0; max-width: 560px; color: var(--muted); line-height: 1.55; font-size: 14px; }
.round-link { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-content: center; font-size: 19px; }

.news-section { overflow: hidden; background: var(--forest-dark); color: #fff; }
.news-head { display: flex; flex-direction: column; gap: 28px; }
.news-head > div:first-child > p:last-child { max-width: 520px; color: #b8c7c1; font-size: 15px; line-height: 1.6; }
.carousel-controls { display: flex; gap: 10px; }
.carousel-controls button { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; cursor: pointer; font-size: 20px; }
.carousel-controls button:hover { background: var(--lime); color: var(--forest-dark); }
.news-track-wrap { margin-top: 44px; }
.news-track { display: flex; gap: 14px; overflow-x: auto; padding: 0 18px 20px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.news-track::-webkit-scrollbar { display: none; }
.news-card { flex: 0 0 min(84vw, 390px); min-height: 440px; padding: 24px; scroll-snap-align: start; border-radius: var(--radius); color: var(--forest-dark); display: flex; flex-direction: column; justify-content: space-between; }
.news-card.lime { background: var(--lime); }
.news-card.sand { background: #eddfc6; }
.news-card.blue { background: #c8dfdc; }
.news-card.terracotta { background: #dfa988; }
.news-card-top, .news-footer { display: flex; justify-content: space-between; align-items: center; }
.news-card-top { padding-bottom: 16px; border-bottom: 1px solid rgba(8,47,37,.25); text-transform: uppercase; font-size: 10px; letter-spacing: .13em; }
.news-card-top b { font-size: 18px; }
.news-source { margin: 0 0 14px !important; font-size: 9px !important; font-weight: 700; letter-spacing: .12em; }
.news-card h3 { margin: 0 0 14px; font-family: "Manrope", sans-serif; font-size: 25px; line-height: 1.1; letter-spacing: -.035em; }
.news-card p { margin: 0; line-height: 1.5; font-size: 13px; }
.news-footer { padding-top: 18px; border-top: 1px solid rgba(8,47,37,.25); font-size: 11px; }
.news-footer a { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.news-footer a b { margin-left: 8px; }

.weather-section { background: var(--paper); }
.weather-heading { display: grid; gap: 20px; }
.weather-heading > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.weather-panel { margin-top: 40px; overflow: hidden; border-radius: var(--radius); background: var(--cream); }
.weather-feature { min-height: 360px; padding: 28px; background: var(--lime); display: flex; flex-direction: column; justify-content: space-between; }
.weather-kicker { font-size: 10px; text-transform: uppercase; letter-spacing: .15em; font-weight: 700; }
.weather-feature h3 { margin: 18px 0 0; font-family: "Manrope", sans-serif; font-size: 40px; line-height: .98; letter-spacing: -.05em; }
.feature-temp { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 16px; }
.sun-icon { grid-row: 1 / 3; font-size: 60px; line-height: 1; }
.feature-temp b { font-family: "Manrope", sans-serif; font-size: 72px; line-height: .75; letter-spacing: -.07em; }
.feature-temp small { margin-top: 14px; color: #486058; line-height: 1.4; }
.weather-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.weather-card { min-height: 190px; padding: 22px 18px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.weather-icon { font-size: 25px; }
.weather-card h3 { margin: 20px 0 6px; font-family: "Manrope", sans-serif; font-size: 16px; }
.weather-card b { font-family: "Manrope", sans-serif; font-size: 30px; }
.weather-card p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }

.contact-cta { padding: 80px 0; background: var(--forest); color: #fff; }
.contact-grid { display: grid; gap: 26px; }
.contact-grid h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(48px, 12vw, 100px); line-height: .9; letter-spacing: -.06em; }
.contact-grid div p { margin: 24px 0 0; max-width: 450px; color: #bdd0c9; line-height: 1.6; }
.contact-grid .button { justify-self: start; }

.footer { padding: 60px 0 24px; background: #06241c; color: #fff; }
.footer-grid { display: grid; gap: 38px; }
.footer-brand img { width: 64px; height: 64px; filter: brightness(0) invert(1); object-fit: contain; }
.footer-brand p { max-width: 330px; color: #9eb4ac; line-height: 1.55; }
.footer h2 { margin: 0 0 16px; color: var(--lime); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.footer a { display: block; margin: 0 0 9px; color: #d2ded9; font-size: 14px; }
.footer p { margin: 0; color: #d2ded9; font-size: 14px; line-height: 1.7; }
.footer-bottom { margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 20px; color: #7f9b91; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }

.whatsapp { position: fixed; z-index: 45; right: 16px; bottom: 16px; min-height: 52px; padding: 5px 18px 5px 5px; border-radius: 50px; background: #25d366; color: #073f21; box-shadow: 0 12px 30px rgba(6,36,28,.26); display: flex; align-items: center; gap: 10px; }
.whatsapp-icon { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-content: center; }
.whatsapp-icon img { width: 24px; height: 24px; display: block; }
.whatsapp b { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

/* Página institucional */
.institution-hero { min-height: 650px; padding: 150px 0 72px; position: relative; overflow: hidden; background: var(--cream); display: flex; align-items: center; }
.institution-shape { position: absolute; width: 430px; height: 430px; right: -240px; top: -90px; border-radius: 50%; background: var(--lime); opacity: .78; }
.institution-hero-grid { position: relative; z-index: 1; display: grid; gap: 48px; }
.institution-hero h1 { max-width: 870px; margin: 0; color: var(--forest-dark); font-family: "Manrope", sans-serif; font-size: clamp(44px, 10vw, 88px); line-height: .98; letter-spacing: -.055em; font-weight: 650; }
.law-card { width: min(100%, 280px); min-height: 300px; padding: 26px; justify-self: end; border-radius: var(--radius); background: var(--forest); color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.law-card > span { color: var(--lime); font-size: 10px; text-transform: uppercase; letter-spacing: .15em; }
.law-card strong { font-family: "Manrope", sans-serif; font-size: 54px; line-height: .86; letter-spacing: -.055em; }
.law-card p { margin: 0; color: #bcd0c8; font-size: 12px; line-height: 1.55; }
.board-section { background: var(--paper); }
.board-heading { display: grid; gap: 22px; }
.board-heading h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(40px, 8vw, 72px); line-height: 1; letter-spacing: -.05em; }
.board-heading h2 em { color: var(--leaf); font-style: normal; }
.board-heading > p { margin: 0; max-width: 470px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.board-group { margin-top: 72px; }
.board-group-title { margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.board-group-title span { color: var(--leaf); font-size: 11px; letter-spacing: .12em; }
.board-group-title h3 { margin: 0; font-family: "Manrope", sans-serif; font-size: 18px; }
.board-grid { display: grid; gap: 12px; }
.board-card { min-height: 245px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; display: flex; flex-direction: column; }
.board-card.featured { background: var(--lime); border-color: var(--lime); }
.board-card.control-card { background: var(--cream); }
.board-role { margin: 0; color: var(--leaf); font-size: 10px; font-weight: 700; line-height: 1.4; text-transform: uppercase; letter-spacing: .13em; }
.board-person { margin: 28px 0 auto; font-family: "Manrope", sans-serif; font-size: 26px; line-height: 1.08; letter-spacing: -.035em; }
.board-data { margin: 28px 0 0; padding-top: 15px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; }
.board-data > div { display: grid; gap: 5px; }
.board-data dt { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.board-data dd { margin: 0; font-family: "Manrope", sans-serif; font-size: 14px; font-weight: 700; }
.tribunal-group { margin-top: 84px; }
.main-nav a[aria-current="page"] { color: var(--leaf); }

@media (min-width: 700px) {
  .container { width: min(calc(100% - 64px), var(--container)); }
  .section { padding: 110px 0; }
  .hero-actions { flex-direction: row; align-items: center; }
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
  .audience-card { min-height: 330px; }
  .resources-grid { grid-template-columns: minmax(260px, .72fr) 1.28fr; align-items: stretch; }
  .resource-photo { min-height: 610px; }
  .resource-photo img { min-height: 610px; }
  .news-head { flex-direction: row; align-items: end; justify-content: space-between; }
  .news-track { padding-left: max(32px, calc((100vw - var(--container)) / 2)); }
  .news-card { flex-basis: 390px; min-height: 480px; }
  .weather-heading { grid-template-columns: 1fr auto; align-items: end; }
  .weather-panel { display: grid; grid-template-columns: .9fr 1.1fr; }
  .weather-feature { min-height: 440px; }
  .weather-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 2.1fr; }
  .contact-grid .eyebrow { align-self: start; }
  .contact-grid .button { grid-column: 2; }
  .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); }
  .institution-hero-grid { grid-template-columns: 1fr auto; align-items: end; }
  .board-heading { grid-template-columns: 1.2fr .8fr; align-items: end; }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .board-card.featured { grid-column: span 2; }
  .tribunal-grid .board-card:first-child { grid-column: span 2; }
}

@media (min-width: 980px) {
  .header-inner { height: 104px; }
  .brand { width: 220px; }
  .menu-button { display: none; }
  .main-nav { position: static; z-index: auto; transform: none; padding: 0; background: transparent; flex-direction: row; align-items: center; gap: 28px; overflow: visible; visibility: visible; opacity: 1; pointer-events: auto; transition: none; }
  .main-nav > a { border: 0; padding: 10px 0; font-family: "DM Sans", sans-serif; font-size: 12px; font-weight: 600; }
  .main-nav .nav-cta { margin: 0 0 0 8px; padding: 13px 20px; font-size: 10px; }
  .hero { min-height: 850px; padding: 160px 0 64px; }
  .hero-grid { grid-template-columns: 1.06fr .94fr; align-items: center; gap: 40px; }
  .hero h1 { font-size: clamp(64px, 6.2vw, 91px); }
  .hero-lead { margin-top: 34px; font-size: 19px; }
  .hero-meta { margin-top: 70px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; gap: 38px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
  .hero-meta b { color: var(--ink); }
  .hero-visual { margin: -30px -6vw 0 0; }
  .image-frame { min-height: 610px; max-height: 610px; border-radius: 240px 0 0 0; }
  .image-frame img { min-height: 610px; max-height: 610px; }
  .hero-stamp { width: 110px; height: 110px; left: -45px; bottom: 52px; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 100px; }
  .about-copy { padding-top: 32px; }
  .audience-card { padding: 30px; min-height: 370px; }
  .audience-card h3 { margin-top: 165px; font-size: 31px; }
  .card-mark { font-size: 150px; top: 48px; right: 30px; }
  .resource-list { padding: 34px 20px 0; }
  .news-card h3 { font-size: 29px; }
  .weather-panel { grid-template-columns: .8fr 1.2fr; }
  .weather-grid { grid-template-columns: repeat(3, 1fr); }
  .weather-card { min-height: 220px; }
  .weather-feature { padding: 36px; }
  .contact-cta { padding: 110px 0; }
  .contact-grid { grid-template-columns: .8fr 1.8fr .8fr; align-items: end; }
  .contact-grid .button { grid-column: auto; justify-self: end; }
  .institution-hero { min-height: 720px; padding-top: 180px; }
  .institution-shape { width: 620px; height: 620px; right: -320px; top: -220px; }
  .law-card { width: 260px; min-height: 340px; }
  .board-grid { grid-template-columns: repeat(3, 1fr); }
  .board-card.featured { grid-column: span 2; }
  .tribunal-grid .board-card:first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
