* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #1f2937;
}

/* CONTENEDOR */
.app-container {
    padding: 30px;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: white;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* CARD */
.card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* TITULOS */
.card h3 {
    margin: 0 0 10px;
}

/* ESTADO */
.card p {
    margin: 5px 0;
    font-size: 14px;
}

/* INPUTS */
input,
textarea {
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
    transition: border 0.2s;
}

input:focus,
textarea:focus {
    border: 1px solid #3b82f6;
}

/* BOTONES */
button {
    border: none;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

button:hover {
    transform: scale(1.05);
}

/* BOTON PRINCIPAL */
.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

/* BOTON ELIMINAR */
.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* QR */
.card img {
    display: block;
    margin: 15px auto;
    border-radius: 10px;
}

/* LOGIN */
.login-card {
    max-width: 350px;
    margin: 100px auto;
    background: white;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* FOOTER */
footer {
    margin-top: 40px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    background: #e5e7eb;
    color: #111827;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
}

.btn-secondary:hover {
    background: #d1d5db;
}