*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}
body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.marseg_head{
    max-width: 100%;
    background: #ffff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.marseg_head img{
    width: 5%;
    height: auto;
    max-width: 100px;
    margin: 1%;
}

.marseg_head h1{
    font-family: 'Times New Roman', Times, serif;
    font-size: 2.5vw;
    color: #330006;
    text-align: center;
    margin: 1%;
}

.marseg_head nav{
    width: 60%;
    display: flex;
    margin: 1% auto;
}


/* ===== MENÚ PRINCIPAL ===== */

.menu{
    width: 70%;
    background-color: #ffff;
    border-radius: 10%;
}

.menu ul li{
    list-style: none;
}

/* Cada item del menú */
.menu ul li{
    position: relative;   /* necesario para el dropdown */
}

/* Links principales */
.menu ul li a{
    display: block;
    padding: 18px 25px;
    color: #330006;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
  
}

/* Hover del menú principal */
.menu ul li a:hover{
    background-color: #e7edff;
}

/* ===== SUBMENÚ (DROPDOWN) ===== */

.submenu{
    display: none;            /* oculto por defecto */
    position: absolute;       /* flotante */
    top: 100%;                /* justo debajo */
    left: 0;
    min-width: 250px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    padding: 10px 0;
    z-index: 9999;            /* para que quede encima */
}

/* Items del submenu */
.submenu li{
    width: 100%;
}

/* Links del submenu */
.submenu li a{
    display: block;
    padding: 12px 20px;
    color: #330006;
    font-weight: normal;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: #ffff;
}

/* Hover submenu */
.submenu li a:hover{
    background-color: #330006;
    padding-left: 25px;
}

/* Mostrar submenu al pasar mouse */
.dropdown:hover .submenu{
    display: list-item;
}

.marseg_head a{
    font-family: 'Times New Roman', Times, serif;
    font-size: 1vw;
    color: #330006;
    text-decoration: none;
    text-align: center;
    padding: 1%;
    width: 100%;
}

main{
    margin-top: 5%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form_marseg{
box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
padding: 50px  55px;
border-radius: 20px;
color: #020409;
box-shadow: #330006;

}

.form_marseg h1{
    font-family: 'Times New Roman', Times, serif;
    display: flex;
    align-items: center;   
    color: #330006;  
}

.form_marseg button{
        justify-content: center;
    align-items: center;
}

.form_marseg {
  margin-bottom: 35px;    /* espacio entre campos */
}

.form_marseg label {
  display: block;         /* etiqueta arriba del input */
  font-weight: bold;
  margin-bottom: 8px;
  color: #330006;
}

.form_marseg input {
  width: 100%;            /* ocupa todo el ancho */
  padding: 8px;
  border: 1px solid #aaa;
  border-radius: 15px;
  background-color: #47060f42;
}

.botones{
    display: flex;
    justify-content: center;
    gap: 15px; /* espacio entre botones */
    margin-top: 20px;
}

.btnsesion{
    display: inline-block;
    font-family: 'Times New Roman', Times, serif;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    background-color: #330006;
    text-decoration: none;
    color: #ffff;
}

.btnsesion:hover{
    background-color: #8a7272;
    color: #330006;
    transition: 0.1s;
}

.registro {
  margin-top: 15px;
  font-size: 14px;
  text-align: center;
}

.registro a {
  color: #007BFF; 
  text-decoration: none;
}

.registro a:hover {
  text-decoration: underline;
}


.pie{
    width: 100%;
    height: 150px;
    background: #330006;
    margin-top: 10%;
}

.pie p{
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.2vw;
    color:#e7edff;
    text-align: center;
    letter-spacing: 0.5px;
}