:root {
  --verde: #2e7d32;
  --azul: #1565c0;
  --naranja: #ef6c00;
  --gris: #f5f5f5;
}

body {
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--gris);
  margin: 0;
  padding: 0;
  color: #333;
}

/* ===== HEADER / HERO ===== */
header {
  position: relative;
  background: linear-gradient(135deg, #1b5e20 0%, #4caf50 50%, #a5d6a7 100%);
  color: white;
  text-align: center;
  padding: 6rem 2rem;
  overflow: hidden;
}

header::before {
  content: "";
  background: url('https://images.unsplash.com/photo-1503264116251-35a269479413?auto=format&fit=crop&w=1500&q=80')
    center/cover no-repeat;
  opacity: 0.25;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn-cta {
  background-color: #ffffff;
  color: #2e7d32;
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
  background-color: #c8e6c9;
  transform: scale(1.05);
}


#filtros, #registro, #panel-estadisticas, #explorador {
  background: white;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 12px;
  max-width: 1000px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h2 {
  margin-bottom: 1rem;
  color: var(--verde);
}

label {
  font-weight: 600;
  margin-top: 1rem;
  display: block;
}

select, input, textarea, button {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.4rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

button {
  background-color: var(--verde);
  color: white;
  border: none;
  margin-top: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

button:hover {
  background-color: #1b5e20;
}

#lista-empresas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tarjeta {
  background: #e8f5e9;
  border-left: 6px solid var(--verde);
  padding: 1rem;
  border-radius: 8px;
  transition: transform 0.2s;
}

.tarjeta:hover {
  transform: translateY(-4px);
}

.tarjeta h3 {
  margin-top: 0;
  color: var(--verde);
}

.ods-tag {
  display: inline-block;
  background: var(--azul);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-right: 0.3rem;
}

canvas {
  max-width: 100%;
  margin-top: 1rem;
}

footer {
  text-align: center;
  padding: 2rem;
  background: #1b5e20;
  color: white;
  margin-top: 3rem;
}

#ods {
  background: white;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 12px;
  max-width: 1000px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
#lista-ods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.ods-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.ods-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.ods-card img {
  width: 80px;
  height: 80px;
  display: block;
  margin: 0 auto; /* Esto centra la imagen horizontalmente */
}

.ods-card h3 {
  margin: 0;
  padding: 0.5rem;
  font-size: 0.9rem;
  background: #f8f8f8;
  text-align: center;
}
