/*
Theme Name: Astrologik by Ico
Theme URI: https://astrologikbyico.com
Author: Ico
Author URI: https://astrologikbyico.com
Description: Tema personalizado para Astrologik by Ico — astrología práctica en español. Paleta negro carbón, grises y verde orgánico.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astrologik
Tags: blog, astrologia, custom-theme
*/

/* ============================================
   CSS VARIABLES — PALETA NEGRO + VERDE
   ============================================ */
:root {
  /* Fondos */
  --bg-body:        #F5F4F0;
  --bg-card:        #FFFFFF;
  --bg-card-alt:    #F0EFE9;
  --bg-nav:         #141414;
  --bg-nav-border:  #222222;
  --bg-footer:      #0f0f0f;
  --bg-section-alt: #EEEDE8;
  --bg-dark:        #141414;
  --bg-dark-card:   #1C1C1C;
  --bg-dark-input:  #1a1a1a;

  /* Verde — color de marca */
  --green:          #7EC845;
  --green-dark:     #5FA832;
  --green-deep:     #3B6D11;
  --green-light:    #A8D97A;
  --green-pale:     #C0DD97;
  --green-ghost:    #EAF3DE;

  /* Grises */
  --gray-50:        #F5F4F0;
  --gray-100:       #EEEDE8;
  --gray-200:       #D3D1C7;
  --gray-400:       #888780;
  --gray-600:       #5F5E5A;
  --gray-800:       #2C2C2A;
  --gray-900:       #1a1a18;

  /* Texto */
  --text-primary:   #1a1a18;
  --text-secondary: #5F5E5A;
  --text-muted:     #888780;
  --text-on-dark:   #F0F0F0;
  --text-on-dark-muted: #888888;

  /* Bordes */
  --border-light:   rgba(0,0,0,0.08);
  --border-mid:     rgba(0,0,0,0.14);
  --border-dark:    rgba(255,255,255,0.07);
  --border-green:   rgba(126,200,69,0.4);

  /* Tipografía */
  --font-display:   'Manrope', sans-serif;
  --font-body:      'Manrope', sans-serif;

  /* Layout */
  --max-w:          1200px;
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --radius-xl:      24px;

  /* Sombras */
  --shadow-card:    0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.05);
  --shadow-hover:   0 4px 24px rgba(0,0,0,0.10);
  --shadow-green:   0 4px 20px rgba(126,200,69,0.25);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================
   TIPOGRAFÍA
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1rem, 2vw, 1.35rem); letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-secondary); line-height: 1.75; }

.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 8px;
}
.label::before {
  content: '';
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--green);
  flex-shrink: 0;
}

/* ============================================
   LAYOUT
   ============================================ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-section-alt); }

/* ============================================
   BOTONES
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  padding: 12px 26px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--green);
  color: var(--gray-900);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-green);
}
.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-mid);
}
.btn-secondary:hover {
  border-color: var(--green);
  color: var(--green-deep);
  transform: translateY(-1px);
}
.btn-dark {
  background: var(--green);
  color: var(--gray-900);
}
.btn-dark:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}
.btn-ghost-dark {
  background: transparent;
  color: var(--text-on-dark-muted);
  border: 1px solid #333;
}
.btn-ghost-dark:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ============================================
   NAVEGACIÓN
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--bg-nav-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.nav-logo {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  text-decoration: none;
}
.nav-logo span { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-on-dark); }

.nav-cta {
  background: var(--green);
  color: var(--gray-900);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--green-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--bg-dark);
  padding: 136px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(126,200,69,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 1.5px;
  background: var(--green);
}
.hero h1 {
  color: var(--text-on-dark);
  max-width: 640px;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--green-light);
}
.hero-sub {
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero-trust {
  margin-top: 3rem;
  font-size: 12px;
  color: var(--text-on-dark-muted);
  opacity: 0.5;
  letter-spacing: 0.03em;
}

/* ============================================
   PILARES / CATEGORÍAS
   ============================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.25s ease;
  text-decoration: none;
  display: block;
  box-shadow: var(--shadow-card);
}
.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--green);
}
.pillar-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.9rem;
  font-size: 18px;
  background: var(--green-ghost);
}
.pillar-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--text-primary); }
.pillar-card p  { font-size: 13px; margin-bottom: 0.9rem; line-height: 1.5; }
.pillar-tag {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 4px;
  background: var(--green-ghost); color: var(--green-deep);
}

/* ============================================
   ARTÍCULOS
   ============================================ */
.section-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem; gap: 1rem; flex-wrap: wrap;
}
.section-header h2 { margin: 0; }
.view-all {
  font-size: 13px; font-weight: 600;
  color: var(--green-deep); text-decoration: none;
  white-space: nowrap; transition: color 0.2s;
}
.view-all:hover { color: var(--green); }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--border-mid); }
.post-card-thumb {
  aspect-ratio: 16/9; overflow: hidden;
  background: var(--green-ghost); position: relative;
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-body { padding: 1.1rem 1.35rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.post-card-cat {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  margin-bottom: 0.5rem; color: var(--green-deep);
  background: var(--green-ghost);
  display: inline-block; padding: 2px 8px; border-radius: 4px;
}
.post-card h3 { font-size: 0.95rem; margin-bottom: 0.4rem; line-height: 1.35; }
.post-card h3 a { color: var(--text-primary); text-decoration: none; transition: color 0.2s; }
.post-card h3 a:hover { color: var(--green-deep); }
.post-card p { font-size: 13px; line-height: 1.55; margin-bottom: 0.9rem; flex: 1; }
.post-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--text-muted);
  padding-top: 0.7rem; border-top: 1px solid var(--border-light);
}

/* ============================================
   LEAD MAGNET
   ============================================ */
.lead-section {
  background: var(--bg-dark);
  padding: 80px 0;
  position: relative; overflow: hidden;
}
.lead-section::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(126,200,69,0.06) 0%, transparent 65%);
}
.lead-inner {
  position: relative; z-index: 1;
  max-width: 560px; margin: 0 auto;
  text-align: center; padding: 0 2rem;
}
.lead-inner h2 { color: var(--text-on-dark); margin-bottom: 0.6rem; }
.lead-inner > p { color: var(--text-on-dark-muted); margin-bottom: 1.75rem; }
.lead-form { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.lead-form input[type="email"] {
  flex: 1; min-width: 200px;
  padding: 12px 16px;
  background: var(--bg-dark-input);
  border: 1px solid #2a2a2a;
  border-radius: var(--radius-sm);
  color: var(--text-on-dark);
  font-family: var(--font-body); font-size: 14px;
  outline: none; transition: border-color 0.2s;
}
.lead-form input[type="email"]::placeholder { color: #555; }
.lead-form input[type="email"]:focus { border-color: var(--green); }
.lead-form button {
  background: var(--green); color: var(--gray-900);
  font-family: var(--font-display); font-size: 13px;
  font-weight: 700; padding: 12px 24px;
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; white-space: nowrap; transition: all 0.2s;
}
.lead-form button:hover { background: var(--green-dark); }
.lead-privacy { margin-top: 0.9rem; font-size: 11px; color: #444; }

/* ============================================
   SERVICIOS / LECTURAS
   ============================================ */
.readings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem; margin-top: 2rem;
}
.reading-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
  position: relative;
}
.reading-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.reading-card.featured { border: 2px solid var(--green); }
.reading-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: var(--gray-900);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 20px; white-space: nowrap;
}
.reading-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.reading-card p  { font-size: 13.5px; margin-bottom: 1.25rem; line-height: 1.6; }
.reading-price {
  font-size: 2rem; font-weight: 800;
  color: var(--text-primary); letter-spacing: -0.03em; margin-bottom: 0.2rem;
}
.reading-price span { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.reading-card .btn { width: 100%; justify-content: center; margin-top: 1.25rem; }

/* ============================================
   SOBRE MÍ
   ============================================ */
.about-widget {
  display: flex; align-items: flex-start; gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-card);
}
.about-avatar {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--green-ghost);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: var(--green-deep);
  flex-shrink: 0; border: 2px solid var(--green-pale);
}
.about-text h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.about-text p  { font-size: 13.5px; line-height: 1.65; margin-bottom: 0.9rem; }
.about-creds   { display: flex; gap: 8px; flex-wrap: wrap; }
.cred-tag {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 4px;
  background: var(--green-ghost); color: var(--green-deep);
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-header {
  background: var(--bg-dark);
  padding: 120px 0 56px;
}
.single-header .container { max-width: 760px; }
.single-header h1 { color: var(--text-on-dark); margin-bottom: 1rem; }
.single-header .post-meta { color: #555; margin-top: 1rem; }
.single-header .post-card-cat { margin-bottom: 1.25rem; }

.single-content {
  max-width: 760px; margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.single-content h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.single-content h3 { font-size: 1.15rem; margin: 2rem 0 0.75rem; }
.single-content p  { margin-bottom: 1.25rem; }
.single-content ul, .single-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.single-content li { margin-bottom: 0.4rem; list-style: disc; color: var(--text-secondary); }
.single-content a  { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
.single-content blockquote {
  border-left: 3px solid var(--green);
  padding: 0.75rem 1.25rem; margin: 2rem 0;
  background: var(--green-ghost);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.single-content blockquote p { margin: 0; font-style: italic; color: var(--green-deep); }

/* CTA al final del artículo */
.post-cta {
  background: var(--green-ghost);
  border: 1px solid var(--green-pale);
  border-radius: var(--radius-lg);
  padding: 2rem; text-align: center; margin-top: 2rem;
}
.post-cta h3 { margin-bottom: 0.4rem; }
.post-cta p  { font-size: 14px; margin-bottom: 1.25rem; }

/* ============================================
   SIDEBAR Y CATEGORÍAS
   ============================================ */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  max-width: var(--max-w); margin: 0 auto;
  padding: 3rem 2rem; align-items: start;
}
.sidebar { display: flex; flex-direction: column; gap: 1.75rem; }
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.35rem; box-shadow: var(--shadow-card);
}
.sidebar-widget h4 {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green-deep); margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-widget-dark {
  background: var(--bg-dark-card);
  border: 1px solid #2a2a2a;
  border-radius: var(--radius-lg);
  padding: 1.35rem;
}
.sidebar-widget-dark h4 {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #2a2a2a;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-footer);
  padding: 56px 0 28px;
  border-top: 1px solid #1a1a1a;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.footer-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 2rem;
  margin-bottom: 2.5rem; flex-wrap: wrap;
}
.footer-logo {
  font-size: 1.05rem; font-weight: 700;
  color: var(--text-on-dark); letter-spacing: -0.02em; margin-bottom: 0.4rem;
}
.footer-logo span { color: var(--green); }
.footer-tagline { font-size: 12px; color: #444; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: #444; text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid #1a1a1a;
  padding-top: 1.5rem;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 12px; color: #333; }

/* ============================================
   PAGINACIÓN
   ============================================ */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 3rem; }
.pagination a, .pagination span {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
  border: 1px solid var(--border-light);
  background: var(--bg-card); color: var(--text-primary);
  text-decoration: none; transition: all 0.2s;
}
.pagination a:hover { border-color: var(--green); color: var(--green-deep); }
.pagination .current { background: var(--green); color: var(--gray-900); border-color: var(--green); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-nav); padding: 1.5rem 2rem;
    border-bottom: 1px solid #222; gap: 1.25rem;
  }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .hero { padding: 116px 0 64px; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .footer-top { flex-direction: column; }
  .about-widget { flex-direction: column; }
  .section { padding: 52px 0; }
}
@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .posts-grid, .readings-grid, .pillars-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .lead-form { flex-direction: column; }
  .lead-form input[type="email"], .lead-form button { width: 100%; }
}
