/* Título principal moderno */
.titulo-etica {
  background: linear-gradient(135deg, #002b5c, #00509d);
  color: white;
  padding: 25px 30px;
  text-align: center;
  border-radius: 12px;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 30px auto;
  width: 90%;
  max-width: 900px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  letter-spacing: 1px;
}

/* Contenedor principal con distribución vertical y espaciado */
main.contenedor {
  max-width: 1200px;
  margin: 0 auto 40px auto;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* Secciones de contenido con sombra y hover */
section {
  width: 100%;
  background-color: #f8fbff;
  padding: 25px 30px;
  border-left: 6px solid #004b8d;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 75, 141, 0.07);
  transition: transform 0.2s ease;
}
section:hover {
  transform: translateY(-3px);
}

h2 {
  color: #002b5c;
  font-size: 1.8rem;
  margin-bottom: 15px;
  border-bottom: 2px solid #004b8d;
  padding-bottom: 5px;
}

/* Lista con mejor espacio */
ul {
  list-style-type: disc;
  padding-left: 20px;
  line-height: 1.6;
}

/* Recuadro moderno para imagen y botón */
.descargar {
  background-color: #eaf3fb;
  border: 2px solid #004b8d;
  border-radius: 12px;
  padding: 30px 20px;
  width: 90%;
  max-width: 350px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
}
.descargar:hover {
  transform: translateY(-5px);
}

/* Imagen con sombra y bordes suaves */
.imagen-marco img {
  width: 100px;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 75, 141, 0.2);
  margin-bottom: 20px;
}

/* Botón moderno */
.boton-descarga {
  background-color: #004b8d;
  color: white;
  padding: 14px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.boton-descarga:hover {
  background-color: #003366;
  transform: scale(1.05);
}

/* Footer si lo usas en pie.php */
footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .titulo-etica {
    font-size: 2rem;
    padding: 20px;
  }

  h2 {
    font-size: 1.4rem;
  }

  section {
    padding: 20px;
  }

  .descargar {
    padding: 25px 15px;
  }

  .boton-descarga {
    padding: 12px 25px;
    font-size: 15px;
  }
}

/* Distribución en 2 columnas en escritorio */
@media (min-width: 1024px) {
  main.contenedor {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
  }

  .descargar {
    margin-top: 0;
    position: sticky;
    top: 120px;
  }
}
