/* Variables de marca */

 :root {
    --tdbb-gold: #a68955;
    --tdbb-yellow: #fbc02d;
    --tdbb-dark-gold: #8e7446;
}

body {
    background-color: #eee;
    min-height: 120vh;
}


/* Backdrop / Capa de fondo */

#tdbb-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    /* Opacidad del fondo */
    z-index: 999998;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}


/* Contenedor Principal TDBB */

#tdbb-booking-widget {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 850px;
    max-width: 95vw;
    background: #fff;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    z-index: 999999;
    border-radius: 8px;
    display: none;
    flex-direction: row;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}


/* Estado visible para Backdrop y Modal */

#tdbb-backdrop.tdbb-active {
    display: block;
    opacity: 1;
}

#tdbb-booking-widget.tdbb-active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}


/* Columna de Imagen */

.tdbb-image-side {
    width: 45%;
    background-size: cover;
    background-position: center;
    min-height: 450px;
    display: block;
}


/* Columna de Contenido */

.tdbb-content-side {
    width: 55%;
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}


/* Botón Cerrar */

.tdbb-close {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-size: 30px;
    color: #333;
    line-height: 1;
    font-weight: 300;
    z-index: 10;
}

.tdbb-title {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--tdbb-gold);
    margin-bottom: 15px;
    line-height: 1.2;
}

.tdbb-subtitle {
    font-size: 1rem;
    color: #444;
    margin-bottom: 20px;
}


/* Beneficios */

.tdbb-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 20px;
    text-align: left;
    display: inline-block;
}

.tdbb-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.tdbb-list li::before {
    content: '✓';
    color: #4CAF50;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.1rem;
}


/* Texto Promocional */

.tdbb-promo {
    color: var(--tdbb-yellow);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.05);
    line-height: 1.3;
}


/* Contador */

.tdbb-timer-wrap {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.tdbb-timer-box {
    background: var(--brand-color);
    color: #000;
    padding: 10px 5px;
    border-radius: 6px;
    min-width: 65px;
}

.tdbb-timer-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.tdbb-timer-lab {
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 700;
}


/* Botón estilo Tesoro */

.butn-dark2 {
    background: var(--tdbb-gold);
    color: #fff !important;
    padding: 20px 10px;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: normal;
    border: none;
    transition: .3s;
}

.butn-dark2:hover {
    background: var(--tdbb-dark-gold);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


/* Adaptación a Móviles */

@media (max-width: 768px) {
    #tdbb-booking-widget {
        flex-direction: column;
        width: 90vw;
    }
    .tdbb-image-side {
        display: none;
    }
    .tdbb-content-side {
        width: 100%;
        padding: 40px 20px;
    }
    .tdbb-title {
        font-size: 1.3rem;
    }
}