/* ------------------------------
   RESET Y BASE
--------------------------------*/
* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background: #f2f2f2;
    color: #333;
    font-size: 14px;
}

/* ------------------------------
   LINKS
--------------------------------*/
a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* ------------------------------
   TARJETAS (CARDS)
--------------------------------*/
.card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}

/* ------------------------------
   BOTONES
--------------------------------*/
button,
input[type="submit"],
input[type="button"] {
    background: #007bff;
    color: white;
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: background .2s;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: #0056b3;
}

/* Botón verde (carrito u otros) */
.cart-button {
    background: #28a745;
    border-radius: 50%;
    padding: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-button img {
    width: 26px;
    height: 26px;
    filter: invert(1);
}

.cart-button:hover {
    background: #1e7e34;
}

/* ------------------------------
   INPUTS
--------------------------------*/
input[type="text"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 9px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-top: 5px;
    font-size: 14px;
    background: #fff;
}

textarea {
    resize: vertical;
}

/* ------------------------------
   FORMULARIOS
--------------------------------*/
label {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
    color: #444;
}

.input-group {
    margin-bottom: 15px;
}

/* ------------------------------
   TITULOS Y CABECERAS
--------------------------------*/
.title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.subtitle {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: #777;
    margin-bottom: 8px;
}

/* Error de login o mensajes */
.error {
    color: #d9534f;
    font-size: 14px;
    min-height: 20px;
    margin-bottom: 8px;
}

/* ------------------------------
   ICONOS
--------------------------------*/
img.icono {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ------------------------------
   CONTENEDORES FLEXIBLES
--------------------------------*/
.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-center {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ------------------------------
   TABLAS (solo para datos)
--------------------------------*/
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    background: white;
}

table th {
    background: #007bff;
    color: white;
    text-align: left;
    padding: 10px;
}

table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

table tr:nth-child(even) {
    background: #f9f9f9;
}

table tr:hover {
    background: #eef4ff;
}

/* Negrita en celdas */
td.bold {
    font-weight: bold;
}
