/* Agrosanti — Identidad de marca */
:root {
  --brand-slate: #4A5D6A;
  --brand-slate-light: #6E8491;
  --brand-green-light: #A4C639;
  --brand-green-dark: #4F7942;
  --brand-bg: #F5F7F8;
  --brand-bg-soft: #EEF1F3;
  --brand-white: #FFFFFF;
  --text: #4A5D6A;
  --text-muted: #6E8491;
  --glass: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(74, 93, 106, 0.14);
  --shadow: 0 24px 64px rgba(74, 93, 106, 0.1);
  --radius: 20px;
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--brand-bg);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

#orbCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 68px;
  width: auto;
  display: block;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.lang-btn.active {
  color: var(--brand-slate);
  background: var(--brand-bg-soft);
}

.lang-divider {
  color: var(--glass-border);
  font-size: 0.75rem;
}

/* Hero */
.hero {
  position: relative;
  z-index: 5;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 1rem clamp(1.5rem, 5vw, 4rem) 3rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  animation: fadeUp 1s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brand-green-dark);
  margin-bottom: 1.75rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-green-light);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.headline-line {
  display: block;
}

.headline-accent {
  background: linear-gradient(135deg, var(--brand-green-light) 0%, var(--brand-green-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subheadline {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* Features */
.features {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(164, 198, 57, 0.2), rgba(79, 121, 66, 0.12));
  border-radius: 10px;
  color: var(--brand-green-dark);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-slate);
}

.feature span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Form */
.notify-form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 0.35rem;
  box-shadow: var(--shadow);
}

.notify-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
}

.notify-form input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.notify-form button {
  border: none;
  background: linear-gradient(135deg, var(--brand-green-dark), var(--brand-green-light));
  color: white;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.notify-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(79, 121, 66, 0.35);
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--brand-green-dark);
  font-weight: 500;
}

.form-note.error {
  color: #C0392B;
}

/* Contact */
.contact {
  margin-top: 2.5rem;
  max-width: 420px;
}

.contact-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-slate);
  margin-bottom: 0.35rem;
}

.contact-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.contact-cards {
  display: grid;
  gap: 0.75rem;
}

.contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  row-gap: 0.15rem;
  align-items: center;
  padding: 1rem 1.15rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 121, 66, 0.25);
  box-shadow: 0 12px 32px rgba(74, 93, 106, 0.12);
}

.contact-icon {
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(79, 121, 66, 0.1);
  color: var(--brand-green-dark);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-icon--whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: #25D366;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.contact-value {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--brand-slate);
  word-break: break-word;
}

/* Hero Visual — Animación de crecimiento (video) */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  animation: fadeUp 1s 0.2s ease both;
}

.growth-scene {
  position: relative;
  width: min(340px, 88vw);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.construction-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.45rem 1.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-green-dark);
  margin-bottom: 0.75rem;
  box-shadow: 0 8px 24px rgba(74, 93, 106, 0.08);
  animation: bannerPulse 3s ease-in-out infinite;
}

.construction-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-green-light);
  animation: pulse 2s ease infinite;
}

@keyframes bannerPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.growth-video {
  width: 100%;
  height: auto;
  max-height: 340px;
  border-radius: 16px;
  background: var(--brand-bg);
  filter: drop-shadow(0 16px 32px rgba(74, 93, 106, 0.1));
  object-fit: contain;
}

.progress-card {
  position: relative;
  margin-top: 1rem;
  width: min(340px, 85vw);
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.progress-pct {
  font-weight: 600;
  color: var(--brand-green-dark);
  font-variant-numeric: tabular-nums;
}

.progress-bar {
  height: 6px;
  background: var(--brand-bg-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-green-dark), var(--brand-green-light));
  border-radius: 999px;
  transition: width 0.1s linear;
}

.progress-stages {
  display: flex;
  justify-content: space-between;
}

.stage {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.4;
  transition: opacity 0.3s, color 0.3s;
}

.stage.active {
  opacity: 1;
  color: var(--brand-green-dark);
}

/* Footer */
.footer {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
}

.footer-link {
  color: var(--brand-green-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--brand-green-light);
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .subheadline {
    margin-left: auto;
    margin-right: auto;
  }

  .features {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .feature:hover {
    transform: none;
  }

  .notify-form {
    margin-left: auto;
    margin-right: auto;
  }

  .contact {
    margin-left: auto;
    margin-right: auto;
  }

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

  .progress-card {
    margin-top: 1.25rem;
  }
}

@media (max-width: 480px) {
  .notify-form {
    flex-direction: column;
    padding: 0.5rem;
  }

  .notify-form button {
    width: 100%;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #orbCanvas {
    display: none;
  }
}
