/*==========================
    RESET GENERAL
===========================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#f5f5f5;
    color:#222;
}

/*==========================
    HEADER
===========================*/

header{

    width:100%;
    background:#f5c85d;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 40px;
    box-shadow:0 2px 8px rgba(0,0,0,.15);
}

.logo{

    display:flex;
    align-items:center;
    gap:15px;

}

.logo img{

    width:70px;
    height:70px;
    border-radius:50%;

}

.logo h1{

    font-size:30px;
    color:#000;
    font-weight:bold;

}

/*==========================
    BUSCADOR
===========================*/

.buscador{

    display:flex;
    width:420px;
    height:45px;

}

.buscador input{

    width:100%;
    border:none;
    outline:none;
    padding:12px 18px;
    border-radius:30px 0 0 30px;
    font-size:16px;

}

.buscador button{

    width:60px;
    border:none;
    background:#fff;
    border-radius:0 30px 30px 0;
    cursor:pointer;
    transition:.3s;

}

.buscador button:hover{

    background:#ffe39a;

}

/*==========================
    MENU
===========================*/

nav{

    display:flex;
    align-items:center;
    gap:20px;

}

nav a{

    text-decoration:none;
    color:#000;
    font-weight:bold;
    transition:.3s;

}

nav a:hover{

    color:#7b5600;

}

.crear{

    background:#d69300;
    color:white;
    padding:12px 22px;
    border-radius:30px;

}

.crear:hover{

    background:#a76b00;
    color:white;

}

/*==========================
    BOTONES USUARIO
===========================*/

.menuUsuario{

    background:white;
    padding:18px;
    display:flex;
    justify-content:center;
    gap:18px;
    flex-wrap:wrap;

}

.menuUsuario button{

    border:none;
    padding:12px 20px;
    background:#f5c85d;
    border-radius:30px;
    cursor:pointer;
    font-size:15px;
    font-weight:bold;
    transition:.3s;

}

.menuUsuario button:hover{

    background:#d69300;
    color:white;
    transform:translateY(-2px);

}

/*==========================
    MENU PRINCIPAL
===========================*/

.menuPrincipal{

    width:90%;
    margin:20px auto;

    display:flex;
    justify-content:center;
    gap:20px;

}

.menuPrincipal button{

    border:1px solid #ccc;
    background:white;
    padding:14px 25px;
    border-radius:30px;
    cursor:pointer;
    transition:.3s;
    font-weight:bold;

}

.menuPrincipal button:hover{

    background:#f5c85d;

}

/*==========================
    MAIN
===========================*/

main{

    width:95%;
    margin:auto;

    display:flex;
    gap:30px;
    align-items:flex-start;

}

/*==========================
    EVENTOS
===========================*/

.contenedorEventos{

    flex:4;

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(250px,1fr));

    gap:25px;

}

/*==========================
    TARJETAS
===========================*/

.evento{

    background:#ffe18a;

    border-radius:25px;

    padding:18px;

    text-align:center;

    transition:.4s;

    box-shadow:0 5px 12px rgba(0,0,0,.15);

}

.evento:hover{

    transform:translateY(-8px);

}

.evento img{

    width:100%;

    height:180px;

    object-fit:cover;

    border-radius:20px;

    margin-bottom:15px;

}

.evento h2{

    margin-bottom:12px;

    font-size:23px;

}

.evento p{

    margin:8px 0;

    font-size:15px;

}

.evento i{

    color:#b67900;

    margin-right:8px;

}

.evento button{

    margin-top:18px;

    border:none;

    background:#c79600;

    color:white;

    padding:12px 28px;

    border-radius:30px;

    cursor:pointer;

    transition:.3s;

    font-weight:bold;

}

.evento button:hover{

    background:#8e6500;

}

/*==========================
    PANEL DERECHO
===========================*/

.panel{

    flex:1;

    display:flex;

    flex-direction:column;

    gap:25px;

}

.guardados{

    background:white;

    border-radius:20px;

    min-height:250px;

    padding:20px;

    box-shadow:0 4px 10px rgba(0,0,0,.15);

}

.guardados h2{

    margin-bottom:20px;

    text-align:center;

}

.guardados p{

    text-align:center;

    color:gray;

}

/*==========================
    MAPA
===========================*/

.mapa{

    background:white;

    border-radius:20px;

    overflow:hidden;

    box-shadow:0 4px 10px rgba(0,0,0,.15);

}

.mapa iframe{

    width:100%;

    height:320px;

    border:none;

}

/*==========================
    FOOTER
===========================*/

footer {
    width: 100%;
    background: #191919;
    color: white;

    margin-top: 50px;

    padding: 40px 0 20px 0;
}


/* CONTENEDOR SUPERIOR */

.footer-top {
    width: 1200px;
    max-width: 90%;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* REDES SOCIALES */

.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social a {
    width: 43px;
    height: 43px;

    display: flex;
    justify-content: center;
    align-items: center;

    border: 1px solid #f5a900;
    border-radius: 50%;

    color: #f5a900;

    text-decoration: none;

    font-size: 18px;

    transition: 0.3s;
}

.footer-social a:hover {
    background: #f5a900;
    color: #111;
}


/* BOTONES DE LA DERECHA */

.footer-buttons {
    display: flex;
    gap: 12px;
}

.footer-buttons a {
    background: #f5a900;

    color: #111;

    text-decoration: none;

    padding: 10px 20px;

    border-radius: 5px;

    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 15px;

    transition: 0.3s;
}

.footer-buttons a:hover {
    background: #ffc44d;
}


/* LÍNEA DEL FOOTER */

.footer-line {
    width: 1200px;
    max-width: 90%;

    height: 1px;

    background: #333;

    margin: 30px auto 25px auto;
}


/* PARTE INFERIOR */

.footer-bottom {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;
}


/* LOGO */

.footer-logo-container {
    display: flex;

    justify-content: center;

    align-items: center;

    margin-bottom: 38px;
}

.footer-logo-container img {
    width: 100px;
    height: 100px;

    object-fit: cover;

    border-radius: 50%;

    display: block;
}


/* UBICACIÓN */

.footer-location {
    color: #f5c85d;

    font-size: 14px;

    margin: 0 0 8px 0;
}


/* AÑO */

.footer-year {
    color: #f5c85d;

    font-size: 14px;

    font-weight: bold;

    margin: 0;
}

/* Ubicación */
.footer-inferior h3 {
    color: #f5c85d;

    font-size: 14px;

    margin-bottom: 8px;
}

/* Año */
.footer-inferior p {
    color: #f5c85d;

    font-size: 14px;

    font-weight: bold;
    margin: 0;
}

/*==========================
    MODO OSCURO
===========================*/

/*================ MODO OSCURO ================*/

body.modo-oscuro {
    background: #121212;
    color: #f5f5f5;
}

/* Header */
body.modo-oscuro header {
    background: #1e1e1e;
    color: #ffffff;
}

body.modo-oscuro header h1 {
    color: #ffffff;
}

/* Buscador */
body.modo-oscuro .buscador input {
    background: #2b2b2b;
    color: #ffffff;
    border-color: #555;
}

body.modo-oscuro .buscador input::placeholder {
    color: #bbbbbb;
}

/* Botones de usuario */
body.modo-oscuro .menuUsuario,
body.modo-oscuro .menuPrincipal {
    background: #181818;
}

body.modo-oscuro button {
    background: #2b2b2b;
    color: #ffffff;
    border-color: #555;
}

body.modo-oscuro button:hover {
    background: #3a3a3a;
}

/* Enlaces */
body.modo-oscuro a {
    color: #ffffff;
}

/* Contenido principal */
body.modo-oscuro main {
    background: #121212;
}

body.modo-oscuro .contenedorEventos {
    background: #121212;
}

body.modo-oscuro .panel {
    background: #1e1e1e;
}

/* Tarjetas de eventos */
body.modo-oscuro .evento,
body.modo-oscuro .tarjeta-evento {
    background: #1e1e1e;
    color: #ffffff;
    border-color: #444;
}

/* Panel de guardados */
body.modo-oscuro .guardados {
    background: #1e1e1e;
    color: #ffffff;
}

/* Footer */
body.modo-oscuro footer {
    background: #0d0d0d;
    color: #ffffff;
}

/* Textos */
body.modo-oscuro p,
body.modo-oscuro h1,
body.modo-oscuro h2,
body.modo-oscuro h3 {
    color: #ffffff;
}

/* Transición */
body,
header,
main,
footer,
.menuUsuario,
.menuPrincipal,
.panel,
.guardados,
.evento,
.tarjeta-evento,
.buscador input,
button {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease;
}
body.modo-oscuro {
    background-color: #121212 !important;
    color: #ffffff !important;
}

/*==========================
    RESPONSIVE
===========================*/

@media(max-width:1100px){

header{

    flex-direction:column;
    gap:20px;

}

main{

    flex-direction:column;

}

.panel{

    width:100%;

}

.buscador{

    width:100%;

}

}

@media(max-width:768px){

.menuPrincipal{

    flex-direction:column;

}

.menuUsuario{

    flex-direction:column;

}

.contenedorEventos{

    grid-template-columns:1fr;

}

  /* ==============================
   FOOTER RESPONSIVE
   ============================== */

@media (max-width: 768px) {

    .footer-contenido {
        width: 90%;

        flex-direction: column;

        gap: 25px;

        align-items: center;
    }

    .footer-redes {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-botones {
        flex-direction: column;
        width: 100%;
        max-width: 250px;
    }

    .footer-botones a {
        justify-content: center;
    }

    .footer-logo-container img {
        width: 80px;
        height: 80px;
    }
}
}
/* ==================================================
   BOTONES EN MODO OSCURO
   ================================================== */

/* Botones del menú de usuario y menú principal */
body.modo-oscuro .menuUsuario button,
body.modo-oscuro .menuPrincipal button {
    background-color: #f4ca5c !important;
    color: #222222 !important;
    border-color: #f4ca5c !important;
}

/* Iconos de los botones */
body.modo-oscuro .menuUsuario button i,
body.modo-oscuro .menuPrincipal button i {
    color: #222222 !important;
}

/* Efecto al pasar el mouse */
body.modo-oscuro .menuUsuario button:hover,
body.modo-oscuro .menuPrincipal button:hover {
    background-color: #e5b83f !important;
    color: #222222 !important;
}

/* Iconos al pasar el mouse */
body.modo-oscuro .menuUsuario button:hover i,
body.modo-oscuro .menuPrincipal button:hover i {
    color: #222222 !important;
}
