/* CyberCodigo — Wizard cotización (mobile-first, compacto) */
.cotizar-page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: linear-gradient(180deg, #0a0a0a 0%, #0c0e12 55%, #0a0a0a 100%);
    overflow-x: hidden;
}

.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.08em;
    text-transform: uppercase;
    color: #22e3ff;
    font-weight: 600;
}

.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(0, 212, 255, 0.85);
    line-height: 1.4;
    margin-bottom: 1rem;
    padding-left: 0.65rem;
    border-left: 2px solid rgba(0, 212, 255, 0.45);
}

.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;
}

/* Tarjetas proyecto — compactas */
.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);
}

/* Botones — justo debajo del contenido de cada paso */
.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;
}

/* Éxito */
.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;
}

/* Sin rejilla fuerte — menos ruido */
.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;
    }
}
