/* ═══════════════════════════════════════════════════════
   DESTINO DEL ALMA — Carta Gnóstica Page — Ultra Mystical
   ═══════════════════════════════════════════════════════ */

.nav-back {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(176,110,255,0.06);
    border: 1px solid var(--border-portal);
    border-radius: var(--radius-md);
    color: var(--text-secondary); font-size: 17px;
    transition: var(--transition);
    backdrop-filter: blur(10px); z-index: 1002;
}

.nav-back:hover {
    background: rgba(212,168,67,0.1);
    border-color: var(--border-gold);
    color: var(--gold-primary);
    box-shadow: 0 0 20px var(--glow-portal);
}

.carta-page {
    position: relative; z-index: 1;
    min-height: 100vh; padding: 110px 0 70px;
}

.carta-container {
    max-width: 640px; margin: 0 auto; padding: 0 24px;
}

.carta-header { text-align: center; margin-bottom: 48px; }

/* ─── Form ─── */
.birth-form {
    display: flex; flex-direction: column; gap: 22px;
}

.form-group {
    display: flex; flex-direction: column; gap: 8px;
}

.form-group label {
    font-size: 13px; color: var(--purple-light);
    letter-spacing: 1.5px; text-transform: uppercase;
    display: flex; align-items: center; gap: 8px;
    font-weight: 500;
}

.form-group label i { color: var(--gold-muted); font-size: 12px; }

.form-group input,
.form-group select {
    width: 100%; padding: 16px 18px;
    background: linear-gradient(135deg, rgba(14,12,26,0.9), rgba(22,19,48,0.5));
    border: 1px solid var(--border-portal);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body); font-size: 16px;
    transition: var(--transition); outline: none;
    appearance: none; -webkit-appearance: none;
    backdrop-filter: blur(6px);
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A78BCC' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
}

.form-group input::placeholder { color: var(--text-dim); }

.form-group input:focus,
.form-group select:focus {
    border-color: var(--purple-neon);
    box-shadow: 0 0 0 3px rgba(176,110,255,0.15), 0 0 20px rgba(176,110,255,0.1);
}

.form-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}

.form-row:last-of-type { grid-template-columns: repeat(2, 1fr); }

/* ─── Loading ─── */
.loading-cosmic { text-align: center; padding: 70px 0; }

.loading-orb {
    position: relative; width: 180px; height: 180px;
    margin: 0 auto 48px;
    display: flex; align-items: center; justify-content: center;
}

.orb-ring {
    position: absolute; border-radius: 50%;
    border: 1px solid rgba(176,110,255,0.25);
}

.orb-ring.r1 {
    width: 100%; height: 100%;
    animation: sacred-rotate 8s linear infinite;
    border-style: dashed;
}

.orb-ring.r2 {
    width: 130px; height: 130px;
    animation: sacred-rotate 12s linear infinite reverse;
    border-color: rgba(212,168,67,0.2);
}

.orb-ring.r3 {
    width: 85px; height: 85px;
    animation: sacred-rotate 6s linear infinite;
    border-color: rgba(176,110,255,0.35);
}

.orb-core {
    font-size: 44px; color: var(--gold-primary);
    text-shadow: 0 0 40px rgba(212,168,67,0.5), 0 0 60px rgba(176,110,255,0.3);
    animation: breathe 2s ease-in-out infinite; z-index: 2;
}

.loading-title {
    font-family: var(--font-display);
    font-size: 22px; color: var(--gold-primary);
    letter-spacing: 3px; text-transform: uppercase;
    font-variant: small-caps; margin-bottom: 14px;
    text-shadow: 0 0 30px rgba(212,168,67,0.3);
}

.loading-status {
    font-family: var(--font-elegant);
    font-size: 17px; color: var(--purple-light);
    font-style: italic; margin-bottom: 34px; min-height: 26px;
}

.loading-bar {
    width: 100%; max-width: 320px; height: 5px;
    background: rgba(176,110,255,0.1);
    border-radius: 3px; margin: 0 auto 44px; overflow: hidden;
}

.loading-progress {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--purple-deep), var(--purple-neon), var(--gold-primary));
    border-radius: 3px; transition: width 0.5s ease;
}

.loading-steps {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 10px; max-width: 440px; margin: 0 auto;
}

.loading-steps .step {
    display: flex; flex-direction: column;
    align-items: center; gap: 5px;
    opacity: 0.25; transition: all 0.5s ease;
}

.loading-steps .step.active {
    opacity: 1; transform: scale(1.1);
}

.loading-steps .step.completed { opacity: 0.5; }

.loading-steps .step-icon {
    font-size: 20px; color: var(--gold-primary);
}

.loading-steps .step span:last-child {
    font-size: 9px; color: var(--text-dim);
    letter-spacing: 0.8px; text-transform: uppercase;
}

/* ─── Result ─── */
.result-container { max-width: 860px; }

.result-header {
    text-align: center; padding: 24px 0 48px;
    border-bottom: 1px solid var(--border-portal);
    margin-bottom: 48px;
}

.result-header .user-name {
    font-family: var(--font-decorative);
    font-size: clamp(1.8rem, 6vw, 2.6rem);
    color: var(--gold-primary); margin-bottom: 12px;
    text-shadow: 0 0 30px rgba(212,168,67,0.3);
}

.result-header .user-data {
    font-size: 15px; color: var(--text-muted);
    line-height: 2;
}

.result-header .reading-type {
    display: inline-block; margin-top: 16px;
    padding: 8px 20px;
    background: rgba(176,110,255,0.08);
    border: 1px solid rgba(176,110,255,0.3);
    border-radius: var(--radius-full);
    font-size: 13px; color: var(--purple-light);
    letter-spacing: 2px; text-transform: uppercase;
}

.awakening-status {
    background: linear-gradient(135deg, rgba(14,12,26,0.9), rgba(22,19,48,0.5));
    border: 1px solid var(--border-portal);
    border-radius: var(--radius-lg);
    padding: 32px 28px; text-align: center;
    margin-bottom: 36px; backdrop-filter: blur(6px);
}

.awakening-status h3 {
    font-family: var(--font-display);
    font-size: 18px; color: var(--gold-primary);
    letter-spacing: 2px; text-transform: uppercase;
    font-variant: small-caps; margin-bottom: 20px;
}

.awakening-bar {
    position: relative; width: 100%; height: 10px;
    background: rgba(176,110,255,0.08);
    border-radius: 5px; overflow: hidden; margin-bottom: 12px;
}

.awakening-fill {
    height: 100%; border-radius: 5px;
    background: linear-gradient(90deg, var(--purple-deep), var(--purple-neon), var(--gold-primary), var(--gold-light));
    transition: width 2.5s ease;
    box-shadow: 0 0 15px rgba(176,110,255,0.4);
}

.awakening-label {
    display: flex; justify-content: space-between;
    font-size: 13px; color: var(--text-dim);
}

.awakening-level {
    margin-top: 14px;
    font-family: var(--font-elegant);
    font-size: 20px; color: var(--text-primary);
    font-style: italic;
}

/* Reading Sections */
.reading-section {
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(14,12,26,0.9), rgba(22,19,48,0.4));
    border: 1px solid var(--border-portal);
    border-radius: var(--radius-lg);
    overflow: hidden; backdrop-filter: blur(6px);
    transition: var(--transition);
}

.reading-section:hover {
    border-color: rgba(176,110,255,0.4);
}

.reading-section-header {
    display: flex; align-items: center;
    gap: 16px; padding: 22px 28px;
    cursor: pointer; transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.reading-section-header:hover {
    background: rgba(176,110,255,0.04);
}

.reading-section.open .reading-section-header {
    border-bottom-color: var(--border-subtle);
    background: rgba(176,110,255,0.03);
}

.reading-section-icon {
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    box-shadow: 0 0 12px var(--glow-portal);
}

.reading-section-title {
    font-family: var(--font-display);
    font-size: 16px; color: var(--gold-primary);
    letter-spacing: 1.5px; text-transform: uppercase;
    font-variant: small-caps;
}

.reading-section-subtitle {
    font-size: 13px; color: var(--purple-light);
    margin-top: 3px; font-style: italic;
    font-family: var(--font-elegant);
}

.reading-section-toggle {
    margin-left: auto; color: var(--purple-light);
    font-size: 13px; transition: transform 0.3s ease;
}

.reading-section.open .reading-section-toggle { transform: rotate(180deg); }

.reading-section-body {
    max-height: 0; overflow: hidden;
    transition: max-height 0.6s ease;
}

.reading-section.open .reading-section-body { max-height: 8000px; }

.reading-content { padding: 28px; }

.reading-content p {
    font-family: var(--font-elegant);
    font-size: 18px; color: var(--text-secondary);
    line-height: 1.9; margin-bottom: 18px;
}

.reading-content p:last-child { margin-bottom: 0; }

.reading-content strong { color: var(--gold-primary); font-weight: 600; }

.reading-content em { color: var(--purple-light); }

.reading-content .highlight-box {
    background: linear-gradient(135deg, rgba(176,110,255,0.06), rgba(212,168,67,0.04));
    border-left: 4px solid var(--purple-neon);
    padding: 20px 24px;
    margin: 20px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    box-shadow: 0 0 20px rgba(176,110,255,0.06);
}

.reading-content .highlight-box small {
    display: block; margin-top: 10px;
    color: var(--text-dim); font-size: 13px;
}

.reading-content ul { list-style: none; padding: 0; margin: 14px 0; }

.reading-content ul li {
    position: relative;
    padding: 10px 0 10px 28px;
    font-size: 16px; color: var(--text-secondary);
    line-height: 1.7; font-family: var(--font-elegant);
}

.reading-content ul li::before {
    content: '✦'; position: absolute; left: 0;
    color: var(--gold-primary); font-size: 11px; top: 13px;
}

/* Zodiac Cards */
.zodiac-card {
    display: grid; grid-template-columns: auto 1fr;
    gap: 18px; align-items: start;
    padding: 22px;
    background: linear-gradient(135deg, rgba(22,19,48,0.6), rgba(14,12,26,0.4));
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    border: 1px solid rgba(176,110,255,0.12);
}

.zodiac-symbol {
    width: 62px; height: 62px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    background: radial-gradient(circle, rgba(176,110,255,0.1), transparent);
    border: 1px solid var(--border-portal);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--glow-portal);
}

.zodiac-info h4 {
    font-family: var(--font-display);
    font-size: 16px; color: var(--gold-primary);
    margin-bottom: 5px; font-variant: small-caps;
    letter-spacing: 1.5px;
}

.zodiac-info .zodiac-detail {
    font-size: 12px; color: var(--purple-light);
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.zodiac-info p {
    font-size: 15px !important; color: var(--text-muted) !important;
    margin-bottom: 0 !important;
}

/* Result Actions */
.result-actions {
    display: flex; flex-direction: column;
    gap: 14px; margin-top: 48px; padding-top: 36px;
    border-top: 1px solid var(--border-portal);
}

.result-actions .btn { max-width: 100%; }

/* ─── Responsive ─── */
@media (max-width: 480px) {
    .form-row { gap: 10px; }
    .loading-steps .step span:last-child { font-size: 8px; }
}

@media (min-width: 640px) {
    .loading-steps { grid-template-columns: repeat(8, 1fr); }
    .result-actions { flex-direction: row; }
}

/* ─── Print ─── */
@media print {
    body { background: white; color: #333; }
    .main-nav, .main-footer, #cosmicCanvas, .sacred-geometry-overlay, .result-actions { display: none !important; }
    .reading-section { break-inside: avoid; }
    .reading-section-body { max-height: none !important; }
    .reading-content p { color: #333; }
    .section-title, .reading-section-title, h3, h4 { color: #6B4914; }
    .highlight-box { border-left-color: #6B4914; }
}