/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   BODY
========================= */
body {
    font-family: Arial, sans-serif;
    background: #1e1e1e; /* gris topo oscuro */
    color: #f5f5f5;
}

/* =========================
   CONTENEDOR PRINCIPAL
========================= */
.page {
    display: flex;
    justify-content: center;
    padding: 30px 15px;
}

/* =========================
   CARD
========================= */
.card {
    width: 100%;
    max-width: 900px;
    background: #2a2a2a;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

/* =========================
   LOGO + TITULO
========================= */
.brand {
    text-align: center;
    margin-bottom: 20px;
}

.brand img {
    width: 90px;
    margin-bottom: 10px;
}

.brand h1 {
    font-size: 22px;
    margin-bottom: 5px;
    color: #ffffff;
}

.brand p {
    font-size: 14px;
    color: #bfbfbf;
}

/* =========================
   FORMULARIOS
========================= */
label {
    font-size: 13px;
    margin-bottom: 4px;
    display: block;
    color: #cccccc;
}

input, select {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #444;
    background: #1f1f1f;
    color: #fff;
    margin-bottom: 12px;
}

input::placeholder {
    color: #888;
}

input:focus {
    outline: none;
    border-color: #6ea5c8;
}

/* =========================
   GRID FILTROS
========================= */
.filtros-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* =========================
   BOTONES (mantengo tu estilo)
========================= */
.admin-btn,
.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: #6ea5c8;
    color: #111;
    text-decoration: none;
    border-radius: 12px;
    font-weight: bold;
    border: 1px solid #5b93b6;
    cursor: pointer;
    transition: 0.2s;
}

.admin-btn:hover,
.btn-link:hover {
    background: #111;
    color: #fff;
}

/* =========================
   CONTENEDORES DE ACCIONES
========================= */
.acciones-superiores {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.top-links {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* =========================
   TABLA
========================= */
.tabla-wrap {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #2a2a2a;
}

th, td {
    border: 1px solid #3a3a3a;
    padding: 10px;
    font-size: 13px;
}

th {
    background: #6ea5c8;
    color: #111;
}

tr:nth-child(even) {
    background: #262626;
}

/* =========================
   ESTADOS
========================= */
.estado-si,
.estado-ok {
    color: #4cd964;
    font-weight: bold;
}

.estado-no,
.estado-error {
    color: #ff4d4d;
    font-weight: bold;
}

/* =========================
   WHATSAPP
========================= */
.whatsapp-link {
    padding: 6px 10px;
    background: #6ea5c8;
    border-radius: 8px;
    text-decoration: none;
    color: #111;
    font-weight: bold;
    border: 1px solid #5b93b6;
}

.whatsapp-link:hover {
    background: #111;
    color: #fff;
}

/* =========================
   MENSAJES
========================= */
.mensaje-admin {
    margin: 12px 0 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: bold;
}

.mensaje-admin.ok {
    background: #2e7d32;
    color: #fff;
}

.mensaje-admin.error {
    background: #c62828;
    color: #fff;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .filtros-grid {
        grid-template-columns: 1fr;
    }

    .acciones-superiores {
        flex-direction: column;
    }

    .admin-btn,
    .btn-link {
        width: 100%;
    }
}