/* Esto va en los dos archivos */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
}
*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

.marseg_head{
    max-width: 100%;
    background-color: #ffff;
    display: flex;
    align-items: center;
    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%;
}


/*Contenedor del banner*/
.marseg-banner {
    width: 1000%;
    max-width: 100%;
    margin: auto; 
    display: flex;
    justify-content: center;
    position: relative;
}

/*Imagen del banner*/
.marseg-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/*Efecto del difuminado*/
.marseg-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}


.marseg_head nav{
    width: 60%;
    display: flex;
    margin: 1% auto;
}

.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%;
}

/* ===== 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;
}

.pie {
    background-color: #330006;
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: 0 !important; /* Quita el blanco de arriba */
}

.pie-redes {
    display: flex;
    justify-content: center; /* Centra los iconos de redes */
    gap: 25px;
    margin-top: 20px;
}

.pie-redes i {
    color: white; /* Cambia los iconos de negro a blanco */
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.pie-redes i:hover {
    transform: scale(1.2);
    color: #e9ebf1;
}


