:root {
  --bg: #f4f7f2;
  --surface: #ffffff;
  --ink: #102118;
  --muted: #4b5f52;
  --accent: #20663f;
  --accent-strong: #184e30;
  --line: #d6e2d8;
  --shadow: 0 12px 36px rgba(16, 33, 24, 0.08);
  --radius: 18px;
  --container: min(1120px, 92vw);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(32, 102, 63, 0.12), transparent 70%),
    radial-gradient(1000px 420px at 100% 0%, rgba(24, 78, 48, 0.12), transparent 75%),
    var(--bg);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: "Prata", "Georgia", serif;
  line-height: 1.2;
  margin: 0 0 0.6rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
  background: rgba(244, 247, 242, 0.82);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background: rgba(32, 102, 63, 0.12);
  color: var(--ink);
}

.main-nav a.is-active {
  background: var(--accent);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 5.2rem 0 3.5rem;
}

.hero-bg {
  position: absolute;
  inset: 2rem -14rem auto auto;
  width: 560px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(32, 102, 63, 0.19), rgba(244, 247, 242, 0));
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.75rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.hero-media img {
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.section {
  padding: 3.4rem 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.service-card,
.service-detail,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.service-detail-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  color: var(--accent);
  background: rgba(32, 102, 63, 0.08);
}

.service-detail-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.service-detail h2 {
  margin-top: 0;
}

.brands-section {
  padding-top: 1rem;
}

.section-intro {
  color: var(--muted);
  max-width: 65ch;
}

.brands-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.brands-grid img {
  width: 100%;
  height: 94px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
}

.page-hero {
  padding: 4.3rem 0 1.7rem;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.cta-band {
  padding-top: 0.5rem;
}

.cta-band-inner {
  background: linear-gradient(120deg, #1f5f3c, #2f7a4f);
  color: #fff;
  border-radius: 26px;
  padding: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.contact-actions {
  padding-top: 0;
}

.map-embed {
  grid-column: 1 / -1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}

.map-embed iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

.site-footer {
  margin-top: 2rem;
  background: #102118;
  color: #d5dfd6;
  padding: 2.2rem 0;
}

.site-footer a {
  color: #ffffff;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.contact-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  color: #ffffff;
  opacity: 0.95;
  flex: 0 0 auto;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.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;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #d8ae43;
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .services-list,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .brands-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
    background: rgba(244, 247, 242, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    border-radius: 12px;
  }

  .hero {
    padding-top: 4rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-embed iframe {
    height: 300px;
  }
}

/* Estilos para páginas legales */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.legal-section p {
  margin-bottom: 1rem;
  text-align: justify;
}

.legal-section ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

.legal-section a {
  color: var(--accent);
  text-decoration: underline;
}

.legal-section a:hover {
  color: var(--accent-strong);
}

.legal-date {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-style: italic;
  color: var(--muted);
}
