/* Estilo global y restablecimiento básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    max-width: 800px;
    margin: auto;
}

/* Encabezados */
h1, h2, h3 {
    margin-bottom: 15px;
    color: #333;
}

h1 {
    font-size: 2rem;
    border-bottom: 2px solid #007acc;
    padding-bottom: 10px;
}

h2 {
    font-size: 1.5rem;
    color: #007acc;
}

h3 {
    font-size: 1.25rem;
    color: #005f99;
}

/* Párrafos y texto */
p {
    margin-bottom: 15px;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

/* Formularios */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
input[type="url"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #fff;
    transition: border 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    border-color: #007acc;
    outline: none;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 10px;
}

textarea {
    resize: vertical;
}

/* Botones */
input[type="submit"],
input[type="reset"],
button {
    background-color: #007acc;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
button:hover {
    background-color: #005f99;
}

input[type="submit"]:active,
input[type="reset"]:active,
button:active {
    background-color: #004f7a;
}

input[type="submit"]:disabled,
input[type="reset"]:disabled,
button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Fieldsets y Legends */
fieldset {
    border: 1px solid #007acc;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

legend {
    font-weight: bold;
    padding: 0 10px;
    color: #007acc;
}

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #007acc;
    color: white;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Enlaces */
a {
    color: #007acc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #005f99;
}

/* Listas */
ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}
