/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #004D40;
    color: white;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
}

/* Contenedor principal */
.main-container {
    display: flex;
}

/* Menú lateral */
.sidebar {
    width: 200px;
    background-color: #00796B;
    padding: 20px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
}

.sidebar ul li a:hover {
    color: #81C784;
}

/* Barra de navegación superior */
.top-nav {
    background-color: #004D40;
    padding: 10px;
}

.top-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

.top-nav ul li {
    margin: 0 15px;
}

.top-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
}

.top-nav ul li a:hover {
    color: #81C784;
}

/* Secciones */
.content {
    flex: 1;
    padding: 20px;
}

section {
    margin-bottom: 30px;
}

h2 {
    color: #004D40;
    margin-bottom: 10px;
}

/* Formularios */
form {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    margin-bottom: 10px;
}

form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    background-color: #00796B;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #004D40;
}

/* Footer */
footer {
    background-color: #004D40;
    color: white;
    padding: 20px 0;
    text-align: center;
}

footer p {
    margin: 5px 0;
}


.contenedor {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    border: 1px solid #ccc;
    border-radius: 15px;
    text-align: center;
    background-color: #f9f9f9;
}

.mensaje {
    padding: 15px;
    margin: 20px auto;
    border-radius: 10px;
    font-size: 18px;
    width: 80%;
}

.mensaje.exito {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mensaje.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.boton-volver {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 10px;
    text-decoration: none;
}

.boton-volver:hover {
    background-color: #0056b3;
}

.botones {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}



@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .botones {
        flex-direction: column;
        align-items: center;
    }

    .botones form {
        margin-bottom: 10px;
    }
}
/* Estilo para los botones dentro de la tabla */
td form {
    display: inline-block;
    margin: 2px;
}

td button {
    width: 100px; /* Ajusta según el espacio disponible */
    padding: 6px 10px;
    font-size: 0.9em;
    border-radius: 5px;
    background-color: #00796B;
    color: white;
    border: none;
    cursor: pointer;
}

td button:hover {
    background-color: #004D40;
}
.imagen {
    text-align: center;
    width: 100px;
}

.imagen img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
}

.imagen p {
    margin-top: 10px;
    font-size: 0.95em;
    color: #555;
}