.memoria-local-plugin {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 950px;
    /* margin: 30px auto; */
    background-color: #fff;
    /* border-radius: 12px; */
    overflow: hidden;
    /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); */
}

/* Tabs */
.tab-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* background-color: #f9f9f9;
    border-bottom: 2px solid #eee;
    padding: 10px; */
}

.tab-button {
    flex: 0 0 auto;
    padding: 10px;
    margin: 5px;
    border: none;
    background-color: #1C1C1C;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.15em;
    color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
    height: 50px;
    width: 50px;
    text-align: center;
}

.tab-button.active {
    background-color: #DADADA;
    color: #000;
    font-weight: bold;
}

.tab-button:hover {
    background-color: #DADADA;
    color: #000;
}

/* Tab Content */
.tab-content-container {
    padding: 35px;
}

.tab-content {
    display: none;
    animation: content-fade-in 0.5s ease-out;
}

@keyframes content-fade-in {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content.active {
    display: block;
}

.loading-message {
    text-align: center;
    color: #999;
    margin-bottom: 30px;
    font-style: italic;
}

/* List Items */
.data-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    list-style: none;
    padding: 0;
    gap: 15px;
}

.data-list-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    /* padding: 15px; */
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9f9f9;
    transition: background-color 0.3s ease;
    max-width: 250px;
    text-align: center;
}

.data-list-item:hover {
    background-color: #f0f0f0;
}

.desaparecido-item {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.desaparecido-image {
    width: -webkit-fill-available;
    height: 250px!important;
    object-fit: cover;
    border-radius: 10px 10px 0 0 !important;
    background: url('data/images/default.png') center/cover no-repeat;
}

.desaparecido-info {
    padding: .7rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.desaparecido-name {
    font-weight: bold;
    font-size: 1.2em;
}

.desaparecido-date, .desaparecido-gender {
    font-size: 0.9em;
    color: #7A7A7A;
}

.desaparecido-fullname {
    color: #54595F;
    font-size: 1em;
    font-weight: bold;
    text-align: start;
}
.desaparecido-description {
    color: #7A7A7A;
    font-size: 0.95em;
    margin-top: 10px;
}

.info-button {
    font-size: .8em;
    font-weight: 400;
    margin-top: 10px;
    padding: 8px 15px;
    cursor: pointer;
    background: #1C1C1C;
    color: white;
    border: none;
    border-radius: 16px;
    transition: background 0.3s ease;
}

.info-button:hover {
    background: #DADADA;
}

.info-button:focus {
    background: #DADADA;
}

/* Modal */
.modal {
    color: white;
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.8);
}

.modal-content {
    font-weight: 400;
    background-color: #4141415C;
    padding: 20px;
    margin: 5% auto;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-row {
    display: flex;
    gap: 20px;
}

.modal-col {
    flex: 1;
}

.modal-col img {
    max-width: 100%;
    border-radius: 5px;
}

.image-col {
    max-width: 190px;
}

.modal-description {
    grid-column: span 2;
    margin-top: 15px;
    font-size: 1em;
}

#modal-descripcion {
    margin-block-start: 1rem;
    margin-block-end: 1rem;
}

.close {
    color: #AE8700;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8em;
    cursor: pointer;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .tab-container {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .tab-button {
        font-size: 1em;
        width: 40px;
        height: 40px;
        line-height: 40px;
    }

    .data-list {
        flex-direction: column;
        align-items: center;
    }

    .data-list-item {
        max-width: 100%;
    }

    .modal-content {
        width: 95%;
        padding: 15px;
    }

    .modal-row {
        flex-direction: column;
    }
}
