
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(212,175,55,0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(212,175,55,0.08), transparent 30%),
        #0b0b0b;
    color: #f5f5f5;
}

.contenedor-principal {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.card-formulario,
.card-ancha {
    width: 100%;
    background: #121212;
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 24px;
    padding: 35px;
    box-shadow:
        0 10px 35px rgba(0,0,0,0.45),
        0 0 0 1px rgba(212,175,55,0.08);
    backdrop-filter: blur(10px);
}

.card-formulario {
    max-width: 520px;
}

.card-ancha {
    max-width: 1200px;
}

h1 {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 10px;
    color: #d4af37;
    font-weight: 700;
    letter-spacing: 1px;
}

h2 {
    color: #d4af37;
    margin-bottom: 16px;
    margin-top: 18px;
}

h3 {
    color: #d4af37;
}

.subtitulo {
    text-align: center;
    color: #cfcfcf;
    margin-bottom: 25px;
    font-size: 1rem;
}

.campo {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

label {
    margin-bottom: 8px;
    color: #d4af37;
    font-weight: 600;
    font-size: 0.95rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 15px;
    border-radius: 14px;
    border: 1px solid #2f2f2f;
    background: #1b1b1b;
    color: #f5f5f5;
    font-size: 1rem;
    transition: all 0.25s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 4px rgba(212,175,55,0.15);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-principal {
    display: inline-block;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #0b0b0b;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.25s ease;
}

.btn-principal:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212,175,55,0.25);
}

.enlace-boton {
    display: inline-block;
    text-decoration: none;
    background: #1e1e1e;
    color: #d4af37;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(212,175,55,0.25);
    font-weight: 600;
    transition: all 0.25s ease;
}

.enlace-boton:hover {
    background: #d4af37;
    color: #0b0b0b;
}

.alerta {
    background: rgba(220, 38, 38, 0.15);
    color: #fecaca;
    border: 1px solid rgba(220, 38, 38, 0.3);
    padding: 14px;
    border-radius: 14px;
    margin-bottom: 20px;
}

.exito {
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.25);
    padding: 14px;
    border-radius: 14px;
    margin-bottom: 20px;
}

.acciones-superior {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.dashboard-grid,
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 25px;
}

.dashboard-card {
    background: linear-gradient(145deg, #171717, #101010);
    border: 1px solid rgba(212,175,55,0.18);
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    transition: all 0.25s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212,175,55,0.4);
}

.dashboard-card p {
    font-size: 2rem;
    font-weight: bold;
    color: #f5f5f5;
    margin-top: 10px;
}

.tabla {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    overflow: hidden;
    border-radius: 16px;
}

.tabla thead {
    background: linear-gradient(135deg, #d4af37, #b8860b);
}

.tabla th {
    color: #0b0b0b;
    font-weight: 700;
    padding: 15px;
    text-align: left;
}

.tabla td {
    background: #161616;
    border-bottom: 1px solid #242424;
    padding: 14px;
    color: #f5f5f5;
}

.tabla tr:hover td {
    background: #1d1d1d;
}

.tabla a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
}

.tabla a:hover {
    text-decoration: underline;
}

.receta {
    background: #121212;
    border: 1px solid rgba(212,175,55,0.2);
}

.medicamento {
    background: #1a1a1a;
    border: 1px solid rgba(212,175,55,0.18);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .card-formulario,
    .card-ancha {
        padding: 24px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .tabla {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
