/*
Theme Name: Desafío y Aventura
Theme URI: http://www.desafioyaventura.com
Description: Desafío y Aventura
Author: Temujin.es | Jonatan Sandoval Alarcón
Author URI: https://www.temujin.es
Version: 1.0
*/
.hidden-fields-container{
    display:none;
}
.aviso_general{
    text-align:center;
    padding:3px 12px;
    background-color:orange;
    color: #000;
    text-transform:uppercase;
    font-weight: bold;
}

.link_telefono{
    position:fixed;
    bottom:110px;
    right:30px;
    color:#007bff;
    z-index:1;
    i{
        margin-top: 0;
        font-size: 35px;
        background-color: #fff;
        border-radius: 100%;
        width: 58px;
        height: 48px;
        text-align: center;
        padding-top: 10px;
    }
}

.link_whatsapp{
    position:fixed;
    bottom: 30px;
    right:30px;
    color:green;
    z-index:1;
    i{
        font-size: 58px;
        background-color: #fff;
        border-radius: 100%;
        width: 58px;
        text-align: center;
        margin: -3px;
    }
}

:root {
    --grisclaro: #777777;
    --grisoscuro: #333333;
    --vosc: #213824;
    --vcla: #3c5130;
    --beig: #f9f7f0;
	--act-card-shadow: 0 10px 24px rgba(0, 0, 0, .32);
}

body {
    font-size:14px;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    box-sizing:border-box;
}

/* Estilos mínimos para compatibilidad con WordPress */
.wp-admin-bar {
    display: none !important;
}

#wpadminbar {
    display: none !important;
}

html {
    margin-top: 0 !important;
}

* html body {
    margin-top: 0 !important;
}

header.home{
    background-image:url(images/header_fondo.jpg);
    background-repeat:no-repeat;
    background-size:cover;
    background-position:center 70%;
    float:left;
    width:100%;
    nav{
        margin-bottom:0;
        margin-top:0;
    }
    .wrap{
        padding: 40px 0;
        > div{
            position:relative;
            min-height:600px;
            h2{
                position:absolute;
                bottom:0;
                left:0;
                color:#fff;
                font-size: 80px;
                font-weight:bold;
                margin: 0;
            }
            button{
                position:absolute;
                bottom:0;
                right:0;
                border-radius:20px;
                font-size:20px;
                text-transform:uppercase;
                color:#fff;
                cursor:pointer;
                padding: 12px 40px;
                background-color:var(--vcla);
                border:0 solid transparent;
                font-weight: bold;
            }
            .logo{
                float:right;
                img{
                    float:right;
                    height:200px;
                }
            }
        }

    }
}

header{
    background-color:#213824;
    background-image:none;
    .wrap{
        > div{
            min-height:none;
        }
        button{
            display:none;
        }
        .logo{
            img{
                height:60px;
            }
        }
        h2{
            display:none;
        }
    }
}

header{
    /* Ocultar botón hamburguesa en desktop */
    .menu-toggle{
        display: none;
    }
    .main-menu{
        float:right;
        width:auto;
        margin-top:20px;
        .menu-list,
        .menu{
            list-style:none;
            margin:0;
            padding:0;
            display:flex;
            gap:20px;
            li{
                margin:0;
                padding:0;
                position: relative; /* Necesario para posicionar los submenús */
                a{
                    color:#fff;
                    text-decoration:none;
                    text-transform:uppercase;
                    font-weight:bold;
                    font-size:14px;
                    display: block;
                    padding: 8px 12px;
                    transition: background-color 0.3s ease;
                    &:hover{
                        background-color: rgba(255, 255, 255, 0.1);
                    }
                }
                /* Estilos para los submenús */
                .sub-menu{
                    position: absolute;
                    top: 100%;
                    left: 0;
                    background-color: var(--vcla);
                    list-style: none;
                    margin: 0;
                    padding: 10px 0;
                    min-width: 220px;
                    display: none; /* Oculto por defecto */
                    flex-direction: column;
                    gap: 0;
                    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
                    z-index: 1000;
                    li{
                        padding: 0;
                        a{
                            padding: 12px 20px;
                            font-size: 13px;
                            white-space: nowrap;
                            &:hover{
                                background-color: rgba(255, 255, 255, 0.2);
                            }
                        }
                    }
                }
                /* Mostrar submenú en hover */
                &:hover > .sub-menu{
                    display: flex;
                }
            }
        }
    }
}

.wrap{
    width:1200px;
    max-width:900%;
    margin: 0 auto;
}

.home2{
    color:#fff;
    gap:0;
    font-size:18px;
    line-height:1.4em;
    font-weight:500;
    background-color:var(--vosc);
    h2{
        font-size:30px;
    }
     > div{
        display:grid !important;
        grid-template-columns:1fr 3fr;
        /* float: none; */
        /* margin: 0 auto; */
        
        .uno{
            padding:60px 40px;
            background-color:var(--vosc);
            img{
                width:100%;
            }
        }
        .tres{
            margin-bottom:0;
            padding:60px 40px;
            background-color:var(--vcla);
            display:grid !important;
            grid-template-columns:repeat(3, 1fr);
            gap:40px;
            figure{
                position:relative;
                margin:0;
                border-radius:20px;
                overflow: hidden;
                pointer-events:none;
                img{
                    max-width:100%;
                }
                figcaption{
                    font-weight:bold;
                    position:absolute;
                    bottom:20px;
                    left:20px;
                    font-size: 24px;
                    margin:0;
                    text-shadow: 2px 2px 8px rgba(0,0,0,0.7), 0 1px 0 #222;
                }
            }
            p{
                padding:0 20px;
            }
        }
    }

}

.home3{
    padding:40px 0;
    background-color:var(--beig);
    > .wrap{
        h2{
            color: var(--vcla);
            text-align:center;
            font-size:60px;
            font-weight:bold;
            margin:0;
            text-transform:uppercase;
        }
        > div{
            display:grid;
            grid-template-columns:repeat(3, 1fr);
            margin-bottom:0;
            padding:60px 40px;
            display:grid !important;
            grid-template-columns:repeat(3, 1fr);
            gap:40px;
            > a:not(.centro_alto){
                text-decoration:none;
                color:inherit;
            }
            > :is(div, a):not(.centro_alto){
                display:grid;
                grid-template-rows:auto 1fr;
                figure{
                    position:relative;
                    margin:0;
                    border-radius:20px;
                    overflow: hidden;
                    pointer-events:none;
                    img{
                        max-width:100%;
                    }
                    figcaption{
                        color: #fff;
                        font-weight:bold;
                        position:absolute;
                        bottom:20px;
                        padding: 0 20px;
                        font-size: 24px;
                        margin:0;
                        width:100%;
                        box-sizing: border-box;
                        text-shadow: 2px 2px 8px rgba(0,0,0,0.7), 0 1px 0 #222;
                        span{
                            float:right;
                        }
                    }
                }
                p{
                    position:relative;
                    font-size:18px;
                    line-height:1.4em;
                    padding-right:40px;
                    i{
                        cursor:pointer;
                        display:grid;
                        background-color:var(--vosc);
                        color:#fff;
                        width:40px;
                        height:40px;
                        border-radius:100%;
                        position:absolute;
                        bottom: 0;
                        right:0;
                        align-items: center;
                        justify-content: center;
                    }
                }
            }
            > div.centro_alto{
                display:grid;
                align-items: center;
                text-align:center;
                img{
                    max-height:280px;
                }
            }
        }
    }
}

.home4{
    padding:60px 0 120px;
    background-color:var(--vosc);
    background-image:url(images/h4_fondo.jpg);
    background-repeat:no-repeat;
    background-size:cover;
    background-position:center center;
    > .wrap{
        h2{
            color:#fff;
            font-size:50px;
            text-transform:uppercase;
            font-weight:bold;
            margin-top:0;
            text-align:center;
            text-shadow: 2px 2px 8px rgba(0,0,0,0.7), 0 1px 0 #222;
        }
        div.resenyas{
            display:grid;
            grid-template-columns:repeat(3, 1fr);
            gap:40px;
            > div{
                display: grid;
                background-color:rgba(255,255,255,0.75);
                padding:20px;
                border-radius:20px;
                grid-template-rows: auto 1fr auto;
                .estrellas{
                    color:var(--vcla);
                    font-size:18px;
                }
                p{
                    text-shadow: 8px 8px 8px #f9f7f0, 0 1px 0 #f9f7f0;
                    font-size:18px;
                    line-height:1.4em;
                }
                .autor{
                    font-size:18px;
                    color:var(--vcla);
                    font-weight:bold;
                }
            }
        }
    }
}

.home5{
    float:left;
    width:100%;
    background-color: var(--vosc);
    padding:0;
    .wrap{
        .logo{
            float:left;
            max-height:100px;
        }
        div{
            float:left;
            width:100%;
            background-image:url(images/h5_fondo.jpg);
            background-repeat:no-repeat;
            background-size:cover;
            background-position:center 70%;
            border-radius:20px;
            aspect-ratio:5 / 2;
            display:grid;
            align-items: center;
            text-align: center;
            h3{
                font-size:60px;
                text-transform:uppercase;
                color:#fff;
                text-shadow: 2px 2px 8px rgba(0,0,0,0.7), 0 1px 0 #222;
            }
        }
    }
}

footer{
    float:left;
    width:100%;
    color: #fff;
    background-color: var(--vosc);
    padding: 40px 0;
    a{
        color: #fff;
        text-decoration:none;
    }
    > .wrap{
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 0;
        justify-content: stretch;
        justify-items: stretch;
        .contacto{
            > a{
                float:left;
                clear:left;
                font-size:18px;
                line-height:1.5em;
            }
        }
        .rrss{
            font-size:40px;
            text-align:center;
        }
        .colaboradores{
            text-align:right;
            img{
                margin-top:12px;
                height:60px;
                float:right;
            }
        }
    }
    #menu-empresa{
        float:left;
        padding:0;
        display:inline-flex;
        gap:20px;
        li{
            display:inline-block;
            gap:12px;
        }
    }
}

.temujin-cookies-alerta{
    text-align:center;
    position:fixed;
    bottom:0;
    background-color: rgba(255,255,255,0.8);
    width: 100%;
    padding-bottom:12px;
    border-top:1px solid #ccc;
    a{
        text-decoration:none;
        color:var(--vosc);
        font-weight:bold;
    }
}