/* agroflow/views/landing/landing.css */

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0; 
  width: 100%;
  background-color: rgba(11, 17, 33, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.header--scrolled {
  background-color: rgba(11, 17, 33, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px; /* Fixed height para mantener consistencia */
}

.header__logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text-title);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.5px;
}

.header__logo-icon {
  color: var(--color-primary);
  width: 24px;
  height: 24px;
}

.header__nav, .header__actions {
  display: none; /* Oculto en Mobile */
}

.header__link {
  color: var(--color-text-body);
  font-size: 0.9375rem;
  font-weight: 500;
}

.header__link:hover {
  color: var(--color-text-title);
}

.header__menu-btn {
  background: none;
  border: none;
  color: var(--color-text-title);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding: 120px 0 60px; /* Offset compensando el header fixed */
  min-height: 85vh;
  display: flex;
  align-items: center;
  /* Imagen de campo de flores (Roots Perú es agroexportadora de flores) */
  background: url('https://images.unsplash.com/photo-1462275646964-a0e3386b89fa?q=80&w=2000') center/cover no-repeat;
}

.hero__overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  /* Gradiente con opacidad balanceada para legibilidad */
  background: linear-gradient(to bottom, rgba(11, 17, 33, 0.65) 0%, rgba(11, 17, 33, 0.85) 70%, rgba(11, 17, 33, 1) 100%);
  z-index: 1;
}

.hero__container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--color-primary);
  padding: 0.375rem 1rem;
  border-radius: 99px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 2rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
  letter-spacing: 0.5px;
}

.hero__badge-icon {
  width: 16px;
  height: 16px;
}

.hero__title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero__title--highlight {
  color: var(--color-primary);
}

.hero__text {
  font-size: 1.125rem;
  color: var(--color-text-body);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 300px;
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* --- STATS SECTION --- */
.stats {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 3rem 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas en mobile */
  gap: 2rem;
  text-align: center;
}

.stats__number {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-text-title);
  margin-bottom: 0.25rem;
}

.stats__label {
  color: var(--color-text-body);
  font-size: 0.875rem;
  font-weight: 500;
}

/* --- FEATURES SECTION --- */
.features__header {
  text-align: center;
  margin-bottom: 4rem;
}

.features__badge {
  color: #60A5FA; /* Azul brillante para contraste */
  background: rgba(96, 165, 250, 0.1);
  padding: 0.375rem 1rem;
  border-radius: 99px;
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.features__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.features__subtitle {
  color: var(--color-text-body);
  font-size: 1.125rem;
}

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

.feature-card {
  background-color: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-focus);
  box-shadow: var(--shadow-card);
  background-color: var(--color-surface-hover);
}

.feature-card__icon {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--color-primary);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-text-title);
}

.feature-card__text {
  color: var(--color-text-body);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.feature-card__link {
  color: #60A5FA;
  font-size: 0.9375rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.feature-card__link:hover {
  color: #93C5FD;
}
.feature-card__link i {
  transition: transform 0.2s ease;
}
.feature-card__link:hover i {
  transform: translateX(4px);
}

/* --- BOTTOM CTA --- */
/* Arreglado problema visual del mockup del usuario */
.bottom-cta__card {
  /* Imagen de campo agrícola en el fondo */
  background: url('https://images.unsplash.com/photo-1523348837708-15d4a09cfac2?q=80&w=2000') center/cover no-repeat;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

/* Degradado horizontal oscuro a la izquierda, transparente a la derecha */
.bottom-cta__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  /* Fundido oscuro para leer el texto en desktop */
  background: linear-gradient(90deg, rgba(11, 17, 33, 0.98) 0%, rgba(11, 17, 33, 0.8) 50%, rgba(11, 17, 33, 0.2) 100%);
  pointer-events: none;
}

.bottom-cta__content {
  position: relative;
  z-index: 2;
}

.bottom-cta__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text-title);
}

.bottom-cta__text {
  color: var(--color-text-body);
  font-size: 1.125rem;
}

.bottom-cta__actions {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  background-color: var(--color-bg);
}

.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer__brand {
  font-weight: 700;
  color: var(--color-text-title);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__logo {
  color: var(--color-primary);
  width: 20px; height: 20px;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}
.footer__links a {
  color: var(--color-text-body);
  font-size: 0.875rem;
}
.footer__links a:hover {
  color: var(--color-text-title);
}

.footer__copy {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

/* =========================================
   MEDIA QUERIES (DESKTOP)
========================================= */
@media (min-width: 768px) {
  .header__menu-btn { display: none; }
  
  .header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  
  .header__actions {
    display: flex;
  }

  .hero {
    padding: 160px 0 80px;
  }

  .hero__title {
    font-size: 4rem;
  }

  .hero__cta {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }

  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .bottom-cta__card {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 4rem;
  }

  .bottom-cta__actions {
    max-width: none;
    width: auto;
    justify-content: flex-end;
  }
  
  .footer__container {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

