/* ====== ESTILOS GENERALES ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: #f2f4f8;
    color: #222;
    line-height: 1.6;
}

/* ====== CABECERA / HERO ====== */
.hero {
    background: linear-gradient(135deg, #0057b8, #6ab1ff);
    color: white;
    padding: 60px 20px 20px 20px;
    text-align: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 600;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-top: 8px;
}

/* ====== NAVBAR ====== */
.navbar ul {
    margin-top: 25px;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: 0.3s;
}

.navbar a:hover,
.navbar .active {
    background: rgba(255, 255, 255, 0.25);
}

/* ====== CONTENEDOR PRINCIPAL ====== */
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

/* ====== CARDS ====== */
.card {
    background: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.card h2 {
    margin-bottom: 15px;
    color: #0057b8;
}

/* ====== LISTAS DE ENLACES ====== */
.links li {
    margin-bottom: 6px;
}

.links a {
    color: #0057b8;
    text-decoration: none;
    font-weight: 500;
}

.links a:hover {
    text-decoration: underline;
}

/* ====== CANVAS ====== */
#myCanvas {
    display: block;
    margin: 10px auto;
    border-radius: 10px;
    border: 2px solid #0057b8;
}

/* ====== MAPA ====== */
.map-container {
    width: 100%;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ====== GRÁFICOS ====== */
.chart {
    width: 100%;
    height: 350px;
}

/* ====== ANIMACIONES ====== */
.fadeIn {
    animation: fadeIn 0.9s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== FOOTER ====== */
footer {
    margin-top: 40px;
    text-align: center;
    padding: 20px 0;
    background: #eaf2ff;
    color: #333;
    font-size: 0.9rem;
    border-top: 1px solid #d0def5;
}
