* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #f1f5f9;
    min-height: 100vh;
    padding: 30px;
}

.contenedor {
    max-width: 1200px;
    margin: auto;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.login-box {
    max-width: 500px;
    margin-top: 50px;
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #38bdf8;
}

.login-header p {
    color: #cbd5e1;
}

h1 {
    margin-bottom: 25px;
    color: #38bdf8;
    font-size: 2rem;
}

.panel {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 25px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.una-columna {
    grid-template-columns: 1fr;
}

input,
select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #334155;
    background: #0f172a;
    color: white;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56,189,248,0.15);
}

input::placeholder {
    color: #94a3b8;
}

button {
    border: none;
    border-radius: 14px;
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 600;
}

.boton-principal {
    width: 100%;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: white;
}

.boton-principal:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37,99,235,0.35);
}

button:not(.boton-principal) {
    background: #1e293b;
    color: white;
    border: 1px solid rgba(255,255,255,0.08);
}

button:not(.boton-principal):hover {
    background: #334155;
}

.texto-extra {
    text-align: center;
    margin-top: 18px;
    color: #cbd5e1;
}

a {
    color: #38bdf8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.dashboard {
    max-width: 1300px;
}

.grid-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card-menu {
    background: linear-gradient(145deg, #111827, #1e293b);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-menu:hover {
    transform: translateY(-4px);
    border-color: #38bdf8;
    box-shadow: 0 10px 25px rgba(56,189,248,0.18);
}

.card-menu h2 {
    color: #38bdf8;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.card-menu p {
    color: #cbd5e1;
    line-height: 1.5;
}

.tabla-contenedor {
    margin-top: 30px;
}

.tabla-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.tabla-header h2 {
    color: #38bdf8;
}

.tabla-header input {
    max-width: 320px;
}

.lista-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 20px;
    transition: all 0.2s ease;
}

.card-item:hover {
    transform: translateY(-2px);
    border-color: rgba(56,189,248,0.4);
}

.card-info {
    flex: 1;
}

.card-info h3 {
    color: #38bdf8;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.card-info p {
    color: #cbd5e1;
    margin-bottom: 6px;
    line-height: 1.4;
}

.acciones {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.acciones button:first-child {
    background: #0ea5e9;
    color: white;
}

.acciones button:first-child:hover {
    background: #0284c7;
}

.acciones button:last-child {
    background: #dc2626;
    color: white;
}

.acciones button:last-child:hover {
    background: #b91c1c;
}

@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .card-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .acciones {
        width: 100%;
    }

    .acciones button {
        flex: 1;
    }

    .tabla-header {
        flex-direction: column;
        align-items: stretch;
    }

    .tabla-header input {
        max-width: 100%;
    }
}