/* ==========================================================================
   matchapp.mx — Súper-Wizard v2 Mobile-First (Fase 2A)
   Paleta: #0a0a0a fondo · #141414 tarjetas · #ffcc00 acento · #25d366 OK
   Tipografía: Quicksand (Google Fonts)
   ========================================================================== */

:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --surface-2: #1c1c1c;
    --surface-3: #252525;
    --border: #2a2a2a;
    --border-strong: #3d3d3d;
    --text: #f5f5f5;
    --text-muted: #a3a3a3;
    --text-dim: #737373;
    --gold: #ffcc00;
    --gold-hover: #ffd633;
    --gold-soft: rgba(255, 204, 0, 0.13);
    --green: #25d366;
    --green-soft: rgba(37, 211, 102, 0.14);
    --blue-accent: #56b6ff;
    --blue-soft: rgba(86, 182, 255, 0.14);
    --danger: #ff4d4f;
    --danger-bg: #2c0f12;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.48);
    --font: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 85% -10%, rgba(255, 204, 0, 0.08), transparent 40%),
        radial-gradient(circle at 10% 25%, rgba(37, 211, 102, 0.04), transparent 35%),
        var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.5;
    padding-bottom: 118px;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: 16px; /* Previene zoom forzado en iOS Safari */
}

a {
    color: var(--gold);
    text-decoration: none;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   Persistent Red Error Alert Banner (Nunca desaparece solo)
   ========================================================================== */
.error-alert-banner {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: min(748px, calc(100vw - 24px));
    z-index: 80;
    background: var(--danger-bg);
    border: 2px solid var(--danger);
    border-radius: var(--radius-md);
    padding: 14px 14px 14px 16px;
    color: #ffe2e2;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.78);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    animation: slideDownAlert 0.22s ease;
}

@keyframes slideDownAlert {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.error-alert-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.error-alert-icon {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1.2;
}

.error-alert-close {
    appearance: none;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 77, 79, 0.55);
    background: rgba(255, 77, 79, 0.18);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.error-alert-close:hover {
    background: var(--danger);
}

/* ==========================================================================
   Header & Progress Bar
   ========================================================================== */
.wizard-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(10, 10, 10, 0.93);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.wizard-header-inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 12px 16px 14px;
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-dot {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold), #ff9900);
    color: #0a0a0a;
    font-weight: 700;
    font-size: 18px;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 14px rgba(255, 204, 0, 0.28);
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.brand-name span {
    color: var(--gold);
}

.brand-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.brand-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--green);
    background: var(--green-soft);
    border: 1px solid rgba(37, 211, 102, 0.35);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.brand-tag.is-asesor {
    color: var(--gold);
    background: var(--gold-soft);
    border-color: rgba(255, 204, 0, 0.45);
}

.staging-pill {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    background: var(--gold-soft);
    border: 1px solid rgba(255, 204, 0, 0.35);
    padding: 3px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Progress Steps */
.progress-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.step-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.step-pill-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.step-pill-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.step-pill.is-active {
    border-color: var(--gold);
    background: var(--gold-soft);
    color: var(--text);
}

.step-pill.is-active .step-pill-num {
    background: var(--gold);
    color: #0a0a0a;
}

.step-pill.is-done {
    border-color: rgba(37, 211, 102, 0.45);
    color: var(--text);
}

.step-pill.is-done .step-pill-num {
    background: var(--green);
    color: #0a0a0a;
}

.progress-bar-track {
    height: 3px;
    background: var(--surface-3);
    border-radius: 999px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 16%;
    background: linear-gradient(90deg, var(--gold), var(--green));
    border-radius: 999px;
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Main Container & Cards
   ========================================================================== */
.wizard-main {
    max-width: 780px;
    margin: 0 auto;
    padding: 20px 16px 32px;
}

.step-panel {
    display: none;
    animation: fadeSlideIn 0.24s ease;
}

.step-panel.is-active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-intro {
    margin-bottom: 18px;
}

.step-kicker {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin: 0 0 4px;
}

.step-title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.step-subtitle {
    margin: 0;
    font-size: 15px;
    color: var(--text-muted);
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-hint {
    margin: -6px 0 14px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================================================
   Paso 1 · Perfil, Operación & 8 Categorías
   ========================================================================== */
.profile-grid,
.op-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 440px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

.choice-card {
    appearance: none;
    background: var(--surface-2);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 14px;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: all 0.18s ease;
    min-height: 86px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.choice-card:hover {
    border-color: var(--border-strong);
    background: var(--surface-3);
}

.choice-card.is-selected {
    border-color: var(--gold);
    background: var(--gold-soft);
    box-shadow: 0 0 0 1px rgba(255, 204, 0, 0.35);
}

.choice-card-title {
    font-size: 17px;
    font-weight: 700;
}

.choice-card-badge {
    display: inline-block;
    width: fit-content;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-direct {
    background: var(--green-soft);
    color: var(--green);
    border: 1px solid rgba(37, 211, 102, 0.35);
}

.badge-asesor {
    background: var(--gold-soft);
    color: var(--gold);
    border: 1px solid rgba(255, 204, 0, 0.4);
}

.choice-card-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
}

.choice-card-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.asesor-panel {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    animation: fadeSlideIn 0.2s ease;
}

.policy-notice {
    margin: 12px 0 0;
    padding: 11px 13px;
    border-radius: var(--radius-sm);
    background: rgba(255, 204, 0, 0.07);
    border: 1px solid rgba(255, 204, 0, 0.32);
    border-left: 3px solid var(--gold);
    color: #e9e2c8;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 520px) {
    .cat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cat-btn {
    appearance: none;
    background: var(--surface-2);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 8px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 88px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.18s ease;
}

.cat-btn svg {
    width: 26px;
    height: 26px;
    stroke: var(--text-muted);
    transition: stroke 0.18s ease;
}

.cat-btn:hover {
    border-color: var(--border-strong);
    background: var(--surface-3);
}

.cat-btn.is-selected {
    border-color: var(--gold);
    background: var(--gold-soft);
    color: var(--gold);
}

.cat-btn.is-selected svg {
    stroke: var(--gold);
}

/* ==========================================================================
   Inputs, Chips, Steppers & Sub-panels
   ========================================================================== */
.field {
    margin-bottom: 14px;
}

.field:last-child {
    margin-bottom: 0;
}

.field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.field-label .req {
    color: var(--gold);
}

.char-counter {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.char-counter.is-over {
    color: var(--danger);
}

.input,
.textarea,
.select {
    width: 100%;
    min-height: 48px;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 12px 14px;
    font-size: 16px;
    font-weight: 500;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.textarea {
    min-height: 112px;
    resize: vertical;
    line-height: 1.55;
}

.input:focus,
.textarea:focus,
.select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.15);
}

.input::placeholder,
.textarea::placeholder {
    color: var(--text-dim);
}

.input-prefix-wrap {
    display: flex;
    align-items: stretch;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-prefix-wrap:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.15);
}

.input-prefix {
    display: grid;
    place-items: center;
    padding: 0 12px;
    background: var(--surface-3);
    color: var(--gold);
    font-weight: 700;
    font-size: 15px;
    border-right: 1px solid var(--border);
    white-space: nowrap;
}

.input-prefix-wrap .input {
    border: none;
    border-radius: 0;
    background: transparent;
}

.input-prefix-wrap .input:focus {
    box-shadow: none;
}

.fields-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 480px) {
    .fields-grid-2.stack-xs {
        grid-template-columns: 1fr;
    }
}

.chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    appearance: none;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    padding: 9px 14px;
    min-height: 42px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.16s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chip:hover {
    border-color: var(--border-strong);
}

.chip.is-active {
    background: var(--gold-soft);
    border-color: var(--gold);
    color: var(--gold);
}

.chip-sub-indicator {
    font-size: 11px;
    opacity: 0.85;
}

.zone-quick-chips {
    margin-top: 10px;
}

.zone-quick-chips .chip {
    min-height: 36px;
    padding: 5px 12px;
    font-size: 13px;
}

/* Tactile Numeric Selector Pills (0, 1, 2, 3, 4+) */
.num-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.num-pill {
    appearance: none;
    min-width: 48px;
    min-height: 46px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.num-pill:hover {
    border-color: var(--border-strong);
}

.num-pill.is-active {
    background: var(--gold);
    border-color: var(--gold);
    color: #0a0a0a;
}

.inline-stepper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-2);
    border: 1.5px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 3px;
}

.stepper-btn {
    appearance: none;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: none;
    background: var(--surface-3);
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.stepper-btn:hover {
    background: var(--gold);
    color: #0a0a0a;
}

.stepper-val {
    min-width: 34px;
    text-align: center;
    font-weight: 700;
    color: var(--gold);
    font-size: 16px;
}

/* Conditional Sub-panels (auto-cierre suave ~200ms) */
.sub-panel {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 204, 0, 0.06);
    border: 1px solid rgba(255, 204, 0, 0.35);
    animation: fadeSlideIn 0.18s ease;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sub-panel.is-closing {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

.sub-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.sub-panel-title {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold);
}

.sub-panel-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-sub-done {
    appearance: none;
    min-height: 32px;
    padding: 4px 12px;
    border-radius: 999px;
    border: none;
    background: var(--green);
    color: #051b0d;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.btn-sub-remove {
    appearance: none;
    min-height: 32px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.btn-sub-remove:hover {
    border-color: var(--danger);
    color: #ffb4b5;
}

.chip-inline-detail {
    color: #fff3bf;
    font-weight: 700;
}

.sub-block {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sub-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sub-block-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

/* Binary & Ternary Switches */
.switch-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    background: var(--surface-2);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.switch-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: var(--surface-2);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

@media (max-width: 500px) {
    .switch-grid-3 {
        grid-template-columns: 1fr;
    }
}

.switch-btn {
    appearance: none;
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    padding: 10px 10px;
    min-height: 48px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.18s ease;
}

.switch-btn.is-active {
    background: var(--surface-3);
    border-color: var(--gold);
    color: var(--gold);
}

/* ==========================================================================
   Mapbox Container & Privacy Switch
   ========================================================================== */
.map-shell {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1.5px solid var(--border);
    background: #0f0f0f;
}

#wizard-map {
    width: 100%;
    height: 320px;
}

@media (min-width: 640px) {
    #wizard-map {
        height: 380px;
    }
}

.map-fallback {
    padding: 24px 16px;
    text-align: center;
    background: var(--surface-2);
}

.map-fallback p {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 14px;
}

.map-controls-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.btn-geo {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    border: 1.5px solid var(--gold);
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-geo:hover {
    background: var(--gold-soft);
}

.btn-geo:disabled {
    opacity: 0.6;
    cursor: wait;
}

.coords-readout {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.matchapp-pin {
    width: 38px;
    height: 38px;
    border-radius: 50% 50% 50% 0;
    background: var(--gold);
    transform: rotate(-45deg);
    border: 3px solid #0a0a0a;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65);
    display: grid;
    place-items: center;
    cursor: grab;
}

.matchapp-pin::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0a0a0a;
}

.privacy-note {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--text-muted);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--gold);
}

/* ==========================================================================
   Paso 2 · Cajitas Guiadas de Fotos
   ========================================================================== */
.asesor-photo-warning {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--gold-soft);
    border: 1.5px solid rgba(255, 204, 0, 0.55);
    color: #fff2bf;
    font-size: 14px;
    font-weight: 700;
}

.photo-status-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    border: 1px solid var(--border);
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
}

.photo-status-banner.is-ready {
    border-color: rgba(37, 211, 102, 0.5);
    background: var(--green-soft);
    color: #dfffe9;
}

.photo-counter-pill {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--surface-3);
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.photo-status-banner.is-ready .photo-counter-pill {
    background: var(--green);
    color: #0a0a0a;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 600px) {
    .slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.photo-slot {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    background: var(--surface-2);
    border: 2px dashed var(--border-strong);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-slot:hover {
    border-color: var(--gold);
}

.photo-slot.is-required {
    border-color: rgba(255, 204, 0, 0.65);
}

.photo-slot.has-photo {
    border-style: solid;
    border-color: var(--green);
    padding: 0;
}

.photo-slot-input {
    display: none;
}

.photo-slot-icon {
    width: 30px;
    height: 30px;
    color: var(--gold);
    margin-bottom: 6px;
}

.photo-slot-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}

.photo-slot-req-tag {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #0a0a0a;
    background: var(--gold);
    padding: 2px 8px;
    border-radius: 999px;
}

.photo-slot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-slot-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 8px 7px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    pointer-events: none;
}

.photo-check-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--green);
    color: #0a0a0a;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.photo-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(10, 10, 10, 0.82);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 3;
    transition: background 0.16s ease;
}

.photo-delete-btn:hover {
    background: var(--danger);
}

.photo-spinner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.82);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 4;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
}

.spinner {
    width: 26px;
    height: 26px;
    border: 3px solid rgba(255, 204, 0, 0.25);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.extra-photos-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.btn-add-extra {
    width: 100%;
    min-height: 52px;
    border-radius: var(--radius-md);
    border: 2px dashed var(--gold);
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.18s ease;
}

.btn-add-extra:hover {
    background: rgba(255, 204, 0, 0.2);
}

.extra-photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 14px;
}

@media (min-width: 600px) {
    .extra-photos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.extra-photo-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.extra-photo-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #0f0f0f;
}

.extra-photo-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.extra-label-input {
    width: 100%;
    border: none;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    padding: 8px 10px;
    font-size: 16px;
    min-height: 40px;
}

.extra-label-input:focus {
    outline: none;
    background: var(--surface-3);
}

/* ==========================================================================
   Paso 3 · Micro-Etapas (A -> B -> C -> D -> E -> IA) & Contador Motivacional
   ========================================================================== */
.micro-header {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 16px;
}

.micro-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.motivational-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--green-soft);
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: #d6ffe4;
    font-size: 13px;
    font-weight: 700;
}

.motivational-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.micro-steps-bar {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.micro-pill {
    appearance: none;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 4px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.16s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.micro-pill.is-active {
    background: var(--gold);
    border-color: var(--gold);
    color: #0a0a0a;
}

.micro-pill.is-done {
    border-color: rgba(37, 211, 102, 0.5);
    color: var(--green);
}

.micro-stage {
    display: none;
    animation: fadeSlideIn 0.22s ease;
}

.micro-stage.is-active {
    display: block;
}

/* Collapsible Accordion (Etapa D · Amenidades del desarrollo) */
.accordion-trigger {
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: all 0.2s ease;
    margin-top: 14px;
}

.accordion-trigger.is-highlighted {
    border-color: var(--gold);
    background: var(--gold-soft);
    color: var(--gold);
    box-shadow: 0 0 0 1px rgba(255, 204, 0, 0.25);
}

.accordion-chevron {
    transition: transform 0.2s ease;
    font-size: 18px;
}

.accordion-trigger.is-open .accordion-chevron {
    transform: rotate(180deg);
}

.accordion-body {
    margin-top: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: #101010;
    border: 1px solid var(--border);
}

/* ==========================================================================
   Etapa Final · Cierre IA, Destello Dorado y Nota de Voz MediaRecorder
   ========================================================================== */
.ai-loading-card {
    text-align: center;
    padding: 28px 18px;
    border-color: rgba(255, 204, 0, 0.45);
    background: linear-gradient(160deg, rgba(255, 204, 0, 0.08), var(--surface));
}

.ai-loading-card .spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
}

@keyframes goldFlash {
    0% {
        border-color: var(--gold);
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.75);
    }
    50% {
        border-color: var(--gold);
        box-shadow: 0 0 0 10px rgba(255, 204, 0, 0.16);
    }
    100% {
        border-color: var(--border);
        box-shadow: var(--shadow-card);
    }
}

.ai-flash-highlight {
    animation: goldFlash 1.5s ease-out;
}

.ai-decision-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
}

@media (min-width: 560px) {
    .ai-decision-row {
        grid-template-columns: 1fr 1fr;
    }
}

.btn-decision-ok {
    appearance: none;
    min-height: 52px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--green);
    background: var(--green-soft);
    color: #d9ffe7;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-decision-ok:hover {
    background: var(--green);
    color: #051b0d;
}

.btn-decision-note {
    appearance: none;
    min-height: 52px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--gold);
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-decision-note:hover {
    background: var(--gold);
    color: #0a0a0a;
}

.note-studio-panel {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    animation: fadeSlideIn 0.2s ease;
}

.recorder-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.btn-mic {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 11px 18px;
    border-radius: 999px;
    border: 2px solid var(--gold);
    background: var(--gold);
    color: #0a0a0a;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-mic.is-recording {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
    animation: pulseMic 1.2s infinite;
}

@keyframes pulseMic {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.55);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(255, 77, 79, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 77, 79, 0);
    }
}

.recorder-timer {
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--gold);
}

.recorder-timer.is-recording {
    color: #ff8688;
}

.audio-preview-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    border: 1px solid var(--border);
}

.audio-preview-row audio {
    flex: 1;
    min-width: 200px;
    height: 36px;
}

.btn-discard-audio {
    appearance: none;
    min-height: 38px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 77, 79, 0.5);
    background: rgba(255, 77, 79, 0.12);
    color: #ffb8b9;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.mic-fallback-notice {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    border-left: 3px solid var(--gold);
    font-size: 13px;
    color: var(--text-muted);
}

.btn-ai {
    width: 100%;
    min-height: 52px;
    border-radius: var(--radius-md);
    border: none;
    background: linear-gradient(135deg, var(--gold), #ffae00);
    color: #0a0a0a;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(255, 204, 0, 0.22);
    transition: transform 0.14s ease, filter 0.18s ease;
}

.btn-ai:hover {
    filter: brightness(1.06);
}

.btn-ai:disabled {
    opacity: 0.6;
    cursor: wait;
}

.ai-tip-box {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--gold-soft);
    border: 1px solid rgba(255, 204, 0, 0.45);
    font-size: 14px;
    color: var(--text);
}

.ai-tip-box strong {
    color: var(--gold);
}

/* Upsell Tour 360 */
.upsell-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.08), rgba(20, 20, 20, 0.9));
    border: 1.5px solid rgba(255, 204, 0, 0.35);
    cursor: pointer;
}

.upsell-card input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    accent-color: var(--gold);
    flex-shrink: 0;
    cursor: pointer;
}

.upsell-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    display: block;
}

.upsell-desc {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

/* Live Preview Card */
.preview-card {
    background: #101010;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.preview-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #1a1a1a;
    overflow: hidden;
}

.preview-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-media-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 600;
}

.preview-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.preview-badge {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.preview-badge-op {
    background: var(--gold);
    color: #0a0a0a;
}

.preview-badge-direct {
    background: rgba(10, 10, 10, 0.85);
    color: var(--green);
    border: 1px solid rgba(37, 211, 102, 0.45);
}

.preview-badge-asesor {
    background: rgba(10, 10, 10, 0.85);
    color: var(--gold);
    border: 1px solid rgba(255, 204, 0, 0.5);
}

.preview-body {
    padding: 16px;
}

.preview-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
    margin: 0 0 4px;
}

.preview-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.3;
}

.preview-zone {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.preview-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.preview-spec-pill {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
}

.preview-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-line;
}

/* ==========================================================================
   Sticky Bottom Navigation Bar
   ========================================================================== */
.wizard-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}

.wizard-footer-inner {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary {
    appearance: none;
    min-height: 52px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.16s ease;
}

.btn-secondary:hover {
    background: var(--surface-3);
}

.btn-primary {
    appearance: none;
    flex: 1;
    min-height: 52px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--gold);
    color: #0a0a0a;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.18s ease;
}

.btn-primary:hover {
    background: var(--gold-hover);
}

.btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-publish {
    background: var(--green);
    color: #051b0d;
}

.btn-publish:hover:not(:disabled) {
    background: #2ee472;
}

/* ==========================================================================
   Pantalla de Confirmación
   ========================================================================== */
.success-panel {
    text-align: center;
    padding: 28px 18px;
}

.success-icon {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: var(--green-soft);
    border: 2px solid var(--green);
    color: var(--green);
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    font-size: 36px;
}

.success-slug-box {
    display: block;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin: 16px 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 14px;
    color: var(--gold);
    word-break: break-all;
}

.success-slug-link {
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.success-slug-link:hover {
    border-color: var(--gold);
    background: var(--gold-soft);
}

.success-actions {
    display: grid;
    gap: 10px;
}

.success-summary {
    text-align: left;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 16px 0 22px;
    display: grid;
    gap: 10px;
    font-size: 14px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
}

.summary-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-row span {
    color: var(--text-muted);
}

.summary-row strong {
    text-align: right;
    color: var(--text);
}

/* ==========================================================================
   Toast Notifications (solo informativos/éxito — errores van en banner fijo)
   ========================================================================== */
.toast {
    position: fixed;
    left: 50%;
    bottom: 92px;
    transform: translateX(-50%) translateY(20px);
    max-width: calc(100vw - 32px);
    width: max-content;
    padding: 12px 18px;
    border-radius: 999px;
    background: #1f1f1f;
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
    opacity: 0;
    pointer-events: none;
    z-index: 60;
    transition: all 0.24s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.is-success {
    background: #0d2817;
    border-color: var(--green);
    color: #d6ffe4;
}
