/* ALLLO Studio 3.0 — diagnóstico guiado y estados accesibles. */

.alllo-quote-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9997;
    background: rgba(0, 0, 0, .78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.alllo-quote-dialog {
    position: fixed;
    z-index: 9998;
    top: 50%;
    left: 50%;
    width: min(680px, calc(100vw - 32px));
    max-height: min(90dvh, 820px);
    padding: 32px;
    overflow: auto;
    overscroll-behavior: contain;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(212, 175, 87, .34);
    border-radius: 18px;
    background: #0b0b0d;
    box-shadow: 0 32px 100px rgba(0, 0, 0, .58);
    color: #fff;
}

.alllo-quote-dialog[hidden],
.alllo-quote-backdrop[hidden],
.alllo-quote-dialog [hidden],
.alllo-diagnostic-step[hidden],
.alllo-diagnostic-result[hidden],
.alllo-diagnostic-nav[hidden] {
    display: none !important;
}

body.alllo-quote-open {
    overflow: hidden;
}

.alllo-quote-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.alllo-quote-eyebrow {
    color: #d4af57;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .15em;
    line-height: 1.4;
}

.alllo-quote-close {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
    transition: border-color .18s ease, background-color .18s ease;
}

.alllo-quote-close:hover {
    border-color: rgba(255, 255, 255, .56);
    background: rgba(255, 255, 255, .06);
}

.alllo-quote-dialog h2 {
    max-width: 560px;
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.04;
    text-wrap: balance;
}

.alllo-quote-dialog > p {
    margin: 0 0 20px;
    color: #a9a9ad;
    font-size: .91rem;
    line-height: 1.65;
}

.alllo-diagnostic-progress {
    display: flex;
    gap: 6px;
    margin: 24px 0 28px;
}

.alllo-diagnostic-progress i {
    height: 3px;
    flex: 1;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
}

.alllo-diagnostic-progress i.is-active {
    background: #d4af57;
}

.alllo-quote-dialog fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.alllo-diagnostic-step legend {
    margin: 0 0 18px;
    padding: 0;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 750;
    line-height: 1.35;
}

.alllo-diagnostic-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.alllo-diagnostic-option {
    position: relative;
    display: flex;
    min-height: 78px;
    padding: 16px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
    color: #f6f6f5;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease;
}

.alllo-diagnostic-option:hover {
    border-color: rgba(255, 255, 255, .34);
}

.alllo-diagnostic-option:has(input:checked) {
    border-color: #d4af57;
    background: rgba(212, 175, 87, .1);
}

.alllo-diagnostic-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.alllo-diagnostic-option span {
    display: grid;
    gap: 4px;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.35;
}

.alllo-diagnostic-option small {
    color: #9b9ba0;
    font-size: .73rem;
    font-weight: 400;
}

.alllo-diagnostic-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.alllo-diagnostic-nav [data-diagnostic-next] {
    margin-left: auto;
}

.alllo-diagnostic-result {
    padding: 24px;
    border: 1px solid rgba(212, 175, 87, .36);
    border-radius: 14px;
    background: rgba(212, 175, 87, .075);
}

.alllo-diagnostic-result > span {
    color: #d4af57;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .15em;
}

.alllo-diagnostic-result h3 {
    margin: 8px 0;
    color: #fff;
    font-size: clamp(1.9rem, 6vw, 2.5rem);
}

.alllo-diagnostic-result p {
    margin: 0;
    color: #b7b7bb;
    font-size: .88rem;
    line-height: 1.6;
}

.alllo-diagnostic-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.alllo-quote-disclaimer {
    margin: 16px 0 0 !important;
    color: #85858a !important;
    font-size: .68rem !important;
}

.alllo-quote-dialog :focus-visible,
.alllo-diagnostic-option:has(input:focus-visible) {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 620px) {
    .alllo-quote-dialog {
        width: calc(100vw - 20px);
        max-height: 94dvh;
        padding: 22px;
        border-radius: 14px;
    }

    .alllo-quote-top {
        align-items: flex-start;
    }

    .alllo-quote-eyebrow {
        max-width: 240px;
        font-size: .61rem;
    }

    .alllo-quote-dialog h2 {
        font-size: clamp(1.9rem, 10vw, 2.45rem);
    }

    .alllo-diagnostic-options {
        grid-template-columns: 1fr;
    }

    .alllo-diagnostic-option {
        min-height: 66px;
        padding: 14px;
    }

    .alllo-diagnostic-result {
        padding: 19px;
    }

    .alllo-diagnostic-result-actions {
        display: grid;
    }

    .alllo-diagnostic-result-actions .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .alllo-quote-dialog *,
    .alllo-quote-backdrop {
        transition: none !important;
    }
}
