/* RESET */
#oraculo-app * {
  box-sizing: border-box;
}

/* CONTENEDOR GENERAL */
#oraculo-app {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'Helvetica Neue', sans-serif;
  color: #fff;
  border-radius: 20px;
}

/* TEXTO INICIAL */
#oraculo-app h2 {
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 30px;
}

/* BOTÓN */
#oraculo-app button {
  padding: 14px 28px;
  border: none;
  border-radius: 30px;
  background: #aa7eb1;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#oraculo-app button:hover {
  background: #e2cbd1;
  transform: translateY(-2px);
}

.btn-interpretar {
  padding: 14px 28px;
  border: none;
  border-radius: 30px;
  background: #aa7eb1;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-interpretar:hover {
  background: #e2cbd1;
  transform: translateY(-2px);
}
/* CONTENEDOR DE CARTAS */
.cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap;
}

/* CARTA */
.card {
  width: 220px;
  height: 320px;
  perspective: 1200px;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* INNER (flip) */
.inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(.4,.2,.2,1);
  will-change: transform;
}

/* ACTIVAR FLIP */
.card.flip .inner {
  transform: rotateY(180deg);
}

/* CARAS */
.face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 25px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* PARTE DE ATRÁS */
.back {
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.02));
  backdrop-filter: blur(20px);
}

/* PARTE DE ADELANTE */
.front {
  transform: rotateY(180deg);
  color: #111;
  position: relative;
  overflow: hidden;
}

/* GLOW BASE */
.front::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 60%);
  opacity: 0.25;
  pointer-events: none;
}

.n-0 {
  background: linear-gradient(135deg, 
    #f8fafc 0%, 
    #e2e8f0 40%, 
    #cbd5f5 70%, 
    #f8fafc 100%);
  color: #111;
  position: relative;
  overflow: hidden;
}

.n-0 {
  background: linear-gradient(120deg, 
    #fdfbfb, 
    #ebedee, 
    #dbeafe, 
    #ede9fe);
  background-size: 200% 200%;
  animation: shimmer 6s ease infinite;
  color: #111;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.n-0::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.6), transparent 60%);
  mix-blend-mode: overlay;
}

/* ========= ENERGÍA POR NÚMERO ========= */

/* 1 - INICIO */
.front.n-1 {
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.6);
}

/* 2 - INTUICIÓN */
.front.n-2 {
  box-shadow: 0 0 30px rgba(96, 165, 250, 0.4);
  filter: brightness(1.05);
}

/* 3 - EXPRESIÓN */
.front.n-3 {
  box-shadow: 0 0 50px rgba(253, 224, 71, 0.7);
}

/* 4 - BASE */
.front.n-4 {
  box-shadow: inset 0 0 25px rgba(0,0,0,0.35);
}

/* 5 - CAMBIO (FIX sin romper flip) */
.front.n-5::after {
  animation: pulseGlow 2s infinite;
}

/* 6 - AMOR */
.front.n-6 {
  box-shadow: 0 0 40px rgba(251, 113, 133, 0.5);
}

/* 7 - ESPIRITUAL */
.front.n-7 {
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.6);
}

/* 8 - PODER */
.front.n-8 {
  box-shadow: 0 0 60px rgba(251, 191, 36, 0.9);
}

/* 9 - CIERRE */
.front.n-9 {
  opacity: 0.95;
}

/* ANIMACIÓN GLOW (para 5) */
@keyframes pulseGlow {
  0% { opacity: 0.2; }
  50% { opacity: 0.5; }
  100% { opacity: 0.2; }
}

/* NÚMERO */
.number {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  margin-bottom: 10px;
}

/* PALABRA */
.word {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
}

/* FRASE (UNIFICADA) */
.phrase {
  margin-top: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.3px;
}

/* CTA */
.cta {
  margin-top: 50px;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.cta.show {
  opacity: 1;
}

.cta p {
  margin-bottom: 15px;
  opacity: 0.8;
}

/* RESPONSIVE */
@media (max-width: 768px) {

  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 260px;
    height: 360px;
  }

  .phrase {
    font-size: 18px;
  }

}
@media (max-width: 600px) {
 #resultado { font-size: 75%; }
}
