/* portal-unificado.css — Experiencia visual y unificación de El Ojo Místico */

@keyframes wbcFloatGlow {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.45;
    }
    50% {
        transform: translateY(-6px) scale(1.04);
        opacity: 0.72;
    }
}

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

.wbc-ambient-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 25%, rgba(212, 175, 55, 0.14), transparent 45%),
        radial-gradient(circle at 80% 35%, rgba(139, 92, 246, 0.12), transparent 50%);
    animation: wbcFloatGlow 7s ease-in-out infinite;
    z-index: 0;
}

.hero-service, .hero {
    position: relative;
    overflow: hidden;
}

.hero-service > *, .hero > * {
    position: relative;
    z-index: 1;
}

.num-wrapper {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2rem 20px 5rem;
}

.num-card-box {
    background: linear-gradient(165deg, rgba(28, 28, 40, 0.96) 0%, rgba(19, 19, 28, 0.98) 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    animation: wbcCardReveal 0.35s ease-out both;
}

.wbc-portal-badge {
    display: inline-block;
    font-size: 0.76rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--bg-dark);
    background: linear-gradient(135deg, #f3d26b 0%, var(--gold) 100%);
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.wbc-policy-box {
    background: rgba(15, 15, 22, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 8px;
    padding: 1rem 1.15rem;
    margin-bottom: 1.2rem;
    font-size: 0.88rem;
    color: #d1d5db;
}

.wbc-policy-box strong {
    color: var(--gold);
}

.wbc-check-label {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    margin-top: 0.7rem;
    cursor: pointer;
    color: #f3f4f6;
}

.wbc-check-label input {
    margin-top: 3px;
    accent-color: var(--gold);
}

.wbc-active-banner {
    border-color: rgba(212, 175, 55, 0.55);
}

.wbc-active-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.wbc-member-pill {
    display: inline-block;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--gold);
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.84rem;
}

.wbc-accumulated-strip {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(15, 15, 22, 0.75);
    border-left: 3px solid var(--gold);
    border-radius: 4px;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.wbc-accumulated-strip strong {
    color: var(--gold);
    margin-right: 0.35rem;
}

.wbc-cross-title {
    margin-top: 1.2rem;
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
    color: var(--gold);
    font-family: 'Cinzel', serif;
}

.wbc-cross-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}

.wbc-cross-card {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.8rem 0.95rem;
    background: #12121a;
    border: 1px solid #2e2e40;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-light);
    transition: transform 0.2s, border-color 0.2s, background-color 0.2s;
}

.wbc-cross-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    background: #191926;
}

.wbc-cross-icon {
    font-size: 1.35rem;
    line-height: 1.2;
}

.wbc-cross-card p {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.2rem;
}

.wbc-free-tag {
    color: #34d399;
    font-size: 0.72rem;
    margin-left: 0.25rem;
}

.num-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

.num-tab-btn {
    background: transparent;
    border: 1px solid #444;
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    transition: all 0.25s;
}

.num-tab-btn.active, .num-tab-btn:hover {
    background: var(--gold);
    color: var(--bg-dark);
    border-color: var(--gold);
}

.num-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.num-field label {
    display: block;
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 0.35rem;
    font-family: 'Cinzel', serif;
}

.num-input {
    width: 100%;
    padding: 10px 12px;
    background: #12121a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-family: 'Lora', serif;
    font-size: 0.98rem;
}

.num-input:focus {
    outline: none;
    border-color: var(--gold);
}

.num-alert {
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

.num-alert-error {
    background: rgba(220, 38, 38, 0.18);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

.num-alert-ok {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid #10b981;
    color: #6ee7b7;
}

.num-saved-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 0.85rem 1rem;
    background: #12121a;
    border: 1px solid #2e2e3e;
    border-radius: 6px;
    margin-bottom: 0.6rem;
}

.num-saved-meta {
    display: block;
    font-size: 0.85rem;
    color: #aaa;
}

.num-saved-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-danger-sm {
    background: transparent;
    border: 1px solid #7f1d1d;
    color: #f87171;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-danger-sm:hover {
    background: #7f1d1d;
    color: #fff;
}

.num-muted {
    color: #9ca3af;
    font-size: 0.92rem;
}

.num-gold-tag {
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 0.45rem;
}

.num-gold-text {
    color: var(--gold);
    font-style: italic;
}

.num-carta-sheet {
    background: linear-gradient(180deg, #1d1d2b 0%, #12121a 100%);
    border: 2px solid var(--gold);
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.65);
    animation: wbcCardReveal 0.4s ease-out both;
}

.num-carta-header {
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.num-carta-eyebrow {
    letter-spacing: 2px;
    font-size: 0.82rem;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

.num-carta-sub {
    color: #bbb;
    margin-top: 0.4rem;
}

.num-letter-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #2b2b3b;
}

.num-letter-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.num-two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}

.num-subcard {
    background: rgba(15, 15, 21, 0.72);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 1.2rem;
}

.num-subcard h4 {
    color: var(--gold);
    font-family: 'Cinzel', serif;
    margin-bottom: 0.6rem;
    font-size: 1rem;
}

.num-carta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.tarot-chip {
    font-size: 0.76rem;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #f3e5ab;
}

/* Tarot board & artwork */
.tarot-reveal-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tarot-spread-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.tarot-spread-slot {
    background: #12121a;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 8px;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
}

.tarot-pos-label {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.05rem;
    text-align: center;
    font-weight: bold;
}

.tarot-pos-sub {
    font-size: 0.8rem;
    color: #9ca3af;
    text-align: center;
    margin-bottom: 0.9rem;
}

.tarot-card-face-back {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    border: 1px dashed var(--gold);
    border-radius: 6px;
    background: radial-gradient(circle, #242138 0%, #151422 100%);
    cursor: pointer;
    transition: transform 0.25s, border-color 0.25s;
    text-align: center;
    padding: 1rem;
}

.tarot-card-face-back:hover {
    transform: translateY(-3px);
    border-style: solid;
}

.tarot-back-sigil {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

.tarot-card-face-back span {
    font-family: 'Cinzel', serif;
    color: #fff;
    font-size: 1rem;
}

.tarot-card-face-back small {
    color: #bbb;
    margin-top: 0.35rem;
}

.tarot-card-face-front {
    display: none;
    flex-direction: column;
    gap: 0.7rem;
    animation: wbcCardReveal 0.3s ease-out both;
}

.tarot-face-down .tarot-card-face-back {
    display: flex;
}

.tarot-face-down .tarot-card-face-front {
    display: none;
}

.tarot-face-up .tarot-card-face-back {
    display: none;
}

.tarot-face-up .tarot-card-face-front {
    display: flex;
}

.tarot-card-top {
    text-align: center;
    padding: 0.8rem;
    border-radius: 6px;
    background: #1a1a27;
    border: 1px solid #2e2e42;
}

.tarot-artwork-box {
    width: 100%;
    max-width: 170px;
    aspect-ratio: 2 / 3.2;
    margin: 0.5rem auto;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.55);
    background: #101018;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tarot-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.tarot-card-inverted .tarot-card-img {
    transform: rotate(180deg);
}

.tarot-fallback-sigil {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold);
}

.tarot-card-numeral {
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    color: #aaa;
    text-transform: uppercase;
}

.tarot-card-name {
    font-size: 1.05rem;
    color: var(--gold);
    font-family: 'Cinzel', serif;
    margin-top: 0.25rem;
}

.tarot-card-orient {
    font-size: 0.82rem;
    color: #cbd5e1;
    margin-top: 0.2rem;
}

.tarot-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
}

.tarot-pos-reading, .tarot-base-reading {
    font-size: 0.88rem;
}

/* Quiromancia photos & checkboxes */
.quiro-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quiro-photo-card {
    background: #12121a;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 8px;
    padding: 0.8rem;
    text-align: center;
}

.quiro-photo-card strong {
    display: block;
    color: var(--gold);
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
}

.quiro-photo-card img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 6px;
}

.quiro-checks-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 0.3rem;
}

.quiro-checks-row label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #e5e7eb;
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    cursor: pointer;
}

@media print {
    body {
        background: #ffffff !important;
        color: #111111 !important;
    }
    header, .no-print, #unified-hub-container {
        display: none !important;
    }
    .num-wrapper {
        padding: 0 !important;
        max-width: 100% !important;
    }
    .num-carta-sheet, .num-subcard, .tarot-spread-slot, .tarot-card-top {
        background: #ffffff !important;
        color: #111111 !important;
        border-color: #cccccc !important;
        box-shadow: none !important;
    }
    .tarot-card-face-back {
        display: none !important;
    }
    .tarot-card-face-front {
        display: flex !important;
    }
    h2, h3, h4, .num-gold-tag, .num-gold-text, .tarot-pos-label, .tarot-card-name {
        color: #7c5c0c !important;
    }
}


/* === LOGO OJO DE HORUS EN TODAS LAS PÁGINAS === */
.brand-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1px;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-logo-link:hover {
    transform: translateY(-1px);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

.brand-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
    flex-shrink: 0;
}

.hero-horus-medallion {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: 0 0 28px rgba(212, 175, 55, 0.42);
    margin: 0 auto 1.2rem;
    display: block;
    animation: wbcFloatGlow 6s ease-in-out infinite;
    opacity: 1 !important;
}

/* === GALERÍA VISUAL DE LOS 12 SIGNOS DEL ZODIACO === */
.horo-zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.6rem;
}

.horo-zodiac-card {
    background: #12121b;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;
    padding: 0.55rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    position: relative;
    overflow: hidden;
}

.horo-zodiac-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 8px 22px rgba(212, 175, 55, 0.22);
}

.horo-zodiac-card.active {
    border: 2px solid #f7d768;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.2) 0%, #151524 100%);
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.45);
    transform: translateY(-4px) scale(1.02);
}

.horo-zodiac-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.horo-zodiac-card .horo-z-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--gold);
    color: #0f0f15;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    display: none;
}

.horo-zodiac-card.active .horo-z-badge {
    display: inline-block;
}

.horo-result-img-wrap {
    width: 175px;
    height: 175px;
    margin: 0.6rem auto 0.9rem;
    border-radius: 16px;
    padding: 4px;
    background: linear-gradient(135deg, #f8df7c 0%, #d4af37 50%, #8a6d1b 100%);
    box-shadow: 0 0 32px rgba(212, 175, 55, 0.45);
}

.horo-result-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* === QUIROMANCIA: PREVIEW Y MAPA INTERACTIVO SOBRE LA FOTO === */
.quiro-upload-preview-box {
    margin-top: 0.6rem;
    background: #0d0d14;
    border: 1px dashed rgba(212, 175, 55, 0.45);
    border-radius: 8px;
    padding: 0.6rem;
    text-align: center;
    display: none;
}

.quiro-upload-preview-box img {
    max-height: 180px;
    max-width: 100%;
    border-radius: 6px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.4rem;
}

.quiro-quality-note {
    font-size: 0.8rem;
    color: #6ee7b7;
}

.quiro-overlay-wrap {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.5);
}

.quiro-overlay-wrap img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    display: block;
}

.quiro-svg-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.quiro-overlay-hidden .quiro-svg-overlay {
    opacity: 0;
}

.quiro-legend-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
}

.quiro-legend-dot {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #141420;
    border: 1px solid #333;
}
