body {
    font-family: "Fjalla One",sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden; 
}

#mapa-container {
    position: relative;
    max-width: 500px; 
    width: 100%; 
}

#mapa-container svg {
    display: block;
    width: 100%; 
    height: auto;
}

#grupoEstrategico,
#grupoApoyo,
#grupoEvaluacion,
#grupoMisionales {
    cursor: pointer;
    transition: opacity 0.1s ease-in-out, filter 0.1s ease-in-out;
    filter: drop-shadow(3px 3px 4px rgba(0,0,0,0.70));
}

#grupoEstrategico:hover,
#grupoApoyo:hover,
#grupoEvaluacion:hover,
#grupoMisionales:hover {
    opacity: 0.85;
    filter: drop-shadow(3px 3px 5px rgba(0,0,0,0.9));
}
/* ======================================================== */
/* ESTILOS CORREGIDOS PARA LOS CÍRCULOS DEL MAPA          */
/* ======================================================== */

#circuloEvaluacion,
#circuloEstrategico,
#circuloApoyo,
#circuloMisionales {
    /*
     * Relleno de color. Usamos !important para anular el "fill:none" del SVG.
     * Puedes cambiar 'white' por el color que prefieras.
     */
         fill: rgba(255, 255, 255, 0.924) !important;

    /*
     * Sombra suave para elementos SVG.
     */
    filter: drop-shadow(3px 3px 4px rgba(0, 0, 0, 0.9));

    /* Transición suave para el efecto hover */
    transition: filter 0.3s ease;
}

/* Opcional: Hacer la sombra un poco más pronunciada al pasar el mouse */
/* #grupoEvaluacion:hover #circuloEvaluacion,
#grupoEstrategico:hover #circuloEstrategico,
#grupoApoyo:hover #circuloApoyo,
#grupoMisionales:hover #circuloMisionales {
    filter: drop-shadow(4px 4px 6px rgba(0, 0, 0, 1.3));
} */



/* --- REGLAS PARA LA ANIMACIÓN INICIAL --- */

#grupomapaProcesos > g,
#textoCentral {
    opacity: 0;
}



/* --- Keyframes (sin cambios) --- */
@keyframes anim-estrategico {
    from { opacity: 0; clip-path: inset(0 100% 0 0); }
    to { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes anim-apoyo {
    from { opacity: 0; clip-path: inset(0 0 100% 0); }
    to { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes anim-misionales {
    from { opacity: 0; clip-path: inset(0 0 0 100%); }
    to { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes anim-evaluacion {
    from { opacity: 0; clip-path: inset(100% 0 0 0); }
    to { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes anim-text-fade-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}


/* --- APLICACIÓN DE LA ANIMACIÓN MÁS FLUIDA --- */
/* La duración es 0.6s. El retraso ahora aumenta solo en 0.3s cada vez (50% de superposición) */

#mapa-container.start-animation #grupoEstrategico {
    animation: anim-estrategico 0.6s ease-out 0s forwards;
}

#mapa-container.start-animation #grupoApoyo {
    animation: anim-apoyo 0.6s ease-out 0.3s forwards; /* ANTES: 0.54s */
}

#mapa-container.start-animation #grupoMisionales {
    animation: anim-misionales 0.6s ease-out 0.6s forwards; /* ANTES: 1.08s */
}

#mapa-container.start-animation #grupoEvaluacion {
    animation: anim-evaluacion 0.6s ease-out 0.9s forwards; /* ANTES: 1.62s */
}

/* El texto sigue apareciendo en un punto intermedio para una sensación integrada */
#mapa-container.start-animation #textoCentral {
    animation: anim-text-fade-in 1s ease-out 0.5s forwards; /* ANTES: 0.8s */
}




/* El resto de estilos de las tarjetas permanece igual */
.card {
    position: absolute;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    padding: 20px 25px;
    width: auto;
    min-width: 300px;
    max-width: 340px;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.98);
}

.card.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: normal;
    padding-bottom: 12px;
    font-size: 22px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

a.card-link {
    text-decoration: none !important;
    font-family: "Fjalla One", sans-serif;
}

.card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card ul li {
    margin-bottom: 8px;
    font-size: 16px;
    font-family: 'Fjalla One';
}

.card ul li:last-child {
    margin-bottom: 0;
}

.card ul li a {
    text-decoration: none;
    font-size: 1em;
}

.card ul li a:hover {
    text-decoration: underline;
}

#card-estrategicos {
    background-color: rgba(185, 122, 87, 0.9);
    color: #000000;
}

#card-estrategicos h4,
#card-estrategicos a {
    color: #000000;
}

#card-estrategicos h4 {
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

#card-apoyo {
    background-color: rgba(248, 182, 23, 0.9);
    color: #000000;
}

#card-apoyo h4,
#card-apoyo a {
    color: #000000;
}

#card-apoyo h4 {
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

#card-misionales {
    background-color: rgba(237, 151, 68, 0.9);
    color: #000000;
}

#card-misionales h4,
#card-misionales a {
    color: #000000;
}

#card-misionales h4 {
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

#card-evaluacion {
    background-color: rgba(0, 179, 202, 0.88);
    color: #000000;
}

#card-evaluacion h4,
#card-evaluacion a {
    color: #000000;
}

#card-evaluacion h4 {
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}