/* =====================================================================
   Tirada De Tarot - hoja de estilos única
   Colores, fuente, anchos e imágenes vienen de _app/config.php ('design')
   como variables CSS (--c-primary, --font, --max-width...).
   ===================================================================== */

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/roboto-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font: var(--font-size)/var(--line-height) var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; }
img { -webkit-user-drag: none; user-select: none; }
iframe { max-width: 100%; }
p { margin: 0 0 25px; }
ul, ol { margin: 0 0 25px; padding-left: 40px; }
b, strong { font-weight: 700; }
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--c-heading);
  line-height: 1.4;
  margin: 0 0 15px;
  text-align: center;
}
h1 { font-size: 30px; }
h2 { font-size: 25px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
h5 { font-size: 15px; }
h6 { font-size: 13px; }
a:hover { color: var(--c-link-hover); }
::selection { background: #222; color: #fff; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Cabecera ---------- */
.site-header {
  position: relative;
  height: var(--header-h);
  background: #fff var(--header-bg) repeat-x center top;
  background-size: auto 100%;
  margin-bottom: 30px;
}
.header-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.logo { display: block; margin: 15px 0; }
.logo img { display: block; height: 6rem; width: auto; }

.main-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 25px 16px 10px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 15px;
}
.main-nav .current a, .main-nav a:hover { color: #fff; font-weight: 700; }

.playstore {
  position: absolute;
  right: 11%;
  bottom: 2.6rem;
  opacity: .8;
  z-index: 2;
}
.playstore img {
  display: block;
  width: 11rem;
  transition: transform .2s;
  filter: brightness(1.2) drop-shadow(0 0 12px #a5a5a5);
}
.playstore img:hover { transform: scale(1.2); }

/* ---------- Contenido ---------- */
.site-main { padding-bottom: 30px; }
.single_page .title {
  font-size: 30px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
}
.single_page a {
  color: var(--c-link);
  text-decoration: underline;
  font-weight: 700;
}
.single_page a:hover { color: var(--c-link-hover); }
.post-content { overflow-wrap: break-word; }
.post-content::after { content: ""; display: table; clear: both; }
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin: 10px; }
.alignright { float: right; margin: 10px; }
blockquote {
  margin: 0 0 25px;
  padding: 0 0 0 38px;
  border-left: 3px solid #ddd;
  font: italic 22px/1.5 Georgia, serif;
}
table { border-collapse: collapse; max-width: 100%; }
td, th { border: 1px solid #ddd; padding: 6px 10px; }

.debajoh1 {
  text-align: center;
  padding: 0 14rem;
  margin-bottom: 2rem;
}
p.aviso { text-align: center; margin-top: 2rem; }
.centru { display: flex; justify-content: center; margin: 1rem; }

/* ---------- Tirada de cartas ---------- */
.tiradamarsella {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding-right: 5rem;
  margin-bottom: 2rem;
}
.flip-card {
  -webkit-tap-highlight-color: transparent;
  width: 10rem;
  height: 18rem;
  perspective: 1000px;
  margin: 1rem -5rem 1rem 1rem;
  transition: transform .2s, margin .2s, width .2s;
  filter: drop-shadow(0 0 3px #a5a5a5);
}
.flip-card:hover { transform: scale(1.04); margin: -1rem -5rem 1rem 1rem; }
.girada:hover, .allcards:hover { transform: scale(1) !important; margin: 1rem -5rem 1rem 1rem !important; }
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform .8s;
  transform-style: preserve-3d;
}
.girada .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
  position: absolute;
  inset: 0;
  cursor: pointer;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.flip-card-front img, .flip-card-back img { width: 100%; height: 100%; object-fit: contain; }
.flip-card-back { color: #fff; transform: rotateY(180deg); }

.clickedcard {
  padding: 1rem;
  border-radius: 1rem;
  margin: 3rem 2rem;
  animation: fadein 2s;
  background-image: linear-gradient(127grad, var(--c-result-from) 20%, var(--c-result-to));
  box-shadow: 0 0 6px #3d1cbf;
  color: #fff;
}
.result { text-align: center; font-size: 1.1rem; animation: fadein 2s; }
p.titlecards { font-size: 1.5rem; font-weight: 700; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* Imagen promocional animada de la portada */
img.wp-image-718 {
  border-radius: 1rem;
  margin: 1rem;
  animation: zoominout 4s infinite;
  filter: drop-shadow(0 0 15px #f86a05);
}
@keyframes zoominout { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* Listado de tipos de tarot / cartas */
.tipostarot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  width: 97%;
  margin: auto;
}
.cardview { width: fit-content; margin: 1rem; }
img.tipostarot_img {
  transition: transform .2s, filter .2s;
  margin-bottom: -3rem;
  transform: scale(.85);
  filter: drop-shadow(0 0 4px #6200ff) brightness(.95);
}
img.tipostarot_img:hover {
  transform: scale(1);
  filter: drop-shadow(0 0 21px #6200ffa6) brightness(1.05);
}
p.zodiac-text-desc { text-align: center; font-weight: 700; font-size: 1.2rem; margin-top: 3rem; }
p.zodiac-text { text-align: center; font-weight: 700; font-size: 1.2rem; }
p.zodiac-desc { text-align: center; margin-top: -1rem; font-size: 12px; }
.horoscopo, .cajaabajo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.botoncartas {
  display: block;
  transition: transform .2s;
  box-shadow: 0 0 0 1px #000 inset;
  color: #000;
  text-align: center;
  width: 15rem;
  max-width: 100%;
  padding: .6rem;
  border-radius: 1rem;
  margin: 0 auto 25px;
}
.botoncartas:hover { background: #5e258230; transform: scale(1.2); }

/* Página de cada carta */
.specificard {
  float: left;
  margin: 1rem;
  width: auto;
  height: 18rem !important;
  filter: drop-shadow(0 0 8px #291b5cc9);
}

/* Productos */
.product-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.product {
  position: relative;
  width: 12rem;
  height: 19rem;
  margin: 1rem;
  border-radius: 1rem;
  box-shadow: 1px 1px 7px #888888c2;
  text-align: center;
  font-weight: bolder;
  font-size: 1.2rem;
  color: #373273;
}
.product img { margin: -1rem auto; }
p.butoncontainer { position: absolute; bottom: 0; width: 100%; }
.botondeprecioa {
  display: block;
  width: 87%;
  margin: -1rem auto;
  padding: .5em .2em;
  border-radius: 7px;
  background: linear-gradient(167deg, #ff5d00 0, #ff9100 100%);
  color: #fff !important;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
}

/* Borrado de cuenta Wicca */
form#mini-form { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
form#mini-form input[type=email], form#mini-form input[type=password] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font: inherit;
}
#submitbtn {
  margin-top: 10px;
  padding: 10px;
  border: 0;
  border-radius: 6px;
  background: var(--c-primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
form#mini-form .error { color: red; font-weight: 700; }
form#mini-form .succeed { font-weight: 700; }
img.delimg {
  display: block;
  width: 8rem;
  margin: 1rem auto 2rem;
  border-radius: 2rem;
}

/* ---------- Pie ---------- */
.site-footer {
  display: flex;
  align-items: center;
  min-height: var(--footer-h);
  background: var(--c-footer-tint) var(--footer-bg) repeat-x center;
  background-size: contain;
  background-blend-mode: hard-light;
}
.copyright {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  padding-top: 20px;
  padding-bottom: 20px;
}
.copyright a { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .playstore { right: 16px; bottom: auto; top: 14%; }
  .playstore img { width: 8rem; }
  .main-nav { position: absolute; left: 0; right: 0; bottom: 1.6rem; }
  .main-nav ul { justify-content: center; }
  .main-nav a { padding: 10px 12px; text-shadow: 0 0 4px #000; }
  .debajoh1 { padding: 0; }
}

@media (max-width: 618px) {
  .site-header { height: 11rem; margin-bottom: 15px; }
  .logo img { height: 4.5rem; }
  .playstore { top: 18px; }
  .playstore img { width: 7rem; }
  .single_page .title { font-size: 26px; line-height: 34px; }

  .tiradamarsella { padding-right: 1rem; margin-bottom: 3rem; }
  .flip-card, .flip-card:hover, .girada:hover, .allcards:hover {
    width: 22%;
    height: 9rem;
    margin: 0 -1rem 0 0 !important;
    transform: none !important;
  }
  .clickedcard { padding: .7rem; margin: 3rem 0; }
  p.description { text-align: justify; font-size: 16px; line-height: 1.4; }

  .specificard { float: none; display: block; margin: 1rem auto; }
  .product { width: 46%; margin: .4rem; }
  .copyright { justify-content: center; text-align: center; }
}
