/* ---------------------------
   DescubreTuFuturo - Estilo base
   Estética: misticismo minimalista moderno
----------------------------*/


body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at center, #0e0d13 0%, #0a0910 100%);
  color: #f0eaff;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
  overflow-x: hidden;
  min-height: 100vh;
}

/* HERO / CONTENEDOR CENTRAL */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0px 20px;
  padding-top: 60px;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 20%, rgba(168, 142, 255, 0.2), transparent 60%);
  position: relative;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 0px;
  }
}

/* Fondo con estrellas sutiles */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#a88eff 0.5px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.15;
  z-index: 0;
}


.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: 150px;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.05;
}

/* Ejemplo: página de lectura de la mano */
.hero-mano::after {
  background-image: url("../images/hamsa.png");
  transform: translate(-50%, -50%) rotate(0deg);
}

.hero-numeros::after {
  background-image: url("../images/numeros.png");
  transform: translate(-50%, -50%) rotate(0deg);
}

.hero-rostro::after {
  background-image: url("../images/rostro.png");
  transform: translate(-50%, -50%) rotate(0deg);
}

.hero-aura::after {
  background-image: url("../images/aura.png");
  transform: translate(-50%, -50%) rotate(0deg);
}

.hero-pareja::after {
  background-image: url("../images/compatibilidad.png");
  transform: translate(-50%, -50%) rotate(0deg);
}

h1, h2, h3 {
  font-family: 'Cinzel Decorative', serif;
  color: #e3d8ff !important;
  letter-spacing: 1px;
  z-index: 1;
}

h1 {
  font-size: clamp(2rem, 5vw, 5rem) !important;
  margin-bottom: 20px;
  background: url('../images/grain_h1.svg') repeat;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: contain;
}

@media (max-width: 768px) {
  h1 {
    font-size: 0px !important;
  }
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem) !important;
  margin-bottom: 20px;
  
}

.etiqueta {
  font-size: clamp(2rem, 5vw, 2rem)
}


p {
  font-size: 1.1rem;
  color: #d0c4f7;
  z-index: 1;
}

form {
  margin-top: 40px;
  background: rgba(26, 22, 37, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(168, 142, 255, 0.1);
  backdrop-filter: blur(10px);
  z-index: 1;
}


@media (max-width: 768px) {
  form {
  padding: 10px 20px;
}
}

label {
  display: block;
  margin-bottom: 8px;
  color: #d4caff;
  text-align: left;
  font-weight: 500;
}

input[type="text"],
input[type="file"] {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1rem;
  outline: none;
}

input::file-selector-button {
  background: rgba(168, 142, 255, 0.2);
  border: none;
  color: #d8ccff;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

input[type="file"]:hover::file-selector-button {
  background: rgba(168, 142, 255, 0.4);
}

.button_futuro {
  background: linear-gradient(90deg, #a88eff, #ffb347);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(168, 142, 255, 0.3);
  transition: all 0.25s ease;
}

.button_futuro:hover {
  transform: scale(1.04);
  box-shadow: 0 0 25px rgba(255, 179, 71, 0.5);
}

.resultado {
  text-align: left;
  max-width: 700px;
  margin: 60px auto;
  padding: 40px;
  background: rgba(26, 22, 37, 0.6);
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(168, 142, 255, 0.1);
  line-height: 1.6;
}

.resultado h2 {
  color: #ffb347;
  margin-bottom: 15px;
}

footer {
  text-align: center;
  padding: 40px 10px;
  font-size: 0.9rem;
  color: #b1a6d1;
  opacity: 0.7;
}


.navbar {
      background: linear-gradient(90deg, #2f2944, #2f2944);
      box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
.navbar-brand {
    font-weight: 800 !important;
    color: #fff !important;
    letter-spacing: 0.5px;
    font-family: 'Cormorant', serif;
    font-size: 28px !important;
    margin-left: 20px;
}

@media (max-width: 768px) {
  .navbar-brand {
    margin-left: 0px;
  }
}

.nav-link {
    display: inline-flex;          /* coloca icono y texto en línea */
    align-items: center;           /* centra verticalmente */
    gap: 8px;  
    color: #e3d9fc !important;
    font-weight: 500;
    transition: color 0.2s ease;
    font-family: 'Cormorant', serif;
    font-size: 24px !important;
    margin-right: 15px;
    width: 300px;
    border-radius: 8px;
}
.nav-link img {
  vertical-align: middle;        /* seguridad extra */
  margin-top: -5px;              /* ajusta según sea necesario */
  margin-right: 5px;            /* espacio entre icono y texto */
}
.nav-link:hover {
    color: #fff !important;
    background: rgba(204, 204, 204,0.2);
    
}
.dropdown-menu {
    background: linear-gradient(90deg, #2f2944, #968dad);
    padding-left: 20px !important;
}
.dropdown-item {
    color: #e3d9fc;
}
.dropdown-item:hover {
    background-color: #111827;
    color: #fff;
}


#loader p {
  /*animation: fadeInOut 2s infinite;*/
  font-style: italic;
  color: #ccc;
}
@keyframes fadeInOut {
  0%,100% { opacity: 0.2; }
  50% { opacity: 1; }
}




/* ---- Transiciones suaves ---- */
.fade {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.fade.show {
  opacity: 1;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(14, 13, 19, 0.92) 0%, rgba(10, 9, 16, 0.95) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease-in-out;
  z-index: 2000;
}

#loader.show {
  opacity: 1;
  pointer-events: auto;
}

#loader .spinner-border {
  width: 3rem;
  height: 3rem;
  color: #d8ccff;
}

#loader p {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.3rem;
  color: #e3d8ff;
  /*animation: fadeInOut 2s infinite;*/
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}


#resultado {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.9s ease, transform 0.8s ease;
}

#resultado.show {
  opacity: 1;
  transform: translateY(0);
}

/* Suaviza la entrada de cada sección del resultado */
.lectura-mano section {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeSlideIn 1s forwards;
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lectura-mano section:nth-child(1) { animation-delay: 0.2s; }
.lectura-mano section:nth-child(2) { animation-delay: 0.4s; }
.lectura-mano section:nth-child(3) { animation-delay: 0.6s; }
.lectura-mano section:nth-child(4) { animation-delay: 0.8s; }
.lectura-mano section:nth-child(5) { animation-delay: 1s; }



#shareButton {
  background: linear-gradient(90deg, #ffb347, #a88eff);
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(168, 142, 255, 0.4);
}

#shareButton:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 179, 71, 0.6);
}

#shareZone {
  opacity: 0;
  transition: opacity 0.8s ease;
}
#shareZone.show {
  opacity: 1;
}


.social-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.social-buttons a {
  text-decoration: none;
  font-weight: 400;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 25px;
  transition: all 0.3s ease;
}


@media (max-width: 768px) {
  .social-buttons a {
    font-size: 0px;
    border-radius: 8px;
  }
}

#shareInstagram { background-color: rgba(204, 204, 204,0.2);color: white; }
#shareFacebook { background-color: rgba(204, 204, 204,0.2);color: white; }
#shareWhatsApp { background-color: rgba(204, 204, 204,0.2);color: white; }
#shareTelegram { background-color: rgba(204, 204, 204,0.2);color: white; }
#shareTwitter { background-color: rgba(204, 204, 204,0.2);color: white; }

.social-buttons a:hover {
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(255,255,255,0.3);
}


#verDestinoBtn {
  transition: all 0.3s ease;
}

#verDestinoBtn.active {
  filter: brightness(1.3);
  transform: scale(1.05);
}

#verDestinoBtn:hover {
  box-shadow: 0 0 25px rgba(255, 179, 71, 0.6);
}


#fileButton {
  display: inline-block;
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(90deg, #a88eff, #ffb347);
  color: white;
  border: none;
  border-radius: 40px;
  padding: 12px 30px;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(168, 142, 255, 0.4);
}

#fileButton:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 179, 71, 0.6);
}


/* ✨ Pulso místico para el botón "Ver mi destino" */
@keyframes pulseGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(255, 179, 71, 0.4);
  }
  50% {
    transform: scale(1.07);
    box-shadow: 0 0 30px rgba(255, 179, 71, 0.7);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(255, 179, 71, 0.4);
  }
}

#verDestinoBtn.pulse {
  animation: pulseGlow 2s infinite ease-in-out;
}


.fecha-container {
  position: relative;
  display: inline-block;
}

.fecha-container input[type="date"] {
  width: 100%;
  max-width: 320px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #e8dcff;
  font-size: 1.1rem;
  font-family: 'Cormorant', serif;
  outline: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* cambia color del icono del calendario (webkit) */
.fecha-container input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.4) sepia(0.3) saturate(3) hue-rotate(240deg);
  cursor: pointer;
}

/* hover / focus */
.fecha-container input[type="date"]:hover,
.fecha-container input[type="date"]:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #a88eff;
  box-shadow: 0 0 12px rgba(168, 142, 255, 0.4);
}

.input-fecha::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.4) sepia(0.3) saturate(3) hue-rotate(240deg);
  cursor: pointer;
}


.tarot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 16px;
  justify-items: center;
  max-width: 700px;
  margin: 0 auto;
  margin-top: 30px;
  perspective: 1000px;
  padding: 0 10px;
  perspective: 1000px; /* 🔥 necesario para 3D en móvil */
  transform-style: preserve-3d;
  overflow: visible; /* 👈 evita que se recorten las cartas */
}

.card-tarot {
  position: relative;
  width: 110%;
  max-width: 110px;
  min-width: 70px;
  aspect-ratio: 3 / 5;   /* ideal en navegadores modernos */
  height: 180px;         /* 👈 fallback para móviles que pasan de aspect-ratio */
  cursor: pointer;
}

/* Vista móvil */
@media (max-width: 480px) {
  .tarot-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .card-tarot {
    max-width: 90px;
    height: 150px;       /* 👈 altura ajustada en móvil */
  }
}

/* Vista tablet */
@media (min-width: 481px) and (max-width: 768px) {
  .tarot-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card-inner {
  position: absolute;
  inset: 0;              /* top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s;
}

.card-inner.is-flipped {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: 0 0 15px rgba(255,255,255,0.1);
  transform-style: preserve-3d;
}

/* reverso visible inicialmente */
.card-front {
  background: url('/static/images/card-back.png') center/cover no-repeat;
}

/* cara del arcano */
.card-back {
  background-size: cover;
  background-position: center;
  transform: rotateY(180deg);
  filter: brightness(1.2);
  background-position: center 1px;
}

/* Hover mágico SOLO si no está girada */
.card-tarot:hover .card-inner:not(.is-flipped) {
  transform: scale(1.05);
  filter: brightness(1.2);
}

/* El giro manda cuando está flippeada */
.card-inner.is-flipped {
  transform: rotateY(180deg);
}

/* --- MODAL TAROT --- */
.modal-tarot {
  display: none; /* por defecto oculto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 5, 25, 0.85);
  backdrop-filter: blur(5px);
  z-index: 5000; /* 🔥 asegura que quede encima de todo */
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease forwards;
}

.modal-content {
  background: radial-gradient(circle at center, #1b1528 0%, #0d0b13 100%);
  border: 1px solid rgba(255,255,255,0.1);
  color: #f3e9ff;
  padding: 30px;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 25px rgba(168, 142, 255, 0.3);
  font-family: 'Cormorant', serif;
  text-align: left;
  position: relative;
  animation: slideUp 0.4s ease forwards;
  line-height: 1.6;
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #a88eff #1b1528;
}

.close-modal {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.8rem;
  color: #d0c4f7;
  cursor: pointer;
  transition: all 0.2s ease;
}
.close-modal:hover {
  color: #ffb347;
  transform: scale(1.15);
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


@media (max-width: 768px) {
  .arcano_del_dia{
    padding-top: 40px;
  }
}