/* Estilos comunes de la Carta, el asistente de perfil y el mapa estelar:
   pantallas, fondo, botones, selector de ruedas, resultados y numerología. */
/* ============================================================
         TOKENS EXTRA PARA EL FUNNEL
      ============================================================ */
      :root {
        --screen-transition: 0.55s cubic-bezier(0.22, 1, 0.36, 1);
      }

      /* ============================================================
         LAYOUT BASE
      ============================================================ */
      /* La escena WebGL se carga una única vez. En el recorrido normal actúa
         como fondo; en el Acto II pasa a ser la escena interactiva principal. */
      #solar-stage {
        position: fixed;
        inset: 0;
        z-index: 1;
        overflow: hidden;
        pointer-events: none;
        background: transparent;
      }

      #solar-canvas {
        position: absolute;
        inset: 0;
        z-index: 1;
      }

      .solar-fallback {
        position: absolute;
        inset: 0;
        z-index: 3;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 32px;
        box-sizing: border-box;
        text-align: center;
        font-size: 1rem;
        line-height: 1.6;
        color: #b9c4d6;
        background: radial-gradient(circle at 50% 40%, rgba(10, 12, 40, 0.85), rgba(3, 3, 16, 0.92));
      }

      /* Evitamos la doble capa pesada de estrellas CSS fijas en la Carta,
         dejando que Three.js renderice el starfield 3D interactivo */
      .stars-bg::before,
      .stars-bg::after {
        display: none;
      }

      #solar-labels {
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
      }

      .screen-container {
        position: relative;
        z-index: 2;
        width: 100%;
        min-height: 100dvh;
        overflow: hidden;
      }

      .screen[hidden],
      #act2-container[hidden] {
        display: none;
      }

      /* El foco programático al título (lectores de pantalla) no debe pintar recuadro. */
      .screen h1[tabindex="-1"]:focus,
      .screen h2[tabindex="-1"]:focus {
        outline: none;
        box-shadow: none;
      }

      .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }

      .screen {
        position: absolute;
        inset: 0;
        width: 100%;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 20px 16px 0;
        opacity: 0;
        pointer-events: none;
        transform: translateY(30px);
        transition: opacity var(--screen-transition), transform var(--screen-transition);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }

      .screen.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        position: relative;
      }

      .screen.exit-up {
        opacity: 0;
        transform: translateY(-40px);
        pointer-events: none;
        position: absolute;
      }

      .progress-steps {
        position: fixed;
        top: 12px; right: 16px;
        z-index: 100;
        font-family: var(--font-h);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.15em;
        color: var(--gold-light);
        background: rgba(6, 5, 26, 0.85);
        padding: 4px 10px;
        border-radius: 999px;
        border: 1px solid rgba(var(--gold-muted-rgb), 0.3);
        backdrop-filter: blur(8px);
        transition: opacity 0.3s;
      }

      /* ============================================================
         COMMON SCREEN ELEMENTS & STICKY FOOTER
      ============================================================ */
      .screen-inner {
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        min-height: calc(100dvh - 28px);
      }

      .screen-content {
        display: flex;
        flex-direction: column;
        gap: 22px;
        padding-top: 12px;
        padding-bottom: 24px;
      }

      .screen-actions {
        position: sticky;
        bottom: 0;
        margin-top: auto;
        width: 100%;
        padding: 12px 0 calc(14px + env(safe-area-inset-bottom, 0px));
        background: transparent;
        z-index: 50;
        display: flex;
        flex-direction: column;
        gap: 8px;
      }

      .step-status-msg {
        font-size: 14.5px;
        font-weight: 600;
        line-height: 1.55;
        color: #fca5a5;
        background: rgba(239, 68, 68, 0.16);
        border: 1.5px solid rgba(248, 113, 113, 0.5);
        border-radius: var(--r-sm);
        padding: 12px 16px;
        display: none;
        margin-top: 6px;
        text-align: left;
        animation: error-pop 0.3s ease-out;
      }

      .step-status-msg:not(:empty) {
        display: block;
      }

      .has-error {
        animation: error-shake 0.4s ease-in-out !important;
        border-color: rgba(248, 113, 113, 0.85) !important;
        box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.3) !important;
      }

      .screen-eyebrow {
        text-align: center;
        font-family: var(--font-h);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--gold-light);
        margin-bottom: 6px;
      }

      .screen-title {
        font-family: var(--font-h);
        font-size: clamp(24px, 6.5vw, 36px);
        font-weight: 700;
        text-align: center;
        background: linear-gradient(135deg, #ffffff 0%, var(--gold-light) 40%, var(--gold) 80%, var(--gold-deep) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        line-height: 1.25;
        margin-bottom: 10px;
      }

      .screen-body {
        font-size: 16px;
        color: var(--text-secondary);
        text-align: center;
        line-height: 1.7;
        font-weight: 400;
        max-width: 500px;
        margin: 0 auto;
      }

      /* ============================================================
         RITUAL DE TRANSICIÓN CÓSMICA
      ============================================================ */
      .ritual-inner {
        justify-content: center;
        align-items: center;
        text-align: center;
        min-height: 100dvh;
        padding: 24px 16px;
      }

      .ritual-centerpiece {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        max-width: 460px;
        width: 100%;
        margin: auto;
      }

      .ritual-portal {
        position: relative;
        width: 140px;
        height: 140px;
        display: grid;
        place-items: center;
      }

      .ritual-ring {
        position: absolute;
        border-radius: 50%;
        border: 1.5px dashed rgba(var(--gold-muted-rgb), 0.4);
      }

      .ring-outer {
        width: 130px;
        height: 130px;
        border-color: rgba(var(--gold-rgb), 0.5);
        border-style: solid;
        border-top-color: transparent;
        animation: spin-clockwise 6s linear infinite;
      }

      .ring-mid {
        width: 95px;
        height: 95px;
        border-color: rgba(124, 58, 237, 0.7);
        border-style: dashed;
        animation: spin-counter 4s linear infinite;
      }

      .ring-inner {
        width: 60px;
        height: 60px;
        border-color: rgba(125, 211, 252, 0.6);
        border-style: dotted;
        animation: spin-clockwise 2.5s linear infinite;
      }

      .ritual-core {
        font-size: 26px;
        color: var(--gold-light);
        filter: drop-shadow(0 0 16px rgba(var(--gold-light-rgb), 0.9));
        animation: pulse-glow 2s ease-in-out infinite;
      }

      .ritual-title {
        font-family: var(--font-h);
        font-size: clamp(22px, 5.5vw, 30px);
        font-weight: 700;
        background: linear-gradient(135deg, #ffffff 0%, var(--gold-light) 60%, var(--gold) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        line-height: 1.25;
      }

      .ritual-phase {
        color: #dedbf0;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.5;
        min-height: 48px;
        transition: opacity 0.3s ease;
      }

      .ritual-steps-display {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        width: 100%;
      }

      .ritual-step-badge {
        padding: 7px 13px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(var(--gold-muted-rgb), 0.2);
        color: var(--text-muted);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.04em;
        transition: all 0.35s ease;
      }

      .ritual-step-badge.active {
        background: rgba(var(--gold-rgb), 0.18);
        border-color: rgba(var(--gold-light-rgb), 0.6);
        color: #ffffff;
        box-shadow: 0 0 14px rgba(var(--gold-rgb), 0.35);
        transform: translateY(-2px);
      }

      .ritual-step-badge.done {
        background: rgba(134, 239, 172, 0.12);
        border-color: rgba(134, 239, 172, 0.4);
        color: #86efac;
      }

      .ritual-quote {
        color: var(--text-muted);
        font-style: italic;
        font-size: 14px;
        line-height: 1.6;
        margin-top: 10px;
      }

      .cosmic-journal-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
      }

      /* Mejoras de contraste y legibilidad general en formularios y tarjetas */
      body {
        font-size: 17px;
        -webkit-font-smoothing: antialiased;
      }

      .screen-body,
      .identity-hint {
        font-size: 17px !important;
        color: #f1effa !important;
        line-height: 1.7 !important;
      }

      .zrc-positive,
      .zrc-negative {
        font-size: 15px !important;
        line-height: 1.65 !important;
      }

      .btn-cta:active { transform: scale(0.98); }

      @media (hover: hover) {
        .btn-cta:hover {
          box-shadow: 0 6px 32px rgba(124, 58, 237, 0.65);
          transform: translateY(-2px);
        }
      }

      .btn-cta.gold-variant {
        background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold) 50%, var(--gold-light) 100%);
        color: #06051a;
        border: 1px solid rgba(var(--gold-light-rgb), 0.4);
        box-shadow: 0 4px 24px rgba(var(--gold-rgb), 0.4);
      }

      .btn-back {
        background: none;
        border: none;
        color: var(--text-muted);
        font-size: 14px;
        font-family: var(--font-h);
        font-weight: 600;
        letter-spacing: 0.06em;
        cursor: pointer;
        padding: 6px 12px;
        text-align: center;
        transition: color 0.2s;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .btn-back:hover { color: #ffffff; }

      .hero-stars {
        font-size: clamp(36px, 10vw, 64px);
        text-align: center;
        line-height: 1;
        display: block;
        animation: float 6s ease-in-out infinite;
        filter: drop-shadow(0 0 20px rgba(var(--gold-light-rgb), 0.6));
        margin-bottom: 4px;
      }

      .hero-title {
        font-family: var(--font-h);
        font-size: clamp(26px, 7.5vw, 44px);
        font-weight: 700;
        text-align: center;
        background: linear-gradient(135deg, #ffffff 0%, var(--gold-light) 40%, var(--gold) 80%, var(--gold-deep) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        line-height: 1.18;
      }

      .hero-subtitle {
        font-size: clamp(14px, 3.5vw, 16px);
        color: var(--text-secondary);
        text-align: center;
        line-height: 1.65;
        max-width: 440px;
        margin: 0 auto;
        font-weight: 400;
      }

      .hero-disclaimer {
        font-size: 12px;
        color: var(--text-muted);
        text-align: center;
        font-style: italic;
        margin-top: 4px;
      }
      .privacy-local { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--card-border); color: var(--text-muted); font-size: 13px; line-height: 1.55; font-weight: 400; }
      .privacy-local strong { color: var(--success); }

      .app-home-link {
        width: fit-content;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        padding: 8px 14px;
        border: 1px solid rgba(var(--gold-muted-rgb), 0.25);
        border-radius: var(--r-sm);
        background: rgba(var(--gold-muted-rgb), 0.05);
        color: var(--text-secondary);
        font-family: var(--font-h);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-decoration: none;
        text-transform: uppercase;
        transition: color 0.2s, border-color 0.2s, background 0.2s;
      }

      .app-home-link:hover { border-color: var(--gold-light); color: #ffffff; background: rgba(var(--gold-muted-rgb), 0.12); }

      .act2-btn-go {
        width: 100%;
        padding: 12px;
        border-radius: var(--r-md);
        background: rgba(var(--gold-muted-rgb), 0.22);
        border: 1px solid rgba(var(--gold-muted-rgb), 0.55);
        color: var(--gold-light);
        font-family: var(--font-h);
        font-weight: 700;
        font-size: 11px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        cursor: pointer;
        transition: background 0.2s, border-color 0.2s, transform 0.15s;
        min-height: 48px;
        box-shadow: 0 0 15px rgba(var(--gold-muted-rgb), 0.15);
      }
      .act2-btn-go:hover {
        background: rgba(var(--gold-muted-rgb), 0.38);
        border-color: rgba(var(--gold-muted-rgb), 0.85);
        box-shadow: 0 0 20px rgba(var(--gold-muted-rgb), 0.25);
      }
      .act2-btn-go:active {
        transform: scale(0.98);
      }

      /* ============================================================
         SCREEN 5 — DATE PICKER
      ============================================================ */
      .card {
        background: var(--card);
        border: 1.5px solid var(--border-strong);
        border-radius: var(--r-lg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: var(--shadow-card);
        overflow: hidden;
        transition: border-color 0.2s, box-shadow 0.2s;
      }

      .card-header { padding: 20px 20px 0; text-align: center; }

      .card-label {
        font-family: var(--font-h);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--gold-light);
      }

      /* ============================================================
         SCREEN 6 — RESULTS
      ============================================================ */
      #screen-results .screen-inner { max-width: 1080px; gap: 30px; }

      .primary-results-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        align-items: stretch;
      }

      @media (min-width: 860px) {
        .primary-results-grid { grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); }
      }

      .result-hero {
        background: var(--card);
        border: 1.5px solid var(--border-strong);
        border-radius: var(--r-xl);
        padding: 32px 24px;
        text-align: center;
        position: relative;
        overflow: hidden;
        backdrop-filter: blur(12px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 100%;
      }

      .result-hero::before {
        content: "";
        position: absolute;
        top: -40px; left: 50%;
        transform: translateX(-50%);
        width: 200px; height: 200px;
        background: radial-gradient(circle, rgba(var(--gold-light-rgb), 0.18) 0%, transparent 70%);
        pointer-events: none;
      }

      .result-hero-label { font-family: var(--font-h); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light); font-weight: 700; margin-bottom: 8px; }
      .result-hero-sign { font-family: var(--font-h); font-size: clamp(28px, 6vw, 44px); font-weight: 700; background: linear-gradient(135deg, #ffffff 0%, var(--gold-light) 40%, var(--gold) 80%, var(--gold-deep) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.2; margin-bottom: 6px; }
      .result-hero-emoji { font-size: 56px; display: block; margin-bottom: 14px; filter: drop-shadow(0 0 20px rgba(var(--gold-light-rgb), 0.6)); animation: float 5s ease-in-out infinite; }
      .result-hero-meta { font-size: 14px; color: var(--text-secondary); font-style: italic; margin-bottom: 12px; font-weight: 400; }
      .result-hero-traits { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
      .result-hero-trait { font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 20px; font-family: var(--font-h); letter-spacing: 0.06em; }
      .result-hero-trait.pos { background: rgba(134,239,172,0.12); border: 1px solid rgba(134,239,172,0.4); color: #86efac; }
      .result-hero-trait.neg { background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.4); color: #fca5a5; }

      .user-profile-summary {
        background: rgba(var(--gold-muted-rgb), 0.08);
        border: 1px solid rgba(var(--gold-muted-rgb), 0.3);
        border-radius: var(--r-md);
        padding: 14px 18px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
      }

      .ups-item { display: flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.06); font-size: 13px; font-weight: 500; color: #dedbf0; border: 1px solid rgba(var(--gold-muted-rgb), 0.15); }
      .ups-item span:first-child { font-size: 16px; }

      .zodiac-results-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

      .cosmic-share-panel { display: grid; gap: 16px; padding: 22px; border: 1px solid rgba(var(--gold-muted-rgb), 0.38); border-radius: 18px; background: linear-gradient(135deg, rgba(35,23,72,0.9), rgba(8,16,45,0.92)); box-shadow: 0 16px 40px rgba(0,0,0,0.22); }
      .cosmic-share-panel h2 { margin: 0 0 7px; font-family: var(--font-h); font-size: clamp(21px, 4vw, 28px); color: var(--gold-light); }
      .cosmic-share-panel p { margin: 0; color: var(--text-secondary); }
      .cosmic-share-eyebrow { color: var(--gold) !important; font-family: var(--font-h); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 7px !important; }
      .cosmic-share-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
      .cosmic-share-status { min-height: 1.4em; font-size: 13px; color: var(--gold-light) !important; }

      @media (min-width: 580px) { .zodiac-results-grid { grid-template-columns: 1fr 1fr; }
      }

      .zodiac-result-card {
        background: var(--card);
        border: 1px solid var(--border-strong);
        border-radius: var(--r-md);
        padding: 18px;
        position: relative;
        overflow: hidden;
        animation: slideUp 0.45s cubic-bezier(0.22,1,0.36,1) backwards;
      }

      .zodiac-result-card.is-requested {
        border-color: rgba(var(--gold-light-rgb), .78);
        box-shadow: 0 0 0 2px rgba(var(--gold-rgb), .16), 0 18px 46px rgba(0,0,0,.28);
      }

      .zodiac-result-card::before {
        content: "";
        position: absolute;
        top: 0; left: 0;
        width: 4px; height: 100%;
        border-radius: 4px 0 0 4px;
      }

      .zodiac-result-card.tropical::before { background: var(--c-tropical); }
      .zodiac-result-card.vedic::before { background: var(--c-vedic); }
      .zodiac-result-card.egyptian::before { background: var(--c-egyptian); }
      .zodiac-result-card.american::before { background: var(--c-american); }
      .zodiac-result-card.celtic::before { background: var(--c-celtic); }
      .zodiac-result-card.chinese::before { background: var(--c-chinese); }
      .zodiac-result-card.maya::before { background: var(--c-maya); }
      .zodiac-result-card.azteca::before { background: var(--c-azteca); }
      .zodiac-result-card:nth-child(1) { animation-delay: 0.04s; }
      .zodiac-result-card:nth-child(2) { animation-delay: 0.09s; }
      .zodiac-result-card:nth-child(3) { animation-delay: 0.14s; }
      .zodiac-result-card:nth-child(4) { animation-delay: 0.19s; }
      .zodiac-result-card:nth-child(5) { animation-delay: 0.24s; }
      .zodiac-result-card:nth-child(6) { animation-delay: 0.29s; }
      .zodiac-result-card:nth-child(7) { animation-delay: 0.34s; }
      .zodiac-result-card:nth-child(8) { animation-delay: 0.39s; }

      .zrc-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
      .zrc-emoji { display: grid; width: 44px; height: 44px; place-items: center; flex: 0 0 44px; border: 1px solid rgba(var(--gold-muted-rgb), .24); border-radius: 13px; background: rgba(var(--gold-muted-rgb), .08); font-size: 27px; line-height: 1; }
      .zrc-tradition { font-family: var(--font-h); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 2px; }
      .zrc-order { display: inline-grid; min-width: 24px; margin-right: 7px; place-items: center; color: var(--text-muted); font-size: 9px; }
      .zrc-sign { font-size: 17px; font-weight: 700; color: #ffffff; line-height: 1.3; }
      .zrc-layer { margin: 0 0 9px; color: var(--gold); font-size: 11px; letter-spacing: .04em; }
      .zrc-meta { font-size: 14px; color: #c8c3e0; margin-bottom: 8px; font-weight: 400; }
      .zrc-positive { font-size: 12.5px; color: #86efac; font-weight: 500; line-height: 1.6; margin-bottom: 4px; }
      .zrc-negative { font-size: 12.5px; color: #fca5a5; font-weight: 500; line-height: 1.6; }
      .zrc-guide-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 13px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.08); color: var(--gold-light); font-family: var(--font-h); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
      .zrc-guide-link:hover, .zrc-guide-link:focus-visible { color: #fff4bd; text-decoration: underline; text-underline-offset: 4px; }
      .carta-section-side { display: grid; justify-items: end; gap: 8px; text-align: right; }
      .carta-section-side p { margin: 0; }
      .carta-library-link { color: var(--gold-light); font-family: var(--font-h); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
      .carta-library-link:hover, .carta-library-link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
      @media (max-width: 680px) { .carta-section-side { justify-items: start; text-align: left; }
      }

      .result-change-date { margin-top: 8px; }

      .result-note { text-align: center; font-size: 12.5px; color: var(--text-muted); font-style: italic; padding: 4px 0 8px; }

      .numerology-block { display: flex; flex-direction: column; gap: 14px; }

      .numerology-notice {
        padding: 14px 16px;
        border: 1px solid rgba(232,121,249,0.3);
        border-radius: var(--r-md);
        background: rgba(232,121,249,0.06);
        color: #dedbf0;
        font-size: 16px;
        line-height: 1.7;
        text-align: center;
        font-weight: 400;
      }

      .numerology-omission {
        margin-bottom: 12px;
        padding: 14px 16px;
        border: 1px solid rgba(var(--gold-muted-rgb), 0.3);
        border-radius: var(--r-md);
        background: rgba(var(--gold-muted-rgb), 0.06);
        color: var(--text-secondary);
        font-size: 13px;
        line-height: 1.65;
        font-weight: 400;
      }

      .numerology-omission strong { color: var(--gold-light); }

      .numerology-primary {
        min-width: 0;
        padding: 28px 22px;
        border: 1.5px solid rgba(232,121,249,0.35);
        border-radius: var(--r-xl);
        background: linear-gradient(145deg, rgba(232,121,249,0.1), var(--card));
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
        position: relative;
      }

      .numerology-primary::before {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(232,121,249,0.15), transparent 68%);
        pointer-events: none;
      }

      .numerology-kicker { color: #f0abfc; font-family: var(--font-h); font-size: 11px; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; }
      .numerology-value { margin: 6px 0; color: var(--gold-light); font-family: var(--font-h); font-size: clamp(42px, 10vw, 64px); line-height: 1; }
      .numerology-title { color: #ffffff; font-family: var(--font-h); font-size: 20px; font-weight: 700; }
      .numerology-description { max-width: 440px; margin: 10px auto 0; color: var(--text-secondary); font-size: 14px; line-height: 1.65; font-weight: 400; }

      .numerology-selector {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
        gap: 10px;
      }

      .numerology-tab {
        min-width: 0;
        min-height: 78px;
        display: grid;
        grid-template-columns: 54px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        padding: 12px;
        border: 1px solid var(--border-strong);
        border-radius: var(--r-md);
        background: var(--card);
        color: inherit;
        cursor: pointer;
        text-align: left;
        transition: border-color 0.2s, background 0.2s, transform 0.2s;
      }

      .numerology-tab:hover { border-color: var(--gold-light); transform: translateY(-2px); }
      .numerology-tab[aria-selected="true"] { border-color: var(--gold-light); background: rgba(232,121,249,0.12); box-shadow: 0 0 22px rgba(232,121,249,0.15); }
      .numerology-tab-number { color: var(--gold-light); font-family: var(--font-h); font-size: 24px; font-weight: 700; text-align: center; white-space: nowrap; }
      .numerology-tab-label { display: block; color: var(--text-muted); font-family: var(--font-h); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
      .numerology-tab-title { display: block; margin-top: 3px; color: #ffffff; font-size: 13px; font-weight: 600; line-height: 1.3; }

      @media (max-width: 600px) {
        .numerology-tab:last-child { grid-column: 1 / -1; }
      }

      .numerology-reading {
        margin-top: 12px;
        border: 1.5px solid rgba(232,121,249,0.35);
        border-radius: var(--r-lg);
        background: var(--card);
        overflow: hidden;
      }

      .numerology-reading-header {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 20px;
        border-bottom: 1px solid var(--card-border);
        background: linear-gradient(120deg, rgba(232,121,249,0.1), transparent 45%);
      }

      .numerology-reading-number { min-width: 64px; color: var(--gold-light); font-family: var(--font-h); font-size: 42px; font-weight: 700; line-height: 1; text-align: center; }
      .numerology-reading-type { color: #f0abfc; font-family: var(--font-h); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
      .numerology-reading-title { margin-top: 3px; color: #ffffff; font-family: var(--font-h); font-size: 23px; font-weight: 700; }
      .numerology-calculation { margin: 16px 20px 0; padding: 11px 13px; border-radius: var(--r-sm); background: rgba(6,5,26,0.85); color: var(--gold-light); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; overflow-wrap: anywhere; }

      .numerology-reading-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px 20px 20px;
      }

      @media (min-width: 720px) {
        .numerology-reading-grid { grid-template-columns: 1fr 1fr; }
      }

      .numerology-reading-section { padding: 16px; border: 1px solid rgba(var(--gold-muted-rgb), 0.15); border-radius: var(--r-sm); background: rgba(255,255,255,0.025); }
      .numerology-reading-section h4 { margin-bottom: 7px; color: var(--gold-light); font-family: var(--font-h); font-size: 11px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
      .numerology-reading-section p,
      .numerology-reading-section li {
        color: #f3f0fc !important;
        font-size: 16.5px !important;
        line-height: 1.75 !important;
        font-weight: 400 !important;
      }

      .numerology-reading-section ul { padding-left: 17px; }
      .numerology-reading-section.interpretation { grid-column: 1 / -1; }
      .numerology-meta { margin: 0 20px 20px; padding-top: 12px; border-top: 1px solid var(--card-border); color: var(--text-muted); font-size: 12px; font-style: italic; }

      .date-status { min-height: 22px; color: var(--error); font-size: 13px; text-align: center; font-weight: 500; }

      /* ============================================================
         RESPONSIVE
      ============================================================ */
      @media (min-width: 600px) { .screen { padding: 32px 28px 48px; }
      }
      @media (min-width: 860px) { .screen { padding: 40px 40px 56px; }
      }

      @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
          animation-duration: 0.01ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.01ms !important;
        }
      }

      @media (forced-colors: active) {
        .hero-title,
        .screen-title {
          background: none;
          color: CanvasText;
          -webkit-text-fill-color: CanvasText;
        }

        .btn-cta,
        .btn-skip,
        .gender-btn,
        .country-search-input,
        .country-result-item,
        .act2-picker-overlay {
          border: 1px solid CanvasText;
          background: Canvas;
          color: CanvasText;
          forced-color-adjust: auto;
        }

        .stars-bg {
          display: none;
        }
      }

/* ============================================================
   CARTA PERSONAL — IDENTIDAD PERMANENTE
============================================================ */
#screen-results .carta-inner { width: min(1180px, 100%); max-width: 1180px; gap: 24px; }
.carta-cover {
  display: grid;
  grid-template-columns: minmax(250px, .78fr) minmax(0, 1.35fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid rgba(236,202,105,.32);
  border-radius: 32px;
  background: radial-gradient(circle at 12% 16%, rgba(var(--gold-muted-rgb), .15), transparent 36%), radial-gradient(circle at 92% 84%, rgba(124,58,237,.2), transparent 42%), linear-gradient(145deg, rgba(16,15,48,.97), rgba(38,21,65,.94));
  box-shadow: 0 30px 80px rgba(0,0,0,.36), inset 0 1px rgba(255,255,255,.04);
}
.carta-cover-avatar { display: grid; aspect-ratio: 1; place-items: center; overflow: hidden; border: 1px solid rgba(236,202,105,.42); border-radius: 28px; color: #f4da7a; background: radial-gradient(circle, rgba(124,58,237,.2), rgba(6,5,26,.92)); box-shadow: 0 24px 60px rgba(0,0,0,.4), 0 0 42px rgba(124,58,237,.16); font-size: 4rem; }
.carta-cover-avatar img { width: 100%; height: 100%; object-fit: cover; }
.carta-cover-copy h1 { margin: .3rem 0 .55rem; color: #fff2af; font-family: var(--font-h); font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: .98; }
.carta-cover-archetype { margin: 0; color: #e9c95f; font-family: var(--font-h); font-size: clamp(1.1rem, 2.2vw, 1.55rem); }
.carta-cover-intro { max-width: 680px; margin: 18px 0 0; color: var(--text-secondary); line-height: 1.7; }
.carta-cover-signatures { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 24px; }
.carta-cover-signatures span { min-width: 0; padding: 13px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.028); }
.carta-cover-signatures small, .carta-cover-signatures strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carta-cover-signatures small { color: var(--text-muted); font-size: .63rem; letter-spacing: .08em; text-transform: uppercase; }
.carta-cover-signatures strong { margin-top: 6px; color: #fff2b0; font-family: var(--font-h); font-size: .95rem; }
.carta-cover-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.carta-cover-actions .btn-cta, .carta-cover-actions .btn-back { width: auto; margin: 0; text-decoration: none; }
.carta-local-nav { position: sticky; z-index: 12; top: calc(var(--cosmic-shell-header-height, 56px) + 10px); display: flex; gap: 7px; justify-content: center; padding: 8px; overflow-x: auto; border: 1px solid rgba(var(--gold-muted-rgb), .18); border-radius: 18px; background: rgba(8,7,30,.87); box-shadow: 0 14px 34px rgba(0,0,0,.24); backdrop-filter: blur(18px); scrollbar-width: none; }
.carta-local-nav::-webkit-scrollbar { display: none; }
.carta-local-nav a { flex: 0 0 auto; padding: 9px 13px; border-radius: 12px; color: #bbb4cf; font-family: var(--font-h); font-size: .72rem; text-decoration: none; }
.carta-local-nav a:hover { color: #fff0ad; background: rgba(var(--gold-muted-rgb), .08); }
.carta-content-section { padding: clamp(24px,4vw,42px); border: 1px solid rgba(var(--gold-muted-rgb), .17); border-radius: 28px; background: rgba(13,11,42,.78); scroll-margin-top: 130px; }
.carta-section-heading { display: flex; gap: 24px; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.carta-section-heading h2 { margin: 0; color: #fff2b4; font-family: var(--font-h); font-size: clamp(1.7rem,4vw,2.7rem); }
.carta-section-heading > p { max-width: 420px; margin: 0; color: var(--text-muted); line-height: 1.6; text-align: right; }
.carta-content-section .primary-results-grid { margin-bottom: 22px; }
.carta-content-section .zodiac-results-grid { gap: 11px; }
.carta-content-section .numerology-block { padding: 0; }
.carta-utility-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; scroll-margin-top: 130px; }
.carta-utility-card { padding: clamp(24px,4vw,38px); border: 1px solid rgba(var(--gold-muted-rgb), .18); border-radius: 26px; background: radial-gradient(circle at 100% 0, rgba(124,58,237,.15), transparent 40%), rgba(13,11,42,.84); }
.carta-utility-icon { display: grid; width: 54px; height: 54px; place-items: center; margin-bottom: 24px; border: 1px solid rgba(var(--gold-muted-rgb), .25); border-radius: 17px; color: #f2d66e; background: rgba(var(--gold-muted-rgb), .07); font-size: 1.5rem; }
.carta-utility-card h2 { margin: 0 0 10px; color: #fff1ae; font-family: var(--font-h); font-size: clamp(1.4rem,3vw,2rem); }
.carta-utility-card > p:not(.screen-eyebrow) { color: var(--text-secondary); line-height: 1.65; }
.carta-utility-card .btn-cta, .carta-utility-card .btn-back { display: inline-flex; width: auto; margin: 16px 0 0; text-decoration: none; }
.carta-settings { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 24px clamp(24px,4vw,38px); border: 1px solid rgba(255,255,255,.08); border-radius: 22px; background: rgba(255,255,255,.025); scroll-margin-top: 130px; }
.carta-settings h2 { margin: 0 0 7px; color: #eee8fb; font-family: var(--font-h); font-size: 1.35rem; }
.carta-settings p:not(.screen-eyebrow) { margin: 0; color: var(--text-muted); }
.carta-settings .result-change-date { width: auto; flex: 0 0 auto; margin: 0; }

@media (max-width: 760px) {
  .carta-cover { grid-template-columns: 1fr; padding: 18px; border-radius: 24px; }
  .carta-cover-avatar { width: min(100%, 330px); margin: 0 auto; border-radius: 22px; }
  .carta-cover-copy { text-align: center; }
  .carta-cover-intro { margin-inline: auto; }
  .carta-cover-actions { align-items: stretch; flex-direction: column; }
  .carta-cover-actions .btn-cta, .carta-cover-actions .btn-back { width: 100%; }
  .carta-local-nav { top: calc(var(--cosmic-shell-header-height, 54px) + 6px); justify-content: flex-start; }
  .carta-section-heading { align-items: flex-start; flex-direction: column; }
  .carta-section-heading > p { text-align: left; }
  .carta-utility-grid { grid-template-columns: 1fr; }
  .carta-settings { align-items: stretch; flex-direction: column; }
  .carta-settings .result-change-date { width: 100%; }
      }
@media (max-width: 430px) {
  .carta-cover-signatures { grid-template-columns: 1fr; }
  .carta-cover-signatures span { text-align: left; }
  .carta-content-section { padding: 18px; border-radius: 22px; }
      }

      @keyframes error-shake {
        0%, 100% { transform: translateX(0); }
        20%, 60% { transform: translateX(-7px); }
        40%, 80% { transform: translateX(7px); }
      }

      @keyframes error-pop {
        from { opacity: 0; transform: translateY(-4px); }
        to { opacity: 1; transform: translateY(0); }
      }

      @keyframes spin-clockwise {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
      }

      @keyframes spin-counter {
        from { transform: rotate(360deg); }
        to { transform: rotate(0deg); }
      }

      @keyframes pulse-glow {
        0%, 100% { transform: scale(1); opacity: 0.8; }
        50% { transform: scale(1.18); opacity: 1; }
      }

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