:root {
    --yext-pink: #D81B60;
    --yext-green: #2E7D32;
    --yext-sand: #FDFBF7;
}

.text-yext-red {
    color: var(--yext-pink) !important;
}

.bg-yext-red {
    background-color: var(--yext-pink) !important;
}

.border-yext-red {
    border-color: var(--yext-pink) !important;
}

.bg-sand {
    background-color: var(--yext-sand);
}

.x-small {
    font-size: 11px;
}

.photo-guidelines-list li {
    margin-bottom: 0.25rem;
}

.photo-guidelines-list li:last-child {
    margin-bottom: 0;
}

.photo-guidelines hr {
    opacity: 0.15;
}

@media (max-width: 576px) {
    .photo-guidelines {
        padding: 0.75rem !important;
    }
}

.tracking-widest {
    letter-spacing: 3px;
}

#headerWizard strong {
    color: var(--yext-green);
    font-weight: 700;
}

#headerWizard .lead {
    font-size: 1.15rem;
    line-height: 1.6;
}
.min-h-terms {
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.term-number {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.term-slide {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Transición suave para el encabezado */
#headerWizard {
    transition: all 0.5s ease-in-out;
}

    /* Estado compacto: Ocultamos lo innecesario y reducimos fuentes */
    #headerWizard.header-compact {
        margin-bottom: 1rem !important;
    }

        #headerWizard.header-compact h1 {
            font-size: 1.5rem;
        }

        #headerWizard.header-compact .lead,
        #headerWizard.header-compact .title-line,
        #headerWizard.header-compact .mx-3 {
            display: none !important;
        }

        #headerWizard.header-compact .small {
            font-size: 0.75rem;
            margin-bottom: 0 !important;
        }

#wizardContentColumn.col-lg-8 {
    transition: all 0.4s ease;
}

/* Ocultar el selector por defecto, mostrarlo solo cuando el paquete está seleccionado */
.pkg-card .duration-select {
    display: none !important;
}

.pkg-card.selected .duration-select {
    display: block !important;
}

/* Mostrar el texto "Desde" por defecto, ocultarlo cuando el paquete está seleccionado */
.pkg-card .price-preview {
    display: block;
}

.pkg-card.selected .price-preview {
    display: none;
}

/* Estilo para el precio cuando no está seleccionado (más discreto) */
.pkg-card:not(.selected) .pkg-price-label {
    color: #6c757d !important; /* Gris */
    font-size: 1.1rem;
}


/* Términos y Condiciones */
.term-number {
    width: 35px;
    height: 35px;
    min-width: 35px;
    background: var(--yext-pink);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Cactus Sprite (Verde Bosque) */
.cactus-sprite-dynamic {
    width: 60px;
    height: 60px;
    background: url('../images/cactus_sprite.png') no-repeat;
    background-size: 400% 400%;
    filter: invert(34%) sepia(85%) saturate(394%) hue-rotate(84deg) brightness(92%) contrast(89%);
}


/* Asegurar cursor pointer y transición suave */
.selection-card {
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #eee;
}

    /* Efecto Hover */
    .selection-card:hover {
        border-color: rgba(216, 27, 96, 0.3);
        background-color: #FDFBF7;
        transform: translateY(-4px);
    }

/* ESTADO SELECCIONADO: Rosa Tenue y Borde Rosa Mexicano */
input[type="radio"]:checked + .selection-card {
    background-color: #FFF0F5 !important; /* Rosa Tenue */
    border: 2px solid var(--yext-pink) !important; /* Rosa Mexicano */
    box-shadow: 0 8px 20px rgba(216, 27, 96, 0.15);
}

    /* Ajuste opcional para que el texto resalte al seleccionar */
    input[type="radio"]:checked + .selection-card h6 {
        color: var(--yext-pink);
    }



/* Paquetes */
.pkg-card {
    border: 2px solid #eee;
    cursor: pointer;
    border-radius: 15px;
    position: relative;
    transition: 0.3s;
}

    .pkg-card.selected {
        border-color: var(--yext-pink);
        background: white;
    }

.pkg-badge-num {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    background: var(--yext-pink);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Steps */
.step-indicator {
    flex: 1;
    text-align: center;
    color: #ccc;
}
    .step-indicator p {
        font-size: 9px; /* Un poco más pequeño para que no choquen los textos */
    }

    .step-indicator span {
        display: inline-block;
        width: 30px;
        height: 30px;
        line-height: 28px;
        border: 2px solid #eee;
        border-radius: 50%;
        background: white;
        font-weight: bold;
    }

    .step-indicator.active {
        color: var(--yext-pink);
    }

        .step-indicator.active span {
            background: var(--yext-pink);
            border-color: var(--yext-pink);
            color: white;
        }

@media (max-width: 767.98px) {
    .step-indicator {
        flex: 1 1 0;
        min-width: 0;
    }

    .step-indicator p {
        display: none;
    }

    .step-indicator.active p {
        display: block;
        font-weight: 700;
        white-space: nowrap;
        margin-top: .25rem;
    }

    .step-indicator span {
        width: 26px;
        height: 26px;
        line-height: 22px;
        margin: 0 auto;
    }
}

.transition-all {
    transition: all 0.4s ease;
}

/* Estilo Dropzone */
.drop-zone {
    border: 2px dashed #ddd;
    border-radius: 15px;
    background-color: #fcfcfc;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .drop-zone:hover, .drop-zone.dragover {
        border-color: var(--yext-pink);
        background-color: var(--yext-sand);
    }

/* Miniaturas */
.photo-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

    .photo-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.remove-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(216, 27, 96, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

    @media (max-width: 767.98px) {
        #headerWizard {
            margin-bottom: 1.5rem !important;
        }

        #wizardMainRow {
            flex-direction: column;
            flex-wrap: nowrap;
            margin-left: 0;
            margin-right: 0;
        }

        #wizardContentColumn,
        #publishWizardForm {
            display: contents;
        }

        #sideSummary {
            order: 1;
            width: 100%;
            margin-top: 1rem;
        }

        #sideSummary .card {
            position: static !important;
        }

        #sideSummary .card-header {
            padding: .4rem .6rem !important;
            font-size: .72rem;
            letter-spacing: .03em;
        }

        #sideSummary .card-body {
            padding: .6rem .75rem !important;
            font-size: .8rem;
        }

        #sideSummary #sum-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: .25rem .75rem;
        }

        #sideSummary #sum-content > div {
            margin-bottom: 0 !important;
        }

        #sideSummary #sum-content p {
            font-size: .8rem;
            line-height: 1.2;
        }

        #sideSummary #sum-content .x-small {
            font-size: .65rem;
        }

        #sideSummary hr {
            margin: .4rem 0;
        }

        #sideSummary #sum-total {
            font-size: 1rem !important;
        }

        #sideSummary .card-body > .d-flex {
            margin-top: 0 !important;
        }

        #step7 .text-center.py-4 {
            padding-top: 0 !important;
            padding-bottom: 0 !important;
        }

        #step7 .fs-1 {
            font-size: 1.5rem !important;
            line-height: 1;
            margin-bottom: .25rem !important;
        }

        #step7 .row.mb-5 {
            margin-bottom: .5rem !important;
        }

        #step7 h2 {
            font-size: 1.25rem;
            margin-bottom: .5rem !important;
        }

        #step7 .lead {
            font-size: .85rem;
            line-height: 1.35;
            margin-bottom: 0;
        }

        #step7 .card.p-4 {
            padding: 1rem !important;
            margin-top: 1rem !important;
        }

        #step7 .card .row.g-4 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0 .5rem;
        }

        #step7 .card .row.g-4 > div {
            padding: 0 .25rem;
        }

        #step7 .card .row.g-4 > .border-start {
            border-left: 1px solid rgba(0, 0, 0, .1) !important;
            padding-left: .75rem;
        }

        #step7 .card h6 {
            font-size: .68rem;
            margin-bottom: .25rem !important;
        }

        #step7 .card p.small {
            font-size: .72rem;
            line-height: 1.3;
        }

        #step7 .fs-3 {
            font-size: 1.05rem !important;
            margin-top: .75rem !important;
        }

        #step7 .btn-lg {
            font-size: .95rem;
            padding: .6rem 1rem !important;
            width: 100%;
            margin-bottom: .5rem !important;
        }

        #step7 br {
            display: none;
        }

        #step7 a.small {
            font-size: .75rem;
        }

        #wizardMainRow:has(#step7:not(.d-none)) #sideSummary {
            display: none !important;
        }

        #step8 .text-center.mb-5 {
            margin-bottom: .75rem !important;
        }

        #step8 h2 {
            font-size: 1.25rem;
            margin-bottom: .25rem !important;
        }

        #step8 .text-center p {
            font-size: .8rem;
            line-height: 1.35;
            margin-bottom: 0;
        }

        #step8 .card {
            border-radius: .75rem !important;
            margin-top: .5rem;
        }

        #step8 .card .row.g-0 {
            display: block;
        }

        #step8 .card .col-md-8.p-5,
        #step8 .card .col-md-4.p-5 {
            padding: 1rem !important;
        }

        #step8 .card .col-md-8 h4 {
            font-size: .7rem !important;
            margin-bottom: .5rem !important;
            padding-bottom: .4rem !important;
        }

        #step8 #finalReceiptContent > div {
            font-size: .85rem;
        }

        #step8 #finalReceiptContent {
            --bs-gutter-y: 0;
            margin-top: 0 !important;
        }

        #step8 #finalReceiptContent > div.mb-4 {
            margin-bottom: .6rem !important;
        }

        #step8 #finalReceiptContent > div > label {
            margin-bottom: .1rem !important;
        }

        #step8 #finalReceiptContent > div > .fs-5 {
            font-size: .95rem !important;
        }

        #step8 .card .col-md-4 {
            border-start: 0 !important;
            border-top: 1px solid rgba(0, 0, 0, .08);
        }

        #step8 .card .col-md-4 h6 {
            font-size: .65rem;
            margin-bottom: 0 !important;
        }

        #step8 #finalTotalDisplay {
            font-size: 2rem !important;
            margin-bottom: .5rem !important;
        }

        #step8 #finalActionContainer .btn {
            width: 100%;
        }

        #step8 .x-small {
            font-size: .6rem;
            margin-top: .5rem !important;
        }

        #navBtns .btn {
            width: 100%;
            padding-top: .6rem;
            padding-bottom: .6rem;
            text-transform: uppercase;
            letter-spacing: .03em;
        }

        #navBtns #nextBtn {
            margin-left: 0 !important;
            background-color: var(--bs-success);
            border-color: var(--bs-success);
            color: #fff;
        }

        .wizard-step .card.p-5 {
            padding: 1.25rem !important;
        }

        .wizard-progress-container {
            margin-bottom: .5rem !important;
        }

        .wizard-step .mb-5 {
            margin-bottom: 1.5rem !important;
        }

        .wizard-step .mb-4 {
            margin-bottom: 1rem !important;
        }

        .wizard-step h2 {
            margin-bottom: 1rem !important;
        }

        #validation-success-box h2 {
            font-size: 1.15rem;
            white-space: nowrap;
        }

        .terms-nav {
            flex-wrap: wrap;
            row-gap: .75rem;
        }

        #prevTermBtn {
            width: 100%;
        }

        #prevTermBtn.invisible {
            display: none;
        }

        #termActions {
            width: 100%;
        }

        #termActions > #nextTermBtn {
            width: 100%;
        }

        .terms-final-actions {
            width: 100%;
        }

        .terms-final-actions .btn {
            flex: 1 1 0;
            min-width: 0;
            white-space: normal;
        }

        #headerWizard .lead {
            font-size: .92rem;
            line-height: 1.45;
        }

        #headerWizard h1.display-5 {
            font-size: 1.6rem;
            margin-bottom: .75rem !important;
        }

        #headerWizard .mb-4 {
            margin-bottom: 1rem !important;
        }

        #headerWizard .lead.px-md-5 {
            padding-left: 0 !important;
            padding-right: 0 !important;
        }

        .min-h-terms {
            min-height: 0;
            padding: 1.25rem !important;
        }

        .min-h-terms h2 {
            font-size: 1.15rem;
            margin-bottom: 1rem !important;
        }

        .terms-wizard-container .fs-5 {
            font-size: .9rem !important;
            line-height: 1.45;
        }

        .terms-wizard-container h4 {
            font-size: 1rem;
        }

        .term-number {
            width: 30px;
            height: 30px;
            min-width: 30px;
            margin-bottom: .75rem !important;
        }

        #wizardContentColumn .card.p-5 {
            padding: 1.25rem !important;
        }

        #wizardContentColumn .lead,
        #wizardContentColumn .fs-5 {
            font-size: .92rem !important;
        }

        #wizardContentColumn h2.fs-4,
        #wizardContentColumn h2.h4 {
            font-size: 1.1rem;
        }

        #wizardContentColumn .mt-5.pt-4 {
            margin-top: 1.25rem !important;
            padding-top: 1rem !important;
        }
    }

        .remove-photo:hover {
            transform: scale(1.1);
            background: #b0154b;
    }