/*
Theme Name: Arquitecto de Realidades
Theme URI: https://example.com/arquitecto-de-realidades
Author: Arquitecto de Realidades
Author URI: https://example.com
Description: Tema WordPress oscuro/dorado para canal de espiritualidad, manifestación, biblioteca de PDFs, ebooks, newsletter y monetización con AdSense.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arquitecto-realidades
Tags: blog, one-column, custom-menu, custom-logo, featured-images, landing-page
*/

:root {
    --gold: #C9A84C;
    --gold-light: #E8D5A3;
    --gold-dim: #7A6030;
    --bg-deepest: #050508;
    --bg-deep: #0A0A10;
    --bg-card: #0F0F18;
    --bg-card-hover: #141420;
    --border: rgba(201,168,76,0.18);
    --border-hover: rgba(201,168,76,0.45);
    --text-primary: #F0EAD6;
    --text-secondary: #9E9080;
    --text-muted: #5C5448;
    --radius: 4px;
    --radius-lg: 8px;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg-deepest);
    color: var(--text-primary);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
  }

  /* ─── ORNAMENTAL DIVIDER ─── */
  .ornament {
    text-align: center;
    color: var(--gold-dim);
    font-size: 13px;
    letter-spacing: 0.35em;
    margin: 0.5rem 0;
    opacity: 0.7;
  }

  /* ─── NAVIGATION ─── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(5,5,8,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 0.5px solid var(--border);
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-logo {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.12em;
    text-decoration: none;
  }

  .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
  }

  .nav-links a {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
  }

  .nav-links a:hover { color: var(--gold-light); }

  /* ─── HERO ─── */
  .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 7rem 2rem 4rem;
    position: relative;
    overflow: hidden;
  }

  /* Sacred geometry background */
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 60% 50% at 50% 50%, rgba(201,168,76,0.06) 0%, transparent 70%),
      radial-gradient(ellipse 40% 80% at 20% 80%, rgba(100,60,180,0.05) 0%, transparent 60%),
      radial-gradient(ellipse 40% 60% at 80% 20%, rgba(60,100,180,0.04) 0%, transparent 60%);
    pointer-events: none;
  }

  .hero-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 2rem;
  }

  /* The signature element: a sacred circle with the Eye */
  .sacred-emblem {
    width: 120px;
    height: 120px;
    margin: 0 auto 2.5rem;
    position: relative;
  }

  .sacred-emblem svg {
    width: 100%;
    height: 100%;
    animation: slowRotate 40s linear infinite;
  }

  @keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  .sacred-emblem-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slowRotate 40s linear infinite reverse;
  }

  .sacred-emblem-center svg {
    width: 44px;
    height: 44px;
    animation: none;
  }

  .hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.03em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
  }

  .hero-title span {
    color: var(--gold);
  }

  .hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--gold-dim);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 2rem;
  }

  .hero-description {
    max-width: 600px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 3rem;
    line-height: 1.8;
  }

  .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    padding: 14px 36px;
    text-decoration: none;
    transition: all 0.3s;
  }

  .hero-cta:hover {
    background: rgba(201,168,76,0.08);
    border-color: var(--gold-light);
    color: #fff;
  }

  /* ─── SECTION BASE ─── */
  section {
    padding: 6rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
  }

  .section-full {
    max-width: 100%;
    padding: 6rem 0;
    background: var(--bg-deep);
    border-top: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
  }

  .section-full-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
  }

  .section-header {
    text-align: center;
    margin-bottom: 4rem;
  }

  .section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 1rem;
  }

  .section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
  }

  .section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    font-style: italic;
  }

  /* ─── PILLAR STRIP ─── */
  .pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 0.5px solid var(--border);
    margin-top: 5rem;
  }

  .pillar {
    background: var(--bg-deepest);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: background 0.25s;
  }

  .pillar:hover { background: var(--bg-card); }

  .pillar-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--gold);
    display: block;
  }

  .pillar-title {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
  }

  .pillar-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
  }

  /* ─── AD ZONE ─── */
  .ad-zone {
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    margin: 2.5rem auto;
    max-width: 728px;
  }

  .ad-label {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
  }

  .ad-placeholder {
    background: rgba(255,255,255,0.02);
    border: 0.5px dashed var(--border);
    border-radius: var(--radius);
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  /* ─── RESOURCE GRID ─── */
  .resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }

  .resource-card {
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.25s, background 0.25s, transform 0.25s;
    cursor: pointer;
    text-decoration: none;
    display: block;
  }

  .resource-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
  }

  .resource-card-top {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
  }

  .resource-card-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(201,168,76,0.12) 0%, transparent 70%);
  }

  .resource-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
  }

  .badge-pdf {
    background: rgba(201,168,76,0.12);
    color: var(--gold);
    border: 0.5px solid rgba(201,168,76,0.3);
  }

  .badge-ebook {
    background: rgba(100,80,180,0.12);
    color: #A090E0;
    border: 0.5px solid rgba(100,80,180,0.3);
  }

  .resource-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    border-top: 0.5px solid var(--border);
  }

  .resource-category {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 0.5rem;
  }

  .resource-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.35;
  }

  .resource-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }

  .download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    border: 0.5px solid var(--gold-dim);
    padding: 9px 20px;
    border-radius: var(--radius);
    transition: all 0.2s;
    background: transparent;
    cursor: pointer;
  }

  .download-btn:hover {
    background: rgba(201,168,76,0.08);
    border-color: var(--gold);
    color: var(--gold-light);
  }

  .download-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
  }

  /* ─── FILTER TABS ─── */
  .filter-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 3rem;
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    width: fit-content;
  }

  .filter-tab {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 10px 24px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    border-right: 0.5px solid var(--border);
  }

  .filter-tab:last-child { border-right: none; }

  .filter-tab.active {
    background: rgba(201,168,76,0.1);
    color: var(--gold-light);
  }

  .filter-tab:hover:not(.active) {
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
  }

  /* ─── QUOTE BLOCK ─── */
  .quote-section {
    text-align: center;
    padding: 5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
  }

  .quote-text {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.15rem, 2.5vw, 1.6rem);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.5rem;
    opacity: 0.85;
  }

  .quote-source {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold-dim);
  }

  .gold-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
    margin: 1.5rem auto;
  }

  /* ─── ABOUT ─── */
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }

  @media (max-width: 680px) {
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .nav-links { display: none; }
    .nav-logo { font-size: 13px; }
    .pillars { grid-template-columns: 1fr; }
  }

  .about-emblem {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    display: block;
  }

  .about-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 1rem;
  }

  .about-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
  }

  .about-title span { color: var(--gold); }

  .about-body {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.85;
    font-style: italic;
  }

  .about-body p + p { margin-top: 1rem; }

  .about-cta {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s;
  }

  .about-cta:hover { color: var(--gold-light); }

  .about-cta svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* ─── NEWSLETTER ─── */
  .newsletter-section {
    background: var(--bg-deep);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
  }

  .newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201,168,76,0.05) 0%, transparent 70%);
    pointer-events: none;
  }

  .newsletter-title {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
  }

  .newsletter-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
  }

  .newsletter-form {
    display: flex;
    gap: 0;
    max-width: 480px;
    margin: 0 auto;
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.25s;
  }

  .newsletter-form:focus-within {
    border-color: var(--gold-dim);
  }

  .newsletter-input {
    flex: 1;
    background: rgba(255,255,255,0.03);
    border: none;
    outline: none;
    padding: 14px 18px;
    color: var(--text-primary);
    font-family: 'EB Garamond', serif;
    font-size: 1rem;
    font-style: italic;
  }

  .newsletter-input::placeholder { color: var(--text-muted); }

  .newsletter-submit {
    background: rgba(201,168,76,0.12);
    border: none;
    border-left: 0.5px solid var(--border);
    color: var(--gold);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 14px 24px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
  }

  .newsletter-submit:hover {
    background: rgba(201,168,76,0.22);
    color: var(--gold-light);
  }

  .newsletter-note {
    margin-top: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--text-muted);
  }

  /* ─── FOOTER ─── */
  footer {
    border-top: 0.5px solid var(--border);
    padding: 4rem 2rem 3rem;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
  }

  @media (max-width: 680px) {
    footer { grid-template-columns: 1fr; gap: 2rem; }
  }

  .footer-brand-name {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
  }

  .footer-brand-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.7;
    max-width: 300px;
  }

  .footer-social {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
  }

  .footer-social a {
    width: 36px;
    height: 36px;
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
  }

  .footer-social a:hover {
    border-color: var(--gold-dim);
    color: var(--gold);
  }

  .footer-col-title {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--gold-dim);
    margin-bottom: 1.25rem;
  }

  .footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    font-style: italic;
    transition: color 0.2s;
  }

  .footer-links a:hover { color: var(--text-secondary); }

  .footer-bottom {
    border-top: 0.5px solid var(--border);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
  }

  .footer-copy {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--text-muted);
  }

  .footer-adsense-note {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
  }

  /* ─── SCROLL FADE ─── */
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

/* ─── WORDPRESS COMPATIBILITY ─── */
body.admin-bar nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar nav { top: 46px; } }
img { max-width: 100%; height: auto; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
.wp-content-wrap {
  max-width: 860px;
  margin: 8rem auto 4rem;
  padding: 0 2rem;
}
.wp-content-wrap h1,
.wp-content-wrap h2,
.wp-content-wrap h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold-light);
  line-height: 1.25;
  margin: 1.5rem 0 1rem;
}
.wp-content-wrap p,
.wp-content-wrap li { color: var(--text-secondary); }
.wp-content-wrap a { color: var(--gold); }
.wp-content-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a { color: var(--gold-light); }
.resource-card[style*="display: none"] { display: none !important; }
.newsletter-section .wpcf7,
.newsletter-section .wpforms-container,
.newsletter-section .mc4wp-form { max-width: 520px; margin: 0 auto; }
.newsletter-section input[type="email"],
.newsletter-section input[type="text"] {
  width: 100%; background: rgba(255,255,255,0.03); border: 0.5px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px; color: var(--text-primary);
  font-family: 'EB Garamond', serif; font-size: 1rem; font-style: italic;
}
.newsletter-section input[type="submit"],
.newsletter-section button[type="submit"] {
  margin-top: 0.75rem; background: rgba(201,168,76,0.12); border: 0.5px solid var(--border);
  color: var(--gold); font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: 0.25em;
  text-transform: uppercase; padding: 14px 24px; cursor: pointer; border-radius: var(--radius);
}
@media (max-width: 680px) {
  .filter-tabs { width: 100%; flex-wrap: wrap; }
  .filter-tab { flex: 1 1 50%; border-bottom: 0.5px solid var(--border); }
  .newsletter-form { flex-direction: column; }
  .newsletter-submit { border-left: none; border-top: 0.5px solid var(--border); }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}
