/* ESTILOS GENERALES */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f9;
}

/* ENCABEZADO */
.header-ecologia {
    text-align: center;
    background: linear-gradient(to right, #2c3e50, #16a085);
    color: white;
    padding: 30px;
}

/* INTRODUCCIÓN */
.intro {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 40px;
    gap: 20px;
}

.info-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.img-container img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
}

/* PRINCIPIOS */
.principios {
    text-align: center;
    padding: 40px;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 200px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 50px;
}

/* TABLA DE DESAFÍOS */
.desafios {
    padding: 40px;
    text-align: center;
}

table {
    width: 80%;
    margin: auto;
    border-collapse: collapse;
    background: white;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
}

th {
    background: #2c3e50;
    color: white;
}

/* GRÁFICO */
.grafico {
    text-align: center;
    padding: 40px;
    max-width: 600px;
    margin: auto;
}

canvas {
    max-width: 100% !important;
    height: 400px !important;
}
/* ===================
   PIE DE PÁGINA
   =================== */
   footer {
    background: #2c2c2c;
    color: white;
    padding: 40px 0;
    text-align: left;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.footer-section {
    max-width: 300px;
}

.footer-section h3 {
    margin-bottom: 10px;
}

.footer-section p, .footer-section a {
    color: white;
    text-decoration: none;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

/* Íconos de redes sociales */
.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a img {
    width: 32px;
    height: 32px;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid gray;
    padding-top: 10px;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}