
/* 
-----------------------------
ESTILOS GENERALES
-----------------------------
*/
body {
    color: #555454;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color:#fcfcfc;
}
/*  pantallas medianas */
@media (max-width: 768px) {
    body {
        font-size: 1.5rem;
    }
}
/*  pantallas pequeñas */
@media (max-width: 576px) {
    body {
        font-size: 1rem;
    }
}


/* 
-----------------------------
BANNER CONTACTO
-----------------------------
*/
.contacto {
    color: #FFCB31;
}
.contacto:hover {
    color:black;
}

#cabecera {
    font-size: 1rem;
    text-align: center;
    background-color: rgb(77, 77, 77);
    color: white;
}
#cabecera p {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 3px;
}

/* 
-----------------------------
MENÚ PRINCIPAL
-----------------------------
*/
.menu-principal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fcfcfc;
}
.logo{
    width: 65%;
}

@media (min-width: 600px) {
.logo  {
    width: 50%;
    }
}
    
@media (min-width: 900px) {
.logo  {
    width: 31%;
    }
}

.logo img {
    width: 100%;
}

#menu-icon {
    cursor: pointer;
    display: block;
    width: 40px;
    height: 30px;
    margin-right: 5%;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
@media (max-width: 600px) {
    #menu-icon {
        margin-right:7%;
        
        }
}
@media (min-width: 601px) and (max-width: 900px) {
    #menu-icon {
    margin-right: 5%;
    }
}
.barra {
    width: 40px;
    height: 4px;
    background-color: #414141;
    margin: 6px 0;
    transition: 0.4s;
    
}

#menu-icon.open .barra:nth-child(2) {
    opacity: 0;
}

#menu-icon.open .barra:nth-child(1) {
    transform: rotate(-45deg);
    position: absolute;
    top: 10px;
}

#menu-icon.open .barra:nth-child(3) {
    transform: rotate(45deg);
    position: absolute;
    top: 10px;
}

/* 
-----------------------------
DESPLEGABLE
-----------------------------
*/

ul {
    list-style-type: none;
    position: fixed;
    top: 0;
    left: 0; /* Posiciona el menú en el lado izquierdo */
    width: 250px; /* Ancho del menú */
    height: 100%;
    background-color: #f9f9f9;
    overflow-x: hidden;
    transition: transform 0.5s ease-in-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    transform: translateX(-100%); /* Esconde el menú */
    margin-top: 30px;
    border-radius: 0 10px 10px 0; /* Redondea los bordes derechos del menú */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* Sombra sutil a la derecha del menú */
    border-left: 1px solid #e0e0e0; /* Borde sutil en el lado izquierdo */
    border-right: 1px solid #dcdcdc; /* Borde sutil en el lado derecho */
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1); /* Sombra sutil en el lado izquierdo */
    background: linear-gradient(to right, #f9f9f9, #eaeaea); /* Gradiente de izquierda a derecha */
    z-index: 99;
}

.menu-section {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px 20px;
    color: #FFCB31;
}

ul.open {
    transform: translateX(0); /* Muestra el menú */
}
    
ul li {
    
    padding: 15px 10px; /* Ajusta el primer valor (15px) para cambiar el espacio vertical */
    border-bottom: 1px solid #FFCB31;
}

ul li:last-child {
    border: none;
}

ul li a {
    font-size: 1.2rem;
    padding: 15px 20px;
    transition: background-color 0.3s, color 0.3s;
    color: #333;
    text-decoration: none;
    display: block;
    border-radius: 5px; /* Bordes redondeados para los enlaces */
   
}

ul li:hover {
    background-color: rgba(255, 203, 49, 0.1); /* Color de fondo al pasar el mouse */
}
ul li a:hover {
    color: #FFCB31; /* Color amarillo dorado al pasar el mouse */
}

ul li:hover a {
    background-color: #FFCB31;
    color: #fff;
}
.fas {
    margin-right: 10px;
}

#menu li:last-child {
    margin-bottom: 0px; /* Ajusta según sea necesario */
}

.social-media {
    text-align: center;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    list-style-type: none; /* Elimina los estilos de lista */
}

.social-media a {
    margin: 0 10px;
    color: #333;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-media a:hover {
    color: #FFCB31;
}


/* 
-----------------------------
Overlay (Fondo oscuro al mostrar el menú)
-----------------------------
*/

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9; /* Asegúrate de que este valor sea menor que el z-index del menú */
    display: none;
}





/* 
-----------------------------
DESTINOS
-----------------------------
*/
.container {
    max-width: 1000px;
    margin: auto;
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.tabs {
    display: flex;
    flex-direction: column;
}

.tablinks {
    background-color: #EDEDED; /* Color más suave que el amarillo anterior */
    color: black; 
    border: 1px solid #ddd;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    font-size: 17px;
    width: 100%;
    transition: 0.3s;
    border-radius: 4px;
    margin-bottom: 8px;
}

.tablinks:hover {
    background-color: #D6D6D6; 
    color: black; 
}

.tabcontent {
    display: none;
    padding: 6px 12px;
    border-top: none;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.card {
    background-color: #FAF3DC;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 30%;
    flex: 1 0 calc(33.33% - 20px); /* Responsividad para las tarjetas */
    margin-bottom: 20px;
    transition: 0.3s;
    border-radius: 5px;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: auto;
}

.card h3 {
    margin: 16px;
}

.card p {
    padding: 0 16px 16px;
}

.description-content {
    display: none;
    background-color: #FAF3DC;
    margin-top: 20px;
    padding: 10px;
    padding-bottom: 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.description-content button {
    background-color: #EDEDED; 
    border: 1px solid #ddd;
    color: black;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 2px 2px;
    transition-duration: 0.4s;
    cursor: pointer;
    border-radius: 4px;
    position: absolute;
    bottom: 5px;
    right: 10px;
    padding: 5px 10px;
    font-size: 14px;
}

/* Media queries para responsividad */
@media only screen and (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .tablinks {
        font-size: 15px;
        padding: 12px 14px;
    }

    .card {
        max-width: 48%; 
        flex: 1 0 calc(50% - 10px);
    }

    .description-content button {
        font-size: 12px;
        padding: 4px 8px;
    }
}

@media only screen and (max-width: 480px) {
    .card {
        max-width: 100%; 
        flex: 1 0 100%;
    }

    .tablinks {
        font-size: 14px;
        padding: 10px 12px;
    }
}


/* 
-----------------------------
BOTÓN DESLIZAR HACIA ARRIBA
-----------------------------
*/
#backToTop {
    position: fixed;
    bottom: 20px;
    left: 20px; 
    z-index: 90;
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: none; 
    display: flex;          
    justify-content: center; 
    align-items: center;     
    margin: 0;
    padding: 0;
}

#backToTop:hover {
    background-color: rgba(249, 242, 36, 0.1);
    transform: scale(1.05);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#backToTop i {
    margin: 0;
}