/*
==================================================================
Theme Name: Peregrinos Viajeros
Version: 1.0
Author: Neobrand®
Author URI: https://neobrand.com
==================================================================
*/

:root {
    --dark: var(--wp--preset--color--dark);
    --blue: var(--wp--preset--color--blue);
    --black: var(--wp--preset--color--black);
    --white: var(--wp--preset--color--white);
    --grey: var(--wp--preset--color--grey);
    --font: var(--wp--preset--font-family--inter);
    --wp--preset--spacing--40: 45px;
}

::selection {
    background-color: var(--dark);
    text-shadow: none;
    color: white;
}
::placeholder {
    color: var(--white);
}

#cmplz-document, .editor-styles-wrapper .cmplz-unlinked-mode {
  margin-top: 0;
  max-width: 1150px !important;

}

.cmplz-cookiebanner .cmplz-message p{
    font-size: 18px;
}

.wp-block-group {
    --wp--style--block-gap-horizontal: 20px;
    --wp--style--block-gap-vertical: 50px;
}

.wp-block-group.hover-group {
    position: relative;
    overflow: hidden;
}

.wp-block-group.hover-group .hover-group-content {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.wp-block-group.hover-group:hover .hover-group-content {
    opacity: 1;
    transform: translateY(0);
}

.wp-block-image img,
.wp-block-image .components-resizable-box__container img {
  width: 100%;
  height: auto;
  display: block;
}

body, p, li, span {
    font-family: var(--font);
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 600;
}

h1:not(:first-child), h2:not(:first-child), h3:not(:first-child), h4:not(:first-child), h5:not(:first-child), h6:not(:first-child) {
    margin-block-start: var(--wp--preset--spacing--60);
}

body {
    font-size: var(--wp--preset--font-size--medium);
    background-color: white;
    color: var(--dark);
}

main{
    overflow-x: hidden;
/*    padding: 0 var(--wp--preset--spacing--40);*/
}

img{
    max-width: 100%;
}

.wp-admin :where(.editor-styles-wrapper) .alignfull{
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    width: 100% !important;
}

.wp-site-blocks, .alignfull > * {
    padding-left: var(--wp--preset--spacing--40);
    padding-right: var(--wp--preset--spacing--40);
}

.single-destinos main > .wp-site-blocks{
    padding-bottom: 100px;
}

.is-root-container.is-layout-flow > *:not(.alignfull):not(p):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(figure),
.wp-site-blocks > *:not(.alignfull):not(p):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(figure),
.alignfull > *:not(p):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(figure) {
    padding-top: var(--wp--preset--spacing--40);
    padding-bottom: var(--wp--preset--spacing--40);
}

:root :where(.is-layout-constrained) > *{
    margin-block-start: var(--wp--preset--spacing--30);
    margin-block-end: 0;
}

.wp-block-post-content > .wp-block-group:last-child,
.wp-block-post-content > .wp-block-columns:last-child,
.wp-site-blocks > .wp-block-group:last-child,
.wp-site-blocks > .wp-block-columns:last-child {
/*    margin-top: 4vw;*/
    margin-bottom: 4vw;
}

.wp-block-post-content  > :where(.wp-block-group):first-of-type,
.wp-block-post-content  > :where(.wp-block-columns):first-of-type,
.wp-site-blocks > :where(.wp-block-group):first-of-type,
.wp-site-blocks > :where(.wp-block-columns):first-of-type {
    padding-top: 0;
}


.wp-site-blocks > :where(:not(.alignwide):not(.alignfull)) {
    width: 100%;
    max-width: var(--wp--style--global--content-size);
    margin-left: auto !important;
    margin-right: auto !important;
}

.alignwide {
    width: 100%;
    max-width: var(--wp--style--global--wide-size);
    margin-left: auto !important;
    margin-right: auto !important;
}

.alignfull {
    width: 100vw;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    max-width: 100vw;
    position: relative;
}

h1.wp-block-heading{
    font-size: 120px;
}

h2.has-extra-large-font-size {
    font-size: 80px !important;
    font-weight: 700 !important;
    margin-bottom: 70px;
    line-height: 1em;
}

p {
    font-size: var(--wp--preset--font-size--medium);
    line-height: 1.3em;
}

.wp-block-latest-posts__featured-image{
    margin-bottom: 1em;
}

.wp-block-post-featured-image a {
    display: block;
    height: 100%;
    aspect-ratio: 1/1;
}

.wp-block-post-featured-image :where(img) {
    box-sizing: border-box;
    height: 100%;
    max-width: 100%;
    vertical-align: bottom;
    width: 100%;
}

/* Botones */

.btn,
.wp-block-button__link {
    font-family: var(--font);
    border-radius: 0 !important;
    letter-spacing: 0.04em;
    transition: all 250ms ease;
    text-transform: uppercase;
    background-color: var(--blue) !important;
    color: var(--white);
    border: none;
    font-size: 16px;
    font-weight: 500;
    padding: 20px 30px 20px 30px !important;
    border-radius: 8px 0 8px 0 !important;
}

.btn:hover,
.wp-block-button__link:hover{
    background-color: var(--dark) !important;
    cursor: pointer;
}


/* Enlaces */

a {
    color: currentColor;
    text-decoration: none;
    transition: all 250ms ease;
}
a:hover {
    text-decoration: none;
}
p a:hover, form a:hover{
    color: var(--dark);
}

.overflow-hidden{
    overflow: hidden;
}

body:not(.home) main{
    padding-top: 140px;
}

/*Header*/

header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #F0F0F0;
}

header .content{
    display: flex;
    flex-direction: column;
}

header .top{
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 40px;
    font-size: 15px;
    padding: 15px var(--wp--preset--spacing--40);
    background-color: var(--blue);
    color: white;
    transition: all 400ms ease;
}

header.hidetop .top{
    margin-top: 0px;
}

header .top span{
    display: flex;
    gap: 5px;
    align-items: center;
}

header .top img {
    width: 15px;
}

header .bottom{
    width: 100%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 95px;
    padding: 0 var(--wp--preset--spacing--40);
}

header .logos {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
}

header .logos a {
    display: flex;
    height: 60px;
    width: auto;
}

header .logos img{
    display: flex;
    height: 100%;
}

header .logos span{
    height: 40px;
    width: 1px;
    background-color: var(--blue);
}

header .menu {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 40px;
    margin: 0;
    padding: 0;
}

header li {
    list-style: none;
    font-size: 15px;
    color: var(--blue);
    text-transform: uppercase;
    font-weight: 500;
}

header .menu li a:hover,
header .menu li.current-menu-item,
header li.lang-item.current-lang{
    color: var(--dark);
}

header #btn-menu{
    display: none;
}

header .btn{
    font-size: 20px;
    padding: 6px 15px 10px 15px !important;
}

/*Galería de vídeos*/

.galeria_videos{
    overflow: hidden;
    position: relative;
    padding-bottom: 20px;
}

.galeria_videos figure {
    position: relative;
    min-width: 330px;
    background-color: var(--dark);
}

.galeria_videos figure::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    z-index: 1;
}

.galeria_videos figure:hover::after {
    color: var(--blue)
}

.galeria_videos figure a{
    display: block;
}

.galeria_videos figure img {
    opacity: 0.5;
    width: 100%;
    height: 100%;
}

div.swiper.wp-block-query.alignfull,
.alignfull > div.swiper-wrapper,
.alignfull > .swiper-button-next,
.alignfull > .swiper-button-prev {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.wp-block-query.alignfull > ul.swiper-wrapper {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.swiper{
    overflow: hidden;
}

.swiper-wrapper{
    padding: 0 !important;
    display: flex !important;
    flex-flow: row !important;
}

.swiper-pagination-bullet-active {
    background-color: var(--blue) !important;
}

.swiper-button-next, .swiper-rtl .swiper-button-prev {
    right: var(--swiper-navigation-sides-offset,30px) !important;
    left: auto;
}

.swiper-button-prev, .swiper-rtl .swiper-button-next {
    left: var(--swiper-navigation-sides-offset,30px) !important;
    right: auto;
}

.swiper-button-disabled{
    opacity: 0 !important;
}

.swiper-button-next, 
.swiper-button-prev {
    background: var(--white);
    padding: 5px;
    border-radius: 150px;
    width: 45px !important;
    height: 45px !important;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    color: #000;
    transform: translateY(-50%);
    border: 2px solid transparent !important; 
    box-sizing: border-box;
}

.swiper-button-next:hover, 
.swiper-button-prev:hover {
    border-color: var(--blue) !important; 
}

.swiper-button-next:hover::after, 
.swiper-button-prev:hover::after {
    color: var(--blue);
}

.swiper-button-next::after, 
.swiper-button-prev::after {
    font-family: swiper-icons;
    font-size: 20px !important;
    text-transform: none !important;
    letter-spacing: 0;
    font-variant: initial;
    line-height: 1;
}

.wp-block-social-links li{
    background-color: var(--blue) !important;
}

.wp-block-social-links li:hover{
    background-color: var(--black) !important;
}

.wp-block-file {
    width: fit-content;
    border: 1px solid var(--blue);
    padding: 10px 15px;
    background-color: #C9DFEC;
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 10px;
    border-radius: 5px;
}

.wp-block-file a:last-child {
    background-color: var(--blue);
}

/*Galería CPT*/

.wp-block-post-featured-image a {
    overflow: hidden;
}

.wp-block-query li img {
    transition: transform 0.3s ease;
}

.wp-block-query li:hover img {
    transform: scale(1.1);
}

/*Formulario*/


.wpcf7 form{
    transition: all 280ms ease;
}

.wpcf7 form input:not([type="checkbox"]):not([type="button"]):not([type="radio"]):not([type="submit"]),
.wpcf7 form textarea {
    width: 100%;
    border: 1px solid var(--white);
    background-color: var(--blue);
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 300;
    color: var(--white);
}

.wpcf7 form br{
    display: none;
}

.wpcf7 form > p{
    transition: all 280ms ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
}

.wpcf7 form .last > p{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.wpcf7 form .wpcf7-form-control-wrap{
    width: 100%;
}

.wpcf7 form .wpcf7-acceptance > span{
    margin-left: 0;
}

.wpcf7 form .wpcf7-acceptance > span label {
    font-size: 14px;
    line-height: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpcf7 form .wpcf7-acceptance > span label a{
    color: var(--white);
    text-decoration: underline;
}

.wpcf7 form input[type="checkbox"]{
    width: 20px !important;
    height: 20px !important;
}

.wpcf7 form input[type="submit"]{
    font-family: var(--font);
    border-radius: 0 !important;
    letter-spacing: 0.04em;
    transition: all 250ms ease;
    text-transform: uppercase;
    background-color: #FFF !important;
    color: #499FD1;
    border: none;
    font-size: 16px;
    font-weight: 500;
    padding: 15px 50px 15px 50px !important;
    border-radius: 8px 0 8px 0 !important;
    margin-left: 43% !important;
}
.wpcf7 form input[type="submit"]:hover{
    background-color: #000 !important;
    color: #fff;
}

.wpcf7 form input[type="submit"]:disabled{
    pointer-events: none;
    opacity: 0.5;
}

.wpcf7 form.submitting > p{
    opacity: 0.2;
}

.wpcf7 form .wpcf7-spinner {
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    margin: 0;
}

.wpcf7 form .wpcf7-response-output {
    background-color: #6fd5df;
    color: white;
    margin: 25px 0 0 0;
    border: none;
    padding: 15px 20px;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
}

.wpcf7 form.sent .wpcf7-response-output {
    background-color: green;
}

.wpcf7 form.invalid .wpcf7-response-output {
    background-color: red;
}

.wpcf7-not-valid{
    border-color: red !important;
}

.wpcf7-not-valid-tip{
    display: none !important;
}

/*ESTILOS FORMUTL*/
#responsive-form{
    max-width:100% /*-- puedes cambiar esto si quieres otro ancho del formulario --*/;
    margin:0 auto;
        width:100%;
}
.form-row{
    width: 100%;
}

.form-row p {
    font-size: 16px !important;
    color: white;
    margin: 0px;
    line-height: 40px;
}
.column-half, .column-full{
    float: left;
    position: relative;
    padding: 0.65rem;
    width:100%;
    -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box
}
 
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}


/**---------------- Media query ----------------**/
@media only screen and (min-width: 48em) { 
    .column-half{
        width: 50%;
    }
}

/*Slider portada*/

.wp-block.wp-block-acf-slider {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    position: relative !important;
}

.sliderPortada{
    height: 750px;
}

.sliderPortada figure {
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
}

.sliderPortada img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sliderPortada .contenedor {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 1;
    justify-content: center;
    background: #0003;
}

.sliderPortada .contenedor .contenido {
    color: white;
    width: min-content;
    padding: 0 var(--wp--preset--spacing--40);
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: start;
    margin: 0 10%;
}

.sliderPortada .contenedor .contenido h3{
    font-size: 50px;
    font-weight: 300;
    font-family: var(--font);
    margin: 0;
}

.sliderPortada .contenedor .contenido p {
    font-family: var(--font);
    font-size: 24px;
    margin-bottom: 0px;
}

.sliderPortada .contenedor.left{
    align-items: start;
}

.sliderPortada .contenedor.center{
    align-items: center;
}

.sliderPortada .contenedor.right{
    align-items: end;
}

.sliderPortada .swiper-slide {
    width: 100% !important;
}

.sliderPortada .video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    aspect-ratio: 16/8;
    transform: translate(-50%, -50%) scale(1.5);
    pointer-events: none;
    border: none;
}

.sliderPortada .swiper-pagination > span {
    width: 15px;
    height: 15px;
    background-color: transparent;
    border: 2px solid var(--blue);
    opacity: 1;
}

.sliderPortada .swiper-pagination > span.swiper-pagination-bullet-active{
    background-color: var(--blue);
}

.error-part {
    padding: 40px auto;
    margin: 50px auto;
    display: flex;
    justify-content: center;
}