body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    padding: 30px;
}

.contenedor {
    background: white;
    padding: 25px;
    max-width: 800px;
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.boton {
    background-color: #007BFF; /* Azul */
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s;
}

.boton:hover {
    background-color: #0056b3; /* Azul más oscuro al pasar el ratón */
}
.boton2 {
    background-color: #fc0509; /* Rojo */
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s;
}

.boton2:hover {
    background-color: #b30000; /* Rojo más oscuro al pasar el ratón */
}

h2 {
    margin-top: 0;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="password"],
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-sizing: border-box;
}

textarea[name="descripcion"] {
    min-height: 140px;
}

textarea[name="claves"] {
    min-height: 60px;
}

textarea {
    resize: vertical;
}

input[type="submit"],
input[type="button"],
a[href*="formulario"],
a[href*="index"] {
    background: #007bff;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    margin-right: 10px;
    transition: background 0.3s;
}

input[type="submit"]:hover,
input[type="button"]:hover,
a[href*="formulario"]:hover,
a[href*="index"]:hover {
    background: #0056b3;
}

a[href*="formulario"]:has(> img),
a[href*="formulario"]:has(> svg),
a[href*="formulario"]:contains("✏️") {
    background: none !important;
    padding: 0;
    margin: 0;
    color: inherit;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 15px;
}

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

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

th {
    background-color: #f0f0f0;
}

.error {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
}

a {
    margin-right: 10px;
}
