/* Enviamerica — static site */

:root {
  --brand: #008229;
  --brand-rgb: 0, 130, 41;
  --bg: #ffffff;
  --bg-elevated: #f3f6f4;
  --surface: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.92);
  --border: rgba(15, 23, 42, 0.1);
  --text: #111827;
  --muted: #5c6470;
  --accent: var(--brand);
  --accent-soft: rgba(var(--brand-rgb), 0.12);
  --accent-glow: rgba(var(--brand-rgb), 0.22);
  --link-hover: #006622;
  --radius: 14px;
  --radius-sm: 10px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", var(--font-sans);
  --max: 1100px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1222;
  --bg-elevated: #0e1628;
  --surface: #121f2e;
  --header-bg: rgba(12, 18, 34, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf4;
  --muted: #9aa4b8;
  --accent-soft: rgba(var(--brand-rgb), 0.18);
  --accent-glow: rgba(var(--brand-rgb), 0.4);
  --link-hover: #4ddb88;
}

html[data-theme="light"] {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--link-hover);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  color: var(--text);
}

.logo img {
  display: block;
  height: 8rem;
  width: auto;
  max-width: min(11rem, 42vw);
  object-fit: contain;
}

.logo:hover img {
  opacity: 0.9;
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.18s ease;
}

.nav a:hover {
  color: var(--brand);
}

.nav a:focus-visible {
  color: var(--brand);
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: 4px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.theme-toggle:hover {
  background: var(--accent-soft);
  border-color: var(--brand);
  color: var(--brand);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.theme-toggle__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle__icon--sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle__icon--sun {
  display: flex;
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(3.5rem, 10vw, 6rem) 0 clamp(4rem, 12vw, 7rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 80%;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-glow), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 38rem;
}

.hero-tag {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  border: 1px solid rgba(var(--brand-rgb), 0.35);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 32ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease,
    filter 0.18s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #00a338, var(--brand));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 24px rgba(var(--brand-rgb), 0.45);
}

.btn-primary:hover {
  color: #fff;
  background: var(--brand);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 32px rgba(var(--brand-rgb), 0.6);
  filter: none;
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--brand);
  color: var(--brand);
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn__icon {
  display: flex;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.btn__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Sections */

.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.services {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 50%, var(--bg) 100%);
  border-top: 1px solid var(--border);
}

.section-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 2.25rem;
  color: var(--muted);
  max-width: 36ch;
}

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-card {
  margin: 0;
  padding: 1.5rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="dark"] .service-card {
  box-shadow: none;
}

.service-card:hover {
  border-color: rgba(var(--brand-rgb), 0.45);
  transform: translateY(-2px);
}

.service-icon {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* FAQ — slide de 3 cards */

.faq {
  border-top: 1px solid var(--border);
}

.faq-strip {
  margin-inline: -1rem;
  padding-inline: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1rem;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 900px) {
  .faq-strip {
    overflow-x: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
}

.faq-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .faq-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .faq-strip .faq-cards {
    display: flex;
    gap: 1rem;
    padding-bottom: 0.35rem;
  }

  .faq-strip .faq-card {
    flex: 0 0 min(100%, 22rem);
    scroll-snap-align: start;
  }
}

.faq-card {
  margin: 0;
  padding: 1.5rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

html[data-theme="dark"] .faq-card {
  box-shadow: none;
}

.faq-card:hover {
  border-color: rgba(var(--brand-rgb), 0.45);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .faq-card:hover {
    transform: none;
  }
}

.faq-q {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.faq-a {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Contact */

.contact {
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.contact-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 40ch;
}

.contact-card {
  margin: 0;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-style: normal;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] .contact-card {
  box-shadow: none;
}

.contact-list {
  --contact-icon-size: 1.25rem;
  --contact-gap: 0.5rem;
  margin: 0;
}

.contact-list > div + div {
  margin-top: 1.35rem;
}

.contact-list dt {
  display: flex;
  align-items: flex-start;
  gap: var(--contact-gap);
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.contact-item__icon {
  display: flex;
  flex-shrink: 0;
  width: var(--contact-icon-size);
  height: var(--contact-icon-size);
  margin-top: 0.05rem;
  color: var(--brand);
}

.contact-item__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-list dd {
  margin: 0;
  padding-left: calc(var(--contact-icon-size) + var(--contact-gap));
}

.contact-list a {
  color: var(--text);
  line-height: 1.5;
}

.contact-list a:hover {
  color: var(--accent);
}

.map-block {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.map-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.map-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  aspect-ratio: 16 / 9;
  min-height: 220px;
}

html[data-theme="dark"] .map-frame {
  box-shadow: none;
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-foot {
  margin-top: 1rem;
}

.map-coords {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.map-apps-label {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.map-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.map-app {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 5.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.map-app:hover {
  background: var(--accent-soft);
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(var(--brand-rgb), 0.2);
}

html[data-theme="dark"] .map-app {
  box-shadow: none;
}

html[data-theme="dark"] .map-app:hover {
  box-shadow: 0 4px 16px rgba(var(--brand-rgb), 0.25);
}

.map-app__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
}

.map-app__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.map-app__name {
  text-align: center;
  line-height: 1.2;
  max-width: 6.5rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-brand {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer a {
  font-size: 0.9375rem;
  font-weight: 600;
}

.footer-tel {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-tel__icon {
  display: flex;
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  color: currentColor;
}

.footer-tel__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* WhatsApp flotante */

.wa-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 22px rgba(var(--brand-rgb), 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.15s ease, border-color 0.15s ease;
}

.wa-float:hover {
  color: #fff;
  transform: scale(1.06);
  background: var(--brand);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 36px rgba(var(--brand-rgb), 0.7);
}

.wa-float:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

html[data-theme="dark"] .wa-float:focus-visible {
  outline-color: #fff;
}

.wa-float svg {
  width: 1.85rem;
  height: 1.85rem;
  fill: currentColor;
}
