/* css/wizard.css */
#wizard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff !important;
    z-index: 100000 !important;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 2rem 1.5rem;
    box-sizing: border-box;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Header del Wizard: Logo y botón Saltar Intro */
.wizard-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    z-index: 100005;
    pointer-events: none;
    background: transparent;
}

.wizard-top-bar > * {
    pointer-events: auto;
}

.wizard-top-bar .wizard-logo {
    font-weight: 800;
    font-size: clamp(1.2rem, 3.5vw, 2.0rem);
    color: var(--color-text-main, #000000);
    letter-spacing: -0.04em;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    line-height: 1;
}

.wizard-top-bar .wizard-logo span {
    color: var(--color-accent, #000000);
    display: inline-block;
    transition: transform 0.3s ease;
}

.wizard-top-bar .wizard-logo:hover span {
    transform: scale(1.3) rotate(15deg);
}

.wizard-top-bar .wizard-overlay-skip-btn {
    position: static;
    margin: 0;
}

.wizard-skip-btn {
    background: #000000 !important;
    border: 1px solid #000000 !important;
    color: #ffffff !important;
    padding: 0.55rem 1.25rem !important;
    border-radius: 9999px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-family: inherit !important;
    text-decoration: none !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
    z-index: 999999 !important;
}

.wizard-skip-btn:hover {
    background: #27272a !important;
    border-color: #27272a !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

.wizard-overlay-skip,
.wizard-overlay-skip-btn {
    position: fixed;
    top: 1.75rem;
    right: 2rem;
    z-index: 10005;
    background: #000000 !important;
    border: 1px solid #000000 !important;
    color: #ffffff !important;
    padding: 0.6rem 1.35rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    text-decoration: none;
    line-height: 1;
}

.wizard-overlay-skip:hover,
.wizard-overlay-skip-btn:hover {
    background: #27272a !important;
    border-color: #27272a !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
}

/* Inline skip button inside wizard steps */
.wizard-step-actions {
    margin-top: 2.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

.wizard-inline-skip-btn {
    background: #f4f4f5;
    color: #09090b;
    border: 1px solid #e4e4e7;
    padding: 0.75rem 1.6rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.wizard-inline-skip-btn svg {
    transition: transform 0.2s ease;
}

.wizard-inline-skip-btn:hover {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.wizard-inline-skip-btn:hover svg {
    transform: translateX(4px);
}

.wizard-actions-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.wizard-btn-profesion {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    padding: 0.75rem 1.6rem !important;
    border-radius: 9999px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-family: inherit !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
    text-decoration: none !important;
}

.wizard-btn-profesion svg {
    transition: transform 0.2s ease;
}

.wizard-btn-profesion:hover {
    background: #27272a !important;
    border-color: #27272a !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.wizard-btn-profesion:hover svg {
    transform: translateX(4px);
}

.wizard-step-hint {
    color: #71717a;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.wizard-step-hint kbd {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-family: inherit;
    font-weight: 600;
    color: #334155;
}

@media (max-width: 640px) {
    .wizard-top-bar {
        padding: 1.25rem 1.25rem;
    }
    .wizard-top-bar .wizard-logo {
        font-size: clamp(1.1rem, 4.5vw, 1.35rem);
    }
    .wizard-top-bar .wizard-overlay-skip-btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.8rem;
    }
    .wizard-skip-btn {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
    }
    .wizard-overlay-skip,
    .wizard-overlay-skip-btn {
        top: 1rem;
        right: 1rem;
        padding: 0.45rem 0.9rem;
        font-size: 0.8rem;
    }
    .wizard-inline-skip-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }
    .wizard-step-actions {
        margin-top: 1.5rem;
    }
    .wizard-step {
        padding: 1.25rem;
        max-height: 85vh;
        overflow-y: auto;
    }
    .wizard-title {
        font-size: clamp(1.5rem, 5vw, 2.25rem) !important;
        margin-bottom: 1.5rem !important;
    }
    .wizard-input {
        font-size: clamp(1.5rem, 6vw, 2.25rem) !important;
    }
    #wizard-step-3 {
        padding: 0.5rem 0.25rem !important;
        max-height: 85vh;
        overflow-y: auto;
    }
    #wizard-step-3 .wizard-title {
        font-size: clamp(1.4rem, 5vw, 1.85rem) !important;
        margin-bottom: 1.25rem !important;
    }
    .wizard-categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem 0.35rem !important;
        max-height: 58vh;
        overflow-y: auto;
        padding: 0.25rem;
    }
    .wizard-category-btn {
        padding: 0.6rem 0.25rem !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 8px !important;
        gap: 0.35rem !important;
    }
    .wizard-category-icon {
        width: 34px !important;
        height: 34px !important;
    }
    .wizard-category-btn svg,
    .wizard-category-icon svg {
        width: 24px !important;
        height: 24px !important;
        color: #27272a !important;
    }
    .wizard-category-label,
    .wizard-category-btn span:not(.wizard-category-icon) {
        font-size: 0.72rem !important;
        color: #3f3f46 !important;
    }
}


.wizard-step {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    width: 100%;
    max-width: 900px;
    padding: 2rem;
}

.wizard-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--color-text-main, #111827);
    margin-bottom: 2rem;
}

.wizard-input-container {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.wizard-input {
    width: 100%;
    font-size: 3rem;
    padding: 1rem 0;
    border: none;
    border-bottom: 4px solid var(--color-border, #e5e7eb);
    background: transparent;
    color: var(--color-text-main, #111827);
    text-align: center;
    outline: none;
    transition: border-color 0.3s ease;
}

.wizard-input:focus {
    border-color: #000000;
}

.wizard-input::placeholder {
    color: var(--color-text-muted, #9ca3af);
}

.wizard-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-top: 0.5rem;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    z-index: 10001;
}

.wizard-suggestion-item {
    padding: 1rem;
    font-size: 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
}

.wizard-suggestion-item:hover {
    background: #f4f4f5;
    color: #000000;
}

/* Paso 3: Categorías sin rectángulos y con mejor aprovechamiento del espacio */
#wizard-step-3 {
    max-width: 1150px;
    width: 100%;
    padding: 1rem 1.5rem;
}

#wizard-step-3 .wizard-title {
    font-size: clamp(1.85rem, 3.8vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    color: #111827;
}

.wizard-categories-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1.25rem 0.75rem;
    width: 100%;
    margin: 0 auto;
    max-width: 1100px;
}

.wizard-category-btn {
    background: transparent;
    border: none !important;
    box-shadow: none !important;
    border-radius: 12px;
    padding: 0.85rem 0.45rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: #27272a; /* Gris oscuro en lugar de azul */
    text-align: center;
    outline: none;
    min-width: 0;
}

.wizard-category-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: translateY(-3px);
}

.wizard-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-category-btn svg,
.wizard-category-icon svg {
    width: 32px !important;
    height: 32px !important;
    color: #27272a !important; /* Gris oscuro elegante */
    stroke: currentColor;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-category-btn:hover .wizard-category-icon {
    transform: scale(1.12);
}

.wizard-category-btn:hover svg {
    color: #000000 !important; /* Negro al interactuar */
}

.wizard-category-label,
.wizard-category-btn span:not(.wizard-category-icon) {
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.25;
    color: #3f3f46; /* Gris oscuro para el texto */
    text-align: center;
    transition: color 0.25s ease;
    word-break: break-word;
}

.wizard-category-btn:hover .wizard-category-label,
.wizard-category-btn:hover span:not(.wizard-category-icon) {
    color: #000000;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .wizard-categories-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1rem 0.6rem !important;
        max-width: 750px;
    }
}

@media (max-width: 640px) {
    #wizard-step-3 {
        padding: 0.5rem 0.25rem !important;
        max-height: 85vh;
        overflow-y: auto;
    }
    #wizard-step-3 .wizard-title {
        font-size: clamp(1.35rem, 5vw, 1.75rem) !important;
        margin-bottom: 1.25rem !important;
    }
    .wizard-categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem 0.4rem !important;
        max-height: 58vh;
        overflow-y: auto;
        padding: 0.25rem;
    }
    .wizard-category-btn {
        padding: 0.65rem 0.35rem !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 8px !important;
        gap: 0.35rem !important;
    }
    .wizard-category-icon {
        width: 36px !important;
        height: 36px !important;
    }
    .wizard-category-btn svg,
    .wizard-category-icon svg {
        width: 26px !important;
        height: 26px !important;
        color: #27272a !important;
    }
    .wizard-category-label,
    .wizard-category-btn span:not(.wizard-category-icon) {
        font-size: 0.76rem !important;
        color: #3f3f46 !important;
    }
}
