/* Shared behaviour and small corrections; the recovered visual design is retained. */
:root {
  --brand-dark: #1a3a1c;
  --brand-green: #2c5f2d;
}
html { scroll-behavior: smooth; }
body { overflow-x: clip; }
main { min-width: 0; }
.grid > * { min-width: 0; }
h1, h2, h3, p { overflow-wrap: break-word; }
#servicios a { white-space: normal; }
#servicios a i { flex-shrink: 0; }
section[id], main[id] { scroll-margin-top: 110px; }
a:focus-visible {
  outline: 3px solid #7cb342;
  outline-offset: 5px;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: white;
  color: var(--brand-dark);
  padding: 12px 18px;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }
.site-header { background: var(--brand-dark); }
.js .site-header:not(.is-scrolled) { background: transparent; }
.document .site-header { background: var(--brand-dark) !important; }
.nav-links a { white-space: nowrap; }
.nav-links [aria-current="page"] { color: #a5d66d; font-weight: 700; }
.brand { flex-shrink: 0; }
.brand img { width: 44px; height: 44px; }
.site-header > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
}
.site-header .nav-links { flex-wrap: wrap; justify-content: flex-end; gap: 10px 18px; }
.language-switcher { position: relative; color: #fff; font-size: 0.875rem; }
.language-switcher summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #ffffff80;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  background: #1a3a1ce6;
}
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary:focus-visible { outline: 3px solid #a5d66d; outline-offset: 3px; }
.language-switcher[open] summary { border-color: #a5d66d; }
.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 170px;
  padding: 6px;
  border: 1px solid #ffffff50;
  border-radius: 10px;
  background: #1a3a1c;
  box-shadow: 0 8px 24px #0004;
  z-index: 60;
}
.language-menu .language-link { display: block; padding: 10px 12px; color: #fff; border-radius: 6px; }
.language-menu .language-link:hover, .language-menu .language-link:focus-visible { background: #365f30; }
.language-menu [aria-current="true"] { background: #365f30; font-weight: 700; }
.page-hero { min-height: 680px; }
.document-page { padding-top: 180px; }
.contact-option { transition: border-color 160ms, background 160ms; }
.contact-option:hover { border-color: #7cb342; background: #f4f7f5; }
.contact-value { overflow-wrap: anywhere; }
.company-details { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px 24px; }
.company-details dt { font-weight: 600; color: #2c5f2d; }
.company-details dd { min-width: 0; overflow-wrap: anywhere; }
.legal-card a { color: #2c5f2d; text-decoration: underline; text-underline-offset: 3px; }
.legal-card { line-height: 1.65; }
@media (max-width: 1279px) {
  .site-header > div { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .site-header .nav-links { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .language-switcher { grid-column: 2; grid-row: 1; }
  section[id], main[id] { scroll-margin-top: 190px; }
  .document-page { padding-top: 220px; }
}
@media (max-width: 767px) {
  .js .site-header:not(.is-scrolled) { background: var(--brand-dark); }
  .site-header > div { flex-wrap: wrap; justify-content: center; gap: 0.65rem; padding: 0.65rem 1rem; }
  .site-header .brand { min-width: 0; gap: 8px; }
  .site-header .brand img { width: 32px; height: 32px; }
  .site-header .brand span { font-size: 1rem; line-height: 1.25; }
  .site-header .nav-links { flex-wrap: wrap; justify-content: center; gap: 0.35rem 0.65rem; }
  .site-header .nav-links a { font-size: 0.8rem; padding: 0.4rem 0.45rem; }
  .page-hero { min-height: 560px; padding-top: 36px; padding-bottom: 36px; }
  .document-page { padding-top: 48px; }
  .contact-options { grid-template-columns: minmax(0, 1fr); }
  .inquiry-band .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inquiry-band .text-2xl { font-size: 1.25rem; }
  .company-details { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .company-details dd { margin-bottom: 14px; }
  .footer-bottom { align-items: flex-start; }
  section[id], main[id] { scroll-margin-top: 230px; }
  #servicios .border-t > .flex { flex-direction: column; align-items: flex-start; gap: 20px; }
  #servicios .text-right { text-align: left; }
  .page-hero + section .grid > div { min-width: 0; }
  .home-volume { height: auto; min-height: 500px; padding: 48px 0; }
  .home-volume .flex.justify-between { flex-direction: column; align-items: flex-start; gap: 24px; }
  .home-volume .flex.justify-between > p { max-width: 100%; font-size: 1.125rem; }
  .home-volume a { gap: 12px; padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
