:root {
  --bg: #ffffff;
  --bg-soft: #f4faf5;
  --text: #1a3d2e;
  --muted: #5c6b63;
  --primary: #16a34a;
  --primary-2: #15803d;
  --accent: #f97316;
  --accent-2: #ea580c;
  --card: #ffffff;
  --line: rgba(22, 163, 74, 0.2);
}

body.is-loading {
  cursor: wait;
}

body.load-error main {
  opacity: 0.35;
}

.load-error-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  padding: 1rem 1.25rem;
  background: #fef2f2;
  border-bottom: 1px solid #fecaca;
  color: #991b1b;
}

.load-error-banner p {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
}

.load-error-banner code {
  background: #fff;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}


html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  width: min(var(--page-width, 1100px), 92%);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(22, 163, 74, 0.06);
}

.header-inner {
  padding: 0.75rem 0 1rem;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand-logo {
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-text {
  line-height: 1;
}

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

.nav a {
  text-decoration: none;
}

.mobile-toggle {
  display: none;
  font-size: 1.3rem;
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
}

.hero {
  min-height: calc(100vh - 140px);
  position: relative;
  display: grid;
  align-items: center;
  padding: 3.5rem 0 4rem;
}

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

.hero-grid--single {
  grid-template-columns: 1fr;
}

.hero-badge {
  display: inline-block;
  background: rgba(22, 163, 74, 0.1);
  color: var(--primary);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-highlight {
  color: var(--accent);
}

.hero-description {
  font-size: 1.08rem;
  max-width: 52ch;
  margin-bottom: 0.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.hero-stat strong {
  display: block;
  font-size: 1.4rem;
  color: var(--primary);
  line-height: 1.2;
}

.hero-stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 380px;
}

.hero-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(22, 163, 74, 0.12);
}

.hero-card-main {
  padding: 1rem;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.hero-card-header p {
  margin: 0 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.green {
  background: var(--primary);
}

.dot.orange {
  background: var(--accent);
}

.dot.muted {
  background: #cbd5e1;
}

.hero-metric span {
  font-size: 0.82rem;
}

.hero-metric strong {
  display: block;
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 0.2rem;
}

.hero-bars {
  display: grid;
  gap: 0.55rem;
  margin: 1.2rem 0;
}

.hero-bars .bar {
  height: 10px;
  border-radius: 999px;
}

.hero-bars .bar.green {
  background: linear-gradient(90deg, var(--primary), #4ade80);
}

.hero-bars .bar.orange {
  background: linear-gradient(90deg, var(--accent), #fdba74);
}

.hero-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.hero-list li {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
}

.hero-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.parallax-bg {
  background-image: url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.82),
    rgba(244, 250, 245, 0.78)
  );
}

.hero-content,
.section .container {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
h4 {
  color: var(--primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--primary-2);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #ffffff;
}

.btn-small {
  padding: 0.45rem 0.8rem;
}

.search-wrap {
  margin-top: 0.75rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
}

.search-wrap label {
  display: block;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

#searchResult {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  min-height: 0;
  color: var(--accent);
}

.search-row {
  display: flex;
  gap: 0.5rem;
}

input,
textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(249, 115, 22, 0.35);
  border-color: var(--accent);
}

.search-row button {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-row button:hover {
  background: var(--accent-2);
}

.section {
  padding: 5rem 0;
}

.alt {
  background: var(--bg-soft);
}

.section-intro {
  margin-bottom: 2rem;
}

.comments-grid,
.team-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.comment-card {
  display: grid;
  gap: 0.85rem;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.comment-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
  flex-shrink: 0;
}

.comment-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 163, 74, 0.12);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
}

.comment-stars {
  display: flex;
  gap: 0.15rem;
  margin-bottom: 0.25rem;
}

.comment-stars .star {
  color: #d1d5db;
  font-size: 1rem;
  line-height: 1;
}

.comment-stars .star.filled {
  color: #f59e0b;
}

.comment-card strong {
  display: block;
  color: var(--accent);
  font-size: 0.92rem;
}

.comment-card p {
  margin: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.06);
}

.card strong {
  color: var(--accent);
}

.faq-list {
  display: grid;
  gap: 0.9rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
}

.contact-form {
  max-width: 780px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.footer {
  padding: 2.2rem 0 1rem;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.copyright {
  text-align: center;
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1000;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: currentColor;
}

.whatsapp-float[hidden] {
  display: none;
}

@media (max-width: 860px) {
  .mobile-toggle {
    display: block;
  }

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

  .hero-visual {
    min-height: auto;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    z-index: 10;
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.08);
  }

  .nav.open {
    display: flex;
  }

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

  .search-row {
    flex-direction: column;
  }
}
