/* CyberCodigo — Wizard cotización (mobile-first + desktop premium split) */
.cotizar-page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(180deg, #0a0a0a 0%, #0c0e12 55%, #0a0a0a 100%);
    overflow-x: hidden;
}

.cotizar-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.cotizar-workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Panel visual — solo desktop */
.cotizar-visual {
    display: none;
}

.cotizar-visual-slides {
    position: absolute;
    inset: 0;
}

.cotizar-visual-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.9s ease, transform 1.2s ease;
}

.cotizar-visual-img.is-active {
    opacity: 1;
    transform: scale(1);
}

.cotizar-visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(5, 8, 14, 0.92) 0%, rgba(5, 8, 14, 0.55) 45%, rgba(5, 8, 14, 0.88) 100%),
        linear-gradient(180deg, transparent 50%, rgba(0, 212, 255, 0.08) 100%);
    pointer-events: none;
}

.cotizar-visual-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 2.5rem 2.75rem 3rem;
    max-width: 36rem;
}

.cotizar-visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    align-self: flex-start;
    padding: 0.4rem 0.85rem;
    margin-bottom: 1.25rem;
    border-radius: 999px;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: #050508;
    background: linear-gradient(135deg, #00d4ff, #5ce1ff);
    box-shadow: 0 4px 24px rgba(0, 212, 255, 0.35);
}

.cotizar-visual-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.75rem, 2.4vw, 2.65rem);
    line-height: 1.12;
    color: #fafafa;
    margin-bottom: 0.85rem;
}

.cotizar-visual-title span {
    color: #00d4ff;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

.cotizar-visual-lead {
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 1.35rem;
}

.cotizar-visual-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.cotizar-visual-perks li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.4;
}

.cotizar-visual-perks i {
    color: #00d4ff;
    margin-top: 0.15rem;
    width: 1rem;
    flex-shrink: 0;
}

.cotizar-visual-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cotizar-visual-proof span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
}

.cotizar-visual-proof strong {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 0.1rem;
}

.cotizar-header {
    flex-shrink: 0;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 40;
}

.cotizar-header img {
    height: 2rem;
    width: auto;
}

.cotizar-trust {
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #22e3ff;
    font-weight: 600;
    text-align: right;
    max-width: 52%;
    line-height: 1.35;
}

.cotizar-error-banner {
    max-width: 28rem;
    margin: 0.5rem auto 0;
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
    color: #ffb4b4;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: 0.65rem;
    width: calc(100% - 2rem);
}

.cotizar-progress-wrap {
    flex-shrink: 0;
    padding: 0.75rem 1rem 0;
    max-width: 28rem;
    margin: 0 auto;
    width: 100%;
}

.cotizar-main {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem 1.25rem;
    max-width: 28rem;
    margin: 0 auto;
    width: 100%;
}

.cotizar-lead-form {
    display: block;
    width: 100%;
}

.cotizar-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.45rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.04em;
}

.cotizar-progress-meta strong {
    color: #00d4ff;
    font-weight: 600;
}

.cotizar-progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
}

.cotizar-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00b8e6, #00d4ff, #5ce1ff);
    border-radius: 999px;
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.45);
}

.cotizar-viewport {
    position: relative;
}

.cotizar-track {
    position: relative;
}

.cotizar-step {
    display: none;
    width: 100%;
    padding: 0.15rem 0 0;
    animation: cotizarStepIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.cotizar-step.is-active {
    display: block;
}

@keyframes cotizarStepIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cotizar-step-label {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #22e3ff;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.cotizar-step h1 {
    font-family: 'Syne', sans-serif;
    font-size: 1.55rem;
    line-height: 1.18;
    color: #fafafa;
    margin-bottom: 0.45rem;
}

.cotizar-step h1 .accent {
    color: #00d4ff;
    text-shadow: 0 0 32px rgba(0, 212, 255, 0.25);
}

.cotizar-step .lead {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 0.85rem;
}

.cotizar-hook {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.45;
    margin-bottom: 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.65rem;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.18);
}

.cotizar-hook strong {
    color: #00d4ff;
}

.cotizar-micro {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.38);
    margin-top: 0.85rem;
    line-height: 1.4;
    text-align: center;
}

.cotizar-micro--tight {
    margin-top: 0.75rem;
}

.cotizar-micro i {
    color: #00d4ff;
    margin-right: 0.2rem;
}

.cotizar-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cotizar-option {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(14, 16, 22, 0.95);
    color: #fff;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.cotizar-option.is-selected {
    border-color: rgba(0, 212, 255, 0.65);
    background: rgba(0, 212, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.12);
}

.cotizar-option-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.04));
    color: #00d4ff;
    font-size: 1rem;
    flex-shrink: 0;
}

.cotizar-option-text strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
}

.cotizar-option-text span {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.3;
}

.cotizar-option-check {
    margin-left: auto;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.cotizar-option.is-selected .cotizar-option-check {
    border-color: #00d4ff;
    background: #00d4ff;
    box-shadow: inset 0 0 0 2px #0a0a0a;
}

.cotizar-field {
    width: 100%;
    padding: 0.95rem 1.1rem;
    font-size: 1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(14, 16, 22, 0.95);
    color: #fff;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cotizar-field::placeholder {
    color: rgba(255, 255, 255, 0.32);
}

.cotizar-field:focus {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.cotizar-step-foot {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    width: 100%;
}

.cotizar-step[data-step="1"] .cotizar-btn-back {
    visibility: visible;
}

.cotizar-btn {
    flex: 1;
    padding: 0.9rem 1.15rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cotizar-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.cotizar-btn-back {
    flex: 0 0 auto;
    min-width: 3.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.8);
}

.cotizar-btn-next,
.cotizar-btn-start {
    background: linear-gradient(135deg, #00c4eb, #00d4ff);
    color: #050508;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.cotizar-btn-next:hover:not(:disabled),
.cotizar-btn-start:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 212, 255, 0.4);
}

.cotizar-btn-start {
    width: 100%;
    margin-top: 0;
}

.cotizar-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem 2rem;
    max-width: 28rem;
    margin: 0 auto;
    animation: cotizarFadeIn 0.5s ease;
}

.cotizar-success.is-visible {
    display: flex;
}

@keyframes cotizarFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.cotizar-success-ring {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: rgba(0, 212, 255, 0.06);
    color: #00d4ff;
    font-size: 1.5rem;
}

.cotizar-success h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.cotizar-success-hero {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.1rem;
    text-align: left;
}

.cotizar-wins {
    list-style: none;
    padding: 0;
    margin: 0 0 1.15rem;
    text-align: left;
    width: 100%;
}

.cotizar-wins li {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.68);
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cotizar-wins li i {
    color: #00d4ff;
    width: 1.25rem;
    margin-right: 0.35rem;
}

.cotizar-success-cta-label {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
    width: 100%;
}

.cotizar-success-email-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.42);
    margin-top: 0.85rem;
}

.cotizar-success p {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.cotizar-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.95rem 1.25rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.3);
}

.cotizar-save-ref {
    font-size: 0.72rem;
    color: rgba(0, 212, 255, 0.65);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.cotizar-skip-wa {
    margin-top: 0.85rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cotizar-grid-glow {
    display: none;
}

.cotizar-wizard-hidden {
    display: none !important;
}

@media (min-width: 640px) {
    .cotizar-step h1 {
        font-size: 1.85rem;
    }

    .cotizar-main,
    .cotizar-progress-wrap {
        max-width: 32rem;
    }

    .cotizar-trust {
        font-size: 11px;
        max-width: none;
    }
}

@media (min-width: 1024px) {
    .cotizar-shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr) min(520px, 44vw);
        min-height: calc(100vh - 3.5rem);
        min-height: calc(100dvh - 3.5rem);
    }

    .cotizar-visual {
        display: block;
        position: relative;
        overflow: hidden;
        min-height: 100%;
    }

    .cotizar-workspace {
        border-left: 1px solid rgba(0, 212, 255, 0.12);
        background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(12, 14, 18, 0.99) 100%);
        overflow-y: auto;
    }

    .cotizar-progress-wrap {
        max-width: none;
        padding: 1.25rem 2rem 0;
        margin: 0;
    }

    .cotizar-main {
        max-width: none;
        padding: 1rem 2rem 2.5rem;
        margin: 0;
        flex: 1;
    }

    .cotizar-step h1 {
        font-size: 2rem;
    }

    .cotizar-step .lead {
        font-size: 0.95rem;
    }

    .cotizar-error-banner {
        max-width: none;
        margin-left: 2rem;
        margin-right: 2rem;
        width: auto;
    }

    .cotizar-success {
        max-width: none;
        padding: 2rem 2rem 3rem;
        margin: 0;
        flex: 1;
        justify-content: center;
    }

    .cotizar-success-hero,
    .cotizar-wins,
    .cotizar-success-cta-label {
        max-width: 28rem;
    }

    .cotizar-wa-btn {
        max-width: 28rem;
    }
}

@media (min-width: 1280px) {
    .cotizar-shell {
        grid-template-columns: minmax(0, 1.15fr) min(560px, 42vw);
    }

    .cotizar-visual-content {
        padding: 3rem 3.5rem 3.5rem;
    }

    .cotizar-step h1 {
        font-size: 2.15rem;
    }
}
