/*
Theme Name: Blocksy Child
Author: Nemesys
Template: blocksy
Version: 1.0.0
Text Domain: blocksy-child
*/

/** INDICE
 *
 *    0 - General
 *    1 - Cabecera
 *    2 - Pie
 *    3 - Contenido
 *      3.1 - Portada
 *          3.1.1 - Bloque viajes en Grupo
 *          3.1.2 - Bloque Viajes a Medida
 *          3.1.3 - Agenda
 *      3.2 - Interiores
 *      3.3 - Agenda
 *      3.4 - Blog
 *      3.5 - Contacto
 */

/**
 * 0 - General
*/

 a {
    text-decoration: none!important;
 }

.mt0 {
    margin-top: 0!important;
}

.mb0 {
    margin-bottom: 0!important;
}

.wp-block-button {
    box-shadow: 0px 4px 4px 0px #00000040;
}

.ct-container-full {
    margin-top: -60px!important;
}

/* personaliza el color del botón del banner de GDPR Cookie Compliance */
.moove-gdpr-infobar-allow-all, .moove-gdpr-infobar-reject-btn {
    background-color: var(--theme-palette-color-1)!important;
  }

 /**
 * 1 - Cabecera
 */


 /**
 * 2 - Pie
 */

footer {
    padding-bottom: 3lh!important;
}

 .ct-footer [data-column] {
    flex-direction: row!important;
    gap: 1em;
}

footer .ct-widget  {
    margin-top: 0!important;
}

footer [data-column="widget-area-1"]  {
    justify-content: center!important;
}


 /**
 * 3 - Contenido
 */

.bloqueFeelViajero {
    margin-top: 100px!important;
    margin-bottom: 20px!important;
}

.bloqueFeelViajero h2 {
    margin-bottom: -5px!important;
}

.bloqueFeelViajero figure {
    background: linear-gradient(transparent 0px, transparent 30px, rgb(1, 148, 154) 30px, rgb(1, 148, 154) calc(100% - 30px), transparent calc(100% - 30px), transparent 100%);
    min-width: 100% !important;
}

.bloqueFeelViajero .pAsociadas {
    position: relative;
    bottom: 70px!important;
    color: #fff;
    font-size: 17px;
    font-weight: 400;
}

@media only screen and (max-width: 800px) {
    .wp-block-spacer {
        height: 50px!important;
    }
}

/**
 * 3.1 - Portada
 */

#metaslider-id-83 {
    max-width: 100%;
}

#metaslider-id-83 .caption-wrap {
    background-color: rgb(1, 148, 154)!important;
    opacity: 1!important;
    position: absolute;
    top: 43%;
    width: 50%;
    transform: translateY(-50%);
    padding: 1lh 2lh 1lh 25%;
    bottom: auto;
    height: auto;
}

#metaslider-id-83 .caption {
    font-size: 30px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.4lh;
}

 .pHablemos {
    font-weight: 400;
    background: var(--theme-palette-color-6)!important;
    margin: -25px 0 100px 0 !important;
    min-width: 100% !important;
}

.bloquePorQue div {
    background-color: var(--theme-palette-color-7)!important;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0px -4px 4px 0px #00000040 inset;
    padding-bottom: 1lh;
}

.bloquePorQue div p {
    padding: 0 0.5lh 0 0.5lh;
    margin-bottom: 5px;
}

.bloqueFeelViajero {
    padding-bottom: 0!important;
    margin-bottom: 2lh;
}

@media only screen and (max-width: 1300px) {
    #metaslider-id-83 .caption-wrap {
        padding: unset!important;
    }
}

@media only screen and (max-width: 800px) {
    #metaslider-id-83 .slides li {
        background-color: var(--theme-palette-color-8) !important;
    }

    #metaslider-id-83 .caption-wrap {
        opacity: 1 !important;
        position: relative;
        width: unset;
        padding: 1lh 2lh;
        display: contents;
        color: rgb(1, 148, 154) !important;
    }

    .pHablemos {
        margin: unset;
        padding: 0 1rem;
        min-width: 100% unset;
    }

    .bloquePorQue div {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .bloquePorQue p:first-of-type {
        padding-top: 15px;
    }

    .bloquePorQue p:nth-of-type(2) {
        grid-column: 1 / span 2;
    }
}


/***** 3.1.1 - Bloque Viajes en Grupo *****/

.viajes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.viaje-box {
    border-radius: 25px;
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.viaje-box img.viaje-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 25px 25px 0 0;
    object-fit: cover;
    margin-bottom: 10px;
}

.viaje-box h3 {
    font-weight: 700;
    text-transform: uppercase;
}

.viaje-box span {
    display: block;
}

.viaje-box h3, .viaje-box span, .viaje-box p {
    font-size: 20px;
    padding: 0 1rem;
}

.viaje-box .precio {
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    padding-top: 1rem;
    color: var(--theme-palette-color-1)!important;
}

.viaje-box .precio-label {
    font-size: 17px;
}

.viaje-box .precio-valor {
    font-size: 25px;
}

.solo-mujeres {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    position: absolute;
    top: 1lh;
    width: 90%;
    color: #fff!important;
    background: #E6007E;
    font-size: 20px;
    font-weight: 700;
    padding-left: 1.5em;
}


/***** 3.1.2 - Bloque Viajes a Medida *****/

.bloqueViajesMedidaInicio div {
    position: relative;
}

.bloqueViajesMedidaInicio div p:nth-of-type(1) {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    position: absolute;
    top: 2lh;
    width: 90%;
    color: #fff!important;
    background: #01949A;
    font-size: 20px;
    font-weight: 700;
    padding-left: 1.5em;
}

.bloqueViajesMedidaInicio div p:nth-of-type(2) {
    text-align: center;
    background: #E6007E!important;
    position: absolute;
    width: 100%;
    bottom: 3em;
    padding: 1em!important;
    color: #fff!important;
    font-size: 16px;
    font-weight: 500;
}

@media only screen and (max-width: 800px) {
    .bloqueViajesMedidaInicio div p:nth-of-type(2) {
        position: relative;
    }
}

/***** 3.1.3 - Bloque Agenda *****/

.eventos-proximos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.evento-box {
    display: flex;
    flex-direction: column;
    border: 1px solid #575756 !important;
    overflow: hidden;
    height: 100%;
    min-height: 420px; /* puedes ajustar esto según el diseño */
    background: #fff;
}

.evento-box .evento-img {
    width: 100%;
    height: 275px;
    object-fit: cover;
    display: block;
}

.evento-box h3 {
    font-size: 20px;
    line-height: 0.8lh;
    font-weight: bold;
    color: #575756 !important;
    padding: 0 20px;
    margin: 10px 0;
}

.evento-box .evento-fecha {
    border-top: 1px solid #575756 !important;
    padding: 20px 0 0 20px;
    font-size: 14px;
    color: #575756;
    margin-top: auto;
}

/**
 * 3.2 - Interiores
 */

.h1Interno {
    font-size: 25px;
    font-weight: 700;
    text-transform: uppercase;
    color: #B05F7B;
    background: var(--theme-palette-color-6)!important;
    margin: -25px 0 100px 0 !important;
    min-width: 100% !important;
    text-align: center;
}

 .listaViajesGrupo {
    text-align: center;
    list-style-position: inside;
}

#metaslider-id-87 {
    max-width: 100%;
}

#metaslider-id-87 ul.slides {
    display: flex;
}

#metaslider-id-87 li {
    padding: 16px!important;
    background-color: var(--theme-palette-color-7)!important;
}

#metaslider-id-87 .caption-wrap {
    position: relative!important;
    text-align: center;
    padding: 2lh 0 0 0!important;
    color: var(--theme-palette-color-2)!important;
    background-color: var(--theme-palette-color-7)!important;
}

.bloquePlanificaTuMismo p:nth-of-type(1) {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    position: absolute;
    top: 2lh;
    width: 40%;
    color: #fff!important;
    background: #6DA6F6;
    font-size: 20px;
    font-weight: 700;
    padding-left: 1.5em;
}

.bloquePlanificaTuMismo p:nth-of-type(2) {
    text-align: center;
    background-color: var(--theme-palette-color-6)!important;
    position: absolute;
    bottom: 1lh;
    font-size: 18px;
    font-weight: 400;
    padding: 1em 25%!important;
}

.colPlanifica {
    position: relative;
    text-align: center;
    margin-bottom: 2lh !important;
    padding-bottom: 2lh;
}

.colPlanifica figure {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
}

.colPlanifica .wp-block-buttons {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
}

.formasViaje  li {
    margin-bottom: 1lh;
}

.bloqueDescuentos p {
    background-color: var(--theme-palette-color-1)!important;
    color: var(--theme-palette-color-8)!important;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.bloqueDescuentos figure {
    display: flex!important;
    align-items: center;
    justify-content: center;
    margin: 0;
    height: 70px!important;
}


@media only screen and (max-width: 800px) {
    .bloquePlanificaTuMismo p:nth-of-type(1) {
        border-radius: 0!important;
        position: relative;
        top: 0;
        width: 100%;
        padding-left: unset;
        text-align: center;
    }

    .bloquePlanificaTuMismo p:nth-of-type(2) {
        text-align: center;
        background-color: var(--theme-palette-color-6)!important;
        position: relative;
        bottom: unset;
        padding: 1em 25%!important;
        margin-top: -1lh!important;
    }
}

/**
 * 3.3 - Agenda
 */

body.post-type-archive-tribe_events .hero-section {
	display: none;
}

body.post-type-archive-tribe_events .tribe-events-before-html .hero-section {
	display: block;
}

 .tribe-events-before-html {
    width: 100vw;
    max-width: 100vw;
    margin: 0 !important;
    padding: 0 !important;
    left: -50%;
    position: relative;
 }

 .tribe-events-before-html .hero-section {
    width: 100vw;
    max-width: 100vw;
 }

 @media only screen and (max-width: 1200px) {
    .tribe-events-before-html {
        left: -7%;
    }
 }

/**
 * 3.4 - Blog
 */

.h1Blog {
    margin: -17px 0 100px 0 !important;
}

/* Grid layout para entries */
.entries[data-layout="grid"] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.entries article {
    border: 1px solid #575756!important;
    position: relative;
}

.entries article .entry-meta {
    position: absolute;
    left: 0;
    right: 0;
    width: auto;
    bottom: 7px;
    border-top: 1px solid #575756!important;
}

.entries article .entry-meta .meta-date {
    top: -5px;
    position: relative;
}

.entries article .entry-meta time {
    display: block;
    margin: 20px 20px 0 20px;
}

.entries .entry-title, .entries .entry-excerpt {
    padding: 0 20px;
}

.entries article.viaje_en_grupo .entry-title, .entries article.viaje_en_grupo .entry-excerpt {
    padding: 0;
}

.entries .entry-title {
    font-size: 20px; 
    line-height: 0.8lh;
    font-weight: bold;
    display: block;
    color: #575756!important;
}

.wp-block-blocksy-query article {
    border: 1px solid #000!important;
    position: relative;
    padding-bottom: 2rem;
}

.wp-block-blocksy-query article h2, .wp-block-blocksy-query .ct-dynamic-data {
    padding: 0 30px;
}

.wp-block-blocksy-query article h2 {
    font-size: 20px; 
    line-height: 0.8lh;
    font-weight: bold;
    display: block;
}

.wp-block-blocksy-query .ct-dynamic-data:nth-of-type(3) {
    position: absolute;
    left: 0;
    right: 0;
    width: auto;
    bottom: 7px;
    padding-top: 2px;
    border-top: 1px solid #575756!important;
}

@media only screen and (max-width: 800px) {
    .entries article .entry-meta {
        bottom: 5px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .entries[data-layout="grid"] {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .entries[data-layout="grid"] {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}


 /**
 * 3.5 - Contacto
 */

 body:not(.page-id-12) .grecaptcha-badge {
    visibility: hidden;
}