/* ============================================================
   ADMINISTRA TU PARCELA — Landing Page Styles
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Verdes campo — naturaleza y confianza */
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;

  /* Azul cielo — frescura y profesionalismo */
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;

  /* Dorado cálido — acción y urgencia */
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;

  /* Compatibilidad (alias) */
  --blue-500: #0ea5e9;
  --blue-600: #0284c7;
  --orange-500: #f59e0b;
  --red-500: #dc2626;

  /* Neutros — limpieza y legibilidad */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --gray-950: #020617;
  --white: #ffffff;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);

  /* Radios y transiciones */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-pill: 999px;
  --transition: 0.25s ease;
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

  /* Sombras suaves (estilo moderno, difusas) */
  --shadow-soft: 0 12px 40px rgba(22, 101, 52, 0.1);
  --shadow-float: 0 24px 60px rgba(15, 23, 42, 0.14);

  /* Glows / blobs decorativos (campos de luz) */
  --glow-green: radial-gradient(circle at center, rgba(34, 197, 94, 0.28) 0%, rgba(34, 197, 94, 0) 70%);
  --glow-sky: radial-gradient(circle at center, rgba(14, 165, 233, 0.22) 0%, rgba(14, 165, 233, 0) 70%);
  --glow-amber: radial-gradient(circle at center, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0) 70%);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition), transform var(--ease-soft) 0.3s;
  white-space: nowrap;
}

/* Foco visible para navegación por teclado */
.btn:focus-visible,
.nav a:focus-visible,
.faq-question:focus-visible {
  outline: 3px solid var(--sky-500);
  outline-offset: 3px;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-block {
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: var(--white);
  border-color: var(--green-600);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  border-color: var(--green-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.3);
}

.btn-cta {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  color: var(--white);
  border-color: var(--amber-500);
  font-weight: 700;
}

.btn-cta:hover {
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  border-color: var(--amber-400);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--gray-900);
  border-color: var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--green-500);
  color: var(--green-600);
  background: var(--green-50);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--green-500);
  border-color: var(--white);
}

.btn-white:hover {
  background: var(--gray-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

/* Transparente sobre el hero: logo y nav en blanco */
.header .logo {
  color: var(--white);
}

.header .nav a {
  color: rgba(255, 255, 255, 0.9);
}

.header .nav a:hover {
  color: var(--white);
}

.header .menu-toggle span {
  background: var(--white);
}

/* Al hacer scroll: fondo sólido con texto oscuro */
.header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.header.scrolled .logo {
  color: var(--gray-900);
}

.header.scrolled .nav a {
  color: var(--gray-500);
}

.header.scrolled .nav a:hover {
  color: var(--gray-900);
}

.header.scrolled .menu-toggle span {
  background: var(--gray-900);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--gray-900);
}

.logo-icon {
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.logo-highlight {
  color: var(--green-500);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-500);
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--gray-900);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- HERO (full-screen con imagen de naturaleza) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 100px 0 80px;
}

/* Imagen de fondo — reemplazable por un asset propio (ej: url('assets/campo.webp')) */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  will-change: transform;
  z-index: 0;
}

/* Overlay para legibilidad del texto sobre la imagen */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 46, 26, 0.55) 0%, rgba(6, 46, 26, 0.35) 40%, rgba(6, 46, 26, 0.65) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 900;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-title-highlight {
  color: #a7f3d0; /* verde claro legible sobre imagen */
}

.hero-subtitle {
  font-size: 1.1875rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Indicador de scroll animado */
.hero-scroll {
  position: absolute;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.85);
  animation: scroll-bounce 2s ease-in-out infinite;
}

.hero-scroll span {
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-pill);
  position: relative;
  margin-bottom: 4px;
}

.hero-scroll span::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--white);
  border-radius: var(--radius-pill);
  animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@keyframes scroll-dot {
  0% { opacity: 0; top: 8px; }
  40% { opacity: 1; }
  80% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 20px; }
}

/* Onda inferior del hero: transición orgánica hacia la sección blanca */
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  line-height: 0;
  pointer-events: none;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 110px;
}

@media (max-width: 768px) {
  .hero-wave svg {
    height: 64px;
  }
}

/* ---------- VISTA PREVIA DEL PRODUCTO ---------- */
.product-preview {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}

.product-preview-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 48px;
  align-items: center;
}

.product-visual {
  position: relative;
}

.product-stats {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-950);
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-top: 2px;
}

.hero-visual {
  position: relative;
}

.hero-dashboard {
  --parallax: 0px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.15));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(var(--parallax)); }
  50% { transform: translateY(calc(var(--parallax) - 12px)); }
}

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  line-height: 0;
  z-index: 2;
}

.hero-wave svg {
  width: 100%;
  height: 110px;
}

@media (max-width: 768px) {
  .hero-wave svg {
    height: 64px;
  }
}

/* ---------- SECTION HEADER ---------- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: var(--green-50);
  color: var(--green-500);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-950);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- FEATURES ---------- */
.features {
  padding: 100px 0;
  background: var(--gray-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.35s var(--ease-soft);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-4deg);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-950);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ---------- APP PREVIEW ---------- */
.app-preview {
  padding: 100px 0;
  background: var(--white);
}

.preview-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  justify-items: center;
}

.preview-item {
  text-align: center;
}

.preview-item svg {
  width: 100%;
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.12));
  transition: transform var(--transition);
}

.preview-item:hover svg {
  transform: translateY(-6px);
}

.preview-label {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-700);
}

/* ---------- PLANS ---------- */
.plans {
  padding: 100px 0;
  background: var(--gray-50);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft);
  position: relative;
  height: 100%;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.plan-card-featured {
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(45, 140, 74, 0.1), var(--shadow-md);
}

.plan-card-featured:hover {
  transform: translateY(-6px);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-500);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 50px;
  white-space: nowrap;
}

.plan-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gray-200);
}

.plan-name {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--gray-950);
  margin-bottom: 6px;
}

.plan-desc {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-bottom: 20px;
  min-height: 40px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gray-950);
  letter-spacing: -0.02em;
}

.price-period {
  font-size: 0.9375rem;
  color: var(--gray-400);
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  flex: 1 1 auto;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--gray-700);
}

.plan-features li svg {
  flex-shrink: 0;
}

.plan-features li.disabled {
  color: var(--gray-300);
}

/* CTA siempre alineado al fondo de la card */
.plan-card .btn-block {
  margin-top: auto;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  padding: 100px 0;
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid var(--gray-200);
  transition: transform 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft), border-color var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}

.testimonial-stars {
  color: #f0a030;
  font-size: 1.125rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--gray-900);
  font-weight: 600;
}

.testimonial-author span {
  font-size: 0.8125rem;
  color: var(--gray-400);
}

/* ---------- CTA ---------- */
.cta {
  padding: 80px 0;
  background: var(--gray-50);
}

.cta-card {
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(22, 163, 74, 0.2);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  border-radius: 50%;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-text {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--gray-950);
  color: var(--gray-300);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 16px;
  color: var(--white);
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gray-400);
  max-width: 360px;
}

.footer-links h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 0.9375rem;
  color: var(--gray-400);
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-content {
    max-width: 100%;
  }

  .product-preview-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-stats {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
  }

  .product-visual {
    max-width: 560px;
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }


  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 88vh;
    padding: 100px 0 70px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.0625rem;
  }

  .product-stats {
    gap: 24px;
  }

  .section-title {
    font-size: 1.875rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .preview-showcase {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }

  .cta-card {
    padding: 40px 24px;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Mobile nav */
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .nav.open {
    transform: translateY(0);
  }

  /* Dentro del menú desplegable (fondo blanco), links siempre oscuros */
  .header .nav a,
  .header.scrolled .nav a {
    color: var(--gray-700);
  }

  .header .nav a.btn-cta {
    color: var(--white);
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    justify-content: center;
  }

  .pain-points-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- PAIN POINTS ---------- */
.pain-points {
  padding: 100px 0;
  background: var(--white);
}

.pain-points-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.pain-card {
  background: linear-gradient(135deg, var(--gray-50), var(--white));
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all var(--transition);
}

.pain-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.pain-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
  background: #fef3c7;
}

.pain-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.pain-card p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ---------- HOW IT WORKS ---------- */
.how-it-works {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--sky-50) 0%, var(--white) 100%);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--green-200), var(--sky-100), var(--green-200));
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.25);
}

.step-card:nth-child(2) .step-number {
  background: linear-gradient(135deg, var(--sky-500), var(--sky-600));
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.25);
}

.step-card:nth-child(3) .step-number {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}

.step-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-sm);
}

.step-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 100px 0;
  background: var(--white);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--green-200);
}

.faq-item.active {
  border-color: var(--green-500);
  background: var(--green-50);
  box-shadow: 0 2px 12px rgba(22, 163, 74, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  gap: 16px;
  transition: color var(--transition);
}

.faq-item.active .faq-question {
  color: var(--green-700);
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 320px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ---------- PLAN BADGE POPULAR ---------- */
.plan-badge-popular {
  position: absolute;
  top: -14px;
  right: 20px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* ---------- RESPONSIVE ADDITIONS ---------- */
@media (max-width: 1024px) {
  .pain-points-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .steps-grid::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .pain-points-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- PORTAL VECINO (paleta Campo) ---------- */
.portal-vecino {
  padding: 100px 0;
  background: linear-gradient(135deg, #f4f7ec 0%, #faf6f0 55%, #f0f4e6 100%);
}

/* Ajustes de color locales para alinear con la paleta campo (tierra/verde) */
.portal-vecino .section-tag {
  background: rgba(107, 143, 58, 0.14);
  color: #4a6b28;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.portal-content .section-tag {
  margin-bottom: 20px;
}

.portal-title {
  text-align: left;
  margin-bottom: 18px;
}

.portal-lead {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 28px;
}

.portal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.portal-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.portal-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.portal-list li div {
  display: flex;
  flex-direction: column;
}

.portal-list li strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
}

.portal-list li span {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.portal-note {
  font-size: 1rem;
  font-weight: 600;
  color: #4a6b28;
}

.portal-visual {
  display: flex;
  justify-content: center;
}

.portal-visual svg {
  width: 100%;
  max-width: 300px;
  filter: drop-shadow(0 24px 48px rgba(90, 60, 20, 0.20));
}

/* ---------- ROLES ---------- */
.roles {
  padding: 100px 0;
  background: var(--white);
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.role-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  padding: 36px 32px;
  text-align: center;
  transition: transform 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft), border-color var(--transition);
}

.role-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}

.role-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: transform 0.35s var(--ease-soft);
}

.role-card:hover .role-icon {
  transform: scale(1.1) rotate(-4deg);
}

.role-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-950);
  margin-bottom: 6px;
}

.role-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-50);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.role-card p:last-child {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ---------- PORTAL & ROLES RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .portal-title {
    text-align: center;
  }

  .portal-content .section-tag {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
  }

  .portal-lead {
    text-align: center;
  }

  .portal-note {
    text-align: center;
  }

  .roles-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ---------- WAVE DIVIDERS (separadores orgánicos entre secciones) ---------- */
.wave-divider {
  position: relative;
  line-height: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 90px;
}

@media (max-width: 768px) {
  .wave-divider svg {
    height: 52px;
  }
}

/* El divisor se solapa ligeramente con la sección anterior para transición fluida */
.wave-divider--overlap {
  margin-top: -1px;
  margin-bottom: -1px;
}

/* Fondo del divisor que sale del degradado del portal (borde inferior campo) */
.portal-wave-bg {
  background: #f0f4e6;
}

/* ---------- HERO: MODERNIZACIÓN (curvas, prueba social, blobs) ---------- */

/* Subrayado curvo decorativo bajo la palabra clave del título */
.underline-curve {
  position: relative;
  display: inline-block;
}

.title-underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.28em;
  width: 100%;
  height: 0.4em;
  overflow: visible;
}

.title-underline path {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw-underline 1.1s var(--ease-soft) 0.5s forwards;
}

@keyframes draw-underline {
  to { stroke-dashoffset: 0; }
}

/* Prueba social integrada (rating + texto) — sobre imagen del hero */
.hero-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stars {
  color: var(--amber-400);
  font-size: 1.125rem;
  letter-spacing: 2px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero-social-text {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero-social-text strong {
  color: var(--white);
  font-weight: 700;
}

/* Blobs / campos de luz detrás del mockup */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}

.hero-blob--green {
  width: 340px;
  height: 340px;
  background: var(--glow-green);
  top: -40px;
  right: -30px;
  animation: blob-drift 12s ease-in-out infinite;
}

.hero-blob--sky {
  width: 300px;
  height: 300px;
  background: var(--glow-sky);
  bottom: -30px;
  left: -20px;
  animation: blob-drift 14s ease-in-out infinite reverse;
}

@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -14px) scale(1.06); }
}

.hero-dashboard {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-blob,
  .hero-dashboard,
  .title-underline path { animation: none; }
  .title-underline path { stroke-dashoffset: 0; }
}

/* ---------- ENLACE ALTERNATIVO EN PLANES ---------- */
.plan-alt-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--gray-400);
  transition: color var(--transition);
}

.plan-alt-link:hover {
  color: var(--green-600);
}



/* ---------- TOGGLE DE FACTURACIÓN (Mensual / Anual) ---------- */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto 40px;
  padding: 5px;
  background: var(--gray-100);
  border-radius: var(--radius-pill);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.billing-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--gray-500);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.billing-option:hover {
  color: var(--gray-700);
}

.billing-option.active {
  background: var(--white);
  color: var(--green-700);
  box-shadow: var(--shadow-sm);
}

.billing-save {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--green-700);
  background: var(--green-100);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.billing-option.active .billing-save {
  background: var(--green-50);
}

/* Nota de ahorro bajo el precio anual */
.price-note {
  font-size: 0.8125rem;
  color: var(--green-700);
  font-weight: 600;
  margin-top: 8px;
}
