#index .page:not(body) {
    padding-bottom: 1.563rem;
}

#index #wrapper {
    padding-bottom: 40px;
}
.page-content--home {
    gap: 0;
}

#td-home-title {
    margin: 0 0 20px 0;
    padding: 5px 0;
    background-color: #DDD;
}

#td-home-title p {
    margin: 0;
}

#td-home-title .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 5px 0;
    flex-wrap: wrap;
}

#td-home-title h1,
#td-home-title span,
#td-home-title h2 {
    display: inline-block;
    margin: 0;
    font-weight: 400;
    font-size: var(--font-size-base);
}


/** SOSTENIBILIDAD **/
#tpd-home-banner-eco {
    padding: var(--tpd-spacing-md) var(--tpd-spacing-xl);
}
#tpd-home-banner-eco .container {
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    height: 227px;
}
#tpd-home-banner-eco * {
    color: var(--tpd-color-white);
    margin-bottom: 0;
}

#tpd-home-banner-eco p {
    font-size: 15.4px;
    line-height: 18px;
}

#tpd-home-banner-eco .tpd-home-eco-bg-solid {
    background-color: var(--tpd-color-eco);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    align-items: stretch;
    padding: var(--tpd-spacing-md);
    width:50%;
}
#tpd-home-banner-eco .tpd-home-eco-bg-solid .tpd-home-eco-title {
    font-size: var(--font-size-md);
    font-weight: 600;
    text-transform: none;
}
#tpd-home-banner-eco .tpd-home-eco-bg-solid .tpd-home-eco-button {
    background-color: transparent;
    border: 1px solid var(--tpd-color-white);
    display: inline-block;
    width: fit-content;
    padding: 10px 20px;
    font-size: 13px;
}
#tpd-home-banner-eco .tpd-home-eco-bg-solid .tpd-home-eco-button:hover {
    background-color: transparent;
}
#tpd-home-banner-eco .tpd-home-eco-bg-solid .tpd-home-eco-button span {
    font-size: var(--font-size-sm);
}
#tpd-home-banner-eco .tpd-home-eco-bg {
    background-image: url(../img/home/descanso-sostenible.webp);
    background-position: center right;
    background-repeat: no-repeat;
    background-size: cover;
    width:50%;
    height: 100%;
    min-height: 227px;
}

/** POR QUÉ COMPRAR CON TOPDORMITORIOS **/
#tpd-home-banner-porque {
    padding: 40px 80px 40px 80px;
}

#tpd-home-banner-porque .container {
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    height: 157.5px;
}
#tpd-home-banner-porque * {
    color: var(--tpd-color-white);
    margin-bottom: 0;
}
#tpd-home-banner-porque .tpd-home-porque-bg-solid {
    background-color: var(--tpd-color-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--tpd-spacing-sm);
    align-items: stretch;
    padding: var(--tpd-spacing-md);
    width:50%;
}
#tpd-home-banner-porque .tpd-home-porque-bg-solid .tpd-home-porque-title {
    font-size: var(--font-size-md);
    font-weight: 600;
    text-transform: none;
}
#tpd-home-banner-porque .tpd-home-porque-bg-solid .tpd-home-porque-button {
    background-color: transparent;
    border: 1px solid var(--tpd-color-white);
    display: inline-block;
    width: fit-content;
    padding: 10px 20px;
}
#tpd-home-banner-porque .tpd-home-porque-bg-solid .tpd-home-porque-button:hover {
    background-color: transparent;
}
#tpd-home-banner-porque .tpd-home-porque-bg-solid .tpd-home-porque-button span {
    font-size: var(--font-size-sm);
}
#tpd-home-banner-porque .tpd-home-porque-bg {
    background-image: url(../img/home/banner-porque-comprar.webp);
    background-position: center right;
    background-repeat: no-repeat;
    background-size: cover;
    width:50%;
    height: 100%;
    min-height: 157.5px;
}

/** REASSURANCE ACCORDION **/
#tpd-reassurance {
    margin-top: 40px!important;
    margin-bottom: 16px!important;
    background-color: var(--tpd-color-white);
    width: 100%;
}

.tpd-reassurance-suptitle {
    color: var(--tpd-color-secondary);
    font-weight: 600;
    margin-bottom: var(--tpd-spacing-xxs);
    text-transform: none;
}

.tpd-reassurance-subtitle {
    color: var(--tpd-color-black);
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--tpd-spacing-md);
    text-transform: none;
}

#tpd-block-reassurance .tpd-reassurance-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tpd-reassurance-item {
    border-bottom: 1px solid rgba(0,0,0,.25)!important;
}

.tpd-reassurance-item-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--tpd-transition);
}

.tpd-reassurance-left {
    display: flex;
    align-items: center;
    gap: var(--tpd-spacing-sm);
}

.tpd-reassurance-icon {
    width: 25px;
    height: auto;
    object-fit: contain;
}

.tpd-reassurance-text {
    margin: 0;
    font-weight: 600;
    font-size: var(--font-size-base);
    color: var(--tpd-color-black);
}

.tpd-reassurance-right i {
    font-size: 16px;
    width: 16px!important;
    height: 16px!important;
    color: var(--tpd-color-black);
    display: block;
}

.tpd-reassurance-item-desc {
    padding-bottom: var(--tpd-spacing-sm);
    padding-left: calc(30px + 1.5rem);
    color: var(--tpd-color-grey-dark);
    display: grid;
    grid-template-rows: 0fr; /* Empieza cerrado */
    transition: grid-template-rows 0.3s ease-out; /* Animación lineal */
    overflow: hidden;
}

.tpd-reassurance-item.active .tpd-reassurance-item-desc {
    grid-template-rows: 1fr;
}

.tpd-hidden {
    display: none;
}

.tpd-reassurance-item-desc > div {
    min-height: 0;
}

.tpd-reassurance-item-desc p {
    margin: 0;
    font-size: var(--font-size-base);
    color: var(--tpd-color-black);
}

.tpd-hidden {
    display: none !important;
}

/* Normalizar texto de mayúsculas a tipo oración */
.text-capitalize-first {
    text-transform: lowercase;
    display: inline-block;
}
.text-capitalize-first::first-letter {
    text-transform: uppercase;
}

/* Rotación del icono al abrir */
/*.tpd-rotate-icon {
    transition: transform 0.3s ease;
}*/

.tpd-reassurance-item-title[aria-expanded="true"] .tpd-rotate-icon {
    transform: rotate(180deg);
}

/* Evitar subrayados en el título al hacer hover */
.tpd-reassurance-item-title {
    text-decoration: none !important;
    user-select: none;
}


/** REVIEWS CAROUSEL **/
.tpd-reviews-carousel {
    margin-top: 24px;
    padding-left: var(--tpd-spacing-xl);
    padding-right: var(--tpd-spacing-xl);
}
.skeepers_carousel_container {
    margin: 40px auto 80px!important
}

@media (min-width: 992px) {
    #tpd-reassurance {
        padding: 0% 20%;
        margin: 0 auto;
    }
}

@media (max-width: 767.98px) {
    .tpd-reviews-carousel {
        padding-left: 15px;
        padding-right: 15px;
    }

    .tpd-reviews-carousel .container {
        padding-left: 0;
        padding-right: 0;
    }

    #tpd-reassurance .container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/*****  Creative Slider *****/
@media (min-width: 1024px) {
    #index .ls-wp-container {
        width: 100% !important;
    }
}