/* ---------------------------------------- */
/* Home Counters */
.preheader {
    border-bottom: 1px solid #DFDBD1;
}



/* ---------------------------------------- */
/* Home Lynx Counters */
.home .linx,
.home .linx__value {
    color: var(--brown-color);
}

.linx__subtitle {
    font-size: 18px;
}



/* ---------------------------------------- */
/* Home Leo */
.leo__title,
.leo__text,
.leo__step {
    color: #ffffff;
}



/* ---------------------------------------- */
/* Card Casiopea 
.card.casiopea:nth-child(3n+2) {
    margin-top: 30px;
}

.card.casiopea:nth-child(3n+3) {
    margin-top: 60px;
}
*/
@media screen and (max-width: 980px) {

    .card.casiopea:nth-child(2),
    .card.casiopea:nth-child(3) {
        margin-top: initial;
    }
}

.card.casiopea.ads--card {
    margin-top: 0;
}



/* ---------------------------------------- */
/* Vega testimonio */
.vega__stars .stars__item {
    color: var(--primary-color);
}


/* ---------------------------------------- */
/* Text box */
.text.text--bg--color {
    width: 100%;
    border: 2px solid #DFDBD1;
    border-radius: 5px;
    padding: 10px 3px;
    margin-bottom: 10px;
}


/* ---------------------------------------- */
/* Accordion */
.accordion .background {
    border: 2px solid #DFDBD1;
    border-radius: 5px;
}


/* ---------------------------------------- */
/* Tablas de características */
.virgo {
    padding-top: 0px;
    border: 2px solid #DFDBD1;
    box-shadow: none;
    border-radius: 5px;
}

.virgo .box {
    box-shadow: none;
}

.virgo__description {
    color: var(--black-color);
}

.virgo__characteristics {
    position: relative;
    padding-top: 30px;
}

.virgo__characteristics:before {
    position: absolute;
    content: '';
    top: 0;
    width: 100%;
    height: 2px;
    background-color: #DFDBD1;
}

.virgo__characteristic {
    color: var(--brown-color);
    font-weight: 700;
}


/* ---------------------------------------- */
/* Menú ancla */
.anchor-menu a {
    color: var(--brown-color);
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.anchor-menu a::after {
    position: absolute;
    content: '';
    bottom: -5px;
    left: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background-color: var(--brown-color);
    transition: all 0.3s ease;
    -webkit-transform: scaleX(1);
    transform: scaleX(1)
}

.anchor-menu a:hover,
.anchor-menu a.active {
    color: var(--primary-color);
}

.anchor-menu a:hover::after,
.anchor-menu a.active::after {
    background-color: var(--primary-color);
    -webkit-animation: dashanim-active 0.4s var(--easeoutcubic);
    animation: dashanim-active 0.4s var(--easeoutcubic)
}


@-webkit-keyframes dashanim-active {
    0% {
        width: 100%;
        right: 0;
        left: auto
    }

    50.9% {
        width: 0;
        right: 0;
        left: auto
    }

    51% {
        right: auto;
        left: 0
    }

    99.9% {
        right: auto;
        left: 0
    }

    100% {
        width: 100%;
        right: 0;
        left: auto
    }
}

@keyframes dashanim-active {
    0% {
        width: 100%;
        right: 0;
        left: auto
    }

    50.9% {
        width: 0;
        right: 0;
        left: auto
    }

    51% {
        right: auto;
        left: 0
    }

    99.9% {
        right: auto;
        left: 0
    }

    100% {
        width: 100%;
        right: 0;
        left: auto
    }
}




/* ---------------------------------------- */
/* Calendario */
.calendar__day {
    color: var(--brown-color);
}

.calendar__day--today {
    background-color: var(--primary-color);
    border: 0;
    color: var(--cream-color);
}

.calendar__day--results:not(.calendar__day--results--hidden) {
    color: var(--primary-color);
}

.calendar__day--results.calendar__day--selected:not(.calendar__day--results--hidden) {
    background-color: var(--brown-color);
    color: var(--cream-color);
    border-color: var(--brown-color);
}

.calendar__day--results.calendar__day--today:not(.calendar__day--results--hidden) {
    color: var(--cream-color);
}

.calendar__month__title {
    font-size: 18px !important;
    text-align: right;
    padding-right: 60px
}


.calendar--click {
    text-align: center;
    padding: 15px 0;
    width: 100%;
    background: var(--cream-color);
    color: var(--brown-color);
    font-weight: 700;
}

#calendar__click-day {
    display: block;
    font-size: 36px;
    line-height: 1;
}

.card--format-mini {
    padding: 0 20px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.card--format-mini .casiopea__data.padding--horizontal-30 {
    padding-top: 15px;
    padding-bottom: 15px;
}

.card--format-mini .casiopea__data>* {
    margin: 5px 0 0;
}

.background--calendar--events {
    display: none;
    position: relative;
    max-height: 350px;
    height: 100%;
}

body.show--calendar--events .background--calendar--events {
    border: 1px solid #DFDBD1;
    background-color: rgba(111, 51, 25, 0.1);
    overflow-y: auto;
    -webkit-animation: fade-in-fwd 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
    animation: fade-in-fwd 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

.background--calendar--events::-webkit-scrollbar {
    width: 10px;
}

.background--calendar--events::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.background--calendar--events::-webkit-scrollbar-thumb {
    background-color: var(--brown-color);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}


/**
 * ----------------------------------------
 * animation fade-in-fwd
 * ----------------------------------------
 */
@-webkit-keyframes fade-in-fwd {
    0% {
        -webkit-transform: translateZ(-80px);
        transform: translateZ(-80px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        opacity: 1;
    }
}

@keyframes fade-in-fwd {
    0% {
        -webkit-transform: translateZ(-80px);
        transform: translateZ(-80px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        opacity: 1;
    }
}


/* ---------------------------------------- */
/* Archive filters */
body.archive .container--m {
    position: relative;
}

body.filter--active .archive--container {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

body.filter--active .archive--container>div:first-child {
    flex-basis: calc(25% - 20px);
}

body.filter--active .archive--container>div:last-child {
    flex-basis: calc(75% - 20px);
}

.archive--container .dynamic-module-group {
    opacity: 0;
    display: none;
    -webkit-animation: fade-out-left 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: fade-out-left 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.archive--container .dynamic-module-group.active {
    opacity: 1;
    display: block;
    -webkit-animation: fade-in-left 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
    animation: fade-in-left 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

.filter__btn {
    position: absolute;
    top: -100px;
    right: 0;
    cursor: pointer;
}

.filter__btn .close__filter {
    display: none;
}

.filter__btn .open__filter {
    display: inline-block;
}

body.filter--active .filter__btn .close__filter {
    display: inline-block;
}

body.filter--active .filter__btn .open__filter {
    display: none;
}

.filter__span,
.filter__btn {
    margin-bottom: 50px;
}

.filter__span,
.filter__btn,
.archive--container .dynamic-module--filters .filters p,
.archive--container .dynamic-module--filters .filters label span {
    color: var(--brown-color);
}

.archive--container .grid--cols-2 .card.casiopea:nth-child(odd) {
    margin-top: 0;
}

.archive--container .grid--cols-2 .card.casiopea:nth-child(even) {
    margin-top: 30px;
}


.archive--container .filters input[type="checkbox"] {
    background: transparent;
    border-color: var(--brown-color);
}

.archive--container .filters input[type="checkbox"]:checked::after {
    color: var(--brown-color);
}

@media screen and (max-width: 980px) {

    body.filter--active .archive--container {
        flex-flow: column wrap;
    }

    .archive--container>div:first-child {
        flex-basis: 100%;
    }

    .archive--container>div:last-child {
        flex-basis: 100%;
    }

    .archive--container .dynamic-module-group {
        max-width: 100%;
        margin-bottom: 50px;
    }



    .archive--container .dynamic-module--filters .filters {
        flex-flow: row wrap;
        gap: 20px;
    }

    .archive--container .dynamic-module--filters .filters p {
        font-size: 16px;
    }

    .archive--container .dynamic-module--filters .filters label span {
        font-size: 14px;
    }

    .archive--container .card.casiopea:nth-child(even) {
        margin-top: 0;
    }

}

@-webkit-keyframes fade-in-left {
    0% {
        -webkit-transform: translateX(-50px);
        transform: translateX(-50px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-in-left {
    0% {
        -webkit-transform: translateX(-50px);
        transform: translateX(-50px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

@-webkit-keyframes fade-out-left {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        -webkit-transform: translateX(-50px);
        transform: translateX(-50px);
        opacity: 0;
    }
}

@keyframes fade-out-left {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        -webkit-transform: translateX(-50px);
        transform: translateX(-50px);
        opacity: 0;
    }
}



/* ---------------------------------------- */
/* Archive filters */
.page-id-88 main img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}



.grecaptcha-badge {
    visibility: hidden;
}



/* ---------------------------------------- */
/* Blog justificado */
.single-post .single--content {
    text-align: justify;
}

footer .text--links-s a:not(.button):not(.share__link):not(.cta_button) {
    border-bottom: 0;
}


/* ---------------------------------------- */
/* Tablón anuncios */
.filters.ads .filter-button {
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.filters.ads .filter-button.filter__current {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color);
}

.casiopea.ads--card:not(.show) {
    display: none;
}

.casiopea.ads--card.show {
    display: block;
}

.casiopea.ads--card .casiopea__intro {
    margin: 2px 0;
}

.casiopea.ads--card .casiopea__intro-contact a {
    display: block;
    text-align: left;
    border: 0;
}

.casiopea.ads--card .flex--gap-20 {
    margin-top: 8px !important;
}

.popup--ads {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 99999;
    padding: 0 !important;
}

.popup--ads .popup__wrapper {
    position: absolute;
    top: 50px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    width: 100%;
}

.gallery__ads {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    gap: 5px;
    align-items: center;
    /* margin-bottom: 20px; */
}

.gallery__ads-item {
    /* flex-basis: calc(33.33% - 5px); */
    height: 150px;
    border-radius: 5px;
    overflow: hidden;
}


.gallery__ads-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
}

.content__ads {
    width: 100%;
    min-width: 700px;
    display: flex;
    flex-flow: column wrap;
    justify-content: space-between;
    gap: 30px;
    text-align: left;
}

.content__ads .left {
    flex-basis: calc(30% - 30px);
}

.content__ads .right {
    flex-basis: calc(70% - 30px);
}

.content__ads .left a {
    font-size: 14px;
    margin-bottom: 4px;
}

.content__ads .right {
    font-size: 16px;
}

.content__ads .right p {
    margin-bottom: 8px;
}

.content__ads .right ul li {
    padding: 0;
    margin: 0;
}

.content__ads .right {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Suaviza el scroll en iOS */
}

.content__ads .right table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
    /* Evita el salto de línea en las celdas */
}

.add__new {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
}

@media screen and (max-width: 800px) {

    .popup--ads {
        overflow-y: scroll;
    }

    .popup__close {
        top: 10px;
        right: 10px;
    }

    .popup__close span {
        font-size: 42px;
    }

    .gallery__ads-item {
        flex-basis: calc(50% - 5px);
        height: auto;
    }

    .content__ads {
        min-width: initial;
    }

    .content__ads .left,
    .content__ads .right {
        flex-basis: 100%;
    }

    .content__ads .right {
        overflow-x: auto;
    }
}

@media screen and (max-width: 560px) {
    .gallery__ads-item {
        flex-basis: 100%;
        height: auto;
    }
}




/*  TV CHANGES */
@media screen and (min-width: 980px) {

    .page-id-5280 .section--margin-bottom-s,
    .page-id-5280 .section--margin-s,
    .page-id-5280 .section--margin-m,
    .single-ads .section--margin-bottom-s,
    .single-ads .section--margin-s,
    .single-ads .section--margin-m {
        margin-block: 0;
    }

    .page-id-5280 .section--margin-bottom-s,
    .single-ads .section--margin-bottom-s {
        margin: 100px 0;
    }

    .page-id-5280 .section--margin-bottom-m,
    .single-ads .section--margin-bottom-m {
        margin: 100px 0;
    }

    .page-id-5280 .section--padding-none,
    .single-ads .section--padding-none {
        padding: 0;
    }

    .page-id-5280 .container,
    .single-ads .container {
        margin-inline: 0;
        margin: 0 auto;
    }

    .page-id-5280 .container--m,
    .single-ads .container--m,
    .page-id-5280 .container--s,
    .single-ads .container--s {
        padding-inline: 0;
        padding: 0 12px;
    }

    .page-id-5280 .container+.container,
    .single-ads .container+.container {
        margin-top: 50px;
    }


    .page-id-5280 .container--extra-l,
    .single-ads .container--extra-l {
        margin-inline: 0;
        margin: 0 auto;
    }


    .page-id-5280 .grid--cols-gap-80,
    .single-ads .grid--cols-gap-80 {
        gap: 0px;
    }

    .page-id-5280 .flex--gap-20,
    .single-ads .flex--gap-20 {
        gap: 0;
    }

    .page-id-5280 .flex--gap-20>*,
    .single-ads .flex--gap-20>* {
        margin-right: 20px;
    }

    .page-id-5280 .flex--gap-20>*:last-child,
    .single-ads .flex--gap-20>*:last-child {
        margin-right: 0;
    }

    .page-id-5280 .grid--cols-gap-80>div,
    .single-ads .grid--cols-gap-80>div {
        margin-right: 50px;
    }

    .page-id-5280 .grid--cols-gap-80>div:nth-child(3n) {}
}