/**
 * trvquizbuilder — Portable, self-contained styles
 * All classes prefixed with .trvqb- for zero conflicts
 * Uses CSS custom properties with fallback values
 */

/* ===== Custom Properties ===== */
:root {
    --trvqb-primary: #000000;
    --trvqb-accent: #F59E0B;
    --trvqb-text: var(--dark);
    --trvqb-text-light: var(--dark);
    --trvqb-bg: #FFFFFF;
    --trvqb-bg-alt: #F9FAFB;
    --trvqb-border: #E5E7EB;
    --trvqb-success: #10B981;
    --trvqb-danger: #EF4444;
    --trvqb-radius: 8px;
}

/* ===== Container ===== */

.page-header {
    text-align: center;
}
.trvqb-quiz,
.trvqb-results {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
    
}

/* ===== Logo ===== */
.trvqb-logo {
    text-align: center;
    margin-bottom: 20px;
}

.trvqb-logo img {
    max-height: 60px;
    width: auto;
}

/* ===== Progress Bar ===== */
.trvqb-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--space-3);
}

.trvqb-progress__bar {
    flex: 1;
    height: 12px;
    background: var(--neutral-dark);
    border-radius: 12px;
    overflow: hidden;
}

.trvqb-progress__fill {
    height: 100%;
    background: var(--brand);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.trvqb-progress__text {
    font-size: 13px;
    color: var(--trvqb-text-light);
    white-space: nowrap;
}

/* ===== Stepper ===== */
.trvqb-stepper {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
}

.trvqb-stepper__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 70px;
}

.trvqb-stepper__circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--trvqb-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--trvqb-text-light);
    transition: all 0.2s ease;
    background: var(--trvqb-bg);
}
.trvqb-stepper__circle svg {
    margin: 0;
       height: 20px;
    width: 20px;
    fill: #fff;

}

.trvqb-stepper__item--active .trvqb-stepper__circle {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.trvqb-stepper__item--completed .trvqb-stepper__circle {
    border-color: var(--trvqb-success);
    background: var(--trvqb-success);
    color: #fff;
}

.trvqb-stepper__label {
    font-size: 12px;
    color: var(--trvqb-text-light);
    display: block;
    text-wrap: balance;
    width: 70px;
    text-align: center;
    line-height: 13px;
}

.trvqb-stepper__item--active .trvqb-stepper__label {
    color: var(--trvqb-text);
    font-weight: 700;
}

.trvqb-stepper__item--completed .trvqb-stepper__label {
    color: var(--trvqb-success);
}

/* ===== Steps ===== */
.trvqb-step {
    display: none;
    animation: trvqbFadeIn 0.4s ease-out;
}

.trvqb-step--active {
    display: block;
    background-color: var(--neutral-dark);
    padding: var(--space-4);
    border-radius: var(--border-radius-sm);
}

@keyframes trvqbFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Tip ===== */
.trvqb-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: var(--trvqb-radius);
    margin-bottom: 16px;
    font-size: 14px;
    color: #1E40AF;
}

.trvqb-tip .icon {
    flex-shrink: 0;
    font-size: 18px;
}

/* ===== Question Header ===== */
.trvqb-question__header {
    text-align: center;
    margin-bottom: 24px;
}



/* ===== Options Grid ===== */
.trvqb-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
   gap: var(--spacing-2);
    margin: 0 auto;
}

.trvqb-option {
    display: flex;
    align-items: flex-start;
    /*gap: 12px;*/
    padding: 16px;
    background: var(--trvqb-bg);
    border: 2px solid var(--trvqb-border);
    border-radius: var(--trvqb-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    margin: 0;
}

.trvqb-option:hover {
    transform: translateY(-2px);
    border-color: var(--trvqb-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.trvqb-option:active {
    transform: scale(0.98);
}

.trvqb-option--selected {
    border-color: var(--trvqb-accent);
    background: var(--trvqb-bg-alt);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.trvqb-option__icon {
    flex-shrink: 0;
    line-height: 1;
    display: flex;
    gap: 2px;
}

.trvqb-option__icon .icon {
    font-size: 28px;
    color: var(--trvqb-accent);
}

.trvqb-option__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trvqb-option__label {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--trvqb-text);
}

.trvqb-option__desc {
    color: var(--trvqb-text-light);
}

/* ===== Contact Form ===== */

.trvqb-contact__field {
    margin-bottom: 20px;
}

.trvqb-contact__field label {
    display: block;
    font-weight: 700;
    color: var(--trvqb-text);
    margin-bottom: 6px;
}

.trvqb-contact__field input {
    width: 100%;
    padding: 10px 14px;
}


.trvqb-contact__error {
    display: block;
    font-size: 13px;
    color: var(--trvqb-danger);
    margin-top: 4px;
    min-height: 18px;
}

.trvqb-contact__checkbox {
    margin-bottom: 12px;
}

.trvqb-contact__checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 2px;
    cursor: pointer;
    line-height: 1.4;
}

.trvqb-contact__checkbox input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--trvqb-accent);
}

.trvqb-contact__checkbox a {
    color: var(--trvqb-accent);
    text-decoration: underline;
}

/* ===== Navigation ===== */
.trvqb-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    padding-bottom: 40px;
}

.trvqb-nav__submit-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== Loader ===== */
.trvqb-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.trvqb-loader__inner {
    text-align: center;
}

.trvqb-loader__spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--trvqb-border);
    border-top-color: var(--trvqb-accent);
    border-radius: 50%;
    animation: trvqbSpin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes trvqbSpin {
    to { transform: rotate(360deg); }
}

.trvqb-loader__text {
    font-size: 16px;
    color: var(--trvqb-text-light);
}

.trvqb-loader__dot {
    animation: trvqbDot 1.4s ease-in-out infinite;
}

.trvqb-loader__dot:nth-child(2) { animation-delay: 0.2s; }
.trvqb-loader__dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes trvqbDot {
    0%, 80% { opacity: 0; }
    40% { opacity: 1; }
}

/* ===== Toast ===== */
.trvqb-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--trvqb-text);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--trvqb-radius);
    font-size: 14px;
    z-index: 10000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: trvqbSlideUp 0.3s ease-out;
}

@keyframes trvqbSlideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== RESULTS PAGE ===== */

.trvqb-results__header {
    text-align: center;
    margin-bottom: 24px;
}


/* Assessment */
.trvqb-assessment {
    background: var(--trvqb-bg-alt);
    border: 1px solid var(--trvqb-border);
    border-left: 4px solid var(--trvqb-accent);
    border-radius: var(--trvqb-radius);
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.trvqb-assessment__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--trvqb-text);
    margin: 0 0 8px;
}

.trvqb-assessment__text {
    font-size: 15px;
    color: var(--trvqb-text-light);
    line-height: 1.6;
    margin: 0;
}

/* Results count */
.trvqb-results__count {
    text-align: center;
    margin-bottom: 20px;
}

.trvqb-results__count h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--trvqb-text);
    margin: 0;
}

/* ===== Product Cards ===== */
.trvqb-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

@media (max-width: 991px) {
    .trvqb-products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .trvqb-products {
        grid-template-columns: 1fr;
    }
}

.trvqb-card {
    background: var(--trvqb-bg);
    border: 1px solid var(--trvqb-border);
    border-radius: var(--trvqb-radius);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.trvqb-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.trvqb-card--best {
    position: relative;
}

.trvqb-card__best {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--trvqb-radius) 0 var(--trvqb-radius) 0;
}

.trvqb-card__inner {
    display: flex;
    flex-direction: row;
}

.trvqb-card__image {
    width: 40%;
    background: var(--trvqb-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    min-height: 200px;
}

.trvqb-card__image img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.trvqb-card__image a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.trvqb-card__no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.trvqb-card__no-image .icon {
    font-size: 48px;
    color: var(--trvqb-border);
}

.trvqb-card__info {
    flex: 1;
    padding: 20px;
}

.trvqb-card__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--trvqb-text);
    margin: 0 0 4px;
}

.trvqb-card__name a {
    color: inherit;
    text-decoration: none;
}

.trvqb-card__name a:hover {
    color: var(--trvqb-accent);
}

.trvqb-card__highlight {
    font-size: 14px;
    color: var(--trvqb-text-light);
    margin: 0 0 12px;
}

/* Price */
.trvqb-card__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--trvqb-border);
}

.trvqb-card__price-current {
    font-size: 22px;
    font-weight: 700;
    color: var(--trvqb-danger);
}

.trvqb-card__price-old {
    font-size: 15px;
    color: var(--trvqb-text-light);
    text-decoration: line-through;
}

.trvqb-card__price-discount {
    font-size: 12px;
    font-weight: 700;
    background: #FEE2E2;
    color: var(--trvqb-danger);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Badges */
.trvqb-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.trvqb-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--trvqb-bg-alt);
    border: 1px solid var(--trvqb-border);
    border-radius: 20px;
    font-size: 12px;
}

.trvqb-badge__label {
    color: var(--trvqb-text-light);
}

.trvqb-badge__value {
    font-weight: 700;
    color: var(--trvqb-text);
}

/* Specs table */
.trvqb-card__specs {
    border: 1px solid var(--trvqb-border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.trvqb-card__spec-row {
    display: flex;
    font-size: 13px;
}

.trvqb-card__spec-row:nth-child(odd) {
    background: var(--trvqb-bg-alt);
}

.trvqb-card__spec-key {
    width: 40%;
    padding: 6px 10px;
    font-weight: 500;
    color: var(--trvqb-text-light);
}

.trvqb-card__spec-value {
    flex: 1;
    padding: 6px 10px;
    color: var(--trvqb-text);
}

/* Tags */
.trvqb-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.trvqb-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--trvqb-bg-alt);
    border: 1px solid var(--trvqb-border);
    border-radius: 4px;
    font-size: 11px;
    color: var(--trvqb-text-light);
    text-transform: lowercase;
}

/* Card actions */
.trvqb-card__actions {
    display: flex;
    gap: 8px;
}

.trvqb-card__actions .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
}

/* ===== Results Actions ===== */
.trvqb-actions {
    text-align: center;
    padding: var(--space-4) 0;
}

.trvqb-actions__buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* Empty / No results */
.trvqb-empty {
    text-align: center;
    padding: 48px 0;
}

.trvqb-empty__icon {
    width: 80px;
    height: 80px;
    background: var(--trvqb-bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.trvqb-empty__icon .icon {
    font-size: 40px;
    color: var(--trvqb-text-light);
}

.trvqb-empty h2 {
    font-size: 20px;
    color: var(--trvqb-text);
    margin: 0 0 8px;
}

.trvqb-empty p {
    color: var(--trvqb-text-light);
    margin: 0 0 24px;
}

/* ===== Home Banner ===== */
.trvqb-home-banner {
    background: var(--trvqb-primary, #000);
    border-radius: var(--trvqb-radius);
    padding: 32px;
    margin: 24px 0;
    text-align: center;
    color: #fff;
}

.trvqb-home-banner__inner {
    max-width: 600px;
    margin: 0 auto;
}

.trvqb-home-banner__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #fff;
}

.trvqb-home-banner__text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 20px;
    line-height: 1.5;
}

.trvqb-home-banner__cta {
    background: var(--trvqb-accent, #F59E0B);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: var(--trvqb-radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s;
}

.trvqb-home-banner__cta:hover {
    opacity: 0.9;
    color: #fff;
    text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  

    .trvqb-stepper {
        gap: 4px;
    }

    .trvqb-stepper__item {
        min-width: 40px;
    }

    .trvqb-stepper__label {
        display: none;
    }

    .trvqb-card__inner {
        flex-direction: column;
    }

    .trvqb-card__image {
        width: 100%;
        min-height: 180px;
    }

    .trvqb-card__actions {
        flex-direction: column;
    }

    .trvqb-actions__buttons {
        flex-direction: column;
        align-items: center;
    }

    .trvqb-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .trvqb-nav .btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .trvqb-quiz,
    .trvqb-results {
        padding: 0 12px;
    }

    .trvqb-option {
        padding: 12px;
    }

    .trvqb-option__icon .icon {
        font-size: 24px;
    }

    .trvqb-card__info {
        padding: 16px;
    }
}

.trvqb-contact__field .form-control {
    border: 2px solid var(--border-color);
}

.trvqb-contact__field .form-control:focus {
    border-color: var(--dark-light);
}
body #productos-footer.content-connectif {
    display: none !important;
}