:root {
  --space: #090716;
  --violet-deep: #2B114D;
  --gold: #D4AF37;
  --violet: #8F5BFF;
  --ivory: #F7F5E6;
  --muted: rgba(247, 245, 230, 0.72);
  --glass: rgba(255, 255, 255, 0.075);
  --line: rgba(212, 175, 55, 0.28);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ivory);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(143, 91, 255, 0.24), transparent 30rem),
    radial-gradient(circle at 82% 8%, rgba(212, 175, 55, 0.14), transparent 24rem),
    linear-gradient(135deg, #070511 0%, var(--space) 46%, #170925 100%);
  line-height: 1.7;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    radial-gradient(circle, rgba(247, 245, 230, 0.75) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(212, 175, 55, 0.7) 0 1px, transparent 1.4px);
  background-position: 0 0, 42px 56px;
  background-size: 130px 130px, 190px 190px;
  opacity: 0.14;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100;
  width: auto;
  height: auto;
  padding: 0.7rem 1rem;
  clip: auto;
  color: #120c07;
  background: var(--gold);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(9, 7, 22, 0.86);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 4vw, 4.5rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.custom-logo {
  max-width: 220px;
  max-height: 54px;
  object-fit: contain;
}

.site-nav .primary-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.5vw, 1.25rem);
  margin: 0;
  padding: 0;
  color: rgba(247, 245, 230, 0.78);
  font-size: 0.92rem;
  font-weight: 600;
  list-style: none;
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
  color: var(--ivory);
}

.site-nav a:hover::after,
.site-nav .current-menu-item > a::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--gold);
  transition: transform 180ms ease, opacity 180ms ease;
}

.blog-hero,
.page-hero,
.single-hero {
  position: relative;
  display: grid;
  min-height: 430px;
  padding: clamp(4.5rem, 10vw, 8rem) clamp(1rem, 5vw, 5rem) clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  place-items: center;
  text-align: center;
}

.blog-hero::after,
.page-hero::after,
.single-hero::after {
  position: absolute;
  right: 12%;
  bottom: 8%;
  width: min(30vw, 300px);
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 50%;
  box-shadow: inset 0 0 55px rgba(212, 175, 55, 0.12);
  opacity: 0.5;
}

.cosmic-field {
  position: absolute;
  width: min(84vw, 760px);
  aspect-ratio: 1;
  background:
    conic-gradient(from 20deg, transparent, rgba(212, 175, 55, 0.2), transparent, rgba(143, 91, 255, 0.32), transparent),
    radial-gradient(circle, rgba(247, 245, 230, 0.1), transparent 62%);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 50%;
  filter: drop-shadow(0 0 90px rgba(143, 91, 255, 0.2));
  opacity: 0.8;
  animation: slowSpin 34s linear infinite;
}

.hero-content,
.page-hero > *,
.single-hero > * {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
}

h1 {
  max-width: 940px;
  margin-inline: auto;
  font-size: clamp(2.2rem, 6.5vw, 5rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.4rem);
}

.blog-hero p:not(.eyebrow),
.page-hero p:not(.eyebrow),
.archive-description {
  max-width: 760px;
  margin: 1.1rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.blog-section,
.narrow-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1rem, 5vw, 2rem);
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.25rem;
  align-items: start;
}

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

.post-card,
.oracle-widget,
.entry-content,
.author-box,
.single-featured-image,
.empty-state {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.post-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.post-card:hover {
  background: rgba(143, 91, 255, 0.13);
  border-color: rgba(212, 175, 55, 0.62);
  transform: translateY(-4px);
}

.post-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(43, 17, 77, 0.8);
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  color: var(--gold);
  font-size: 3rem;
  place-items: center;
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.15rem;
}

.post-meta,
.single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  align-items: center;
  color: rgba(247, 245, 230, 0.68);
  font-size: 0.86rem;
  font-weight: 700;
}

.post-category {
  color: var(--gold);
}

.post-card-title {
  font-size: clamp(1.18rem, 2vw, 1.55rem);
}

.post-card-title a:hover {
  color: var(--gold);
}

.post-excerpt {
  color: var(--muted);
}

.post-excerpt p {
  margin: 0;
}

.btn,
.read-more,
.search-submit,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.74rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover,
.read-more:hover,
.search-submit:hover,
.wp-block-button__link:hover {
  transform: translateY(-2px);
}

.btn-primary,
.search-submit,
.wp-block-button__link {
  color: #120c07;
  background: linear-gradient(135deg, #f0d66d, var(--gold));
  box-shadow: 0 15px 34px rgba(212, 175, 55, 0.22);
}

.btn-secondary,
.read-more {
  width: fit-content;
  margin-top: auto;
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
}

.btn-secondary:hover,
.read-more:hover {
  border-color: rgba(212, 175, 55, 0.72);
  box-shadow: 0 12px 36px rgba(143, 91, 255, 0.18);
}

.blog-sidebar {
  display: grid;
  gap: 1rem;
}

.oracle-widget {
  padding: 1.15rem;
}

.widget-title {
  margin-bottom: 0.85rem;
  font-size: 1.15rem;
}

.oracle-widget ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.oracle-widget a {
  color: var(--muted);
}

.oracle-widget a:hover {
  color: var(--gold);
}

.search-form {
  display: grid;
  gap: 0.65rem;
}

.search-field,
.wp-block-search__input {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem;
  color: var(--ivory);
  background: rgba(9, 7, 22, 0.76);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 8px;
}

.search-field::placeholder {
  color: rgba(247, 245, 230, 0.48);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 1.25rem;
  color: rgba(247, 245, 230, 0.66);
  font-size: 0.88rem;
  font-weight: 700;
}

.breadcrumbs a {
  color: var(--gold);
}

.pagination-wrap {
  margin-top: 2rem;
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.page-numbers {
  min-width: 42px;
  padding: 0.55rem 0.85rem;
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.page-numbers.current,
.page-numbers:hover {
  color: #120c07;
  background: var(--gold);
}

.single-hero {
  min-height: 460px;
  place-items: center;
}

.single-meta {
  justify-content: center;
  margin-top: 1rem;
}

.single-featured-image {
  max-width: 1080px;
  margin: -2rem auto 2rem;
  overflow: hidden;
}

.single-featured-image img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.single-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2rem);
}

.entry-content {
  padding: clamp(1.2rem, 4vw, 2.2rem);
  color: rgba(247, 245, 230, 0.9);
  font-size: clamp(1rem, 1.45vw, 1.12rem);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.2rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 2rem 0 0.8rem;
  color: var(--ivory);
}

.entry-content a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.entry-content blockquote,
.wp-block-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  color: var(--ivory);
  background: rgba(143, 91, 255, 0.12);
  border-left: 3px solid var(--gold);
}

.entry-content img,
.wp-block-image img {
  border-radius: 8px;
}

.wp-block-separator {
  border: 0;
  border-top: 1px solid var(--line);
}

.single-footer {
  max-width: 1080px;
  margin: 2rem auto 0;
  padding: 0 clamp(1rem, 5vw, 2rem) clamp(4rem, 7vw, 6rem);
}

.author-box {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem;
}

.author-avatar img {
  border: 1px solid var(--line);
  border-radius: 50%;
}

.author-box p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.2rem 0 3rem;
}

.post-navigation a {
  display: block;
  min-height: 70px;
  padding: 1rem;
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.post-navigation a:hover {
  border-color: var(--gold);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

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

.empty-state {
  padding: clamp(1.2rem, 4vw, 2rem);
  text-align: center;
}

.empty-state p {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(3, 2, 9, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.5rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 2.2rem clamp(1rem, 5vw, 5rem);
}

.footer-brand {
  display: inline-block;
  margin-bottom: 0.55rem;
}

.site-footer p {
  color: var(--muted);
}

.footer-links,
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-content: start;
  color: var(--muted);
  font-weight: 700;
}

.footer-links a:hover,
.legal-links a:hover {
  color: var(--gold);
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.9rem;
}

.category-horoscopo-diario .post-category,
.category-horoscopo-chino .post-category,
.category-tarot .post-category,
.category-astrologia .post-category,
.category-numerologia .post-category,
.category-compatibilidad .post-category,
.category-suenos .post-category,
.category-rituales .post-category {
  padding: 0.22rem 0.5rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 999px;
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1040px) {
  .menu-toggle {
    display: block;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    display: none;
    padding: 0.8rem;
    background: rgba(9, 7, 22, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav .primary-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem;
  }

  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .header-inner {
    padding-inline: 1rem;
  }

  .blog-hero,
  .page-hero,
  .single-hero {
    min-height: auto;
    padding-top: 4.5rem;
  }

  .blog-hero::after,
  .page-hero::after,
  .single-hero::after {
    width: 180px;
    opacity: 0.28;
  }

  .post-grid,
  .blog-sidebar,
  .related-grid,
  .footer-grid,
  .post-navigation {
    grid-template-columns: 1fr;
  }

  .single-featured-image {
    margin-top: 0;
    border-radius: 0;
  }

  .author-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .btn,
  .read-more,
  .search-submit {
    width: 100%;
  }
}
