/* ================================================
   NUMEROLOGIA DEL AMOR - APP STYLES
   ================================================ */

.na-app {
    --na-rosa: #ec4899;
    --na-rosa-oscuro: #db2777;
    --na-oro: #f59e0b;
    --na-gradiente: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    --na-gradiente-rosa: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
    --na-sombra: 0 10px 30px rgba(236, 72, 153, 0.15);
    --na-radio: 16px;
    --na-transicion: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    position: relative;
    overflow: hidden;
}

/* ================================================
   FASE FORMULARIO
   ================================================ */

.na-fase {
    animation: naFadeIn 0.6s ease;
}

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

.na-form-contenido {
    text-align: center;
    padding: 2.5rem 1rem;
}

.na-icono-oraculo {
    font-size: 4rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    animation: naBrillar 3s ease-in-out infinite;
}

@keyframes naBrillar {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.3) drop-shadow(0 0 20px rgba(236, 72, 153, 0.5)); }
}

.na-destello {
    position: absolute;
    font-size: 1rem;
    opacity: 0;
    animation: naDestello 3s ease-in-out infinite;
    pointer-events: none;
}

.na-destello::before { content: '\2726'; }
.na-d2::before { content: '\2756'; }
.na-d3::before { content: '\2727'; }

.na-d1 { animation-delay: -0.5s; top: -10px; left: 10px; }
.na-d2 { animation-delay: -1.5s; top: -5px; right: 15px; }
.na-d3 { animation-delay: -2.5s; bottom: 5px; left: 25px; }

@keyframes naDestello {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
    50% { opacity: 0.8; transform: translateY(-20px) scale(1); }
}

.na-titulo-form {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--na-gradiente);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.na-subtitulo-form {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.na-dual-form {
    display: flex;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    align-items: flex-start;
}

.na-persona-form {
    flex: 1;
}

.na-persona-titulo {
    color: var(--na-rosa);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    text-align: center;
}

.na-separador {
    font-size: 1.5rem;
    color: var(--na-rosa);
    align-self: center;
    padding-top: 2.5rem;
}

.na-campo {
    text-align: left;
    margin-bottom: 0;
}

.na-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.na-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--na-transicion);
    box-sizing: border-box;
}

.na-input:focus {
    outline: none;
    border-color: var(--na-rosa);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
    background-color: rgba(255, 255, 255, 0.08);
}

.na-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.na-btn-calcular {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--na-gradiente);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--na-transicion);
    margin-top: 1rem;
    font-family: inherit;
}

.na-btn-calcular:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.3);
}

.na-instruccion {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 1.5rem;
}

/* ================================================
   LOADING
   ================================================ */

.na-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.na-loading-orbita {
    width: 90px;
    height: 90px;
    position: relative;
    margin-bottom: 1.5rem;
}

.na-orbita-num {
    position: absolute;
    top: 20px;
    left: 10px;
    width: 28px;
    height: 28px;
    background: var(--na-gradiente);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
    animation: naOrbita1 3s ease-in-out infinite;
}

.na-orbita-num2 {
    position: absolute;
    bottom: 20px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: var(--na-gradiente-rosa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
    animation: naOrbita2 3s ease-in-out infinite;
}

@keyframes naOrbita1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(25px, 15px); }
}

@keyframes naOrbita2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-25px, -15px); }
}

.na-orbita-arc {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 80px;
    height: 80px;
    border: 1px dashed rgba(236, 72, 153, 0.25);
    border-radius: 50%;
    animation: naArcGiro 8s linear infinite;
}

@keyframes naArcGiro {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.na-loading-texto {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    animation: naPulso 1.5s ease-in-out infinite;
}

@keyframes naPulso {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ================================================
   FASE RESULTADO
   ================================================ */

.na-resultado-contenido {
    padding: 2rem 1rem;
}

.na-resultado-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(236, 72, 153, 0.2);
}

.na-nombres-display {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.na-puntuacion-display {
    margin-bottom: 0.5rem;
}

.na-pct {
    font-size: 3rem;
    font-weight: 800;
    background: var(--na-gradiente);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.na-pct-simbolo {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.na-nivel-badge {
    display: inline-block;
    font-size: 0.95rem;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
}

.na-seccion {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(236, 72, 153, 0.1);
    border-radius: var(--na-radio);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    animation: naSlideIn 0.6s ease both;
}

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

.na-seccion-titulo {
    color: var(--na-rosa);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.na-titulo-amor { color: var(--na-rosa); }
.na-titulo-pers { color: var(--na-oro); }
.na-titulo-compat { color: #10b981; }

/* Love number */
.na-amor-numero {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.na-amor-num-grande {
    font-size: 4rem;
    font-weight: 800;
    min-width: 70px;
    text-align: center;
    background: var(--na-gradiente);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.na-amor-nombre {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.na-amor-nums {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.na-card-desc {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Strengths & Challenges */
.na-rasgos-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.na-rasgos-col {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem;
}

.na-fortalezas {
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.na-desafios {
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.na-rasgos-label {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.na-label-fort { color: #10b981; }
.na-label-deb { color: #f87171; }

.na-rasgos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.na-rasgo-badge {
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
}

.na-rasgo-fort {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.na-rasgo-deb {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Dual profile */
.na-dual-perfil {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: start;
}

.na-perfil {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.2rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.na-perfil-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--na-rosa);
    margin-bottom: 0.2rem;
}

.na-perfil-nombre {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    word-break: break-word;
}

.na-perfil-tipo {
    color: var(--na-oro);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.na-perfil-busca {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    line-height: 1.5;
}

.na-perfil-conector {
    font-size: 2rem;
    color: var(--na-rosa);
    align-self: center;
    padding-top: 3rem;
}

/* Compatibility */
.na-compat-display {
    text-align: center;
}

.na-compat-desc {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.na-compat-nums {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.na-compat-persona {
    background: rgba(236, 72, 153, 0.06);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(236, 72, 153, 0.1);
    flex: 1;
    min-width: 200px;
}

.na-compat-label {
    display: block;
    color: var(--na-rosa);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    word-break: break-word;
}

.na-compat-nums-list {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Overall advice */
.na-consejo-general {
    background: rgba(236, 72, 153, 0.05);
    border: 1px solid rgba(236, 72, 153, 0.15);
    border-radius: var(--na-radio);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    animation: naSlideIn 0.6s ease both;
}

.na-consejo-texto {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 1rem;
}

/* New consultation button */
.na-btn-nueva {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 2px solid rgba(236, 72, 153, 0.3);
    border-radius: 50px;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--na-transicion);
    font-family: inherit;
}

.na-btn-nueva:hover {
    background: rgba(236, 72, 153, 0.15);
    border-color: var(--na-rosa);
    transform: translateY(-2px);
}

/* ================================================
   PARTICULAS DE FONDO
   ================================================ */

.na-app::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(236, 72, 153, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(244, 114, 182, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
    animation: naFondo 25s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes naFondo {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.na-fase { position: relative; z-index: 1; }
.na-loading { position: relative; z-index: 1; }

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 768px) {
    .na-titulo-form { font-size: 1.6rem; }
    .na-icono-oraculo { font-size: 3rem; }
    .na-dual-form { flex-direction: column; }
    .na-separador { padding-top: 0; transform: rotate(90deg); }
    .na-dual-perfil { grid-template-columns: 1fr; }
    .na-perfil-conector { display: none; }
    .na-rasgos-dual { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .na-form-contenido { padding: 1.5rem 0.5rem; }
    .na-titulo-form { font-size: 1.4rem; }
    .na-subtitulo-form { font-size: 0.85rem; }
    .na-resultado-contenido { padding: 1.5rem 0.5rem; }
    .na-seccion { padding: 1.2rem; }
    .na-btn-nueva { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
    .na-btn-calcular { padding: 0.8rem 1.8rem; font-size: 0.9rem; }
    .na-pct { font-size: 2.5rem; }
    .na-amor-num-grande { font-size: 3rem; min-width: 50px; }
    .na-compat-nums { flex-direction: column; }
}

/* ================================================
   ACCESIBILIDAD
   ================================================ */

@media (prefers-reduced-motion: reduce) {
    .na-app::before { animation: none; }
    .na-icono-oraculo { animation: none; }
    .na-destello { animation: none; display: none; }
    .na-loading-orbita { animation: none; }
    .na-loading-texto { animation: none; opacity: 1; }
    .na-seccion { animation: none; opacity: 1; transform: none; }
    * { transition-duration: 0.05ms !important; animation-duration: 0.05ms !important; }
}

@media (prefers-contrast: high) {
    .na-seccion { border: 2px solid rgba(255, 255, 255, 0.4); }
    .na-input { border: 2px solid rgba(255, 255, 255, 0.4); }
}

@media print {
    .na-app::before { display: none; }
    .na-btn-nueva { display: none; }
    .na-seccion { break-inside: avoid; }
}