/*
 * Agroamancay — sitio HTML estático.
 * Verde bosque #173D32 · Verde salvia #718779 · Blanco cálido #F7F8F5
 * Gris grafito #252B28 · Gris piedra #DDE1DC
 */
:root {
  --radius: 0.375rem;
  --forest: #173d32;
  --sage: #718779;
  --warm-white: #f7f8f5;
  --graphite: #252b28;
  --stone: #dde1dc;

  --background: var(--warm-white);
  --foreground: var(--graphite);
  --card: #fdfefc;
  --primary: var(--forest);
  --primary-fg: var(--warm-white);
  --primary-deep: #0f2a22;
  --secondary: var(--sage);
  --muted: #f0f2ef;
  --muted-fg: #55625b;
  --accent: #e3ebe6;
  --destructive: #b3412f;
  --border: var(--stone);
  --on-dark: var(--warm-white);
  --on-dark-muted: rgba(247, 248, 245, 0.72);

  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 1px 2px rgba(37, 43, 40, 0.06), 0 12px 32px -16px rgba(37, 43, 40, 0.18);
  --shadow-lift: 0 2px 4px rgba(37, 43, 40, 0.06), 0 24px 48px -24px rgba(23, 61, 50, 0.35);
}

*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; font-weight: 500; }
p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.ic { width: 1rem; height: 1rem; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 48rem) { .container { padding-inline: 2.5rem; } }

.eyebrow { font-family: var(--font-display); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }
.text-sage { color: var(--secondary); }
.text-dim { color: var(--on-dark-muted); }
.text-muted { color: var(--muted-fg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--radius); border: 1px solid transparent;
  padding: 0.6rem 1.1rem; font-size: 0.875rem; font-weight: 500; line-height: 1.25;
  transition: background-color .3s, color .3s, border-color .3s, opacity .3s;
  white-space: nowrap;
}
.btn-xl { padding: 0.95rem 1.7rem; font-size: 1rem; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { opacity: 0.9; }
.btn-light { background: var(--on-dark); color: var(--primary); }
.btn-light:hover { background: rgba(247,248,245,.9); }
.btn-outline { border-color: var(--border); background: var(--background); color: var(--foreground); }
.btn-outline:hover { background: var(--accent); }
.btn-outline-light { border-color: rgba(247,248,245,.35); color: var(--on-dark); background: transparent; }
.btn-outline-light:hover { background: rgba(247,248,245,.12); }
.btn-link { padding: 0; color: var(--primary); font-size: 1rem; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(247,248,245,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); color: var(--foreground);
  transition: background-color .5s, color .5s, border-color .5s;
}
.site-header.is-home:not(.scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; color: var(--on-dark); }
.header-inner { display: flex; height: 5rem; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { height: 2.75rem; width: auto; user-select: none; }
@media (min-width: 40rem) { .logo { height: 3rem; } }
.logo-white { display: none; }
.site-header.is-home:not(.scrolled) .logo-color { display: none; }
.site-header.is-home:not(.scrolled) .logo-white { display: block; }

.nav-desktop { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 64rem) { .nav-desktop { display: flex; } .menu-btn { display: none !important; } }
.nav-desktop a { position: relative; padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 500; color: var(--muted-fg); transition: color .3s; }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--foreground); }
.nav-desktop a[aria-current="page"]::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: -2px; height: 1px; background: currentColor; }
.site-header.is-home:not(.scrolled) .nav-desktop a { color: var(--on-dark-muted); }
.site-header.is-home:not(.scrolled) .nav-desktop a:hover,
.site-header.is-home:not(.scrolled) .nav-desktop a[aria-current="page"] { color: var(--on-dark); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-cta { display: none; }
@media (min-width: 40rem) { .header-cta { display: inline-flex; } }
.site-header.is-home:not(.scrolled) .header-cta { background: var(--on-dark); color: var(--primary); }
.menu-btn { width: 2.5rem; height: 2.5rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); border: 1px solid var(--border); background: var(--background); }
.site-header.is-home:not(.scrolled) .menu-btn { background: transparent; border-color: rgba(247,248,245,.35); color: var(--on-dark); }
.menu-btn .ic { width: 1.25rem; height: 1.25rem; }

.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: 100%; max-width: 24rem; background: var(--background); color: var(--foreground); padding: 1.5rem; overflow-y: auto; box-shadow: var(--shadow-lift); }
.drawer-close { position: absolute; right: 1rem; top: 1rem; width: 2.25rem; height: 2.25rem; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: var(--radius); }
.drawer-close .ic { width: 1.25rem; height: 1.25rem; }
.drawer-links { margin-top: 2.5rem; display: flex; flex-direction: column; }
.drawer-links a.nav-item { border-bottom: 1px solid var(--border); padding: 1rem 0; font-family: var(--font-display); font-size: 1.25rem; }
.drawer-links a.nav-item[aria-current="page"] { color: var(--primary); }
.drawer-links .btn { margin-top: 2rem; }

main { display: block; }

/* ---------- Reveal / motion ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes slow-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes line-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.anim-up { animation: fade-up .9s var(--ease) both; }
.d1 { animation-delay: 100ms; } .d2 { animation-delay: 200ms; } .d3 { animation-delay: 360ms; } .d4 { animation-delay: 520ms; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--primary-deep); color: var(--on-dark); }
.hero > img.bg { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; animation: slow-zoom 2.4s var(--ease) both; }
.hero .ov1 { position: absolute; inset: 0; z-index: -2; background: linear-gradient(100deg, rgba(15,42,34,.94) 0%, rgba(15,42,34,.78) 38%, rgba(15,42,34,.2) 72%, rgba(15,42,34,.05) 100%); }
.hero .ov2 { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(15,42,34,.85) 0%, transparent 45%); }
.hero-inner { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 9rem; padding-bottom: 2rem; }
@media (min-width: 48rem) { .hero-inner { padding-bottom: 2.5rem; } }
.hero-top { max-width: 56rem; }
.hero-kicker { display: flex; align-items: center; gap: 1rem; }
.hero-kicker .line { height: 1px; width: 3rem; background: rgba(247,248,245,.6); transform-origin: left; animation: line-grow 1.2s var(--ease) both; }
.hero h1 { margin-top: 1.75rem; font-size: 2.4rem; line-height: 1.04; }
@media (min-width: 40rem) { .hero h1 { font-size: 3.75rem; } }
@media (min-width: 64rem) { .hero h1 { font-size: 4.5rem; } }
.hero .lead { margin-top: 1.75rem; max-width: 36rem; font-size: 1.125rem; line-height: 1.65; color: var(--on-dark-muted); animation-delay: 240ms; }
.hero-btns { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.highlights { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(2, 1fr); border-radius: var(--radius); background: rgba(15,42,34,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(247,248,245,.14); }
@media (min-width: 48rem) { .highlights { margin-top: 4rem; grid-template-columns: repeat(4, 1fr); } }
.highlights > div { padding: 1.25rem; }
.highlights > div:nth-child(even) { border-left: 1px solid rgba(247,248,245,.1); }
.highlights > div:nth-child(n+3) { border-top: 1px solid rgba(247,248,245,.1); }
@media (min-width: 48rem) {
  .highlights > div { padding: 1.5rem 1.75rem; }
  .highlights > div:nth-child(n+3) { border-top: 0; }
  .highlights > div + div { border-left: 1px solid rgba(247,248,245,.1); }
}
.highlights .k { font-family: var(--font-display); font-size: 1rem; font-weight: 500; }
@media (min-width: 48rem) { .highlights .k { font-size: 1.25rem; } }
.highlights .v { margin-top: .25rem; font-size: .875rem; color: var(--on-dark-muted); }

/* ---------- Page hero ---------- */
.page-hero { background: var(--primary); color: var(--on-dark); }
.page-hero .container { padding-top: 9rem; padding-bottom: 4rem; }
@media (min-width: 48rem) { .page-hero .container { padding-top: 11rem; padding-bottom: 5rem; } }
.page-hero h1 { margin-top: 1.25rem; max-width: 48rem; font-size: 2.25rem; line-height: 1.05; }
@media (min-width: 48rem) { .page-hero h1 { font-size: 3.75rem; } }
.page-hero .sub { margin-top: 1.5rem; max-width: 42rem; font-size: 1.125rem; line-height: 1.65; color: var(--on-dark-muted); }

/* ---------- Generic section ---------- */
.section { padding-block: 6rem; }
@media (min-width: 48rem) { .section { padding-block: 8rem; } }
.band-muted { background: rgba(240,242,239,.6); border-block: 1px solid var(--border); }
.band-line { border-block: 1px solid var(--border); background: var(--background); }

.heading-split { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .heading-split { grid-template-columns: repeat(12, 1fr); align-items: end; } .heading-split > :first-child { grid-column: span 7; } .heading-split > :last-child { grid-column: span 5; } }
.h2 { margin-top: 1rem; font-size: 1.875rem; line-height: 1.1; }
@media (min-width: 48rem) { .h2 { font-size: 3rem; } }
.heading-left { max-width: 42rem; }
.heading-left .intro { margin-top: 1.25rem; line-height: 1.65; color: var(--muted-fg); }
.heading-split .intro { line-height: 1.65; color: var(--muted-fg); }

.grid-lines { display: grid; gap: 1px; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); background: var(--border); }
.cols-3 { grid-template-columns: 1fr; }
@media (min-width: 40rem) { .cols-3.sm2 { grid-template-columns: repeat(2, 1fr); } .cols-3.sm3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64rem) { .cols-3.sm2 { grid-template-columns: repeat(3, 1fr); } }
.pillar { background: var(--background); padding: 1.5rem; }
.pillar .num { font-family: var(--font-display); font-size: .875rem; color: var(--secondary); }
.pillar .t { margin-top: 1rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; }
.pillar .d { margin-top: .5rem; font-size: .875rem; line-height: 1.65; color: var(--muted-fg); }

/* ---------- Clients ---------- */
.clients-section { border-bottom: 1px solid var(--border); background: rgba(240,242,239,.6); padding-block: 4rem; }
@media (min-width: 48rem) { .clients-section { padding-block: 5rem; } }
.clients-section h2 { margin-top: 1rem; font-size: 1.875rem; }
@media (min-width: 48rem) { .clients-section h2 { font-size: 2.25rem; } }
.clients-section .lede { margin-top: 1.25rem; max-width: 42rem; font-size: 1.125rem; color: var(--muted-fg); }
.clients-grid { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 1.5rem; }
@media (min-width: 40rem) { .clients-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64rem) { .clients-grid { column-gap: 3rem; } }
.clients-grid li { border-top: 1px solid var(--border); padding-block: 1.5rem; display: flex; flex-direction: column; justify-content: center; }
.logo-box { height: 6rem; display: flex; align-items: center; justify-content: center; padding-inline: 1rem; background: var(--card); }
.logo-box.dark { background: var(--primary); }
@media (min-width: 48rem) { .logo-box { height: 7rem; padding-inline: 2rem; } }
.logo-box img { width: 100%; height: 100%; max-height: 4rem; object-fit: contain; }
@media (min-width: 48rem) { .logo-box img { max-height: 5rem; } }
.clients-grid .name { margin-top: .75rem; min-height: 2.5rem; text-align: center; font-size: .875rem; font-weight: 500; color: var(--muted-fg); }

/* ---------- Certifications ---------- */
.cert-section { background: var(--primary); color: var(--on-dark); padding-block: 6rem; }
@media (min-width: 48rem) { .cert-section { padding-block: 8rem; } }
.cert-head { margin-top: 1rem; display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .cert-head { grid-template-columns: repeat(12, 1fr); align-items: end; } .cert-head h2 { grid-column: span 7; } .cert-head p { grid-column: span 5; } }
.cert-head h2 { font-size: 1.875rem; line-height: 1.1; }
@media (min-width: 48rem) { .cert-head h2 { font-size: 3rem; } }
.cert-head p { line-height: 1.65; color: var(--on-dark-muted); }
.cert-grid { margin-top: 3.5rem; display: grid; gap: 1px; overflow: hidden; border-radius: var(--radius); border: 1px solid rgba(247,248,245,.15); background: rgba(247,248,245,.15); }
@media (min-width: 40rem) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
.cert-grid li { display: flex; flex-direction: column; align-items: center; background: var(--primary); padding: 2.5rem 1.5rem; text-align: center; }
.cert-grid img { height: 12rem; width: auto; }
@media (min-width: 48rem) { .cert-grid img { height: 13rem; } }
.cert-grid .std { margin-top: 1.75rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; }
.cert-grid .scope { margin-top: .25rem; font-size: .875rem; color: var(--on-dark-muted); }

.cert-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); padding: 1.75rem 2rem; }
.cert-strip .imgs { display: flex; align-items: center; gap: 1.5rem; }
.cert-strip img { height: 9rem; width: auto; }
.cert-strip .txt { min-width: min(20rem, 100%); flex: 1; }
.cert-strip .txt p:last-child { margin-top: .75rem; line-height: 1.65; color: var(--muted-fg); }

/* ---------- Policy ---------- */
.policy-grid { display: grid; gap: 3.5rem; }
@media (min-width: 64rem) { .policy-grid { grid-template-columns: repeat(12, 1fr); gap: 5rem; } .policy-grid > :first-child { grid-column: span 5; } .policy-grid > :last-child { grid-column: span 7; padding-top: 1.5rem; } }
.policy-text { margin-top: 2.5rem; display: grid; gap: 1rem; line-height: 1.65; }
.policy-text p:first-child { color: var(--muted-fg); }
.photo-pair { margin-top: 2.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 40rem) { .photo-pair { grid-template-columns: repeat(2, 1fr); } }
.photo-pair figcaption { margin-top: .75rem; font-size: .875rem; color: var(--muted-fg); }
.frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: .5rem; background: var(--muted); }
.frame > img.ph { width: 100%; height: 100%; object-fit: cover; }
.wm { position: absolute; pointer-events: none; filter: drop-shadow(0 4px 3px rgba(0,0,0,.2)); }
.wm img { height: 1.25rem; width: auto; }
@media (min-width: 48rem) { .wm img { height: 1.5rem; } }
.wm.top-left { left: .75rem; top: .75rem; } .wm.top-right { right: .75rem; top: .75rem; }
.wm.bottom-left { left: .75rem; bottom: .75rem; } .wm.bottom-right { right: .75rem; bottom: .75rem; }

/* ---------- Services bento ---------- */
.bento { margin-top: 3.5rem; display: grid; gap: 1rem; }
@media (min-width: 48rem) { .bento { grid-template-columns: repeat(2, 1fr); } .bento .span2 { grid-column: span 2; } }
@media (min-width: 64rem) { .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 270px; } .bento .lg-span2 { grid-column: span 2; } .bento .rows2 { grid-row: span 2; } }
.bento > * { min-width: 0; }
.tile { position: relative; display: block; height: 100%; min-height: 280px; overflow: hidden; border-radius: var(--radius); background: var(--primary-deep); color: var(--on-dark); }
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s ease-out; }
.tile:hover > img { transform: scale(1.05); }
.tile .ov { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,31,25,.88) 0%, transparent 65%); }
.tile .idx { position: absolute; left: 1.75rem; top: 1.75rem; font-family: var(--font-display); font-size: .875rem; color: var(--on-dark-muted); }
.tile .cap { position: absolute; left: 1.75rem; right: 1.75rem; bottom: 1.75rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.tile h3 { font-size: 1.25rem; line-height: 1.35; }
@media (min-width: 48rem) { .tile h3 { font-size: 1.5rem; } }
.tile .cap p { margin-top: .5rem; max-width: 24rem; font-size: .875rem; color: var(--on-dark-muted); }
.tile .go { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex-shrink: 0; border-radius: 9999px; border: 1px solid rgba(247,248,245,.3); transition: background-color .5s, color .5s; }
.tile:hover .go { background: var(--on-dark); color: var(--primary); }
.combo { display: flex; flex-direction: column; justify-content: space-between; height: 100%; min-height: 220px; border-radius: var(--radius); background: var(--secondary); color: var(--primary-fg); padding: 1.75rem; transition: transform .5s, box-shadow .5s; }
.combo:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.combo .eyebrow { opacity: .8; }
.combo .big { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1.35; }
.combo .more { margin-top: 1rem; display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 500; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 3.5rem; }
@media (min-width: 64rem) { .about-grid { grid-template-columns: repeat(12, 1fr); gap: 5rem; } .about-grid > :first-child { grid-column: span 5; } .about-grid > :last-child { grid-column: span 7; padding-top: 1.5rem; } }
.about-photo { position: relative; overflow: hidden; border-radius: var(--radius); }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% center; }
.about-photo .year { position: absolute; left: 0; bottom: 0; background: var(--primary); color: var(--on-dark); padding: 1.25rem 1.5rem; }
.about-photo .year .n { font-family: var(--font-display); font-size: 2.25rem; font-weight: 500; }
.about-photo .year .l { margin-top: .25rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .18em; color: var(--on-dark-muted); }
.about-grid .grid-lines { margin-top: 3rem; }
.about-link { margin-top: 2.5rem; }

/* ---------- Sectors ---------- */
.sector { display: flex; flex-direction: column; background: var(--background); padding: 2rem; transition: background-color .5s; }
.sector:hover { background: var(--card); }
.sector .row { display: flex; align-items: center; justify-content: space-between; }
.sector .ic { width: 1.75rem; height: 1.75rem; color: var(--primary); stroke-width: 1.4; transition: transform .5s; }
.sector:hover .ic { transform: translateY(-2px); }
.sector .n { font-family: var(--font-display); font-size: .875rem; color: var(--muted-fg); }
.sector .t { margin-top: 1.5rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.sector .d { margin-top: .5rem; font-size: .875rem; line-height: 1.65; color: var(--muted-fg); }
.sectors-grid { margin-top: 3.5rem; }

/* ---------- Quote CTA ---------- */
.cta-section { padding-block: 6rem; }
@media (min-width: 48rem) { .cta-section { padding-block: 7rem; } }
.cta-card { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--primary-deep); color: var(--on-dark); }
.cta-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.cta-card .ov1 { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,42,34,.94) 0%, rgba(15,42,34,.78) 38%, rgba(15,42,34,.2) 72%, rgba(15,42,34,.05) 100%); }
.cta-body { position: relative; display: grid; gap: 2.5rem; padding: 2rem; }
@media (min-width: 48rem) { .cta-body { padding: 4rem; } }
@media (min-width: 64rem) { .cta-body { grid-template-columns: repeat(12, 1fr); align-items: end; } .cta-body > :first-child { grid-column: span 8; } .cta-body > :last-child { grid-column: span 4; justify-content: flex-end; } }
.cta-body h2 { margin-top: 1rem; font-size: 1.875rem; line-height: 1.1; }
@media (min-width: 48rem) { .cta-body h2 { font-size: 3rem; } }
.cta-body p.s { margin-top: 1.25rem; max-width: 36rem; color: var(--on-dark-muted); }
.cta-btns { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Contact panel ---------- */
.contact-grid { display: grid; gap: 1px; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); background: var(--border); }
@media (min-width: 40rem) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-grid .cell { background: var(--background); }
.contact-grid .cell > a, .contact-grid .cell > div { display: block; height: 100%; padding: 2rem; transition: background-color .3s; }
.contact-grid .cell > a:hover { background: var(--card); }
.contact-grid .cell .ic { width: 1.5rem; height: 1.5rem; color: var(--primary); stroke-width: 1.5; }
.contact-grid .lbl { margin-top: 2rem; font-size: .875rem; color: var(--muted-fg); }
.contact-grid .val { margin-top: .5rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; overflow-wrap: anywhere; }
.contact-grid .val span { display: block; font-size: 15px; line-height: 1.35; }
.sedes { background: var(--primary); color: var(--on-dark); padding: 2rem; }
@media (min-width: 40rem) { .sedes { grid-column: span 2; } }
@media (min-width: 64rem) { .sedes { grid-column: span 3; } }
.sedes .row { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 40rem) { .sedes .row { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.sedes .small { font-size: .875rem; color: var(--on-dark-muted); }
.sedes .big { margin-top: .5rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.sedes .small + .big + .small { margin-top: .25rem; }
.socials { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: .75rem; }
.socials a { display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border-radius: 9999px; border: 1px solid rgba(247,248,245,.2); color: rgba(247,248,245,.85); transition: border-color .3s, color .3s; }
.socials a:hover { border-color: rgba(247,248,245,.5); color: var(--on-dark); }
.socials .ic { width: 1.25rem; height: 1.25rem; }
.pending { display: inline-block; border-radius: 9999px; background: var(--accent); color: var(--primary); padding: .1rem .6rem; font-size: .75rem; font-weight: 500; }

/* ---------- Services page ---------- */
.service-nav { position: sticky; top: 5rem; z-index: 20; border-bottom: 1px solid var(--border); background: rgba(247,248,245,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.service-nav .container { display: flex; gap: .5rem; overflow-x: auto; padding-block: .75rem; }
.service-nav a { flex-shrink: 0; border: 1px solid var(--border); border-radius: 9999px; padding: .375rem 1rem; font-size: .875rem; color: var(--muted-fg); transition: border-color .3s, color .3s; }
.service-nav a:hover { border-color: var(--primary); color: var(--primary); }
.services-list { padding-block: 4rem; }
@media (min-width: 48rem) { .services-list { padding-block: 6rem; } }
.services-list .container { display: grid; gap: 5rem; }
@media (min-width: 48rem) { .services-list .container { gap: 7rem; } }
.service-block { scroll-margin-top: 10rem; }
.service-art { display: grid; gap: 2rem; }
@media (min-width: 48rem) {
  .service-art { grid-template-columns: repeat(12, 1fr); align-items: center; gap: 3rem; }
  .service-art .media { grid-column: span 7; } .service-art .info { grid-column: span 5; }
  .service-art.rev .media { order: 2; } .service-art.rev .info { order: 1; }
}
.thumbs { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.thumb { width: 6rem; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); border: 2px solid transparent; padding: 0; background: none; opacity: .6; transition: opacity .3s, border-color .3s; }
@media (min-width: 48rem) { .thumb { width: 7rem; } }
.thumb:hover { opacity: 1; }
.thumb[aria-pressed="true"] { border-color: var(--primary); opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.svc-head { display: flex; align-items: center; gap: 1rem; }
.svc-head .no { font-family: var(--font-display); font-size: 3rem; font-weight: 500; color: var(--border); }
.svc-head .icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: calc(var(--radius) - 4px); background: var(--accent); color: var(--primary); }
.svc-head .icon .ic { width: 1.25rem; height: 1.25rem; stroke-width: 1.6; }
.info h2 { margin-top: 1.25rem; font-size: 1.875rem; line-height: 1.2; }
@media (min-width: 48rem) { .info h2 { font-size: 2.25rem; } }
.info .desc { margin-top: 1rem; font-size: 1.125rem; line-height: 1.65; color: var(--muted-fg); }
.info .btn { margin-top: 1.75rem; padding: .75rem 1.25rem; }

/* ---------- Quote page ---------- */
.checklist { margin-top: 1.5rem; display: grid; gap: 1rem; }
.checklist li { display: flex; gap: .75rem; }
.checklist .tick { margin-top: .125rem; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; flex-shrink: 0; border-radius: 9999px; background: var(--accent); color: var(--primary); }
.checklist .tick .ic { width: .75rem; height: .75rem; }
.chips { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips span { border: 1px solid var(--border); background: var(--card); border-radius: calc(var(--radius) - 4px); padding: .375rem .75rem; font-size: .875rem; }
.quote-grid { display: grid; gap: 3.5rem; }
@media (min-width: 64rem) { .quote-grid { grid-template-columns: repeat(12, 1fr); } .quote-grid > :first-child { grid-column: span 5; } .quote-grid > :last-child { grid-column: span 7; } }
.form-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 2rem; box-shadow: var(--shadow-soft); }
@media (min-width: 48rem) { .form-card { padding: 2.5rem; } }
.form-card h2 { font-size: 1.5rem; }
.form-card .sub { margin-top: .5rem; margin-bottom: 2rem; font-size: .875rem; color: var(--muted-fg); }
form fieldset { border: 0; padding: 0; margin: 0 0 2rem; min-width: 0; }
form legend { padding: 0; margin-bottom: 1rem; color: var(--secondary); }
.fgrid { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .fgrid.c2 { grid-template-columns: repeat(2, 1fr); } .fgrid.c3 { grid-template-columns: repeat(3, 1fr); } }
.field { display: block; font-size: .875rem; font-weight: 500; }
.field .req { color: var(--secondary); }
.field input, .field textarea { display: block; margin-top: .375rem; width: 100%; border: 1px solid var(--border); border-radius: calc(var(--radius) - 4px); background: var(--background); padding: .625rem .875rem; font: inherit; font-size: .875rem; font-weight: 400; color: var(--foreground); outline: none; transition: border-color .3s, box-shadow .3s; }
.field input:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(23,61,50,.15); }
.field .err { display: block; margin-top: .25rem; font-size: .75rem; font-weight: 400; color: var(--destructive); }
.field.invalid input, .field.invalid textarea { border-color: var(--destructive); }
.opt-grid { display: grid; gap: .5rem; }
@media (min-width: 40rem) { .opt-grid { grid-template-columns: repeat(2, 1fr); } }
.opt { cursor: pointer; display: block; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span.box { display: block; height: 100%; border: 1px solid var(--border); border-radius: calc(var(--radius) - 4px); background: var(--background); padding: .625rem .875rem; font-size: .875rem; transition: border-color .3s, background-color .3s, color .3s; }
.opt:hover span.box { border-color: var(--secondary); }
.opt input:checked + span.box { border-color: var(--primary); background: var(--accent); color: var(--primary); }
.opt input:focus-visible + span.box { box-shadow: 0 0 0 2px rgba(23,61,50,.3); }
.opt .b { font-weight: 500; display: block; }
.opt .h { display: block; margin-top: .125rem; font-size: .75rem; opacity: .7; }
.applicant-label { display: block; font-size: .875rem; font-weight: 500; }
.applicant-label + .opt-grid { margin-top: .5rem; }
.form-error { font-size: .75rem; color: var(--destructive); margin-top: .5rem; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.form-foot .note { font-size: .75rem; color: var(--muted-fg); }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.form-actions .btn { padding: .75rem 1.5rem; }
.form-done { padding: 2.5rem 0; text-align: center; }
.form-done .ic { width: 3rem; height: 3rem; color: var(--primary); stroke-width: 1.4; margin-inline: auto; }
.form-done h3 { margin-top: 1.25rem; font-size: 1.5rem; }
.form-done p { margin: .75rem auto 0; max-width: 28rem; color: var(--muted-fg); }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-deep); color: var(--on-dark); }
.footer-grid { display: grid; gap: 3rem; padding-block: 4rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: repeat(12, 1fr); } .footer-grid > :nth-child(1) { grid-column: span 4; } .footer-grid > :nth-child(2) { grid-column: span 2; } .footer-grid > :nth-child(3), .footer-grid > :nth-child(4) { grid-column: span 3; } }
.footer-grid .logo { height: 3.5rem; }
.footer-grid .about { margin-top: 1.5rem; max-width: 20rem; font-size: .875rem; line-height: 1.65; color: var(--on-dark-muted); }
.footer-grid .eyebrow { color: var(--on-dark-muted); }
.footer-grid .eyebrow.mt { margin-top: 2rem; }
.footer-grid .socials { margin-top: 1rem; }
.footer-links { margin-top: 1.25rem; display: grid; gap: .75rem; font-size: .875rem; }
.footer-links a { color: rgba(247,248,245,.85); transition: color .3s; }
.footer-links a:hover { color: var(--on-dark); }
.footer-dl { margin-top: 1.25rem; display: grid; gap: 1rem; font-size: .875rem; }
.footer-dl dt { color: var(--on-dark-muted); }
.footer-dl dd { margin-top: .25rem; }
.footer-dl dd span { display: block; margin-top: .25rem; }
.footer-dl dd span:first-child { margin-top: 0; }
.footer-dl a:hover { color: var(--on-dark); }
.footer-bottom { border-top: 1px solid rgba(247,248,245,.1); }
.footer-bottom .container { display: flex; flex-direction: column; justify-content: space-between; gap: .5rem; padding-block: 1.5rem; padding-right: 4rem; font-size: .75rem; color: var(--on-dark-muted); }
@media (min-width: 40rem) { .footer-bottom .container { flex-direction: row; padding-right: 11rem; } }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 40; display: inline-flex; align-items: center; gap: .5rem; border-radius: 9999px; background: var(--primary); color: var(--primary-fg); padding: .875rem 1.25rem; font-size: .875rem; font-weight: 500; box-shadow: var(--shadow-lift), 0 0 0 1px rgba(247,248,245,.25); transition: transform .3s; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float .ic { width: 1.25rem; height: 1.25rem; }
.wa-float span { display: none; }
@media (min-width: 40rem) { .wa-float span { display: inline; } }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; text-align: center; }
.nf h1 { font-size: 4.5rem; font-weight: 700; }
.nf h2 { margin-top: 1rem; font-size: 1.25rem; font-weight: 600; }
.nf p { margin-top: .5rem; font-size: .875rem; color: var(--muted-fg); }
.nf .btn { margin-top: 1.5rem; }
