/* ===== Formulario de búsqueda ===== */
.form-search-question {
    display: inline-grid;
    grid-template-columns: 53% 30% 17%;
    width: 100%;
    margin-top: 30px;
}

.form-search-question input[type="text"] {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 16px 32px;
    height: 52px;
    width: 685px;
    max-width: 100%;
}

.form-search-question select {
    width: 311px;
    max-width: 98%;
    background: #12b4cd;
    border-radius: 20px;
    height: 52px;
    border: 0;
    font-family: "Montserrat", sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    color: #ffffff;
    padding: 16px 32px;
    margin-left: 5px;
    justify-self: end;
}

.form-search-question .btnsearch {
    width: 164px;
    height: 52px;
    max-width: 98%;
    background: #b3bd11;
    border-radius: 0 20px;
    font-family: "Montserrat", sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-transform: none;
    box-shadow: none !important;
    margin: 0;
    justify-self: end;
    margin-left: 5px;
    padding: 0;
    cursor: pointer;
}

.form-search-question .btnsearch img {
    vertical-align: middle;
    margin-left: 5px;
}

/* ===== Tabla ===== */
.page-centers table thead tr th:first-child {
    border-radius: 20px 0 0 0;
}

.page-centers table thead tr th:last-child {
    border-radius: 0 20px 0 0;
}

/* ===== Botón Ver Detalles ===== */
.open-modal-btn {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin: 20px;
}

.open-modal-btn:hover {
    background-color: #45a049;
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 70%;
    max-width: 800px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: modalopen 0.5s;
}

@keyframes modalopen {
    from { opacity: 0; transform: translateY(-50px); }
    to   { opacity: 1; transform: translateY(0); }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.modal-body {
    display: flex;
    padding: 0;
}

.column {
    flex: 1;
    padding: 10px 15px;
}

.column:first-child {
    border-right: 1px solid #ddd;
}

.modal-header {
    padding: 0;
}

.modal-header h5 {
    margin: 0;
    color: #333;
}

.modal-footer {
    text-align: right;
    padding-top: 0;
    padding: 0;
    border-top: 1px solid #ddd;
}

.modal-footer button {
    padding: 8px 16px;
    background-color: #b3bd11;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-footer button:hover {
    background-color: #c8d321;
}

/* ===== Botón lista de centros ===== */
.btnlistcentros {
    grid-column: 1 / -1;
    margin-top: 15px;
    color: #12b4cd;
    font-weight: 600;
    text-decoration: underline;
}