/* ============================================================
   blog.css — Bruja de la Fortuna
   Sistema de estilos unificado para todas las páginas del blog,
   cursos y portadas.
   Fuentes: Cormorant Garamond + Raleway (Google Fonts)
   @import en el <head> de cada página:
   <link rel="stylesheet" href="/css/blog.css">
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Raleway:wght@300;400;500;600&display=swap');


/* ── RESET & VARIABLES ───────────────────────────────────── */

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

:root {
  --rose:    #c86b85;
  --rose-lt: #f8f1f3;
  --rose-bd: #ead8dc;
  --rose-dk: #b55a72;
  --mauve:   #b48a94;
  --dark:    #1a1014;
  --mid:     #4a3540;
  --light:   #fff9fa;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'Raleway', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--light);
  color: var(--dark);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.03em;
}


/* ── ANIMACIÓN ───────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up   { animation: fadeUp 0.7s ease both; }
.fade-up-1 { animation: fadeUp 0.7s 0.10s ease both; }
.fade-up-2 { animation: fadeUp 0.7s 0.20s ease both; }
.fade-up-3 { animation: fadeUp 0.7s 0.30s ease both; }
.fade-up-4 { animation: fadeUp 0.7s 0.40s ease both; }
.fade-up-5 { animation: fadeUp 0.7s 0.50s ease both; }


/* ── WRAPPER ─────────────────────────────────────────────── */

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.wrap-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}


/* ── HERO ────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 72px 24px 56px;
  border-bottom: 1px solid var(--rose-bd);
}

.hero-logo {
  width: 70px;
  margin: 0 auto 24px;
  display: block;
  opacity: 0.85;
}

.hero-eyebrow,
.hero-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rose);
  border: 1px solid var(--rose-bd);
  border-radius: 20px;
  padding: 4px 16px;
  margin-bottom: 20px;
  background: #fff;
}

/* eyebrow sin borde (variante texto suelto) */
.hero-eyebrow-plain {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 18px;
  display: block;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-title em {
  color: var(--rose);
  font-style: italic;
}

.hero-sub {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  color: var(--mid);
  max-width: 580px;
  margin: 0 auto 10px;
  line-height: 1.6;
}

.hero-acceso {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 600;
}


/* ── DIVIDER ─────────────────────────────────────────────── */

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 44px auto;
  max-width: 320px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--rose-bd);
}

.divider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
  flex-shrink: 0;
}

/* Variante sin max-width (ocupa todo el ancho del contenedor) */
.divider-full {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 32px 0;
}

.divider-full .divider-line { flex: 1; height: 1px; background: var(--rose-bd); }
.divider-full .divider-dot  { width: 6px; height: 6px; border-radius: 50%; background: var(--rose); flex-shrink: 0; }


/* ── BLOQUES DE CONTENIDO ────────────────────────────────── */

/* Bloque con fondo rosado y borde — historia, intro, citas */
.block {
  background: var(--rose-lt);
  border: 1px solid var(--rose-bd);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 22px;
}

/* Bloque tono más oscuro — secciones de práctica/disciplina */
.block-dark {
  background: #f4e4e8;
  border: 1px solid #dfc8cc;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 22px;
}

/* Bloque blanco con borde sutil — pasos intermedios */
.block-white {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 22px;
}

.block p,
.block-dark p,
.block-white p {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 300;
  color: var(--mid);
  margin-bottom: 12px;
  text-align: justify;
  line-height: 1.9;
}

.block p:last-child,
.block-dark p:last-child,
.block-white p:last-child {
  margin-bottom: 0;
}

/* Cita centrada en cursiva dentro de un bloque */
.block-quote {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--rose);
  font-size: 17px;
  margin-top: 4px;
}


/* ── TEXTO LIBRE (secciones sin fondo) ───────────────────── */

.free-text {
  margin-bottom: 22px;
}

.free-text p {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 300;
  color: var(--mid);
  margin-bottom: 12px;
  text-align: justify;
  line-height: 1.9;
}

.free-text p:last-child { margin-bottom: 0; }


/* ── TÍTULOS DE SECCIÓN ──────────────────────────────────── */

.section-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--rose);
  margin-bottom: 14px;
}

.section-title-center {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--rose);
  text-align: center;
  margin-bottom: 14px;
}

.section-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 12px;
  display: block;
}


/* ── LISTAS DE INGREDIENTES / PASOS ──────────────────────── */

.ingredient-list,
.step-list {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
}

.ingredient-list li,
.step-list li {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--mid);
  padding: 6px 0;
  border-bottom: 1px solid var(--rose-lt);
  line-height: 1.6;
}

.ingredient-list li:last-child,
.step-list li:last-child {
  border-bottom: none;
}


/* ── BOTÓN CTA ───────────────────────────────────────────── */

.cta-block {
  text-align: center;
  margin: 36px 0;
}

.cta-btn {
  display: inline-block;
  padding: 16px 40px;
  background: var(--rose);
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}

.cta-btn:hover {
  background: var(--rose-dk);
  transform: scale(0.99);
}

/* Versión ancho completo (dentro de tarjetas) */
.cta-btn-block {
  display: block;
  width: 100%;
  text-align: center;
  padding: 15px 24px;
  background: var(--rose);
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}

.cta-btn-block:hover {
  background: var(--rose-dk);
  transform: scale(0.99);
}

.cta-note {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  color: var(--mauve);
}


/* ── PÍLDORAS / BADGES ───────────────────────────────────── */

.pill {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rose);
  background: var(--rose-lt);
  border: 1px solid var(--rose-bd);
  border-radius: 20px;
  padding: 5px 14px;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}


/* ── GRID DE DÍAS (portada de curso) ─────────────────────── */

.clases-block {
  background: var(--rose-lt);
  border: 1px solid var(--rose-bd);
  border-radius: 16px;
  padding: 32px;
}

.clases-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--rose);
  text-align: center;
  margin-bottom: 6px;
}

.clases-sub {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--mauve);
  text-align: center;
  margin-bottom: 28px;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.day-item {
  background: #fff;
  border: 1px solid var(--rose-bd);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.2s, transform 0.15s;
}

.day-item:hover {
  background: #fff0f4;
  transform: translateY(-2px);
}

.day-num {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--rose);
  flex-shrink: 0;
  line-height: 1;
  min-width: 28px;
  text-align: center;
}

.day-item a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  line-height: 1.4;
}

.day-item a:hover { color: var(--rose); }


/* ── TARJETAS DE CURSO (página índice de cursos) ─────────── */

.courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 0;
}

.card {
  border: 1px solid var(--rose-bd);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 12px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(200, 107, 133, 0.12);
}

.card-header {
  padding: 40px 36px 32px;
  background: var(--rose-lt);
  border-bottom: 1px solid var(--rose-bd);
  text-align: center;
}

.card-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rose);
  border: 1px solid var(--rose-bd);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 20px;
  background: #fff;
}

.card-title {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 400;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 10px;
}

.card-title em { color: var(--rose); }

.card-sub {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--mauve);
  font-weight: 300;
}

.card-body { padding: 32px 36px; }

.card-intro {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--mid);
  margin-bottom: 24px;
  line-height: 1.8;
}

.features-title {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 12px;
}

.features {
  list-style: none;
  margin-bottom: 28px;
}

.features li {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--mid);
  padding: 7px 0;
  border-bottom: 1px solid var(--rose-lt);
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1.5;
}

.features li:last-child { border-bottom: none; }

.feat-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rose);
  flex-shrink: 0;
  margin-top: 7px;
}


/* ── GRID DE TARJETAS DE CONTENIDO (descripción de curso) ── */

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.content-card {
  background: var(--rose-lt);
  border: 1px solid var(--rose-bd);
  border-radius: 14px;
  padding: 18px;
}

.content-card-alt {
  background: #f4e4e8;
  border: 1px solid #dfc8cc;
  border-radius: 14px;
  padding: 18px;
}

.content-card-title,
.content-card-alt .content-card-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--rose);
  margin-bottom: 6px;
}

.content-card p,
.content-card-alt p {
  font-family: var(--sans);
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  margin: 0;
}


/* ── NAVEGACIÓN DÍA ANTERIOR / SIGUIENTE ─────────────────── */

.nav-curso {
  font-family: var(--sans) !important;
  letter-spacing: 1.2px !important;
  max-width: 950px !important;
  margin: 32px auto 0 !important;
  padding: 18px 24px !important;
  background: var(--rose-lt) !important;
  border-top: 2px solid var(--rose-bd) !important;
  border-radius: 12px !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  box-sizing: border-box !important;
}

.nav-curso a {
  text-decoration: none !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  text-shadow: none !important;
  font-weight: normal !important;
  font-size: inherit !important;
  display: flex !important;
  flex-direction: column !important;
}

.nav-curso .nav-prev { flex: 1 !important; min-width: 0 !important; align-items: flex-start !important; }
.nav-curso .nav-next { flex: 1 !important; min-width: 0 !important; align-items: flex-end !important; }
.nav-curso .nav-idx  { flex-shrink: 0 !important; align-items: center !important; padding: 0 12px !important; }

.nav-curso .nav-label {
  display: block !important;
  font-size: 11px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: var(--mauve) !important;
  margin-bottom: 4px !important;
  font-weight: normal !important;
  text-shadow: none !important;
  padding: 0 !important;
}

.nav-curso .nav-title {
  display: block !important;
  font-weight: bold !important;
  font-size: 14px !important;
  color: var(--rose) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  text-shadow: none !important;
  text-decoration: none !important;
  padding: 0 !important;
}

.nav-curso .nav-dot {
  display: block !important;
  width: 12px !important;
  height: 12px !important;
  background: var(--rose) !important;
  border-radius: 50% !important;
  margin: 0 auto !important;
}

.nav-curso .nav-idx-label {
  display: block !important;
  font-size: 11px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: var(--mauve) !important;
  text-align: center !important;
  margin-bottom: 6px !important;
  font-weight: normal !important;
  text-shadow: none !important;
  padding: 0 !important;
}


/* ── FOOTER QUOTE ────────────────────────────────────────── */

.footer-quote {
  text-align: center;
  padding: 48px 24px;
  border-top: 1px solid var(--rose-bd);
}

.footer-quote p {
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  font-weight: 300;
  color: var(--mauve);
  line-height: 1.8;
}


/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 700px) {
  .hero            { padding: 48px 20px 36px; }
  .card-header     { padding: 28px 20px 22px; }
  .card-body       { padding: 22px 20px; }
  .block,
  .block-dark,
  .block-white     { padding: 20px 18px; }
  .clases-block    { padding: 22px 16px; }
  .days-grid       { grid-template-columns: 1fr; }
  .content-grid    { grid-template-columns: 1fr; }
  .pill-group      { gap: 8px; }
  .nav-curso       { padding: 14px 16px !important; gap: 10px !important; }
  .wrap,
  .wrap-wide       { padding: 0 16px 60px; }
}
