body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #f2f4ff 0%, #e6e9ff 100%);
    color: #222;
}

header {
    background: linear-gradient(to right, rgb(87, 92, 237), rgba(106, 0, 255, 0.8));
}

.page-agregar-producto {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: calc(100vh - 180px);
}

.form-card {
    width: 100%;
    max-width: 620px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.form-card h2 {
    margin-top: 0;
    color: #4c3dff;
    text-align: center;
}

.form-card p {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

.producto-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.producto-form label {
    font-weight: 700;
    color: #333;
}

.producto-form input[type="text"],
.producto-form input[type="number"],
.producto-form input[type="file"] {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
}

.preview-box {
    background: #f7f7ff;
    border: 1px dashed #8a7dff;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.preview-imagen {
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 14px;
}

.preview-imagen img {
    max-width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.form-actions button,
.form-actions .btn-secondary {
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    text-align: center;
}

.form-actions button {
    background: linear-gradient(135deg, #4c3dff, #7b61ff);
    color: white;
}

.form-actions .btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.form-actions button:hover,
.form-actions .btn-secondary:hover {
    transform: translateY(-2px);
    transition: 0.2s ease;
}

nav a.active {
    color: #ffd700;
}
