/* Solo se carga en tarot.php y tarot-del-amor.php. */
:root {
  --pt-ink: #2a2730;
  --pt-muted: #615b65;
  --pt-cream: #fbf0d6;
  --pt-soft: #fcf9f2;
  --pt-line: #d9d1c4;
  --pt-accent: #786044;
  --pt-green: #245842;
  --pt-red: #873e3e;
  --pt-radius: 18px;
  --pt-bar-height: 5.5rem;
}

.pt-page,
.pt-mobile-bar {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--pt-ink);
  overflow-wrap: anywhere;
}

.pt-page *,
.pt-page *::before,
.pt-page *::after,
.pt-mobile-bar,
.pt-mobile-bar * {
  box-sizing: border-box;
}

.pt-page :where(h2, h3, p, ul, ol, figure, blockquote) {
  margin: 0;
}

.pt-page h2 {
  color: inherit;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.025em;
  margin-bottom: 1rem;
}

.pt-page h3 {
  color: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: .65rem;
}

.pt-page p + p {
  margin-top: .85rem;
}

.pt-page a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}

.pt-page a:hover {
  text-decoration-thickness: 2px;
}

.pt-page :where(a, summary):focus-visible,
.pt-mobile-bar a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--pt-ink);
}

.pt-page [id] {
  scroll-margin-top: 7rem;
}

.pt-page img {
  display: block;
  max-width: 100%;
}

.pt-page .pt-section {
  padding: 3rem 0;
  background: #fff;
}

.pt-page .pt-section.pt-soft {
  background: var(--pt-soft);
}

.pt-page .pt-section.pt-dark {
  color: #fff;
  background: var(--pt-ink);
}

.pt-container {
  width: 100%;
  max-width: 1184px;
  margin-inline: auto;
  padding-inline: 16px;
}

.pt-heading {
  max-width: 720px;
  margin-bottom: 1.75rem;
}

.pt-heading > p,
.pt-note {
  color: var(--pt-muted);
}

.pt-note {
  font-size: .9375rem;
  line-height: 1.65;
}

.pt-page .pt-dark .pt-note,
.pt-page .pt-dark .pt-heading > p {
  color: var(--pt-cream);
}

.pt-eyebrow {
  display: block;
  margin-bottom: .65rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.pt-grid > *,
.pt-summary > *,
.pt-cta > *,
.pt-actions > * {
  min-width: 0;
}

.pt-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid var(--pt-line);
  border-radius: var(--pt-radius);
  background: #fff;
  color: var(--pt-ink);
}

.pt-card > p {
  margin-bottom: 1rem;
}

.pt-card > :last-child {
  margin-bottom: 0;
}

.pt-card .pt-card-link {
  margin-top: auto;
}

.pt-card-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: .5rem;
  font-weight: 600;
}

.pt-interactive {
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.pt-interactive:focus-within {
  transform: translateY(-3px);
  border-color: var(--pt-accent);
  box-shadow: 0 12px 28px rgb(42 39 48 / 9%);
}

@media (hover: hover) {
  .pt-interactive:hover {
    transform: translateY(-3px);
    border-color: var(--pt-accent);
    box-shadow: 0 12px 28px rgb(42 39 48 / 9%);
  }
}

/* Botones: fondos sólidos para mantener el contraste. */
.pt-actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-block: 1.25rem;
}

.pt-page a.pt-button,
.pt-mobile-bar a.pt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  width: 100%;
  min-height: 54px;
  padding: .85rem 1rem;
  border: 2px solid var(--pt-ink);
  border-radius: 12px;
  background: var(--pt-ink);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}

.pt-page a.pt-button:hover,
.pt-mobile-bar a.pt-button:hover {
  background: #45404b;
  border-color: #45404b;
  color: #fff;
}

.pt-page a.pt-button.pt-button-light,
.pt-mobile-bar a.pt-button.pt-button-light {
  color: var(--pt-ink);
  background: var(--pt-cream);
  border-color: var(--pt-cream);
}

.pt-page a.pt-button.pt-button-light:hover,
.pt-mobile-bar a.pt-button.pt-button-light:hover {
  color: var(--pt-ink);
  background: #f3e0b4;
  border-color: #f3e0b4;
}

.pt-page a.pt-button.pt-button-outline {
  background: #fff;
  color: var(--pt-ink);
}

.pt-page a.pt-button.pt-button-outline:hover {
  background: var(--pt-soft);
  border-color: var(--pt-ink);
}

/* Resumen */
.pt-summary {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--pt-line);
  border-top: 4px solid var(--pt-accent);
  border-radius: var(--pt-radius);
  background: var(--pt-soft);
}

.pt-lead {
  font-size: 1.125rem;
  line-height: 1.75;
}

.pt-chips,
.pt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0;
  list-style: none;
}

.pt-chips {
  margin-top: 1.25rem;
}

.pt-chips li,
.pt-tags li {
  max-width: 100%;
  padding: .4rem .7rem;
  border: 1px solid var(--pt-line);
  border-radius: 999px;
  color: var(--pt-ink);
  background: #fff;
  font-size: .875rem;
  line-height: 1.5;
}

.pt-chips i {
  margin-right: .35rem;
  color: var(--pt-green);
}

.pt-start-price strong {
  font-size: 2.4rem;
  line-height: 1.2;
}

.pt-summary-contact {
  padding-top: 1.5rem;
  border-top: 1px solid var(--pt-line);
}

/* Pasos: la numeración está en HTML. */
.pt-steps {
  display: grid;
  gap: 1.5rem;
  padding: 0;
  list-style: none;
}

.pt-step {
  position: relative;
  padding-left: 4.25rem;
}

.pt-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 3.25rem;
  bottom: -1.5rem;
  left: 1.5rem;
  width: 2px;
  background: var(--pt-line);
}

.pt-step-number {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--pt-line);
  border-radius: 50%;
  background: var(--pt-cream);
  font-size: 1.3rem;
  font-weight: 600;
}

.pt-step h3 i {
  margin-right: .35rem;
  color: var(--pt-accent);
}

/* Precios */
.pt-price-card {
  border-top: 4px solid var(--pt-line);
}

.pt-price-featured {
  background: var(--pt-soft);
  border-color: var(--pt-accent);
}

.pt-price {
  font-size: 2.65rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.pt-price small {
  display: block;
  margin-top: .5rem;
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.5;
}

.pt-price-card .pt-button {
  margin-top: auto;
}

.pt-price-card > p {
  margin-bottom: 1.25rem;
}

.pt-email-note {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--pt-line);
  border-radius: 12px;
  background: var(--pt-soft);
}

.pt-email-note > i {
  margin-right: .4rem;
}

/* Preguntas */
.pt-checklist {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.pt-checklist li {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: .6rem;
}

.pt-checklist i {
  margin-top: .35rem;
  color: var(--pt-green);
}

.pt-checklist.pt-no i {
  color: var(--pt-red);
}

/* Equipo y barajas */
.pt-avatar {
  width: 104px;
  height: 104px;
  margin-bottom: 1.25rem;
  border: 4px solid var(--pt-cream);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
}

.pt-tags {
  margin-bottom: 1rem;
}

.pt-tags li {
  background: var(--pt-soft);
  font-size: .8125rem;
}

.pt-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: var(--pt-accent);
  background: var(--pt-cream);
  font-size: 1.2rem;
}

.pt-deck p {
  font-size: .9375rem;
}

/* Cita */
.pt-quote {
  max-width: 850px;
  margin-inline: auto;
}

.pt-quote-mark {
  display: block;
  margin-bottom: 1rem;
  color: var(--pt-cream);
  font-size: 2.75rem;
}

.pt-page .pt-quote blockquote {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  font-style: normal;
  line-height: 1.65;
}

.pt-quote figcaption {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pt-quote figcaption img {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
}

.pt-quote figcaption span {
  display: block;
  color: var(--pt-cream);
  font-size: .875rem;
}

/* FAQ nativo */
.pt-faq {
  max-width: 850px;
}

.pt-faq details {
  margin-bottom: .75rem;
  border: 1px solid var(--pt-line);
  border-radius: 12px;
  background: #fff;
}

.pt-faq summary {
  position: relative;
  display: block;
  padding: 1.15rem 3.5rem 1.15rem 1.25rem;
  border-radius: 12px;
  cursor: pointer;
  list-style: none;
}

.pt-faq summary::-webkit-details-marker {
  display: none;
}

.pt-faq summary::marker {
  content: "";
}

.pt-faq summary h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Trazos decorativos; no se anuncian como texto. */
.pt-faq summary::before,
.pt-faq summary::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--pt-ink);
}

.pt-faq summary::after {
  transform: rotate(90deg);
}

.pt-faq details[open] summary::after {
  display: none;
}

.pt-faq details[open] summary {
  border-bottom: 1px solid var(--pt-line);
  border-radius: 12px 12px 0 0;
  background: var(--pt-soft);
}

.pt-faq-answer {
  padding: 1.25rem;
}

/* CTA */
.pt-cta {
  display: grid;
  align-items: center;
  gap: 1rem;
}

.pt-cta .pt-actions {
  margin: 0;
}

/* Conservar y reforzar la marca editorial existente. */
.pt-page .rellenar {
  padding: .1em .3em;
  border: 1px dashed #8a6b00;
  border-radius: 3px;
  background: #fff3a6;
  color: #5a4500;
  font-size: .9375rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.65;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Barra móvil: altura y reserva comparten la misma variable. */
.pt-mobile-bar {
  position: fixed;
  z-index: 1030;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: .5rem;
  height: calc(var(--pt-bar-height) + env(safe-area-inset-bottom, 0px));
  padding: .6rem 16px
    calc(.6rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--pt-line);
  background: #fff;
  box-shadow: 0 -4px 24px rgb(42 39 48 / 10%);
}

.pt-mobile-bar a.pt-button {
  min-height: 48px;
  padding: .6rem .35rem;
  gap: .35rem;
  font-size: .9375rem;
}

/* El fichero únicamente se enlaza en estas dos páginas. */
@media (max-width: 767.98px) {
  body {
    padding-bottom: calc(
      var(--pt-bar-height) + env(safe-area-inset-bottom, 0px)
    );
  }

  .pt-page :where(a, summary) {
    scroll-margin-bottom: calc(
      var(--pt-bar-height) + env(safe-area-inset-bottom, 0px) + 1rem
    );
  }

  /* Evita que el botón existente del tema pise la barra. */
  body:has(.pt-page) .scroll-to-top {
    bottom: calc(
      var(--pt-bar-height) + env(safe-area-inset-bottom, 0px) + 12px
    );
  }
}

@media (min-width: 768px) {
  .pt-page .pt-section {
    padding-block: 4rem;
  }

  .pt-grid-2,
  .pt-grid-3,
  .pt-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pt-grid {
    gap: 1.5rem;
  }

  .pt-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .pt-page .pt-actions > .pt-button {
    width: auto;
    flex: 1 1 240px;
  }

  .pt-summary {
    padding: 2rem;
  }

  .pt-mobile-bar {
    display: none;
  }
}

@media (min-width: 992px) {
  .pt-page .pt-section {
    padding-block: 5rem;
  }

  .pt-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pt-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pt-summary {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
  }

  .pt-summary-contact {
    border-top: 0;
    border-left: 1px solid var(--pt-line);
    padding-top: 0;
    padding-left: 2rem;
  }

  .pt-summary-contact .pt-actions {
    flex-direction: column;
  }

  .pt-summary-contact .pt-actions > .pt-button {
    flex: auto;
    width: 100%;
  }

  .pt-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .pt-step {
    padding: 4.25rem 0 0;
  }

  .pt-step:not(:last-child)::after {
    top: 1.5rem;
    left: 3.5rem;
    right: .5rem;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .pt-cta {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pt-page *,
  .pt-page *::before,
  .pt-page *::after,
  .pt-mobile-bar * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .pt-interactive:hover,
  .pt-interactive:focus-within {
    transform: none;
  }
}

/* Ajustes Pleno tras aplicar la maqueta */
.pt-page .pt-dark a { color: var(--pt-cream); }
.pt-page .pt-dark a.pt-button-outline { color: var(--pt-ink); }
.pt-page .pt-card h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.pt-page .pt-heading > p + p { margin-top: .85rem; }
.pt-page .pt-steps + .pt-note,
.pt-page .pt-grid + .pt-note,
.pt-page .pt-faq + .pt-note,
.pt-page .pt-email-note + .pt-note { margin-top: 1.5rem; }
.pt-page .firma-texto { margin-top: 2rem; }
.pt-page .pt-container > ul { padding-left: 1.3rem; }
.pt-page .pt-container > ul li { margin-bottom: .45rem; }

/* Arreglo 28-10: el tema (css/plugins/nav-menu.css) da a todo <header> sombra 0 4px 20px,
   position:relative y z-index 99999. Dentro de las páginas pt- los header.pt-heading son
   encabezados de sección, no la cabecera de la web: se neutraliza solo dentro de .pt-page. */
.pt-page header,
.pt-page .pt-heading {
  box-shadow: none !important;
  background: transparent !important;
  z-index: auto !important;
  transition: none !important;
}
