* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #ffe259 0%, #ffa751 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 25px 15px;
}

.formulario, .menu {
    background: #fff;
    width: 100%;
    max-width: 680px;
    padding: 35px 40px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.formulario h2, .menu h1 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    border-bottom: 3px solid #ffb700;
    padding-bottom: 10px;
}

.formulario input[type="text"], .formulario select {
    width: 100%;
    padding: 11px 12px;
    margin-top: 4px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    background: white;
}

.formulario input[type="text"]:focus, .formulario select:focus {
    border-color: #ffb700;
    box-shadow: 0 0 5px rgba(255, 183, 0, 0.5);
}

/* BOTONES ALINEADOS */
.botones {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 20px;
    width: 100%;
}

.botones input[type="submit"] {
    flex: 1;
    padding: 9px 5px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
    transition: 0.2s;
}

.botones input[value="Insertar"] { background: #0f4d2d; }
.botones input[value="Eliminar"] { background: #a61b1b; }
.botones input[value="Actualizar"] { background: #e89c00; color: #222; }
.botones input[value="Listar"] { background: #0d7bff; }
.botones input[value="Regresar"] { background: #5f6b73; }

.botones input:hover {
    filter: brightness(1.15);
    transform: scale(1.03);
}

/* TABLA */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    font-size: 14px;
}
table tr:first-child { background: #ffb700; color: #222; font-weight: bold; }
table td { padding: 10px; border: 1px solid #ddd; text-align: center; }
table tr:nth-child(even) { background: #fff9e6; }


.menu p { color: #666; margin-bottom: 25px; font-size: 14px; text-align: center; }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.opciones a {
    text-decoration: none;
    padding: 20px 10px;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    font-size: 15px;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.opciones a span { font-size: 28px; }
.opciones a:hover { transform: scale(1.05); filter: brightness(1.1); }
.btn-clientes { background: #0f4d2d; }
.btn-categorias { background: #a61b1b; }
.btn-productos { background: #e89c00; color: #222; }
.btn-usuarios { background: #0d7bff; }