/* ═══════════════════════════════════════════════════════════
   ESTILOS DEL BLOG · Astrosistémica
   Este archivo lo comparten blog/index.html y TODAS las notas.
   Si cambiás algo acá, cambia en todo el blog a la vez.
   No hace falta que lo edites para publicar una nota nueva.
═══════════════════════════════════════════════════════════ */

:root {
  /* Paleta Escuela Andalusí — idéntica a la landing */
  --violeta:   #5E3A6E;
  --terracota: #D85C2A;
  --lima:      #B8C84A;
  --azul:      #6B8DC4;
  --dorado:    #E8A317;
  --crema:     #F5EBD7;

  /* Aliases funcionales */
  --claro:   #F5EBD7;
  --nube:    #F8F1E1;
  --rosa:    #F0D5C4;
  --agua:    #B8C84A;
  --cielo:   #6B8DC4;
  --miel:    #E8A317;
  --tinta:   #5E3A6E;
  --piedra:  #8B7355;
  --carbon:  #3A2340;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--claro);
  color: var(--carbon);
  overflow-x: hidden;
}

.display {
  font-family: 'Fraunces', 'Georgia', serif;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
}

.display-tight {
  font-family: 'Fraunces', 'Georgia', serif;
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.marker {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
}

.paper-texture {
  background-image:
    radial-gradient(circle at 25% 25%, rgba(192, 133, 231, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 75% 75%, rgba(138, 219, 245, 0.04) 0%, transparent 40%);
}

/* ── Navegación ─────────────────────────────────────────── */
.nav-scrolled {
  background: rgba(245, 235, 215, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 115, 85, 0.18);
}

/* ── Botones ────────────────────────────────────────────── */
.btn-wa {
  background: var(--violeta);
  color: var(--crema);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-wa:hover {
  background: var(--terracota);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(216, 92, 42, 0.4);
}

.marker-underline {
  background-image: linear-gradient(120deg, var(--miel) 0%, var(--miel) 100%);
  background-repeat: no-repeat;
  background-size: 100% 30%;
  background-position: 0 85%;
  padding: 0 2px;
}

/* ── Filtros de categoría ───────────────────────────────── */
.filtro {
  border: 1px solid rgba(94, 58, 110, 0.3);
  color: var(--tinta);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.filtro:hover { border-color: var(--violeta); }
.filtro[aria-pressed="true"] {
  background: var(--violeta);
  border-color: var(--violeta);
  color: var(--crema);
}

/* ── Tarjetas de nota ───────────────────────────────────── */
.nota-card {
  background: var(--nube);
  border: 1px solid rgba(139, 115, 85, 0.15);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}
.nota-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -22px rgba(58, 35, 64, 0.3);
}
.nota-card.oculta { display: none; }

/* Etiqueta de categoría */
.etiqueta {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
}
.etiqueta-astrologia    { background: var(--cielo); color: var(--carbon); }
.etiqueta-constelaciones{ background: var(--violeta); color: var(--crema); }
.etiqueta-floral        { background: var(--rosa); color: var(--carbon); }
.etiqueta-recursos      { background: var(--lima); color: var(--carbon); }

/* Nombres anteriores, mantenidos por compatibilidad */
.etiqueta-columna       { background: var(--cielo); color: var(--carbon); }
.etiqueta-casos         { background: var(--lima); color: var(--carbon); }

/* ═══════════════════════════════════════════════════════════
   CUERPO DE LA NOTA — tipografía de lectura larga
   Todo lo que escribas dentro de <div class="nota-cuerpo">
   se formatea solo. No necesitás poner clases en cada párrafo.
═══════════════════════════════════════════════════════════ */
.nota-cuerpo {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--carbon);
  max-width: 68ch;
}

.nota-cuerpo p { margin-bottom: 1.6rem; }

.nota-cuerpo > p:first-of-type {
  font-size: 1.28rem;
  line-height: 1.7;
  color: var(--carbon);
}

.nota-cuerpo h2 {
  font-family: 'Fraunces', 'Georgia', serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: 1.95rem;
  line-height: 1.25;
  margin-top: 3.2rem;
  margin-bottom: 1.1rem;
  color: var(--violeta);
}

.nota-cuerpo h3 {
  font-family: 'Fraunces', 'Georgia', serif;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.3;
  margin-top: 2.4rem;
  margin-bottom: 0.8rem;
  color: var(--carbon);
}

.nota-cuerpo ul,
.nota-cuerpo ol {
  margin: 0 0 1.6rem 0;
  padding-left: 1.4rem;
}
.nota-cuerpo ul { list-style: none; padding-left: 0; }
.nota-cuerpo ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.85rem;
}
.nota-cuerpo ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--violeta);
  font-size: 0.85em;
}
.nota-cuerpo ol { list-style: decimal; }
.nota-cuerpo ol li { margin-bottom: 0.85rem; padding-left: 0.3rem; }

.nota-cuerpo blockquote {
  margin: 2.6rem 0;
  padding: 0.2rem 0 0.2rem 1.6rem;
  border-left: 3px solid var(--miel);
  font-family: 'Fraunces', 'Georgia', serif;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--violeta);
}
.nota-cuerpo blockquote p:last-child { margin-bottom: 0; }

.nota-cuerpo a {
  color: var(--violeta);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.nota-cuerpo a:hover { color: var(--terracota); }

.nota-cuerpo strong { font-weight: 600; color: var(--carbon); }
.nota-cuerpo em { font-style: italic; }

.nota-cuerpo hr {
  border: none;
  height: 1px;
  background: rgba(139, 115, 85, 0.3);
  margin: 3rem 0;
  max-width: 120px;
}

/* Imagen dentro de la nota, con epígrafe opcional */
.nota-cuerpo figure { margin: 2.8rem 0; }
.nota-cuerpo figure img {
  width: 100%;
  border-radius: 1.25rem;
  display: block;
}
.nota-cuerpo figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--piedra);
  line-height: 1.5;
}

/* Caja destacada dentro de la nota (para una idea que querés resaltar) */
.nota-destacado {
  background: var(--nube);
  border: 1px solid rgba(139, 115, 85, 0.2);
  border-radius: 1.25rem;
  padding: 1.75rem;
  margin: 2.8rem 0;
}
.nota-destacado p:last-child { margin-bottom: 0; }

/* Aviso de confidencialidad para las notas de casos */
.aviso-confidencialidad {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--piedra);
  background: rgba(139, 115, 85, 0.07);
  border-radius: 1rem;
  padding: 1.1rem 1.4rem;
  margin: 2.4rem 0;
}

/* ── Accesibilidad y movimiento ─────────────────────────── */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--violeta);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .nota-card:hover { transform: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 640px) {
  .nota-cuerpo { font-size: 1.06rem; line-height: 1.8; }
  .nota-cuerpo > p:first-of-type { font-size: 1.15rem; }
  .nota-cuerpo h2 { font-size: 1.65rem; }
  .nota-cuerpo blockquote { font-size: 1.15rem; }
}
