:root {
    --primary: #23C4AE;
    --primary-glow: rgba(35, 196, 174, 0.2);
    --bg-dark: #0A0F0E;
    --bg-card: #151e1d;
    --border: rgba(35, 196, 174, 0.15);
    --text-main: #f0faf9;
    --text-muted: #a0b0af;
    --danger: #c4233b;
    --danger-glow: rgba(196, 35, 59, 0.3);
    --transition: all 0.3s ease;
}

/* =====================
   GENERAL
===================== */
body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* =====================
   GRID / TARJETAS
===================== */
.content-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.card-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.card-item h2,
.card-item h3 {
    color: var(--primary);
    margin-bottom: 12px;
}

.card-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.card-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 15px;
}

/* =====================
   FORMULARIOS
===================== */
.filter-section {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
}

/* FORM COMO TARJETA */
form {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 30px;
    max-width: 420px;
    margin: 40px auto;
    box-shadow:
        0 0 0 1px var(--border),
        0 15px 40px rgba(0, 0, 0, 0.6);
    transition: var(--transition);
}

form:hover {
    box-shadow:
        0 0 20px var(--primary-glow),
        0 20px 50px rgba(0, 0, 0, 0.7);
}

label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

input,
select {
    background: #0f1817;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 10px;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 15px;
    transition: var(--transition);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* =====================
   BOTONES
===================== */
button {
    border: none;
    background: none;
    padding: 0;
}

/* BOTÓN NORMAL */
button[type="submit"],
.btn {
    background: var(--primary);
    color: #0A0F0E;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

button[type="submit"]:hover,
.btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* =====================
   BOTÓN ELIMINAR (DANGER)
===================== */
.btn-danger {
    background: var(--danger);
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-danger:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 15px var(--danger-glow);
}

/* POR SI ESTÁ DENTRO DE <button> */
button .btn-danger {
    width: 100%;
}

/* =====================
   PAGINACIÓN
===================== */
.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
}
