/* ============================================
   ESTILOS GLOBALES
=============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, sans-serif;
}

body {
    background: #f2f4f7;
    padding: 20px;
    color: #333;
}

.hidden {
    display: none !important;
}

/* ============================================
   CONTENEDORES
=============================================== */

.container {
    max-width: 600px;
    margin: auto;
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* ============================================
   INPUTS
=============================================== */

.input {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fafafa;
    outline: none;
    transition: border 0.2s;
}

.input:focus {
    border-color: #4caf50;
    background: #fff;
}

/* ============================================
   BOTONES
=============================================== */

button {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s ease-in-out;
}

.btn-primary {
    background: #4caf50;
    color: white;
}

.btn-primary:hover {
    background: #43a047;
}

.btn-secondary {
    background: #2196f3;
    color: white;
}

.btn-secondary:hover {
    background: #1e88e5;
}

.btn-danger {
    background: #e53935;
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
}

.btn-delete {
    background: #ff5252;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    float: right;
}

/* Botones pequeños (admin) */
.btn-small {
    width: auto;
    padding: 6px 10px;
    font-size: 14px;
    margin-top: 6px;
}

/* ============================================
   TARJETAS Y CAJAS
=============================================== */

.item {
    padding: 10px;
    margin-bottom: 8px;
    background: #f8f8f8;
    border-left: 4px solid #4caf50;
    border-radius: 8px;
}

.section-box {
    background: #ffffff;
    padding: 15px;
    margin-top: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.venta-card {
    background: #f7f7f7;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 4px solid #4caf50;
}

/* ============================================
   ANIMACIONES
=============================================== */

.fade-in {
    animation: fadein 0.4s ease-in-out;
}

@keyframes fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   TITULOS
=============================================== */

h2, h3, h4 {
    margin-bottom: 10px;
}

/* ============================================
   RESPONSIVE
=============================================== */

@media (max-width: 600px) {
    .container {
        padding: 18px;
    }
}
