/* ================================================
   RUNAS DEL AMOR - APP STYLES (Love/Norse Theme)
   ================================================ */

.ra-app {
    --ra-rojo: #dc2626;
    --ra-rosa: #ec4899;
    --ra-oro: #fbbf24;
    --ra-dorado: #f59e0b;
    --ra-noche: #1a0a2e;
    --ra-gradiente: linear-gradient(135deg, #1a0a2e 0%, #4a0033 50%, #7a1a5e 100%);
    --ra-gradiente-oro: linear-gradient(135deg, #dc2626 0%, #ec4899 50%, #fbbf24 100%);
    --ra-sombra: 0 10px 30px rgba(220, 38, 38, 0.3);
    --ra-radio: 16px;
    --ra-transicion: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    position: relative;
    overflow: hidden;
}

.ra-fase {
    animation: raFadeIn 0.6s ease;
}

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

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

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

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

@keyframes raPulso {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.3) drop-shadow(0 0 20px rgba(251, 191, 36, 0.5)); }
}

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

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

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

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

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

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

.ra-form-campo {
    max-width: 500px;
    margin: 0 auto 1rem;
    text-align: left;
}

.ra-form-seccion {
    margin-bottom: 1.5rem;
}

.ra-seccion-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

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

.ra-input:focus {
    outline: none;
    border-color: var(--ra-oro);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
    background-color: rgba(255, 255, 255, 0.08);
}

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

.ra-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--ra-transicion);
    box-sizing: border-box;
    resize: vertical;
    min-height: 80px;
}

.ra-textarea:focus {
    outline: none;
    border-color: var(--ra-oro);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
    background-color: rgba(255, 255, 255, 0.08);
}

.ra-textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.ra-select {
    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(--ra-transicion);
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ec4899' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.ra-select:focus {
    outline: none;
    border-color: var(--ra-oro);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
    background-color: rgba(255, 255, 255, 0.08);
}

.ra-select option {
    background: #1a0a2e;
    color: #fff;
}

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

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

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

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

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

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

.ra-runa-centro {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    animation: raGiroPulso 2s ease-in-out infinite;
}

@keyframes raGiroPulso {
    0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    50% { transform: translate(-50%, -50%) scale(1.2) rotate(180deg); filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.6)); }
}

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

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

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

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

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

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

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

.ra-seccion:nth-child(2) { animation-delay: 0s; }
.ra-seccion:nth-child(3) { animation-delay: 0.15s; }
.ra-seccion:nth-child(4) { animation-delay: 0.2s; }
.ra-seccion:nth-child(5) { animation-delay: 0.25s; }
.ra-seccion:nth-child(6) { animation-delay: 0.3s; }

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

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

/* ================================================
   RUNA
   ================================================ */

.ra-runa-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.ra-runa-simbolo {
    font-size: 2.5rem;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Segoe UI Historic', 'Noto Sans Runic', monospace;
}

.ra-runa-info {
    flex: 1;
    min-width: 120px;
}

.ra-runa-nombre {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.ra-runa-significado {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.2rem;
}

.ra-runa-amor {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.ra-consejo-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(251, 191, 36, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.ra-consejo-label {
    color: var(--ra-oro);
    font-weight: 600;
}

/* ================================================
   INTERPRETACION AMOROSA
   ================================================ */

.ra-interpretacion-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.ra-interpretacion-icono {
    font-size: 1.5rem;
}

.ra-interpretacion-titulo {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

.ra-interpretacion-texto {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    font-style: italic;
}

.ra-accion-box {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: rgba(236, 72, 153, 0.06);
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 12px;
    padding: 0.8rem 1rem;
}

.ra-accion-icon {
    flex-shrink: 0;
    font-size: 1rem;
}

.ra-accion-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ================================================
   MENSAJE
   ================================================ */

.ra-mensaje-box {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
}

.ra-mensaje-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ra-mensaje-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
}

/* ================================================
   RITUAL
   ================================================ */

.ra-ritual-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.ra-ritual-icon {
    font-size: 1.2rem;
}

.ra-ritual-nombre {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.ra-ritual-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ================================================
   AREA
   ================================================ */

.ra-area-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.ra-area-icono {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ra-area-nombre {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

.ra-afirmacion-area {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-size: 0.93rem;
}

/* ================================================
   NUEVA CONSULTA
   ================================================ */

.ra-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(--ra-transicion);
    font-family: inherit;
}

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

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

.ra-app::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(26, 10, 46, 0.8) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(220, 38, 38, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(251, 191, 36, 0.03) 0%, transparent 50%);
    animation: raFondo 25s linear infinite;
    pointer-events: none;
    z-index: 0;
}

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

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

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

@media (max-width: 768px) {
    .ra-titulo-form { font-size: 1.6rem; }
    .ra-icono-oraculo { font-size: 3rem; }
    .ra-runa-header { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .ra-form-contenido { padding: 1.5rem 0.5rem; }
    .ra-titulo-form { font-size: 1.4rem; }
    .ra-subtitulo-form { font-size: 0.85rem; }
    .ra-resultado-contenido { padding: 1.5rem 0.5rem; }
    .ra-seccion { padding: 1.2rem; }
    .ra-btn-nueva { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
    .ra-btn-consultar { padding: 0.8rem 1.8rem; font-size: 0.9rem; }
}

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

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

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

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