/* ==========================================================================
   BiDeal - Bosque Eléctrico (Sistema de Diseño)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@600;700;800&display=swap');

:root {
  --bideal-primary: #16A34A;
  --bideal-forest: #14532D;
  --bideal-lime: #86EFAC;
  --bideal-text-dark: #064E3B;
  --bideal-background: #F8FAFC;
  --bideal-white: #FFFFFF;
  --bideal-slate-600: #475569;
  --bideal-slate-100: #F1F5F9;
  --bideal-error-bg: #FEE2E2;
  --bideal-error: #DC2626;
  --bideal-info: #0369A1;
  --bideal-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --bideal-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --bideal-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --bideal-radius: 20px;
  --bideal-radius-sm: 12px;
  --bideal-radius-lg: 28px;
}

/* ==========================================================================
   1. Reset Global y Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bideal-background);
  color: var(--bideal-slate-600);
  line-height: 1.6;
}

.section {
  padding: 100px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bideal-text-dark);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--bideal-slate-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Botones */
.btn-primary {
  background: var(--bideal-primary);
  color: var(--bideal-white);
  padding: 14px 32px;
  border-radius: var(--bideal-radius-sm);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--bideal-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--bideal-shadow-lg);
  background: #15803d; /* Ligeramente más oscuro */
}

.btn-secondary {
  background: transparent;
  color: var(--bideal-primary);
  padding: 14px 32px;
  border-radius: var(--bideal-radius-sm);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--bideal-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(22, 163, 74, 0.08); /* Primario con alfa */
}

/* ==========================================================================
   2. Barra de Navegación (Navbar)
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: var(--bideal-shadow);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--bideal-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bideal-white);
}

.nav-logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bideal-text-dark);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--bideal-slate-600);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--bideal-primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--bideal-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--bideal-primary);
  color: var(--bideal-white);
  padding: 10px 24px;
  border-radius: var(--bideal-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--bideal-shadow);
  text-decoration: none;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--bideal-shadow-lg);
  background: #15803d;
}

/* Menú Móvil */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--bideal-text-dark);
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

.mobile-menu.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bideal-white);
  padding: 24px;
  box-shadow: var(--bideal-shadow-lg);
  border-radius: 0 0 var(--bideal-radius) var(--bideal-radius);
}

/* ==========================================================================
   3. Sección Hero
   ========================================================================== */

#hero, .hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  background: var(--bideal-background);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-content {
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(134, 239, 172, 0.2); /* lime con alfa */
  color: var(--bideal-forest);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--bideal-text-dark);
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--bideal-primary);
  position: relative;
  /* Efecto decorativo opcional */
  background-image: linear-gradient(120deg, var(--bideal-lime) 0%, transparent 100%);
  background-repeat: no-repeat;
  background-size: 100% 30%;
  background-position: 0 88%;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--bideal-slate-600);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--bideal-text-dark);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--bideal-slate-600);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  max-width: 100%;
  border-radius: var(--bideal-radius-lg);
  box-shadow: var(--bideal-shadow-xl);
}

.hero-float-card {
  position: absolute;
  background: var(--bideal-white);
  padding: 16px 20px;
  border-radius: var(--bideal-radius-sm);
  box-shadow: var(--bideal-shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 3s ease-in-out infinite;
}

.hero-float-card.card-1 {
  top: 10%;
  right: -20px;
}

.hero-float-card.card-2 {
  bottom: 15%;
  left: -20px;
  animation-delay: 1.5s;
}

.float-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.1);
  color: var(--bideal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-label {
  font-size: 0.8rem;
  color: gray;
}

.float-value {
  font-weight: 700;
  color: var(--bideal-text-dark);
}

.hero-blob {
  position: absolute;
  background: rgba(134, 239, 172, 0.15); /* lime alfa */
  filter: blur(80px);
  width: 350px;
  height: 350px;
  border-radius: 50%;
  z-index: 1;
}

.hero-blob.top {
  top: -100px;
  right: -50px;
}

.hero-blob.bottom {
  bottom: -50px;
  left: -100px;
}

/* ==========================================================================
   4. Características (Features)
   ========================================================================== */

#features, .features {
  background: var(--bideal-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--bideal-background);
  padding: 36px 28px;
  border-radius: var(--bideal-radius);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--bideal-shadow-lg);
  border-color: var(--bideal-lime);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  background: rgba(22, 163, 74, 0.1);
  color: var(--bideal-primary);
}

.feature-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bideal-text-dark);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--bideal-slate-600);
  line-height: 1.6;
}

/* ==========================================================================
   5. Cómo Funciona (How It Works)
   ========================================================================== */

#how-it-works, .how-it-works {
  background: var(--bideal-background);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 12.5%;
  width: 75%;
  height: 3px;
  background: linear-gradient(to right, var(--bideal-lime), var(--bideal-primary));
}

.step {
  text-align: center;
  position: relative;
  z-index: 2;
  background: var(--bideal-background);
  padding-top: 0;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--bideal-primary);
  color: var(--bideal-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.15); /* shadow alfa */
}

.step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--bideal-forest);
  border-radius: var(--bideal-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--bideal-lime);
}

.step-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bideal-text-dark);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--bideal-slate-600);
}

/* ==========================================================================
   6. Recompensas (Rewards)
   ========================================================================== */

#rewards, .rewards {
  background: var(--bideal-white);
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.reward-card {
  background: var(--bideal-white);
  border-radius: var(--bideal-radius);
  overflow: hidden;
  box-shadow: var(--bideal-shadow);
  transition: all 0.3s ease;
}

.reward-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--bideal-shadow-xl);
}

.reward-image {
  height: 180px;
  background: linear-gradient(135deg, var(--bideal-primary), var(--bideal-forest));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 48px;
}

.reward-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--bideal-white);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.reward-price {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--bideal-lime);
  color: var(--bideal-forest);
  padding: 6px 14px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.reward-body {
  padding: 20px;
}

.reward-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bideal-text-dark);
  margin-bottom: 8px;
}

.reward-shop {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--bideal-slate-600);
  margin-bottom: 4px;
}

.reward-address {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: gray;
  margin-bottom: 12px;
}

.reward-desc {
  font-size: 0.88rem;
  color: var(--bideal-slate-600);
  line-height: 1.5;
}

/* ==========================================================================
   7. Impacto Ambiental (Impact)
   ========================================================================== */

#impact, .impact {
  background: var(--bideal-forest);
  color: var(--bideal-white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.impact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(22, 163, 74, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(134, 239, 172, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.impact .section-title {
  color: var(--bideal-white);
}

.impact .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.impact-stat {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--bideal-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.impact-icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}

.impact-number {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--bideal-lime);
  display: block;
  margin-bottom: 8px;
}

.impact-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   8. Equipo (Team)
   ========================================================================== */

#team, .team {
  background: var(--bideal-background);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.team-card {
  background: var(--bideal-white);
  border-radius: var(--bideal-radius);
  padding: 40px 24px;
  text-align: center;
  box-shadow: var(--bideal-shadow);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--bideal-shadow-lg);
}

.team-avatar {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--bideal-primary), var(--bideal-forest));
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--bideal-white);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

.team-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bideal-text-dark);
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.9rem;
  color: var(--bideal-primary);
  font-weight: 500;
}

/* ==========================================================================
   9. Llamada a la Acción (CTA)
   ========================================================================== */

#cta, .cta {
  background: linear-gradient(135deg, var(--bideal-primary), var(--bideal-forest));
  color: var(--bideal-white);
  padding: 100px 0;
  text-align: center;
}

.cta .container {
  max-width: 700px;
}

.cta-icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.cta-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  background: var(--bideal-white);
  color: var(--bideal-forest);
  padding: 16px 32px;
  border-radius: var(--bideal-radius-sm);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--bideal-shadow);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--bideal-shadow-lg);
}

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--bideal-white);
  padding: 16px 32px;
  border-radius: var(--bideal-radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   10. Pie de Página (Footer)
   ========================================================================== */

.footer {
  background: var(--bideal-text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  /* Primera columna */
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-logo .nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-brand-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bideal-white);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bideal-white);
  transition: 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--bideal-primary);
}

.footer-section h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--bideal-white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--bideal-lime);
}

/* Logo del footer en fondo oscuro */
.footer .nav-logo-text {
  color: var(--bideal-white);
}

.footer .nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 16px;
}

/* Estilos del menú móvil */
.mobile-menu .nav-link {
  padding: 12px 0;
  font-size: 1rem;
  display: block;
  border-bottom: 1px solid var(--bideal-slate-100);
}

/* Ocultar botón CTA de nav en móvil */
@media (max-width: 768px) {
  .nav-cta {
    display: none;
  }
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   11. Animaciones (Animations)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

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

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

@keyframes spin {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ==========================================================================
   12. Puntos de Ruptura (Responsive Breakpoints)
   ========================================================================== */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rewards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps::before {
    display: none; /* Mejor esconder la línea en móvil y tablet */
  }
  .impact-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-menu {
    /* visible when active is controlled via JS adding .active */
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .rewards-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .impact-stats {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas para 4 ítems como se pidió */
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas como se pidió */
  }
  .hero-buttons {
    flex-direction: column;
  }
  .btn-primary, .btn-secondary, .btn-white, .btn-outline-white {
    width: 100%;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   13. Testimonios (Testimonials)
   ========================================================================== */

.testimonials {
  background: var(--bideal-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--bideal-background);
  border-radius: var(--bideal-radius);
  padding: 32px 28px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bideal-shadow-lg);
  border-color: var(--bideal-lime);
}

.testimonial-stars {
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--bideal-slate-600);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bideal-primary), var(--bideal-forest));
  color: var(--bideal-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-name {
  display: block;
  font-weight: 600;
  color: var(--bideal-text-dark);
  font-size: 0.95rem;
}

.testimonial-meta {
  display: block;
  font-size: 0.8rem;
  color: gray;
}

@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   14. FAQ Acordeón (en la página principal)
   ========================================================================== */

.faq-home {
  background: var(--bideal-white);
}

.faq-list {
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bideal-background);
  border-radius: var(--bideal-radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--bideal-slate-100);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--bideal-shadow);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bideal-text-dark);
  text-align: left;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--bideal-primary);
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--bideal-primary);
  transition: transform 0.3s ease;
  min-width: 24px;
  text-align: center;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-item.active .faq-question {
  color: var(--bideal-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--bideal-slate-600);
  line-height: 1.7;
  font-size: 0.95rem;
}

.faq-more {
  text-align: center;
  margin-top: 32px;
}

.faq-more p {
  color: var(--bideal-slate-600);
}

.faq-link {
  color: var(--bideal-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.faq-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   15. Banner de Cookies
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bideal-white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  padding: 20px 0;
  transform: translateY(0);
  transition: transform 0.5s ease;
}

.cookie-banner.hidden {
  transform: translateY(100%);
  pointer-events: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-text {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.cookie-icon {
  font-size: 1.5rem;
}

.cookie-text p {
  font-size: 0.9rem;
  color: var(--bideal-slate-600);
  margin: 0;
}

.cookie-text a {
  color: var(--bideal-primary);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.cookie-btn-secondary {
  padding: 10px 24px;
  background: transparent;
  border: 2px solid var(--bideal-slate-100);
  border-radius: var(--bideal-radius-sm);
  color: var(--bideal-slate-600);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}

.cookie-btn-secondary:hover {
  border-color: var(--bideal-primary);
  color: var(--bideal-primary);
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  .cookie-text {
    flex-direction: column;
  }
}

/* ==========================================================================
   16. Botón Volver Arriba (Back to Top)
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bideal-primary);
  color: var(--bideal-white);
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--bideal-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--bideal-forest);
  transform: translateY(-4px);
}

/* ==========================================================================
   17. Nav Link Activo
   ========================================================================== */

.nav-link.active {
  color: var(--bideal-primary);
}

.nav-link.active::after {
  width: 100%;
}
