/* PRAGMA Brasil — estilos */
:root {
  --green: #0B5E2E;
  --green-dark: #064522;
  --green-deep: #04361A;
  --green-light: #4CAF50;
  --yellow: #FFCC00;
  --yellow-dark: #E6B800;
  --blue: #002776;
  --white: #FFFFFF;
  --ink: #14261B;
  --muted: #55665B;
  --line: #E2E9E4;
  --tint: #F4F8F5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(6,69,34,.06), 0 8px 24px rgba(6,69,34,.08);
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--white); }
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; color: var(--green); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Eyebrow con líneas verde/amarillo (elemento gráfico de la marca) */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--yellow-dark); margin-bottom: 14px; }
.eyebrow span { display: inline-block; width: 44px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--green-light) 0 40%, var(--yellow) 40% 100%); }
.eyebrow span:last-child { background: linear-gradient(90deg, var(--yellow) 0 60%, var(--green-light) 60% 100%); }
.about-grid .eyebrow { color: var(--yellow-dark); }
.eyebrow-light { color: var(--yellow); }
.eyebrow-center { justify-content: center; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-family: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-yellow { background: var(--yellow); color: var(--green-deep); }
.btn-yellow:hover { background: var(--yellow-dark); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-sm { padding: 10px 20px; font-size: .88rem; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(6,69,34,.07); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 60px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.main-nav ul a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; position: relative; padding: 6px 0; }
.main-nav ul a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.main-nav ul a:hover::after { transform: scaleX(1); }
.lang-switch { display: flex; gap: 2px; background: var(--tint); border-radius: 999px; padding: 3px; }
.lang-switch a { font-size: .76rem; font-weight: 700; text-decoration: none; color: var(--muted); padding: 5px 10px; border-radius: 999px; }
.lang-switch a.active { background: var(--green); color: var(--white); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--green); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--white); background: radial-gradient(120% 90% at 0% 0%, #0E6D37 0%, var(--green) 45%, var(--green-dark) 100%); min-height: min(86vh, 720px); display: flex; align-items: center; }
.hero::before { content: ''; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 15% 120%, rgba(255,255,255,.035) 0 2px, transparent 2px 22px); pointer-events: none; }
.hero-ribbons { position: absolute; right: 0; bottom: 0; width: 58%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; padding-top: 90px; padding-bottom: 110px; }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 800; max-width: 15ch; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 54ch; color: rgba(255,255,255,.88); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Secciones */
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }

/* Quem somos */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.about-grid p { color: var(--muted); }
.about-grid p strong { color: var(--ink); }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-weight: 600; }
.checks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFCC00' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.stats { position: relative; display: grid; gap: 16px; padding: 34px 34px 92px; border-radius: 22px; background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%); color: var(--white); overflow: hidden; box-shadow: var(--shadow); }
.stat { position: relative; z-index: 1; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.stat:nth-last-of-type(1) { border-bottom: 0; }
.stat strong { display: block; font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--yellow); margin-bottom: 8px; }
.stat span { color: rgba(255,255,255,.86); font-size: .95rem; }
.stats-arc { position: absolute; right: -10px; bottom: -6px; width: 170px; height: auto; z-index: 0; opacity: .9; }

/* Servicios */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.card::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--green) 0 50%, var(--yellow) 50% 82%, var(--blue) 82%); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--tint); display: grid; place-items: center; margin-bottom: 20px; }
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.card h3 { color: var(--green); }
.card p:last-child { color: var(--muted); margin: 0; }

/* Alianzas */
.alliances { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.alliance { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); display: flex; flex-direction: column; }
.alliance:nth-child(1) { border-top: 4px solid var(--green); }
.alliance:nth-child(2) { border-top: 4px solid var(--yellow); }
.alliance:nth-child(3) { border-top: 4px solid var(--blue); }
.alliance-sub { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.alliance h3 { font-size: 1.3rem; font-weight: 800; color: var(--green); }
.alliance p { color: var(--muted); }
.link-arrow { margin-top: auto; font-weight: 700; text-decoration: none; }
.link-arrow span { display: inline-block; transition: transform .2s; }
.link-arrow:hover span { transform: translateX(4px); }

/* Contato */
.contact { background: linear-gradient(150deg, var(--green) 0%, var(--green-deep) 100%); color: var(--white); position: relative; overflow: hidden; }
.contact::after { content: ''; position: absolute; right: -160px; top: -160px; width: 460px; height: 460px; border-radius: 50%; border: 56px solid rgba(255,204,0,.08); pointer-events: none; }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact h2 { color: var(--white); }
.contact .lead { color: rgba(255,255,255,.85); font-size: 1.08rem; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 30px; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--yellow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-list a { color: var(--white); text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }
.contact-form { background: var(--white); color: var(--ink); border-radius: 20px; padding: 34px; box-shadow: 0 20px 50px rgba(0,0,0,.22); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #FBFCFB; transition: border-color .15s, background-color .15s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: var(--white); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .8rem; color: var(--muted); text-align: center; margin: 12px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: 10px; font-size: .92rem; font-weight: 600; margin-bottom: 18px; }
.alert-ok { background: #E7F5EA; color: var(--green-dark); border: 1px solid #BFE3C6; }
.alert-err { background: #FFF6D6; color: #6B5400; border: 1px solid #F2DD8C; }

/* Footer */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,.78); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding-top: 44px; padding-bottom: 36px; }
.footer-logo { height: 72px; width: auto; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin: 0; padding: 0; }
.site-footer a { color: var(--white); text-decoration: none; font-weight: 600; font-size: .9rem; }
.site-footer a:hover { color: var(--yellow); }
.footer-net { margin: 0; font-size: .85rem; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: .82rem; }

/* Animación */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 22px; padding: 28px 20px; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; overflow-y: auto; }
  .main-nav.open { transform: none; visibility: visible; transition: transform .25s ease; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav ul a::after { display: none; }
  .lang-switch { align-self: flex-start; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .alliances { grid-template-columns: 1fr; }
  .hero-ribbons { width: 90%; opacity: .55; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
@media (max-width: 680px) {
  :root { --header-h: 66px; }
  .brand img { height: 42px; }
  .cards, .field-row { grid-template-columns: 1fr; }
  .card, .alliance { padding: 26px 22px; }
  .stats { padding: 24px 24px 84px; }
  .contact-form { padding: 24px 20px; }
  .hero { min-height: 0; }
  .hero-inner { padding-top: 64px; padding-bottom: 150px; }
  .hero-ribbons { width: 100%; height: 45%; opacity: .9; }
  .hero-actions .btn { width: 100%; }
}
