body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

header {
    background-color: #1a1a2e;
    color: white;
    padding: 24px 40px;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

header p {
    margin: 4px 0 0 0;
    color: #aaa;
    font-size: 14px;
}

main {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* --- Filtros ----------------------------------------------------------
   Caja con el input de texto y el select. Se apila en móvil
   (flex-wrap) y se pone en línea en pantallas medianas.
   --------------------------------------------------------------------- */
.filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.filtros input[type="search"],
.filtros select {
    flex: 1 1 220px;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: white;
    color: #1a1a2e;
}

.filtros input[type="search"]:focus,
.filtros select:focus {
    outline: 2px solid #1a73e8;
    outline-offset: 1px;
    border-color: transparent;
}

/* --- Mensajes de estado ----------------------------------------------
   Cargando / error / sin resultados. Cuando está vacío no ocupa
   espacio (regla :empty).
   --------------------------------------------------------------------- */
.estado {
    font-size: 14px;
    color: #666;
    margin: 8px 0 16px 0;
    min-height: 1.2em;
}

.estado:empty {
    margin: 0;
    min-height: 0;
}

.tarjeta {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tarjeta-info h2 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #1a1a2e;
}

.tarjeta-info p {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #666;
}

.etiqueta {
    display: inline-block;
    background-color: #e8f0fe;
    color: #1a73e8;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 12px;
    margin-top: 8px;
}

.tarjeta-accion a {
    background-color: #1a73e8;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
}
