.indicador-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.indicador-icon img {
    width: 80px;
    margin-bottom: 15px;
}

.indicador-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}


a:focus,
a:hover {
    color: #ffffff;
}

.indicadores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.indicador-item {
    position: relative;
}

.indicador-card {
    height: 200px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.indicador-card:hover {
    transform: scale(1.03);
}

/* PANEL */

.indicador-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 550px;
    max-width: 90vw;
    background: #2c1aa8;
    color: white;
    padding: 16px;
    display: none;
    z-index: 20;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    text-align: initial;
}

.indicador-panel.activo {
    display: block;
}

.panel-inner h4 {
    margin-top: 20px;
    font-weight: bold;
}

.panel-inner ul {
    margin-bottom: 20px;
}

.cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.indicador-card {
    position: relative;
    height: 200px;
    padding: 20px;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform .2s ease;
}

.indicador-card:hover {
    transform: scale(1.03);
}

/* HEADER */
.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
}

.card-flecha {
    transition: transform .3s ease;
    font-size: 16px;
}

.card-flecha.activa {
    transform: rotate(180deg);
}

/* ICONO CENTRADO */
.indicador-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.indicador-icon img {
    width: 70px;
}

.card-titulo {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* máximo 2 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    max-height: 2.4em;
    text-align: center;
}

.indicador-panel a {
    color: inherit;
    text-decoration: none;
}

.indicador-panel a:hover {
    text-decoration: underline;
}

.buscador-container {
    display: flex;
    align-items: center;
    border: 6px solid #2E2F4F;
    /* azul oscuro */
    padding: 10px 20px;
    max-width: 500px;
    background: #f5f5f5;
}

.buscador-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 20px;
    font-weight: 600;
    color: #8E8E8E;
    background: transparent;
}

.buscador-input::placeholder {
    color: #8E8E8E;
}

.buscador-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #6FA22B;
    /* verde lupa */
    cursor: pointer;
}

.buscador-btn:hover {
    opacity: 0.8;
}

/* NIVEL 1 (títulos grandes) */

.categoria-nivel1 {
    font-size: 1.2em;
    font-weight: 700;
}

.categoria-nivel2 {
    font-size: 1em !important;;
    font-weight: 400 !important;
}

.categoria-nivel1 a {
    color: #fff;
    text-decoration: none;
    text-align: initial;
    margin-left: -5%;
}

/* SUBNIVELES CON PUNTOS */

.indicador-panel ul {
    padding-left: 25px;
    margin-top: 8px;
}

.indicador-panel li {
    list-style-type: disc;
    /* punto sólido */
    margin: 6px 0;
    font-size: 18px;
}

/* color del punto */
.indicador-panel li::marker {
    color: #ffffff;
    font-size: 18px;
}

.indicador-panel li a {
    color: #ffffff;
    text-decoration: none;
}

.indicador-panel li a:hover {
    text-decoration: underline;
}

.categoria-nivel1 {
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 8px;
}

.indicador-content{
    pointer-events: none;
}

.indicador-content a{
    pointer-events: auto;
}

.card-flecha{
    position: relative;
    z-index: 10;
    cursor: pointer;
}