/**
 * VALIS Onboarding CSS
 * Overlay de bienvenida + guía de pregunta
 */

/* === OVERLAY === */
.valis-welcome {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.valis-welcome.visible { opacity: 1; visibility: visible; }
.valis-welcome.exiting { opacity: 0; }

.valis-welcome-content {
    max-width: 560px;
    width: 90%;
    padding: 2.5rem 2rem;
    text-align: center;
}

/* === IDENTIDAD === */
.welcome-identity {
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.welcome-identity.visible { opacity: 1; transform: none; }

.welcome-sigil {
    margin-bottom: 1.2rem;
    font-size: 2rem;
    color: rgba(255,255,255,0.9);
}
.welcome-sigil::before { content: '✦'; }

.welcome-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: #fff;
    margin: 0 0 0.5rem;
}

.welcome-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

/* === FLUJO DE PASOS === */
.welcome-flow {
    margin: 2rem 0;
    position: relative;
}

.welcome-flow::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 24px;
    bottom: 24px;
    width: 1px;
    background: rgba(255,255,255,0.12);
}

.welcome-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    padding: 0.6rem 0;
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.welcome-step.visible { opacity: 1; transform: none; }

.step-marker {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.step-content { padding-top: 0.4rem; }

.step-actor {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 0.2rem;
}

.step-action {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* === MENSAJE === */
.welcome-message {
    margin-bottom: 2rem;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.welcome-message.visible { opacity: 1; }

.welcome-message p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-style: italic;
    line-height: 1.6;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

/* === BOTONES === */
.welcome-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.welcome-actions.visible { opacity: 1; }

.welcome-cta {
    padding: 1rem 2.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    color: #000;
    background: #fff;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.welcome-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.12);
}

.welcome-skip {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.welcome-skip:hover { color: rgba(255,255,255,0.5); }

/* === GUÍA DE PREGUNTA === */
.question-guide {
    background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 4px;
    margin-bottom: 1.2rem;
    overflow: hidden;
}

[data-expert-mode="true"] .question-guide { display: none; }

.guide-header {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    cursor: pointer;
}

.guide-title {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(0,0,0,0.55);
}

.guide-toggle {
    background: none;
    border: none;
    color: rgba(0,0,0,0.3);
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
}

.question-guide.expanded .guide-toggle { transform: rotate(180deg); }

.guide-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1rem;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.question-guide.expanded .guide-content {
    max-height: 300px;
    padding: 0 1rem 1rem;
}

.guide-content p {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(0,0,0,0.5);
    margin: 0 0 0.6rem;
}

.guide-examples {
    margin: 0.8rem 0;
    padding: 0.6rem 0.8rem;
    background: rgba(0,0,0,0.02);
    border-radius: 3px;
}

.guide-good {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.8;
    color: rgba(0,0,0,0.55);
    margin: 0;
}

.guide-tip {
    font-size: 0.75rem;
    padding: 0.5rem;
    background: rgba(180,160,100,0.08);
    border-radius: 3px;
    margin: 0;
}

/* === LANDING DETAILS === */
.landing-details-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    text-align: left;
}

.landing-details-list li {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: rgba(0,0,0,0.4);
    padding: 0.3rem 0 0.3rem 0.8rem;
    position: relative;
}

.landing-details-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: rgba(0,0,0,0.2);
}

.landing-option-left .landing-details-list li { color: rgba(255,255,255,0.5); }
.landing-option-left .landing-details-list li::before { color: rgba(255,255,255,0.3); }

/* === MICROCOPY === */
.action-microcopy {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(0,0,0,0.4);
    text-align: center;
    margin-bottom: 0.6rem;
}

/* === RESPONSIVE === */
@media (max-width: 500px) {
    .valis-welcome-content { padding: 1.5rem; }
    .welcome-title { font-size: 1.6rem; }
    .step-marker { width: 36px; height: 36px; font-size: 1rem; }
    .welcome-flow::before { left: 18px; }
    .welcome-cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .valis-welcome, .welcome-identity, .welcome-step, 
    .welcome-message, .welcome-actions {
        transition: opacity 0.2s ease;
        transform: none !important;
    }
}
