
/* ── WIDGET MAYTE TAROT — The Astronomer's Chamber aesthetic ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Cinzel+Decorative:wght@400&family=EB+Garamond:ital,wght@0,400;1,400&display=swap');

.mayte-tarot-widget {
  position: relative;
  background: linear-gradient(160deg, #0B0918 0%, #110F1F 60%, #0B0918 100%);
  border: 1px solid rgba(200,169,110,0.22);
  padding: 3rem 2rem 2.5rem;
  margin: 2.5rem 0;
  overflow: hidden;
  font-family: 'EB Garamond', serif;
  color: #D4CECC;
}

/* Líneas de esquina decorativas */
.mayte-tarot-widget::before,
.mayte-tarot-widget::after {
  content: '';
  position: absolute;
  width: 30px; height: 30px;
  border-color: rgba(200,169,110,0.5);
  border-style: solid;
}
.mayte-tarot-widget::before {
  top: 10px; left: 10px;
  border-width: 1px 0 0 1px;
}
.mayte-tarot-widget::after {
  bottom: 10px; right: 10px;
  border-width: 0 1px 1px 0;
}

/* Glow central sutil */
.mayte-tarot-widget .mayte-inner-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(200,169,110,0.04) 0%, transparent 65%);
  pointer-events: none;
}

/* Header */
.mayte-tarot-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.mayte-sigil-widget {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 15px rgba(200,169,110,0.5));
  animation: mayte-float 5s ease-in-out infinite;
}
@keyframes mayte-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.mayte-titulo {
  font-family: 'Cinzel Decorative', serif !important;
  color: #C8A96E !important;
  font-size: 1.35rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.1em;
  margin: 0 0 0.4rem !important;
  text-shadow: 0 0 40px rgba(200,169,110,0.2);
}

.mayte-subtitulo {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #8A8290 !important;
  font-size: 0.95rem;
  margin: 0;
}

/* Ornamento separador */
.mayte-ornament {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #7A6340;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  margin: 1.5rem 0;
}
.mayte-ornament::before,
.mayte-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #7A6340, transparent);
}

/* Área de pregunta */
.mayte-pregunta-area { margin-bottom: 1.5rem; }
.mayte-label {
  display: block;
  color: #8A8290;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.mayte-pregunta {
  width: 100%;
  background: rgba(255,255,255,0.025) !important;
  border: 1px solid rgba(200,169,110,0.2) !important;
  border-radius: 0 !important;
  color: #D4CECC !important;
  padding: 0.85rem 1rem !important;
  font-family: 'EB Garamond', serif !important;
  font-size: 1.05rem !important;
  resize: none;
  transition: border-color 0.25s ease !important;
  rows: 2;
}
.mayte-pregunta:focus {
  border-color: #C8A96E !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(200,169,110,0.06) !important;
}

/* Botón principal — forma de diamante cortado */
.mayte-btn-consultar {
  display: block;
  width: 100%;
  background: transparent !important;
  border: 1px solid rgba(200,169,110,0.6) !important;
  color: #C8A96E !important;
  font-family: 'EB Garamond', serif !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  padding: 1rem 2rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  position: relative;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  border-radius: 0 !important;
}
.mayte-btn-consultar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,169,110,0), rgba(200,169,110,0.08));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mayte-btn-consultar:hover:not(:disabled) {
  background: rgba(200,169,110,0.12) !important;
  color: #E8C98E !important;
  border-color: #C8A96E !important;
  box-shadow: 0 0 30px rgba(200,169,110,0.15), inset 0 0 20px rgba(200,169,110,0.05) !important;
}
.mayte-btn-consultar:disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
}

/* ── CARTAS DE TAROT ─────────────────────────────────────────── */
.mayte-cartas-tres {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  perspective: 1000px;
}

/* Cada carta es un flip card 3D */
.mayte-carta-flip {
  width: 110px;
  height: 180px;
  position: relative;
  transform-style: preserve-3d;
  animation: carta-reveal 0.8s ease forwards;
  flex-shrink: 0;
}
.mayte-carta-flip:nth-child(2) { animation-delay: 0.15s; }
.mayte-carta-flip:nth-child(3) { animation-delay: 0.3s; }

@keyframes carta-reveal {
  from { transform: rotateY(-90deg) translateY(20px); opacity: 0; }
  to   { transform: rotateY(0deg) translateY(0); opacity: 1; }
}

.mayte-carta-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border: 1px solid rgba(200,169,110,0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  gap: 0.5rem;
}

/* Frente de la carta */
.mayte-carta-face-front {
  background: linear-gradient(160deg, #110F1F, #0B0918);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6), inset 0 0 20px rgba(200,169,110,0.03);
}

/* Marco decorativo interior SVG */
.mayte-carta-face-front::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(200,169,110,0.15);
  pointer-events: none;
}

.mayte-carta-pos {
  font-family: 'EB Garamond', serif;
  font-size: 0.62rem;
  color: #7A6340;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
}
.mayte-carta-nombre {
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  color: #D4CECC;
  text-align: center;
  line-height: 1.3;
}
.mayte-carta-glyph {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 8px rgba(200,169,110,0.3));
}

/* Carta central — destacada */
.mayte-carta-flip.mayte-carta-central .mayte-carta-face-front {
  border-color: rgba(200,169,110,0.55);
  box-shadow: 0 8px 40px rgba(0,0,0,0.7), 0 0 25px rgba(200,169,110,0.12), inset 0 0 20px rgba(200,169,110,0.05);
}
.mayte-carta-flip.mayte-carta-central {
  transform: translateY(-8px);
}
.mayte-carta-flip.mayte-carta-central .mayte-carta-glyph {
  filter: drop-shadow(0 0 12px rgba(200,169,110,0.5));
}

/* Carta de 1 sola */
.mayte-carta-single-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.mayte-carta-single-wrap .mayte-carta-flip {
  width: 140px;
  height: 220px;
}

/* ── RESPUESTA DE MAYTE ───────────────────────────────────────── */
.mayte-vidente-respuesta {
  border: 1px solid rgba(200,169,110,0.15);
  padding: 1.5rem 1.5rem 1.5rem 4rem;
  margin-bottom: 1.5rem;
  position: relative;
  background: rgba(255,255,255,0.015);
}
.mayte-vidente-respuesta::before {
  content: '🔮';
  position: absolute;
  left: 1.2rem;
  top: 1.4rem;
  font-size: 1.4rem;
  filter: drop-shadow(0 0 10px rgba(200,169,110,0.3));
}

.mayte-avatar-label {
  font-family: 'EB Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7A6340;
  margin-bottom: 0.75rem;
}

.mayte-texto-respuesta {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.9;
  color: #D4CECC;
  white-space: pre-wrap;
}

/* Efecto de escritura con cursor parpadeante */
.mayte-texto-respuesta.typing::after {
  content: '|';
  animation: cursor-blink 0.7s step-end infinite;
  color: #C8A96E;
  font-style: normal;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Footer del resultado */
.mayte-footer-resultado {
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(200,169,110,0.1);
}

.mayte-btn-nueva {
  background: transparent !important;
  border: 1px solid rgba(200,169,110,0.35) !important;
  color: #7A6340 !important;
  padding: 0.5rem 1.5rem !important;
  font-family: 'EB Garamond', serif !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  border-radius: 0 !important;
}
.mayte-btn-nueva:hover {
  border-color: #C8A96E !important;
  color: #C8A96E !important;
}

.mayte-cta-redes {
  color: #8A8290 !important;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  font-style: italic;
}
.mayte-cta-redes a { color: #C8A96E !important; }

/* Error */
.mayte-error {
  border: 1px solid rgba(139,58,42,0.4);
  padding: 1rem 1.2rem;
  color: #cc8866;
  font-size: 0.9rem;
  margin-top: 1rem;
  font-style: italic;
}

/* Resultado animado */
.mayte-resultado { animation: fade-up 0.5s ease forwards; }
@keyframes fade-up {
  from { opacity:0; transform: translateY(12px); }
  to   { opacity:1; transform: translateY(0); }
}

/* Glyphs para cada tipo de carta */
.glyph-gitano   { color: #C8A96E; }
.glyph-egipcio  { color: #D4A56A; }
.glyph-amor     { color: #C06080; }
.glyph-trabajo  { color: #7090C0; }
.glyph-negro    { color: #8060B0; }
.glyph-si-no    { color: #60B080; }

@media (max-width: 500px) {
  .mayte-cartas-tres { gap: 0.5rem; }
  .mayte-carta-flip { width: 85px; height: 140px; }
  .mayte-carta-nombre { font-size: 0.68rem; }
  .mayte-vidente-respuesta { padding: 1.2rem 1rem 1.2rem 3rem; }
}
