/* ============ RESET GENERAL ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============ ESTILOS GENERALES ============ */
body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    padding: 20px;
}

/* ============ CONTENEDORES ============ */
.container {
    width: min(90%, 900px);    /* Adapta el ancho a cualquier ventana */
    margin: 20px auto;
    overflow-x: auto;          /* Si algo excede, aparece scroll */
}

/* Tarjetas */
.card {
    background: white;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    overflow-x: auto;          /* Garantiza que no se desborde nada */
}

/* ============ TITULOS ============ */
h2, h3 {
    margin-bottom: 10px;
}

/* ============ TABLAS ============ */
.tabla {
    width: 100%;
    min-width: 650px;          /* Evita que se deforme en pantallas pequeñas */
    border-collapse: collapse;
    margin-top: 10px;
    text-align: center;
}

.tabla th {
    background-color: #0d6efd;
    color: white;
}

.tabla th,
.tabla td {
    padding: 10px;
    border: 1px solid #ccc;
}

/* Zebra */
.tabla tr:nth-child(even) {
    background-color: #f7f7f7;
}

/* Hover */
.tabla tr:hover {
    background: #e0ebff;
}

/* ============ BOTONES ============ */
button {
    background-color: #0d6efd;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    font-size: 15px;
    margin: 4px 0;
}

button.secondary {
    background-color: #444;
}

button:hover {
    opacity: 0.85;
}

/* ============ INPUTS ============ */
input, select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
}

/* ============ RESPONSIVE EXTRA ============ */
@media (max-width: 600px) {
    button {
        width: 100%;
    }
}