/* ===========================
   Reset básico
=========================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* ===========================
   Body
=========================== */
body {
    background-color: #f5f5f5;
    padding: 20px;
    color: #333;
}

/* ===========================
   Encabezados
=========================== */
h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: #1a1a1a;
}

h2 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: #1a1a1a;
    font-size: 22px;
}

h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
    color: #444;
}

/* ===========================
   Secciones
=========================== */
section {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ===========================
   Formularios
=========================== */
form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

form label {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

form input[type="text"],
form input[type="number"] {
    padding: 8px 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

form button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #45a049;
}

/* ===========================
   Tabla
=========================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table th, table td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
    font-size: 14px;
}

table th {
    background-color: #f0f0f0;
    font-weight: bold;
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 768px) {
    form {
        flex-direction: column;
    }
    
    form label {
        flex: 1 1 100%;
    }
    
    table th, table td {
        font-size: 12px;
        padding: 8px;
    }
}
