/* --- EFECTO FLASH AL CAMBIAR DE PÁGINA --- */
body {
    animation: flash 0.4s ease-in-out;
}

@keyframes flash {
    0% { opacity: 0.3; filter: brightness(2); }
    100% { opacity: 1; filter: brightness(1); }
}

/* --- ESTILOS GENERALES --- */

body {
    font-family: 'Cookie', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---------------- HEADER ---------------- */

header{
    background:#0C1142;
    color:white;
    display:flex;
    align-items:center;
    padding:15px 20px;
    position:relative;
    z-index: 1000;
}

nav{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    background:#D4AF37;
}

header h1{
    margin:0;
}

/* ---------------- MENU ---------------- */

nav{
    background:#D4AF37;
}

.menu{
    list-style:none;
    display:flex;
    margin:0;
    padding:0;
}

.menu li{
    position:relative;
}

.menu li a{
    color:#0C1142;
    text-decoration:none;
    padding:15px 20px;
    display:block;
    font-weight:bold;
    transition:0.3s;
}

.menu li a:hover{
    background:#0C1142;
    color:#D4AF37;
}

/* BOTON ACTIVO */

.menu li a.active{
    background:#0C1142;
    color:#D4AF37;
    border-bottom:3px solid white;
}

/* ---------------- SUBMENU ---------------- */

.submenu ul{
    display:none;
    position:absolute;
    background:#D4AF37;
    top:50px;
    left:0;
    flex-direction:column;
    min-width:160px;
}

.submenu:hover ul{
    display:block;
}

.submenu ul li a{
    padding:10px;
}

/* ---------------- MENU HAMBURGUESA ---------------- */

.menu-icon{
    font-size:28px;
    cursor:pointer;
    display:none;
}

/* ---------------- CONTENEDOR PRINCIPAL ---------------- */

.container{
    display:flex;
    flex-wrap:wrap;
}

.main-content{
    flex:70%;
    padding:20px;
    background:#f1f1f1;
}

.sidebar{
    flex:30%;
    padding:20px;
    background:#D4AF37;
    color:#0C1142;
}

/* ---------------- FOOTER ---------------- */

footer{
    background:#0C1142;
    color:white;
    text-align:center;
    padding:10px;
    width:100%;
}

/* ---------------- SLIDER ---------------- */

.slider{
    width:100%;
    overflow:hidden;
    position:relative;
    height:400px;
}

.slides{
    display:flex;
    width:100%;
    transition:transform 0.5s ease-in-out;
}

.slide{
    width:100%;
    flex-shrink:0;
}

.slide img{
    width:100%;
    height:400px;
    object-fit:cover;
}

/* ---------------- INFO E IMAGEN ---------------- */

.info-section{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px;
}

.info-text{
    flex:1;
}

.info-text h2{
    text-align:center;
    margin-bottom:15px;
}

.info-text p{
    text-align:center;
    line-height:1.6;
}

.info-image{
    flex:1;
    display:flex;
    justify-content:center;
}

.info-image img{
    width:300px;
    height:300px;
    border-radius:50%;
    object-fit:cover;
    box-shadow:0 8px 20px rgba(0,0,0,0.3);
    border:5px solid #D4AF37;
}

/* ---------------- ICONOS FLOTANTES ---------------- */

.social-icons{
    position:fixed;
    right:0;
    top:50%;
    transform:translateY(-50%);
    display:flex;
    flex-direction:column;
    gap:10px;
    z-index:1000;
    background:rgba(12,17,66,0.8);
    padding:10px;
    border-radius:10px 0 0 10px;
}

.social-icons img{
    width:40px;
    transition:0.3s;
}

/* ---------------- RESPONSIVE ---------------- */

@media screen and (max-width:768px){

.menu-icon{
    display:block;
}

.menu{
    flex-direction:column;
    display:none;
    width:100%;
    background:#D4AF37;
}

.menu li{
    text-align:center;
}

.menu li ul{
    position:static;
}

nav.active .menu{
    display:flex;
}

.container{
    flex-direction:column;
}

.main-content,
.sidebar{
    flex:100%;
}

.slider,
.slide img{
    height:250px;
}

}