/* ==========================================================================
   Pronoia — Perspectivas Astrológicas
   Estilo: Cosmic Serenity Flow
   ========================================================================== */

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

:root {
  /* Paleta — 5 colores */
  --color-bg-primary: #0b1029;       /* azul profundo — base */
  --color-bg-secondary: #171238;     /* violeta profundo — secundario */
  --color-surface: #1c1a45;          /* superficie de tarjetas */
  --color-gold: #d4af7a;             /* dorado suave — acento */
  --color-text: #f4f1ea;             /* blanco cálido para lectura */
  --color-text-muted: #b9b6d6;       /* texto secundario */

  --font-heading: 'Marcellus', 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg-primary);
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(212, 175, 122, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 20%, rgba(93, 74, 168, 0.18) 0%, transparent 50%),
    linear-gradient(180deg, #0b1029 0%, #131233 40%, #171238 100%);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

a {
  color: var(--color-gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-text);
  line-height: 1.25;
}

p {
  color: var(--color-text-muted);
}

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

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 44px 0;
}

.eyebrow {
  font-family: var(--font-heading);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--color-gold);
  margin: 0 0 14px;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin: 0 0 18px;
}

.section-lede {
  max-width: 680px;
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

/* Star field backdrop */
.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(244,241,234,0.5) 0, transparent 60%),
    radial-gradient(1px 1px at 60% 70%, rgba(244,241,234,0.4) 0, transparent 60%),
    radial-gradient(1px 1px at 80% 20%, rgba(212,175,122,0.5) 0, transparent 60%),
    radial-gradient(1px 1px at 35% 85%, rgba(244,241,234,0.35) 0, transparent 60%),
    radial-gradient(1px 1px at 90% 55%, rgba(244,241,234,0.4) 0, transparent 60%),
    radial-gradient(1px 1px at 10% 60%, rgba(212,175,122,0.35) 0, transparent 60%);
  background-repeat: repeat;
  background-size: 500px 500px;
  opacity: 0.8;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 41, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 122, 0.14);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-text);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--color-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 0.95rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-gold);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(212,175,122,0.4);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}

.header-cta {
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.header-cta:hover {
  background: rgba(212, 175, 122, 0.12);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  margin: 0 0 22px;
}

.hero-title em {
  font-style: normal;
  color: var(--color-gold);
}

.hero-text {
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 122, 0.2);
}

.hero-figure img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #d4af7a, #b98a52);
  color: #17122f;
  font-weight: 500;
}

.btn-primary:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-outline {
  border-color: rgba(212, 175, 122, 0.5);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  text-decoration: none;
}

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}

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

.card {
  background: linear-gradient(160deg, rgba(28,26,69,0.7), rgba(23,18,56,0.55));
  border: 1px solid rgba(212, 175, 122, 0.14);
  border-radius: var(--radius-md);
  padding: 28px;
}

.card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,122,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-family: var(--font-heading);
  margin-bottom: 16px;
}

.article-card {
  background: rgba(23, 18, 56, 0.5);
  border: 1px solid rgba(212, 175, 122, 0.14);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card .card-body {
  padding: 22px;
}

.article-meta {
  font-size: 0.78rem;
  color: var(--color-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.zodiac-card {
  text-align: center;
  padding: 26px 18px;
}

.zodiac-glyph {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-gold);
  display: block;
  margin-bottom: 10px;
}

/* ---------- Divider ---------- */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 122, 0.4), transparent);
  margin: 0;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 20px 0 0;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

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

/* ---------- Page header (non-hero) ---------- */
.page-header {
  padding: 48px 0 20px;
}

.page-header h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

/* ---------- Content blocks ---------- */
.prose h2 {
  font-size: 1.5rem;
  margin-top: 44px;
}

.prose h3 {
  font-size: 1.2rem;
  margin-top: 28px;
  color: var(--color-gold);
}

.prose p {
  margin-bottom: 18px;
}

.prose ul, .prose ol {
  color: var(--color-text-muted);
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.pull-quote {
  border-left: 2px solid var(--color-gold);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-text);
}

/* ---------- Table ---------- */
.astro-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 32px;
  font-size: 0.94rem;
}

.astro-table th, .astro-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(212, 175, 122, 0.15);
  text-align: left;
}

.astro-table th {
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-weight: 500;
}

/* ---------- FAQ / Accordion ---------- */
.faq-item {
  border-bottom: 1px solid rgba(212, 175, 122, 0.16);
  padding: 20px 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  color: var(--color-text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  gap: 16px;
}

.faq-question .plus {
  color: var(--color-gold);
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item.open .plus {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--color-text-muted);
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding-top: 14px;
}

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-info-item .icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,122,0.4);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(11, 16, 41, 0.6);
  border: 1px solid rgba(212, 175, 122, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-gold);
}

#form-success {
  display: none;
  background: rgba(212, 175, 122, 0.12);
  border: 1px solid var(--color-gold);
  color: var(--color-text);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  font-size: 0.95rem;
}

#form-success.visible {
  display: block;
}

/* ---------- CTA band ---------- */
.cta-band {
  border-top: 1px solid rgba(212, 175, 122, 0.16);
  border-bottom: 1px solid rgba(212, 175, 122, 0.16);
  background: linear-gradient(90deg, rgba(28,26,69,0.4), rgba(23,18,56,0.6));
  padding: 56px 0;
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 14px;
}

.cta-band p {
  max-width: 560px;
  margin: 0 auto 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(212, 175, 122, 0.16);
  padding: 60px 0 30px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 18px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 11px;
}

.footer-grid a {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: var(--color-gold);
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(212, 175, 122, 0.1);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure img { height: 320px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-secondary);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid rgba(212,175,122,0.2);
  }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-cta { display: none; }
}
