* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(180deg, #1d0938, #39145a);
  font-family: Arial, sans-serif;
}

.app {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: linear-gradient(180deg, #1d0938, #39145a);
}

.screen {
  display: none;
  min-height: 100vh;
  padding: 35px 25px;
  text-align: center;
  color: white;
}

.screen.active {
  display: block;
}

.moon {
  font-size: 70px;
  margin-top: 70px;
  margin-bottom: 20px;
}

h1 {
  font-size: 40px;
  line-height: 1.1;
  margin-bottom: 18px;
}

h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.subtitle {
  color: #e6d9ff;
  line-height: 1.5;
  margin-bottom: 30px;
}

.oracle-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 25px;
  padding: 25px;
  backdrop-filter: blur(10px);
}

.oracle-card p {
  color: #ddd;
  margin-bottom: 20px;
}

button {
  border: none;
  border-radius: 50px;
  padding: 15px 25px;
  background: #ffd67a;
  color: #351553;
  font-weight: bold;
  cursor: pointer;
}

.menu-button {
  background: rgba(255, 255, 255, 0.85);
  color: #351553;
  display: block;
  width: 100%;
  margin-bottom: 14px;
  font-size: 16px;
  border-radius: 50px;
  padding: 16px 25px;
  border: 1px solid rgba(234, 212, 238, 0.5);
  box-shadow: 0 4px 16px rgba(70, 30, 90, 0.10);
}

.light {
  background: linear-gradient(180deg, #fff8f3, #f3e4f6);
  color: #351553;
}

.subtitle-dark {
  color: #7b668a;
  margin-bottom: 25px;
}

.back {
  background: transparent;
  color: #351553;
  font-size: 30px;
  padding: 0;
  display: block;
  margin-bottom: 25px;
}

.back.white {
  color: white;
}

.oracle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.oracle-option {
  min-height: 145px;
  border-radius: 22px;
  background: rgba(255,255,255,0.8);
  border: 1px solid #ead4ee;
  box-shadow: 0 10px 25px rgba(70, 30, 90, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.oracle-option span {
  font-size: 34px;
}

.oracle-option strong {
  font-size: 18px;
}

.oracle-option small {
  color: #7b668a;
  font-size: 12px;
  padding: 0 8px;
}

.magic-card {
  width: 190px;
  height: 280px;
  margin: 45px auto;
  border-radius: 25px;
  border: 2px solid #ffd67a;
  background: linear-gradient(160deg, #4b2478, #18072d);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
  overflow: hidden;
  padding: 0;
}

.magic-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mini-title {
  color: #9b5aa8;
  font-weight: bold;
  margin-bottom: 18px;
}

.card-image {
  width: 280px;
  max-width: 90%;
  display: block;
  margin: 15px auto 25px auto;
  border-radius: 24px;
  box-shadow:
    0 20px 40px rgba(0,0,0,0.25),
    0 0 20px rgba(255,215,130,0.35);
  border: 3px solid rgba(255,215,130,0.5);
}

.card-reveal {
  animation: revealCard 0.8s ease;
}

@keyframes revealCard {
  0% {
    opacity: 0;
    transform: scale(0.8) rotateY(90deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
  }
}

.result-card {
  background: linear-gradient(180deg, #ffffff, #fff2fb);
  border: 1px solid #ead4ee;
  border-radius: 28px;
  padding: 28px 22px;
  margin-bottom: 20px;
  box-shadow: 0 18px 40px rgba(70, 30, 90, 0.15);
}

.result-card h2 {
  color: #351553;
  font-size: 28px;
  margin-bottom: 18px;
}

.result-card p {
  color: #6f5c7d;
  line-height: 1.6;
}

.affirmation-box {
  background: rgba(255,255,255,0.75);
  border: 1px solid #ead4ee;
  border-radius: 24px;
  padding: 22px;
  margin-bottom: 25px;
  box-shadow: 0 12px 30px rgba(70, 30, 90, 0.10);
}

.affirmation-box h3 {
  color: #9b5aa8;
  margin-bottom: 10px;
}

.affirmation-box p {
  color: #351553;
  font-weight: bold;
  line-height: 1.5;
}

.card-image {
  opacity: 0;
  transform: rotateY(90deg) scale(0.85);
  transition: opacity 0.4s ease, transform 0.7s ease;
  transform-style: preserve-3d;
}

.card-image {
  opacity: 0;
  transform: perspective(900px) rotateY(180deg) scale(0.85);
  transition: opacity 0.3s ease, transform 1s ease;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.card-image.card-reveal {
  opacity: 1;
  transform: perspective(900px) rotateY(0deg) scale(1);
  animation: glowReveal 1.2s ease;
}

@keyframes glowReveal {
  0% {
    filter: brightness(0.8);
    box-shadow: 0 0 0 rgba(255, 214, 122, 0);
  }

  50% {
    filter: brightness(1.25);
    box-shadow: 0 0 45px rgba(255, 214, 122, 0.9);
  }

  100% {
    filter: brightness(1);
    box-shadow: 0 18px 45px rgba(70, 30, 90, 0.25);
  }
}

.brand-icon {
  font-size: 72px;
  margin-top: 80px;
  margin-bottom: 18px;
}

.by-chiari {
  color: #ffd67a;
  font-size: 20px;
  margin-bottom: 18px;
  font-style: italic;
}

.brand-line {
  color: #f7d7ff;
  font-size: 15px;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}
#home {
  padding: 0;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
}

body:has(#home.active),
.app:has(#home.active) {
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}

.portada-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.portada-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-drag: none;
}

.btn-portada {
  position: absolute;

  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);

  width: 52%;
  height: 95px;

  background: transparent;
  border: none;
  cursor: pointer;

  color: transparent;
  font-size: 0;

  z-index: 50;
}
.btn-portada::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;

  background: transparent;
  box-shadow:
    0 0 22px rgba(255, 215, 120, 0.55),
    0 0 45px rgba(255, 215, 120, 0.35),
    0 0 70px rgba(255, 215, 120, 0.18);

  animation: brilloSuave 2s infinite ease-in-out;
  pointer-events: none;
}

@keyframes brilloSuave {
  0% {
    opacity: 0.25;
    transform: scale(0.98);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }

  100% {
    opacity: 0.25;
    transform: scale(0.98);
  }
}
.btn-portada,
.btn-portada::before,
.btn-portada::after {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  color: transparent !important;
  font-size: 0 !important;
  animation: none !important;
  pointer-events: auto !important;
  position: absolute !important;
  z-index: 999 !important;
}

/* ── Botón "Sacar otra carta" ── */
.result-draw-button {
  min-height: 48px;
  padding: 14px 32px;
}

/* Diario de Manifestacion */
#journal {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 35px 25px 45px;
  background: linear-gradient(180deg, #fff8f3 0%, #f8edf5 48%, #f3e4f6 100%);
}

#journal .back {
  margin-bottom: 24px;
}

#journal .menu-symbol {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border: 1px solid #ffd67a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  color: #ae62c0;
  font-size: 46px;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(70, 30, 90, 0.08);
}

#journal h2 {
  margin-bottom: 12px;
  color: #351553;
  font-size: 32px;
  line-height: 1.15;
}

#journal .subtitle-dark {
  margin: 0 auto 42px;
  max-width: 380px;
  line-height: 1.2;
}

#journal .journal-textarea {
  display: block;
  width: 100%;
  min-height: 180px;
  padding: 20px;
  resize: vertical;
  border: 1px solid #ead4ee;
  border-radius: 23px;
  outline: none;
  background: rgba(255, 255, 255, 0.94);
  color: #351553;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  box-shadow: 0 12px 28px rgba(70, 30, 90, 0.08);
}

#journal .journal-textarea:focus {
  border-color: #c28acb;
  box-shadow: 0 0 0 3px rgba(194, 138, 203, 0.16);
}

#journal .journal-save-button {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
  padding: 14px 24px;
  border-radius: 50px;
  background: linear-gradient(90deg, #ffd778, #ffeca8);
  color: #351553;
  box-shadow: 0 10px 24px rgba(70, 30, 90, 0.10);
}

#journal .journal-limit-message {
  min-height: 20px;
  margin-top: 12px;
  color: #8f527d;
  font-size: 14px;
  line-height: 1.35;
}

#journal .manifestations-list {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

#journal .manifestation-card {
  padding: 20px;
  border: 1px solid #ead4ee;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  text-align: left;
  box-shadow: 0 10px 25px rgba(70, 30, 90, 0.09);
}

#journal .manifestation-date {
  margin-bottom: 8px;
  color: #9b5aa8;
  font-size: 13px;
  font-weight: bold;
}

#journal .manifestation-text {
  color: #351553;
  line-height: 1.5;
}

#journal .manifestation-phrase {
  margin-top: 10px;
  color: #7b668a;
  font-size: 14px;
  font-style: italic;
  line-height: 1.4;
}

#journal .delete-manifestation {
  margin-top: 14px;
  padding: 9px 16px;
  background: #f2e3f3;
  color: #6b3b78;
}

#journal .journal-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: rgba(29, 9, 56, 0.68);
}

#journal .journal-modal.show {
  display: flex;
}

#journal .journal-modal-card {
  width: min(100%, 360px);
  padding: 30px 24px;
  border: 1px solid #ffd67a;
  border-radius: 26px;
  background: linear-gradient(180deg, #fff8f3, #f3e4f6);
  color: #351553;
  box-shadow: 0 24px 60px rgba(24, 7, 45, 0.35);
}

#journal .modal-sparkles {
  margin-bottom: 14px;
  color: #ae62c0;
  font-size: 28px;
}

#journal .journal-modal-card h3,
#journal .journal-modal-card p {
  margin-bottom: 14px;
}

@media (max-width: 380px) {
  #journal {
    padding-right: 20px;
    padding-left: 20px;
  }

  #journal .menu-symbol {
    width: 82px;
    height: 82px;
    font-size: 41px;
  }

  #journal h2 {
    font-size: 29px;
  }

  #journal .subtitle-dark {
    margin-bottom: 32px;
  }
}

/* ══════════════════════════════════════
   FLUJO DE BIENVENIDA
   ══════════════════════════════════════ */

/* ── Portada clickeable ── */
#home {
  cursor: pointer;
}

/* ── Input del nombre ── */
.name-input {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 20px auto 20px;
  padding: 16px 22px;
  border: 1px solid #ead4ee;
  border-radius: 50px;
  outline: none;
  background: rgba(255, 255, 255, 0.94);
  color: #351553;
  font-size: 16px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(70, 30, 90, 0.10);
}

.name-input:focus {
  border-color: #c28acb;
  box-shadow: 0 0 0 3px rgba(194, 138, 203, 0.18);
}

.name-input::placeholder {
  color: #b09cbb;
}

/* ── Pantalla de saludo con brillitos ── */
#welcomeGreeting {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.tap-to-continue {
  margin-top: 30px;
  color: #9b5aa8;
  font-size: 14px;
  font-style: italic;
  opacity: 0;
  animation: fadeInSoft 1.5s ease 2s forwards;
}

@keyframes fadeInSoft {
  0% { opacity: 0; }
  100% { opacity: 0.85; }
}

#welcomeGreeting.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.greeting-content {
  position: relative;
  z-index: 2;
  animation: fadeUp 1.2s ease;
}

.big-symbol {
  font-size: 60px !important;
  animation: floatMoon 3s ease-in-out infinite;
}

.greeting-title {
  font-size: 34px;
  margin-bottom: 20px;
  color: #351553;
  animation: fadeUp 1.4s ease;
}

.greeting-title span {
  background: linear-gradient(90deg, #ae62c0, #ffd67a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.greeting-text {
  font-size: 16px;
  line-height: 1.6;
  color: #6f5c7d;
  max-width: 340px;
  margin: 0 auto;
  animation: fadeUp 1.8s ease;
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes floatMoon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Lluvia de brillitos ── */
.sparkle-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.sparkle-rain span {
  position: absolute;
  color: #ffd67a;
  font-size: 20px;
  opacity: 0;
  animation: sparkleFall 4s linear infinite;
  text-shadow: 0 0 10px rgba(255, 214, 122, 0.8);
}

.sparkle-rain span:nth-child(1)  { left: 8%;  animation-delay: 0s;   font-size: 18px; }
.sparkle-rain span:nth-child(2)  { left: 20%; animation-delay: 0.6s; font-size: 24px; color: #ae62c0; }
.sparkle-rain span:nth-child(3)  { left: 32%; animation-delay: 1.2s; font-size: 16px; }
.sparkle-rain span:nth-child(4)  { left: 45%; animation-delay: 0.3s; font-size: 22px; }
.sparkle-rain span:nth-child(5)  { left: 58%; animation-delay: 1.8s; font-size: 18px; color: #ae62c0; }
.sparkle-rain span:nth-child(6)  { left: 70%; animation-delay: 0.9s; font-size: 26px; }
.sparkle-rain span:nth-child(7)  { left: 82%; animation-delay: 2.4s; font-size: 20px; }
.sparkle-rain span:nth-child(8)  { left: 92%; animation-delay: 1.5s; font-size: 18px; color: #ae62c0; }
.sparkle-rain span:nth-child(9)  { left: 15%; animation-delay: 3s;   font-size: 22px; }
.sparkle-rain span:nth-child(10) { left: 65%; animation-delay: 2.1s; font-size: 16px; }

@keyframes sparkleFall {
  0% {
    top: -10%;
    opacity: 0;
    transform: rotate(0deg) scale(0.6);
  }
  20% {
    opacity: 1;
    transform: rotate(90deg) scale(1);
  }
  80% {
    opacity: 1;
    transform: rotate(270deg) scale(1);
  }
  100% {
    top: 110%;
    opacity: 0;
    transform: rotate(360deg) scale(0.6);
  }
}

/* ══════════════════════════════════════
   MÉTODO 369
   ══════════════════════════════════════ */

/* Intro card */
.method-info-card {
  padding: 24px 22px;
  margin: 10px 0 24px;
  border: 1px solid #ead4ee;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 25px rgba(70, 30, 90, 0.09);
}

.method-info-text {
  color: #6f5c7d;
  line-height: 1.7;
  font-size: 15px;
  text-align: center;
}

.method-info-text strong {
  color: #ae62c0;
  font-size: 17px;
}

.ver-ritual-actual {
  margin-top: 14px !important;
  background: rgba(255, 215, 122, 0.28) !important;
  border: 1px solid #ffd67a !important;
}

.libro-rituales-btn {
  margin-top: 10px !important;
  background: rgba(174, 98, 192, 0.12) !important;
  border: 1px solid #ead4ee !important;
}

/* Setup: intención y plantillas */
.char-counter {
  margin: -8px 0 20px;
  color: #9b5aa8;
  font-size: 12px;
  text-align: right;
}

.method-label {
  margin: 8px 0 14px;
  color: #7b668a;
  font-weight: bold;
  font-size: 15px;
}

.plantillas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.plantilla-btn {
  padding: 14px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #ead4ee;
  color: #351553;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 6px 16px rgba(70, 30, 90, 0.08);
  cursor: pointer;
  transition: all 0.25s ease;
}

.plantilla-btn:hover {
  transform: translateY(-2px);
  border-color: #ffd67a;
  box-shadow: 0 10px 22px rgba(255, 214, 122, 0.25);
}

.plantilla-btn span {
  font-size: 18px;
}

/* Ritual: intención display */
.intention-display {
  padding: 22px;
  margin-bottom: 20px;
  border: 1px solid #ffd67a;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff8f3, #fff);
  box-shadow: 0 12px 28px rgba(70, 30, 90, 0.10);
}

.intention-display p {
  color: #351553;
  font-size: 17px;
  font-weight: bold;
  font-style: italic;
  line-height: 1.5;
}

.ritual-day-info {
  margin-bottom: 16px;
}

.ritual-day {
  color: #9b5aa8;
  font-weight: bold;
  font-size: 15px;
}

/* Grid de 21 estrellitas (3 filas x 7 columnas) */
.stars-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 20px auto 28px;
  max-width: 320px;
  padding: 18px;
  border: 1px solid #ead4ee;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 24px rgba(70, 30, 90, 0.08);
}

.star-item {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ead4ee;
  transition: all 0.4s ease;
}

.star-item.done {
  color: #ffd67a;
  text-shadow: 0 0 12px rgba(255, 215, 122, 0.8);
  animation: sparkleStar 0.8s ease;
}

.star-item.current {
  color: #ae62c0;
  animation: pulseCurrentStar 1.8s infinite ease-in-out;
}

.star-item.forgiven {
  color: #d4b8dd;
  font-size: 16px;
}

@keyframes sparkleStar {
  0% { transform: scale(0.6); opacity: 0.4; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes pulseCurrentStar {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; text-shadow: 0 0 12px rgba(174, 98, 192, 0.7); }
}

/* Bloques de momento (mañana/tarde/noche) simultáneos, con horario real */
.momento-block {
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid #ead4ee;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 25px rgba(70, 30, 90, 0.09);
  transition: opacity 0.4s ease;
}

.momento-block.bloqueado {
  opacity: 0.6;
  background: rgba(240, 235, 245, 0.6);
}

.momento-block.completado {
  background: linear-gradient(180deg, #fff8f3, #fdf0e0);
  border-color: #ffd67a;
}

.momento-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  text-align: left;
}

.momento-emoji {
  font-size: 30px;
}

.momento-header h3 {
  color: #351553;
  font-size: 17px;
  margin-bottom: 2px;
}

.momento-header small {
  color: #7b668a;
  font-size: 11px;
}

.momento-estado-icon {
  margin-left: auto;
  font-size: 20px;
}

.momento-body {
  text-align: center;
}

.momento-bloqueado-msg {
  color: #9b5aa8;
  font-size: 13px;
  font-style: italic;
  padding: 10px 5px;
  line-height: 1.5;
}

.momento-completado-msg {
  color: #ae62c0;
  font-size: 14px;
  font-style: italic;
  padding: 8px 5px;
}

.mini-tap-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid #ffd67a;
  background: radial-gradient(circle at 30% 30%, #fff8f3, #ffe9c4);
  color: #351553;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 8px auto 12px;
  box-shadow: 0 0 20px rgba(255, 215, 122, 0.5), 0 0 40px rgba(255, 215, 122, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.mini-tap-circle:active {
  transform: scale(0.92);
}

.mini-tap-count {
  font-size: 30px;
  font-weight: bold;
  line-height: 1;
}

.mini-tap-total {
  font-size: 13px;
  color: #7b668a;
}

.abandonar-btn {
  margin-top: 20px !important;
  background: rgba(242, 227, 243, 0.7) !important;
  color: #8f527d !important;
  font-size: 14px !important;
}

/* Celebración día 21 */
.celebration-content {
  position: relative;
  z-index: 2;
  animation: fadeUp 1.2s ease;
}

.celebration-title {
  font-size: 38px;
  color: #351553;
  margin-bottom: 24px;
  background: linear-gradient(90deg, #ae62c0, #ffd67a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.celebration-message {
  margin-bottom: 30px;
  padding: 24px;
  border: 1px solid #ffd67a;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 15px 32px rgba(70, 30, 90, 0.12);
}

.celebration-message p {
  color: #6f5c7d;
  line-height: 1.7;
  margin-bottom: 14px;
}

.celebration-message strong {
  color: #ae62c0;
  font-size: 18px;
}

.celebration-intention {
  margin-bottom: 30px;
  padding: 20px;
  border: 1px solid #ead4ee;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff8f3, #fff);
}

.celebration-intention p:last-child {
  color: #351553;
  font-size: 17px;
  font-weight: bold;
  font-style: italic;
  line-height: 1.5;
  margin-top: 10px;
}

/* Libro de rituales */
.rituales-list {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.ritual-completado-card {
  padding: 20px;
  border: 1px solid #ffd67a;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff8f3, #fff);
  text-align: left;
  box-shadow: 0 10px 24px rgba(255, 214, 122, 0.18);
}

.ritual-completado-fecha {
  margin-bottom: 8px;
  color: #9b5aa8;
  font-size: 13px;
  font-weight: bold;
}

.ritual-completado-intencion {
  color: #351553;
  font-size: 16px;
  font-weight: bold;
  font-style: italic;
  line-height: 1.5;
}

.ritual-completado-icon {
  margin-bottom: 8px;
  font-size: 24px;
}

.libro-vacio {
  margin-top: 30px;
  color: #9b5aa8;
  font-style: italic;
  line-height: 1.6;
}

/* Modal cancelar */
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.modal-btn-cancel {
  padding: 14px 20px;
  border-radius: 50px;
  background: linear-gradient(90deg, #ffd778, #ffeca8);
  color: #351553;
  font-weight: bold;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(70, 30, 90, 0.10);
}

.modal-btn-confirm {
  padding: 12px 20px;
  border-radius: 50px;
  background: rgba(242, 227, 243, 0.85);
  color: #8f527d;
  font-size: 14px;
  border: 1px solid #ead4ee;
  cursor: pointer;
}

/* Modal de cancelar ritual: el .journal-modal base está scopeado a #journal,
   así que se repiten las mismas reglas acá para que oculte/centre igual */
#cancelRitualModal.journal-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: rgba(29, 9, 56, 0.68);
}

#cancelRitualModal.journal-modal.show {
  display: flex;
}

#cancelRitualModal .journal-modal-card {
  width: min(100%, 360px);
  padding: 30px 24px;
  border: 1px solid #ffd67a;
  border-radius: 26px;
  background: linear-gradient(180deg, #fff8f3, #f3e4f6);
  color: #351553;
  box-shadow: 0 24px 60px rgba(24, 7, 45, 0.35);
}

#cancelRitualModal .modal-sparkles {
  margin-bottom: 14px;
  color: #ae62c0;
  font-size: 28px;
}

#cancelRitualModal .journal-modal-card h3,
#cancelRitualModal .journal-modal-card p {
  margin-bottom: 14px;
}

/* Textarea de la intención 369 — versión mejorada */
#method369Setup .journal-textarea {
  min-height: 130px;
  max-height: 200px;
  padding: 22px;
  border: 1px solid #ead4ee;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  color: #351553;
  font-size: 17px;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
  resize: none;
  box-shadow: 0 12px 28px rgba(70, 30, 90, 0.10);
  scrollbar-width: thin;
  scrollbar-color: #ead4ee transparent;
}

#method369Setup .journal-textarea::-webkit-scrollbar {
  width: 6px;
}

#method369Setup .journal-textarea::-webkit-scrollbar-thumb {
  background: #ead4ee;
  border-radius: 10px;
}

#method369Setup .journal-textarea::placeholder {
  color: #b09cbb;
  font-style: italic;
  text-align: center;
}

#method369Setup .journal-textarea:focus {
  border-color: #c28acb;
  box-shadow: 0 0 0 3px rgba(194, 138, 203, 0.18), 0 12px 28px rgba(70, 30, 90, 0.10);
  outline: none;
}

/* Contador de caracteres — reubicado debajo, alineado a la derecha */
#method369Setup .char-counter {
  display: block;
  margin: 8px 4px 24px auto;
  width: fit-content;
  color: #9b5aa8;
  font-size: 12px;
  font-weight: bold;
  text-align: right;
}

/* ══════════════════════════════════════
   FASE LUNAR EN EL MENÚ
   ══════════════════════════════════════ */

.lunar-phases-track {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 10px;
}

.lunar-phase-icon {
  font-size: 20px;
  opacity: 0.3;
  filter: grayscale(60%);
  transition: all 0.3s ease;
}

.lunar-phase-icon.active {
  opacity: 1;
  filter: grayscale(0%);
  font-size: 26px;
  text-shadow: 0 0 10px rgba(255, 215, 122, 0.6);
  transform: translateY(-2px);
}

.lunar-phase-name {
  margin-bottom: 12px;
  color: #9b5aa8;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.lunar-message {
  color: #351553;
  font-size: 15px;
  line-height: 1.55;
  font-style: italic;
  margin-bottom: 16px;
}

.lunar-ritual {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 215, 122, 0.14);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.lunar-ritual:hover {
  transform: translateY(-2px);
  background: rgba(255, 215, 122, 0.24);
}

.lunar-ritual p {
  color: #7b668a;
  font-size: 13px;
  line-height: 1.4;
}

/* ══════════════════════════════════════
   PEDÍ UNA SEÑAL AL UNIVERSO
   ══════════════════════════════════════ */

.senal-info-card {
  padding: 24px 22px;
  margin: 10px 0 20px;
  border: 1px solid #ead4ee;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 25px rgba(70, 30, 90, 0.09);
}

.senal-info-text {
  color: #6f5c7d;
  line-height: 1.7;
  font-size: 15px;
  text-align: left;
}

.senal-contador {
  margin-bottom: 18px;
  color: #9b5aa8;
  font-size: 13px;
  font-weight: bold;
}

/* Pantalla de barajado */
#senalShuffle {
  display: none;
  padding: 40px 20px;
  text-align: center;
  color: white;
}

#senalShuffle.active {
  display: block;
}


#senalIntro .journal-save-button {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

/* Resultado */
.senal-resultado {
  margin-top: 20px;
  animation: fadeUp 1s ease;
}

.senal-carta-final {
  width: 260px;
  max-width: 85%;
  border-radius: 22px;
  box-shadow: 0 25px 55px rgba(0,0,0,0.5), 0 0 40px rgba(255, 215, 122, 0.35);
  border: 3px solid rgba(255, 215, 122, 0.6);
  margin-bottom: 30px;
  animation: revealCard 0.9s ease;
}

.senal-volver-btn {
  max-width: 260px;
  margin: 0 auto;
}

/* Regla de seguridad: asegura que todos los botones del menú queden centrados */
.menu-actions .menu-button {
  display: block;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  box-sizing: border-box;
}

/* ══════════════════════════════════════
   GRID DE CARTAS — SEÑAL DEL UNIVERSO (v2, nombres nuevos)
   ══════════════════════════════════════ */

div.senalCartasGrid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  margin: 30px auto 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

div.senalCartasGrid > div.senalCartaItem {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #ffd67a;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  cursor: pointer;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  float: none;
  clear: none;
}

div.senalCartasGrid > div.senalCartaItem > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  margin: 0;
  padding: 0;
}

@keyframes senalMezclarAnim {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(0.95) rotate(-4deg); }
  50% { transform: scale(1.05) rotate(3deg); }
  75% { transform: scale(0.97) rotate(-2deg); }
}

div.senalCartaItem--mezclando {
  animation: senalMezclarAnim 0.5s ease-in-out;
}

div.senalCartaItem--activa:active {
  transform: scale(0.94);
}

div.senalCartaItem--elegida {
  transform: scale(1.08);
  box-shadow: 0 0 40px rgba(255, 215, 122, 0.8);
  z-index: 5;
}

div.senalCartaItem--oculta {
  opacity: 0;
  pointer-events: none;
}

/* ══════════════════════════════════════
   NUEVO MENÚ PRINCIPAL CIRCULAR
   ══════════════════════════════════════ */

.menu-circular {
  position: relative;
  background: linear-gradient(180deg, #2a1050 0%, #4b2478 35%, #a674c4 70%, #f3e0f0 100%) !important;
  color: white;
  padding: 40px 20px 30px;
  text-align: center;
  min-height: 100vh;
  overflow: hidden;
}

.menu-circular-saludo {
  position: relative;
  z-index: 1;
  font-size: 26px;
  margin-bottom: 6px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.menu-circular-subtitle {
  position: relative;
  z-index: 1;
  color: #f0e0ff;
  font-size: 14px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.menu-circular-container {
  position: relative;
  z-index: 1;
  width: 340px;
  height: 400px;
  margin: 0 auto 20px;
}

.menu-gatito-central {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #ffd9ec;
  box-shadow:
    0 0 15px rgba(255, 200, 230, 0.5),
    0 0 30px rgba(255, 200, 230, 0.22),
    0 8px 22px rgba(0,0,0,0.25);
  z-index: 5;
  background: radial-gradient(circle, #fff0f7, #ffd9ec);
}

.menu-gatito-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.menu-icon-orbit {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 3;
  width: 90px;
  padding: 0;
}

.menu-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform 0.25s ease;
}

.menu-icon-orbit:active .menu-icon-circle {
  transform: scale(0.92);
}

.menu-icon-orbit small {
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
  line-height: 1.2;
  max-width: 90px;
}

.pos-top {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.pos-left {
  top: 150px;
  left: -10px;
}

.pos-right {
  top: 150px;
  right: -10px;
}

.pos-bottom-left {
  bottom: 20px;
  left: 25px;
}

.pos-bottom-right {
  bottom: 20px;
  right: 25px;
}

/* Barritas sutiles de recordatorio (reemplazan las tarjetas grandes anteriores) */
.menu-barrita-reminder,
.menu-barrita-lunar {
  position: relative;
  z-index: 1;
  margin: 10px auto 0;
  max-width: 340px;
  padding: 12px 18px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 215, 122, 0.4);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.menu-barrita-lunar {
  padding: 14px 18px;
  border-radius: 24px;
  text-align: center;
}

.menu-barrita-lunar .lunar-phases-track {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 6px;
}

.menu-barrita-lunar .lunar-phase-icon {
  font-size: 15px;
  opacity: 0.4;
  filter: grayscale(60%);
}

.menu-barrita-lunar .lunar-phase-icon.active {
  opacity: 1;
  filter: grayscale(0%);
  font-size: 18px;
  text-shadow: 0 0 8px rgba(255, 215, 122, 0.7);
}

.menu-barrita-lunar .lunar-phase-name {
  font-size: 12px;
  font-weight: bold;
  color: #ffe9c4;
  margin-bottom: 4px;
}

.menu-barrita-lunar .lunar-message {
  font-size: 12px;
  color: #f0e0ff;
  font-style: italic;
  margin-bottom: 8px;
  line-height: 1.4;
}

.menu-barrita-lunar .lunar-ritual p {
  font-size: 11px;
  color: #ffd67a;
  line-height: 1.3;
}

.menu-circular .surprise-message {
  position: relative;
  z-index: 1;
  color: #ffe9c4;
  font-size: 13px;
  font-style: italic;
  margin-top: 14px;
  min-height: 20px;
  padding: 0 20px;
}

@media (max-width: 380px) {
  .menu-circular-container {
    width: 300px;
    height: 360px;
  }
  .menu-icon-circle {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }
  .menu-gatito-central {
    width: 115px;
    height: 115px;
  }
}

/* ══════════════════════════════════════
   ESTRELLITAS FIJAS DE FONDO DEL MENÚ
   ══════════════════════════════════════ */

.menu-estrellas-fondo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.estrella-fondo {
  position: absolute;
  color: rgba(255, 233, 196, 0.55);
  text-shadow: 0 0 6px rgba(255, 215, 122, 0.4);
}

.estrella-fondo.tam-chica {
  font-size: 14px;
}

.estrella-fondo.tam-mini {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
}

/* ══════════════════════════════════════
   ÓRBITA SUTIL DE LOS ICONITOS
   ══════════════════════════════════════ */

.menu-orbit-ring {
  position: absolute;
  inset: 0;
  animation: orbitarAnillo 100s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes orbitarAnillo {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.menu-orbit-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: contraOrbitar 100s linear infinite;
}

@keyframes contraOrbitar {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* ══════════════════════════════════════
   AJUSTES
   ══════════════════════════════════════ */

.menu-ajustes-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.ajuste-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
  border: 1px solid #ead4ee;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(70, 30, 90, 0.09);
  text-align: left;
}

.ajuste-item-titulo {
  color: #351553;
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 4px;
}

.ajuste-item-desc {
  color: #7b668a;
  font-size: 13px;
}

.ajuste-item-btn {
  padding: 10px 18px;
  border-radius: 50px;
  background: linear-gradient(90deg, #ffd778, #ffeca8);
  color: #351553;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
}

/* Toggle ON/OFF de sonido */
.ajuste-toggle {
  width: 52px;
  height: 30px;
  border-radius: 20px;
  background: #ead4ee;
  border: none;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.ajuste-toggle.activo {
  background: linear-gradient(90deg, #ffd778, #ffeca8);
}

.ajuste-toggle-circle {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.ajuste-toggle.activo .ajuste-toggle-circle {
  transform: translateX(22px);
}
