/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilo general del cuerpo */
body {
    background-color: #94f9bf;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 
                 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Encabezado */
header {
    width: 100%;
    background-color: #692764;
    height: 180px;
    padding: 30px;
}

h1 {
    text-align: center;
    color: #7fb1a8;
}

/* Menú de navegación */
nav {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto 0 auto;
}

nav ul {
    list-style-type: none;
    display: flex;
    padding: 0;
    margin: 0;
}

nav ul li {
    flex-grow: 1;
}

nav ul li a {
    display: block;
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 10px;
    text-align: center;
}

/* Contenido principal */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    width: 100%;
}

/* Footer */
footer {
    width: 100%;
    height: 60px;
    padding: 20px;
    text-align: right;
    background-color: #7fb1a8;
    position: relative;
    bottom: 0;
}

/* Estilo de elementos seleccionados */
.seleccionado {
    color: #5e0324;
    text-transform: uppercase;
    background-color: #7fb1a8;
    border-radius: 8px;
}

/* Unidad 2 */
#unidad2 {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 30px auto;
}

#formUnidad2 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

#formUnidad2 input,
#formUnidad2 button {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

#formUnidad2 input:focus {
    border-color: #692764;
    outline: none;
    box-shadow: 0 0 3px rgba(105, 39, 100, 0.3);
}

#formUnidad2 button {
    background-color: #692764;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    margin-top: 5px;
}

#formUnidad2 button:hover {
    background-color: #5e0324;
    transform: scale(1.05);
}

/* Unidad 3 */
#estado {
    display: none;
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #fff;
    border: 5px solid #692764;
    border-radius: 4px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* --- BOTONERA --- */

#botonera {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    max-width: 800px;
    width: 100%;
    transition: all 0.3s ease;
}

.boton {
    background-color: #692764;
    color: white;
    font-weight: bold;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.boton:hover {
    background-color: #5e0324;
    transform: scale(1.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
