/* Hero con imagen de fondo */
.legalidad-hero {
  background-image: url('/IMAGENES/legal.png');
  background-size: cover;
  background-position: center;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 60px 30px;
  text-align: center;
  color: white;
  max-width: 900px;
  border-radius: 12px;
}

.overlay h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.overlay p {
  font-size: 1.3rem;
  margin-bottom: 25px;
}

.btn-verde {
  background-color: #00c853;
  padding: 14px 28px;
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-verde:hover {
  background-color: #009624;
}

/* Contenido en cajas */
.legalidad-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}

.caja-legal {
  background-color: white;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: #0d1b2a;
  animation: fadeInUp 0.6s ease;
}

.caja-legal h2, .caja-legal h3 {
  color: #0a2c6b;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.caja-legal p, 
.caja-legal li {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
}

.caja-legal ul {
  padding-left: 20px;
}

.caja-legal a {
  color: #0288d1;
  font-weight: 500;
  text-decoration: underline;
}

/* Estilos específicos */
.resumen {
  background-color: #e3f2fd;
  border-left: 5px solid #0288d1;
}

.recomendaciones {
  background-color: #f1f8e9;
  border-left: 5px solid #66bb6a;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
