/*
Theme Name: Hechizos i Rituales
Template: twentytwentyfive
Version: 1.0
Description: Tema místico para Hechizos i Rituales, con paleta púrpura y dorado.
Author: Hechizos i Rituales
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --hr-bg: #170b26;
  --hr-bg-alt: #241338;
  --hr-purple: #4b2e83;
  --hr-purple-light: #6d47b3;
  --hr-gold: #c9a227;
  --hr-gold-light: #e5c765;
  --hr-cream: #f4ecd8;
  --hr-text: #ece4f5;
}

body {
  background-color: var(--hr-bg);
  color: var(--hr-text);
  font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.wp-block-post-title,
.wp-block-site-title {
  font-family: 'Cormorant Garamond', serif;
  color: var(--hr-gold-light);
  letter-spacing: 0.02em;
}

.wp-block-site-title a {
  color: var(--hr-gold-light) !important;
  text-decoration: none;
}

a {
  color: var(--hr-gold);
}
a:hover {
  color: var(--hr-gold-light);
}

.wp-site-blocks {
  background-color: var(--hr-bg);
}

header.wp-block-template-part,
.wp-block-navigation {
  background-color: var(--hr-bg-alt) !important;
  border-bottom: 1px solid var(--hr-purple);
}

.wp-block-navigation a {
  color: var(--hr-cream) !important;
}
.wp-block-navigation a:hover {
  color: var(--hr-gold) !important;
}

.entry-content, .wp-block-post-content {
  background-color: var(--hr-bg-alt);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--hr-purple);
  box-shadow: 0 0 30px rgba(201, 162, 39, 0.08);
}

.wp-block-post-featured-image img {
  border-radius: 12px;
  border: 1px solid var(--hr-gold);
}

button, .wp-block-button__link {
  background-color: var(--hr-gold) !important;
  color: var(--hr-bg) !important;
  border-radius: 999px !important;
  font-weight: 600;
  border: none;
}
button:hover, .wp-block-button__link:hover {
  background-color: var(--hr-gold-light) !important;
}

footer.wp-block-template-part {
  background-color: var(--hr-bg-alt) !important;
  color: var(--hr-cream);
  border-top: 1px solid var(--hr-purple);
}

::selection {
  background: var(--hr-gold);
  color: var(--hr-bg);
}

blockquote {
  border-left: 3px solid var(--hr-gold);
  color: var(--hr-gold-light);
  font-style: italic;
}

.hr-hero {
  background: radial-gradient(ellipse at top, var(--hr-purple) 0%, var(--hr-bg) 70%);
  border-bottom: 1px solid var(--hr-purple);
  text-align: center;
}
.hr-hero h1 { margin-bottom: 0.5rem; }
.hr-hero p { color: var(--hr-text); max-width: 640px; margin-left: auto; margin-right: auto; opacity: 0.9; }

.hr-grid-wrap { padding: 3rem 1.5rem; }
.hr-grid-wrap .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 880px) {
  .hr-grid-wrap .wp-block-post-template { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hr-grid-wrap .wp-block-post-template { grid-template-columns: 1fr; }
}

.hr-card {
  background-color: var(--hr-bg-alt);
  border: 1px solid var(--hr-purple);
  border-radius: 14px;
  padding: 1rem !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hr-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.15);
}
.hr-card .wp-block-post-title { margin: 0.75rem 0 0.4rem; font-size: 1.3rem !important; }
.hr-card .wp-block-post-title a { color: var(--hr-gold-light); text-decoration: none; }
.hr-card .wp-block-post-excerpt { color: var(--hr-text); opacity: 0.85; font-size: 0.95rem; }
.hr-card .wp-block-post-excerpt__more-link {
  color: var(--hr-gold);
  font-weight: 600;
  text-decoration: none;
}

.hr-single-category {
  display: inline-block;
  color: var(--hr-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.hr-single-category a { color: var(--hr-gold); text-decoration: none; }
