:root {
  --navy: #071c2d;
  --navy-2: #0b2f4a;
  --ink: #10283a;
  --muted: #5c6f7c;
  --paper: #f5f3ee;
  --white: #ffffff;
  --line: rgba(12, 46, 70, .14);
  --yellow: #f1c84b;
  --accent: #1979b7;
  --accent-soft: #e7f2f8;
  --radius: 24px;
  --shadow: 0 22px 65px rgba(7, 28, 45, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
body.tone-ambiente { --accent: #1f7a5a; --accent-soft: #e5f2ec; }
body.tone-core { --accent: #1979b7; --accent-soft: #e7f2f8; }
body.tone-obras { --accent: #c96727; --accent-soft: #faeee4; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; color: #fff; background: #000; }
.skip-link:focus { top: 16px; }

.local-header { position: relative; z-index: 20; color: #fff; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.12); }
.utility { background: #041522; font-size: 12px; letter-spacing: .04em; }
.utility .wrap { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.utility a { text-decoration: none; font-weight: 750; }
.nav { min-height: 92px; display: grid; grid-template-columns: 170px 1fr auto; align-items: center; gap: 30px; }
.brand img { width: 112px; height: auto; max-height: 70px; object-fit: contain; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 26px; font-size: 14px; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,.82); }
.nav-links a:hover { color: #fff; }
.client-button { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--yellow); border-radius: 999px; padding: 11px 16px; text-decoration: none; font-size: 13px; font-weight: 800; }
.client-button small { display: block; color: rgba(255,255,255,.68); font-weight: 600; }

.local-hero { position: relative; overflow: hidden; color: #fff; background: var(--navy); }
.local-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,21,34,.97) 0%, rgba(4,21,34,.84) 48%, rgba(4,21,34,.28) 100%); z-index: 1; }
.local-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; filter: saturate(1.08) contrast(1.04); }
.hero-grid { position: relative; z-index: 2; min-height: 620px; display: grid; grid-template-columns: minmax(0, 720px) 1fr; align-items: center; gap: 50px; padding-block: 76px; }
.eyebrow { margin: 0 0 18px; color: var(--yellow); font-size: 12px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.local-hero h1 { margin: 0; max-width: 760px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: -.045em; font-weight: 500; }
.hero-lead { max-width: 700px; margin: 26px 0 0; color: rgba(255,255,255,.84); font-size: clamp(17px, 2vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 12px 20px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 850; }
.button-primary { color: #fff; background: var(--accent); }
.button-secondary { color: #fff; border: 1px solid rgba(255,255,255,.42); background: rgba(255,255,255,.07); }
.hero-proof { align-self: end; justify-self: end; width: min(330px, 100%); padding: 24px; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); background: rgba(5,25,40,.74); backdrop-filter: blur(12px); }
.hero-proof strong { display: block; margin-bottom: 8px; color: var(--yellow); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.hero-proof p { margin: 0; color: rgba(255,255,255,.78); font-size: 14px; }

.breadcrumbs { padding-block: 17px; border-bottom: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #9aa7af; }
.breadcrumbs a { text-decoration: none; }

.section { padding-block: 82px; }
.section-white { background: #fff; }
.section-dark { color: #fff; background: var(--navy); }
.section-head { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 34px; margin-bottom: 42px; }
.index { color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.section h2 { margin: 0; max-width: 840px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.05; letter-spacing: -.035em; font-weight: 500; }
.section-intro { max-width: 850px; margin: 18px 0 0; color: var(--muted); font-size: 18px; }
.section-dark .section-intro { color: rgba(255,255,255,.7); }

.context-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; }
.context-card, .priority-card, .service-card, .audience-card, .contract-card, .faq details, .related-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.context-card { padding: 34px; box-shadow: var(--shadow); }
.context-card p { margin: 0; font-size: 18px; }
.priority-card { padding: 30px; background: var(--accent-soft); }
.priority-card h3 { margin: 0 0 18px; font-size: 18px; }
.priority-card ul, .service-card ul, .contract-card ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.priority-card li, .service-card li, .contract-card li { position: relative; padding-left: 22px; }
.priority-card li::before, .service-card li::before, .contract-card li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-card { min-height: 100%; padding: 27px; }
.service-card span { color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.service-card h3 { margin: 13px 0 10px; font-size: 20px; line-height: 1.2; }
.service-card p { margin: 0; color: var(--muted); font-size: 15px; }

.contract-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contract-card { padding: 34px; color: var(--ink); box-shadow: var(--shadow); }
.contract-card h3 { margin: 0 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: 31px; font-weight: 500; }
.contract-card p { color: var(--muted); }
.contract-label { display: inline-flex; margin-bottom: 18px; padding: 6px 10px; color: #fff; border-radius: 999px; background: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.audience-card { padding: 34px; color: #fff; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.06); }
.audience-card h3 { margin: 0 0 15px; font-size: 24px; }
.audience-card p { color: rgba(255,255,255,.72); }
.audience-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.audience-list span { padding: 8px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: 12px; }

.faq { display: grid; gap: 12px; max-width: 930px; }
.faq details { padding: 20px 24px; }
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { margin: 14px 0 0; color: var(--muted); }
.legal-note { margin-top: 24px; padding: 18px 20px; border-left: 3px solid var(--accent); color: var(--muted); background: var(--accent-soft); }

.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.related-card { display: block; padding: 24px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.related-card small { color: var(--accent); font-weight: 850; }
.related-card strong { display: block; margin-top: 8px; font-size: 18px; }
.district-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.district-links a { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 13px; background: #fff; }

.local-cta { color: #fff; background: linear-gradient(135deg, var(--accent), var(--navy-2)); }
.cta-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding-block: 60px; }
.cta-grid h2 { margin: 0; max-width: 780px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4vw, 52px); font-weight: 500; line-height: 1.05; }
.cta-grid p { margin: 14px 0 0; color: rgba(255,255,255,.74); }

.local-footer { color: rgba(255,255,255,.74); background: #03131f; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 42px; padding-block: 54px; }
.footer-brand img { width: 116px; height: auto; max-height: 108px; object-fit: contain; margin-bottom: 15px; }
.local-footer h2 { margin: 0 0 14px; color: #fff; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.local-footer a { display: block; margin-block: 8px; text-decoration: none; }
.footer-bottom { min-height: 86px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.footer-bottom nav a { text-decoration: underline; text-underline-offset: 4px; }
.takeweb { display: flex !important; align-items: center; gap: 10px; margin: 0 !important; }
.takeweb img { width: 86px; height: auto; }

.local-links-section { padding: 58px 0; background: #f5f3ee; }
.local-links-section .local-links-wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.local-links-section h2 { margin: 0; color: #10283a; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 4vw, 44px); font-weight: 500; }
.local-links-section p { max-width: 780px; color: #5c6f7c; }
.local-links-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.local-links-list a { padding: 10px 14px; color: #10283a; border: 1px solid rgba(12,46,70,.15); border-radius: 999px; text-decoration: none; background: #fff; }

@media (max-width: 900px) {
  .nav { grid-template-columns: 110px 1fr; min-height: 78px; }
  .nav-links { display: none; }
  .client-button { justify-self: end; }
  .hero-grid, .context-grid, .contract-grid, .cta-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: 690px; }
  .hero-proof { justify-self: start; }
  .services-grid, .related-grid { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { grid-template-columns: 1fr; padding-block: 24px; gap: 14px; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .utility .wrap { min-height: 46px; font-size: 10px; }
  .utility .wrap span { max-width: 180px; }
  .brand img { width: 86px; max-height: 58px; }
  .client-button { padding: 9px 11px; font-size: 11px; }
  .client-button small { display: none; }
  .local-hero::before { background: linear-gradient(180deg, rgba(4,21,34,.8), rgba(4,21,34,.98)); }
  .hero-grid { min-height: 720px; padding-block: 55px; }
  .local-hero h1 { font-size: clamp(40px, 13vw, 58px); }
  .hero-actions, .hero-actions .button { width: 100%; }
  .section { padding-block: 60px; }
  .services-grid, .related-grid, .footer-grid { grid-template-columns: 1fr; }
  .context-card, .priority-card, .service-card, .contract-card, .audience-card { padding: 24px; }
  .cta-grid { padding-block: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
