/* Estilos básicos */

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #fff;
    width: 100%;
    display: flex;
    flex-direction: column;
}

#whats {
    position: fixed;
    width: 100px;
    right: 0;
    top: 30%;
    z-index: 100;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#whats:hover {
    transform: translateY(-4px);
}

#whats img {
    width: 100%;
}

#contenedorBody {
    display: flex;
    height: 100vh;
    flex-direction: row;
    flex-wrap: wrap;
}

#logoM {
    display: none;
}

/* Sidebar */

#sideBar {
    width: 10%;
    height: 100%;
    background-color: #cb5cff;
    border-radius: 25px 0 0 25px;
    display: flex;
    justify-content: end;
}

#cuerpoSidebar {
    width: 90%;
    height: 100%;
    background-color: #5c38ff;
    border-radius: 25px 0 0 25px;
}

#logo {
    height: 15%;
}

#logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 10px 0;
}

#logo img {
    width: 80%;
}

#iconos_sidebar {
    width: 100%;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.icono {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 12.5%;
    text-decoration: none;
    color: #fff;
    font-size: 70%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icono:hover {
    transform: translateY(-4px);
}

.icono img {
    width: 25%;
    margin-bottom: 5%;
}

.icono.seleccionado {
    width: 93%;
    background-color: #fff;
    color: #282f39;
    margin-left: 7%;
    border-radius: 50px 0 0 50px;
}

/* Cuerpo */

#banner {
    width: 100%;
    max-height: 400px;
}

#contenedorCuerpo {
    width: 90%;
    height: 100%;
}

#cuerpo {
    width: 100%;
    height: 85%;
    max-height: 85%;
    display: flex;
    padding-top: 20px;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

/* Grid Index */

#chartInferiorI {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* Todos los cuadros */
.chartI {
    background-color: #f5f5f5;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chartI:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Imagen en modo pequeño */
.chartI:not(.activo)::before {
    content: '';
    position: absolute;
    background-size: cover;
    background-position: center;
    inset: 0;
    opacity: 1;
    transition: 0.3s;
}

/* Imagen individual por id */
#chartAventurero:not(.activo)::before {
    background-image: url('../img/exp_aventurero.png');
}

#chartVino:not(.activo)::before {
    background-image: url('../img/exp_vinoarte.png');
}

#chartCreativo:not(.activo)::before {
    background-image: url('../img/exp_splatter_room.png');
}

#chartSwat:not(.activo)::before {
    background-image: url('../img/exp_swat.png');
}

#chartHeroe:not(.activo)::before {
    background-image: url('../img/exp_heroe.png');
}

/* Contenido oculto en mini */
.chartI:not(.activo) .contenedorInfo {
    display: none;
}

/* El activo ocupa 2x2 */
.chartI.activo {
    grid-column: span 1;
    grid-row: span 2;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
    cursor: default;
}

/* Mostrar contenido solo en activo */
.chartI.activo .contenedorInfo {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.chartI.fade-in {
    animation: fadeIn 0.5s ease;
}

.contenedorInfo {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contenedorInfo ul {
    margin-bottom: 20%;
}

.contenedorInfo a {
    padding-left: 20%;
}

.infoExp {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-top: 20%;
}

.infoExp h2,
p {
    margin: 2px;
}

.tiempoExp h2 {
    font-size: 30px;
}

.precioExp {
    text-align: right;
}

.precioExp h2 {
    font-size: 35px;
    color: #5c38ff;
}

/* Index */

#youtube {
    width: 900px;
    height: 300px;
    margin: 30px 80px;
}

#chartSuperior {
    width: 97%;
    display: flex;
    background-color: #ededed;
    border-radius: 30px;
}

#chartInferior {
    width: 97%;
    height: auto;
    margin-top: 10px;
    display: flex;
}

#contenedorIzquierdo {
    width: 50%;
    height: auto;
    border: 2px solid #e4e4f4;
    border-radius: 10px;
}

#contenedorDerecho {
    width: 50%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid #e4e4f4;
    border-radius: 10px;
    margin-left: 30px;
}

#contenedorDerecho img {
    width: 70%;
}

#contenedorDerechoN {
    width: 50%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 2px solid #e4e4f4;
    border-radius: 10px;
    margin-left: 30px;
    padding: 0 20px;
}

#contenedorDerechoN img {
    width: 100%;
    margin-top: 30px;
}

#botonesEventos {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 2%;
}

#botonesEventos a img {
    width: 100%;
}

#contenedorDerechoVacaciones {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-left: 30px;
    border: 2px solid #e4e4f4;
    border-radius: 10px;
    margin-left: 30px;
}

#textoSuperior {
    height: 100%;
    width: 100%;
    padding: 10px 0 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#chartSuperior h1 {
    font-size: 30px;
}

#chartSuperior h2 {
    color: #a54bcf;
    font-size: 20px;
}

#chartSuperior h3 {
    font-size: 18px;
}

#chartSuperior h4 {
    font-size: 15px;
}

#contenedorIzquierdo h2 {
    margin-left: 30px;
}

#contenedorIzquierdo p {
    font-size: 16px;
    margin: 30px;
}

/* Footer */

#footer {
    width: 100%;
    height: 12%;
    margin-top: 10px;
    border-top: 1px solid #b6b6b7;
    display: flex;
    justify-content: center;
    align-items: center;
}

#footerContenedor {
    width: 97%;
    height: 80%;
    background-color: #b6b6b7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    font-size: 12px;
}

#footer_social {
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#footer_social a {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#footer_social a:hover {
    transform: translateY(-4px);
}

#footer_social img {
    width: 80%;
    padding-top: 10px;
}

#vacacionesBaner {
    width: 80%;
    margin-left: 8%;
}

#botonesVacaciones {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 50px;
}

#botonesHeroe {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Contacto */

#contacto {
    width: 100%;
    height: 100%;
    margin-left: 20px;
}

#formulario {
    width: 90%;
    height: 1353px;
}

/* Nosotros */


/* Tienda */

#chartInferiorT {
    width: 97%;
    height: auto;
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
}

.producto {
    width: 30%;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
}

.producto:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.producto img {
    width: 80%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.producto h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 10px 0 5px 0;
    text-align: center;
}

.producto p.precio {
    color: #cb5cff;
    font-weight: bold;
    font-size: 1rem;
    margin: 5px 0 15px 0;
}

.producto button {
    padding: 10px 20px;
    background-color: #5c38ff;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: bold;
}

.producto button:hover {
    background-color: #4b2fd4;
}

/* Blog */

.cuerpo_blog {
    width: 100%;
    display: flex;
    background-color: #fff;
    padding-top: 40px;
    padding-bottom: 20px;
}

#blog {
    width: 70%;
    margin: 0 5%;
}

#sub-blog h1,
h5 {
    color: #000;
}

#blog img {
    width: 70%;
    margin: 20px 15%;
}

#blog h1 {
    margin-top: 30px;
    font-size: 40px;
}

#blog p {
    font-size: 20px;
    width: 70%;
    margin: 20px 15%;
    line-height: 30px;
    text-align: left;
}

#rss {
    width: 100%;
    border-top: 1px solid #000;
    padding-top: 5px;
}

#botones_rss {
    width: 200px;
    display: flex;
    justify-content: space-between;
}

#botones_rss img {
    width: 30px;
}


#menu_lateral {
    width: 30%;
    margin-top: 50px;
}

#menu_lateral form {
    margin-top: 30px;
}

#menu_lateral button {
    text-align: left;
    font-size: 17px;
    font-weight: bold;
    margin: 10px 0;
    color: #000;
    border: none;
    background-color: #fff;
    cursor: pointer;
}

/* Blog Admin */

.editor_blog {
    margin-top: 10px;
    background-color: #fff;
    width: 100%;
}

/* Editor Blog */

#t_editor,
#t_blogs {
    margin: 20px;
}

.table {
    margin: 10px 20px;
    background-color: #fff;
}

.table thead {
    text-align: left;
}

.table tr {
    border-bottom: 1px solid rgb(70, 69, 69);
}

.table td,
th {
    padding: 5px 20px;
}

#gblog_body {
    margin: 20px;
}

#gblog_body label,
input,
button {
    margin-top: 10px;
}

#f_imagenes {
    margin: 70px 20px 20px 20px;
    padding: 5px;
    background-color: #fff;
    border: 1px solid rgb(106, 105, 105);
}

#t_img {
    margin: 20px;
}

.table img {
    width: 5%;
}

#menuHamburguesa {
    display: none;
}

#abrirMenu {
    font-size: 30px;
    background-color: #fff;
    border: none;
    color: #5c38ff;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 50;
    cursor: pointer;
    border-radius: 20px;
}

/* Icono cerrar */
#cerrarMenu {
    display: none;
    font-size: 25px;
    text-align: right;
    padding: 10px 20px 0 10px;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {
    #menuHamburguesa {
        display: block;
    }

    #logoM {
        width: 100%;
        display: flex;
    }

    #logoM img {
        width: 50%;
        margin-left: 20%;
        padding-top: 10px;
    }

    #sideBar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 250px;
        height: 100vh;
        background-color: #cb5cff;
        z-index: 150;
        transition: left 0.3s ease;
        border-radius: 0;
    }

    #sideBar.abierto {
        left: 0;
    }

    #cerrarMenu {
        display: block;
    }

    #cuerpo {
        height: 75%;
    }

    #cuerpoSidebar {
        width: 100%;
        height: auto;
        background-color: #5c38ff;
        border-radius: 0;
        padding-bottom: 30px;
    }

    .icono {
        width: 100%;
        font-size: 14px;
        height: auto;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .icono img {
        width: 20px;
        margin-bottom: 5px;
    }

    #contenedorBody {
        flex-direction: column;
    }

    #contenedorCuerpo {
        width: 100%;
    }

    #whats {
        width: 15%;
    }

    /* Index */

    #chartSuperior {
        flex-direction: column;
    }

    #textoSuperior img {
        width: 30%;
    }

    #youtube {
        width: 300px;
        height: 150px;
        margin: 10px;
        margin-left: 15%;
    }

    #chartInferiorI {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 100%;
    }

    /* El chart activo ocupa dos columnas (2x1) en la primera fila */
    .chartI.activo {
        grid-column: span 2;
        width: 100%;
        height: auto;
        overflow-y: auto;
        /* Esto permite crecer según contenido */
    }

    /* Los demás se ordenan automáticamente debajo */
    .chartI:not(.activo) {
        height: 150px;
        width: 100%;
        overflow: hidden;
        position: relative;
    }

    .chartI:not(.activo)::before {
        content: '';
        display: block;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
    }

    .contenedorInfo h2 {
        margin: 5px 0;
    }

    .contenedorInfo ul {
        margin-bottom: 20px;
    }

    /* Eventos */

    #chartInferior {
        flex-direction: column;
    }

    #contenedorIzquierdo,
    #contenedorDerecho {
        width: 100%;
        margin: 0 0 20px 0;
    }

    #botonesHeroe {
        width: 100%;
    }

    #botonesHeroe a {
        width: 40%;
    }

    .reservar {
        width: 60%;
    }

    .otrasExperiencias {
        width: 100%;
    }

    #contenedorDerechoVacaciones {
        width: 100%;
        margin: 0 0 20px 0;
        padding: 0 0 0 10px;
    }

    /* Blog */

    #blog p {
        font-size: 15px;
        margin: 0;
        width: 100%;
    }

    /* Contactenos */

    #contacto {
        height: 500px;
    }

    #contacto iframe {
        height: 300px;
    }

    /* Tienda */

    .producto {
        width: 45%;
    }

    /* Nosotros */

    #contenedorDerechoN {
        width: 100%;
        margin: 0 0 20px 0;
        padding: 0 20px;
    }

    /* Footer */

    #footer {
        height: 15%;
    }

    #footerContenedor {
        justify-content: center;
        padding: 0;
        font-size: 10px;
    }

    #horarios {
        width: 40%;
    }

    #horarios ul {
        padding-left: 20px;
    }

    #politicas ul {
        padding-left: 20px;
    }

    #footer_social {
        width: 30%;
        margin-left: 20px;
    }

    .imagenFooter {
        width: 50%;
    }

}