/* 🌿 Estilos generales */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: linear-gradient(180deg, #e8f5e9 0%, #ffffff 100%);
  color: #2e3d2f;
  line-height: 1.6;
}

/* 🌱 Encabezado principal */
.main-header {
  text-align: center;
  background: linear-gradient(90deg, #81c784, #66bb6a);
  color: #fff;
  padding: 2rem 1rem;
  border-radius: 0 0 25px 25px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.main-header h1 {
  font-size: 2.8em;
  margin: 0;
  letter-spacing: 1px;
}

.main-header p {
  font-size: 1.2em;
  color: #eafbe7;
  margin-top: 0.5em;
}

/* 🌍 Selector de idioma con banderas */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.header-left {
  text-align: left;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
}

.lang-switch a {
  color: #e8f5e9;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  transition: color 0.3s ease, transform 0.2s ease;
}

.lang-switch a:hover {
  color: #c8e6c9;
  transform: scale(1.05);
}

.lang-switch .active {
  font-weight: bold;
  text-decoration: underline;
}

.flag {
  font-size: 1.1em;
}

/* 🌿 Sección de presentación */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1000px;
}

.hero-text {
  flex: 1 1 400px;
  text-align: center;
}

.hero-text h2 {
  font-size: 1.8em;
  color: #2e7d32;
  margin-bottom: 0.6em;
}

.hero-text p {
  color: #335e3a;
  margin-bottom: 1.2em;
}

.btn-hero {
  display: inline-block;
  background: linear-gradient(90deg, #81c784, #4caf50);
  color: #fff;
  padding: 0.8em 1.6em;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-hero:hover {
  background: linear-gradient(90deg, #66bb6a, #388e3c);
  transform: scale(1.05);
}

.hero-image img {
  width: 100%;
  max-width: 380px;
  border-radius: 18px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
}

/* 🌸 Guías principales y complementarias */
.main-content {
  padding: 3rem 1rem;
  text-align: center;
}

.guides h3, .extras h3 {
  text-align: center;
  color: #1b4332;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.guides, .extras {
  background: #f6fff8;
  border-radius: 16px;
  padding: 2rem 1rem;
  margin: 2rem auto;
  max-width: 1000px;
}

/* 🌿 Tarjetas de guías optimizadas */
.botonera {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.boton-guia {
  background: linear-gradient(135deg, #b7e4c7, #95d5b2);
  color: #1b4332;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.boton-guia:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25);
}

/* 🌾 Footer */
footer {
  text-align: center;
  background-color: #2e7d32;
  color: #e8f5e9;
  padding: 1.5rem;
  border-radius: 20px 20px 0 0;
  margin-top: 3rem;
}

/* 🍪 Banner de cookies */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(27, 67, 50, 0.95);
  color: #e8f5e9;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  font-size: 0.9rem;
  z-index: 9999;
  flex-wrap: wrap;
}

#cookie-banner a {
  color: #b7e4c7;
  text-decoration: underline;
}

#accept-cookies {
  background: #52b788;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-image img {
    max-width: 240px;
  }

  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .lang-switch {
    margin-top: 1rem;
  }
}
