/* --- VARIABLES Y RESET --- */
:root {
  --primary-color: #2e7d32;      /* Verde ecológico principal */
  --primary-hover: #1b5e20;      /* Verde oscuro para botones */
  --accent-color: #81c784;       /* Verde claro de acento */
  --text-color: #2c3e50;         /* Texto gris oscuro readable */
  --bg-light: #f4f9f4;           /* Fondo verde muy claro */
  --white: #ffffff;
  --gray-border: #e0e0e0;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  background-color: var(--white);
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- ENCABEZADO Y NAVEGACIÓN --- */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

/* --- BOTONES --- */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background-color: var(--primary-hover);
}

/* --- SECCIÓN HERO --- */
.hero {
  background-color: var(--bg-light);
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 25px auto;
}

/* --- PIE DE PÁGINA (CRUCIAL PARA GOOGLE ADS) --- */
footer {
  background-color: #1a252f;
  color: var(--white);
  padding: 40px 0 20px 0;
  margin-top: 50px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h3, .footer-col h4 {
  color: var(--accent-color);
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #34495e;
  padding-top: 20px;
  font-size: 0.9rem;
  color: #bdc3c7;
}

/* --- BANNER DE COOKIES --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #2c3e50;
  color: var(--white);
  padding: 15px 20px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  z-index: 9999;
}

.cookie-banner p {
  font-size: 0.9rem;
  max-width: 800px;
}

.cookie-banner a {
  color: var(--accent-color);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 15px;
  }
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }
}