/* ============================================
   Lic. Bárbara Ballesteros — Sistema de diseño
   Extiende el sistema visual existente (violeta/crema,
   Cormorant Garamond + DM Sans). No introduce una
   identidad nueva: consolida la actual para multi-página.
   ============================================ */

:root {
  --v100: #f5f0ff;
  --v200: #e8dcff;
  --v300: #c9b0f0;
  --v400: #a97dd8;
  --v500: #7c4db8;
  --v600: #5c3490;
  --v700: #3a1f62;
  --v800: #1e0e3a;
  --cream: #faf8f5;
  --ink: #1e0e3a;
  --muted: #7a6a8a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* Foco visible para accesibilidad de teclado */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--v500);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ── FADE IN ──
   Visible por defecto (sin depender de JS). El script solo oculta,
   al cargar, los elementos que arrancan debajo del viewport
   (.fade-in-init) para animarlos al hacer scroll — así el H1 y el
   texto introductorio, que ya están a la vista, nunca dependen de
   que se ejecute JS ni de ningún scroll para mostrarse. */
.fade-in { transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.fade-in-init { opacity: 0; transform: translateY(16px); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 4rem;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--v200);
}
.nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 400; letter-spacing: 0.04em; color: var(--v700); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 0.87rem; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.activo { color: var(--v500); }

/* Dropdown "¿Qué te está pasando?" */
.nav-item-dropdown { position: relative; }
.nav-dropdown-trigger {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 0.82rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 0.35rem;
  padding: 0;
}
.nav-dropdown-trigger:hover { color: var(--v500); }
.nav-dropdown-trigger svg { width: 10px; height: 10px; transition: transform 0.2s; }
.nav-item-dropdown:hover .nav-dropdown-trigger svg,
.nav-item-dropdown:focus-within .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: white; border: 1px solid var(--v200); box-shadow: 0 12px 32px rgba(30,14,58,0.12);
  min-width: 280px; padding: 0.6rem; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.15s ease; margin-top: 0.8rem;
}
.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.nav-dropdown-menu a {
  display: block; padding: 0.65rem 0.9rem; font-size: 0.85rem; text-transform: none;
  letter-spacing: 0.01em; color: var(--v700); text-decoration: none; font-weight: 400;
}
.nav-dropdown-menu a:hover { background: var(--v100); color: var(--v600); }

/* Hamburger (mobile) */
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer; padding: 0.4rem;
  flex-direction: column; gap: 5px;
}
.nav-hamburger span { width: 24px; height: 2px; background: var(--v700); display: block; transition: transform 0.2s, opacity 0.2s; }
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-panel { display: none; }

@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-logo { font-size: 1.05rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-panel {
    /* Cubre desde arriba de todo (no solo debajo del nav) para que nunca se
       transparente contenido de la página detrás; el espacio del nav se
       resuelve con padding-top, no con la posición, así no depende de
       adivinar la altura exacta del nav en cada dispositivo. */
    display: block; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--cream); z-index: 99; padding: 5.2rem 1.5rem 1.5rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease; overflow-y: auto;
  }
  .nav-mobile-panel.abierto { opacity: 1; transform: translateY(0); pointer-events: auto; visibility: visible; }
  .nav-mobile-panel a, .nav-mobile-panel .mobile-sublabel {
    display: block; padding: 0.9rem 0; font-size: 1rem; text-decoration: none;
    color: var(--v700); border-bottom: 1px solid var(--v200);
  }
  .nav-mobile-panel .mobile-sublabel { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--v400); border-bottom: none; padding-top: 1.5rem; padding-bottom: 0.4rem; }
  .nav-mobile-panel a.mobile-sub { padding-left: 1rem; font-size: 0.92rem; color: var(--muted); }
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block; padding: 0.85rem 2rem; background: var(--v500); color: white;
  text-decoration: none; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 500; border: none; cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--v600); transform: translateY(-1px); }
.btn-secondary {
  display: inline-block; padding: 0.85rem 2rem; border: 1px solid var(--v300); color: var(--v600);
  text-decoration: none; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 400; background: none; cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--v500); color: var(--v500); }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 2rem;
  background: #25D366; color: white; text-decoration: none; font-size: 0.82rem;
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}
.btn-whatsapp:hover { background: #1da851; transform: translateY(-1px); }
.btn-whatsapp svg { width: 16px; height: 16px; fill: currentColor; }

/* ── SECTION BASE ── */
/* Ancho máximo general: sin esto, en monitores muy anchos cada sección
   se estira sin límite y el texto queda con aire vacío enorme al costado
   (centrado o alineado a la izquierda, da igual). */
section { padding: 6rem 4rem; max-width: 1400px; margin-left: auto; margin-right: auto; }
@media (max-width: 700px) { section { padding: 3.5rem 1.3rem; } }
.section-label { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--v400); margin-bottom: 1rem; font-weight: 400; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 300; color: var(--v700); line-height: 1.15; margin-bottom: 1.5rem; }

/* ── BREADCRUMBS ── */
.breadcrumbs {
  padding: 6.5rem 4rem 0; font-size: 0.78rem; color: var(--muted); display: flex;
  flex-wrap: wrap; gap: 0.4rem; align-items: center;
}
@media (max-width: 700px) { .breadcrumbs { padding: 5.2rem 1.3rem 0; } }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--v500); }
.breadcrumbs span.sep { color: var(--v300); }
.breadcrumbs span.actual { color: var(--v700); }

/* ── PÁGINAS DE TEXTO ANGOSTO (sobre-mí, cómo trabajo, contacto, proceso
   terapéutico, artículos) — se ensanchan un poco además del centrado
   universal de .page-hero de más abajo. No se aplica a hubs/listados
   porque esos ya usan el ancho completo con sus grillas. */
body.pagina-angosta section[style*="max-width:720px"],
body.pagina-angosta .relacionados-lista {
  margin-left: auto; margin-right: auto;
}
body.pagina-angosta section[style*="max-width:720px"] { max-width: 880px !important; }
body.pagina-angosta .como-trabaja { max-width: 860px; margin-left: auto; margin-right: auto; }

/* ── HERO GENÉRICO DE PÁGINA INTERNA (hubs, blog, recursos, etc.) ──
   Centrado en todas las páginas: sin esto, con el nuevo ancho máximo
   de sección (1400px), el título quedaba pegado a la izquierda con
   un espacio vacío enorme a la derecha en pantallas anchas. */
.page-hero { padding: 2rem 4rem 4rem; max-width: 900px; margin-left: auto; margin-right: auto; text-align: center; }
.page-hero .section-label, .page-hero p.lead { margin-left: auto; margin-right: auto; }
@media (max-width: 700px) { .page-hero { padding: 1.5rem 1.3rem 2.5rem; } }
.page-hero .section-label { margin-bottom: 1.2rem; }
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 300; color: var(--v700); line-height: 1.15; margin-bottom: 1.2rem; font-style: italic;
}
.page-hero p.lead { font-size: 1.15rem; line-height: 1.8; color: var(--muted); max-width: 620px; }

/* ── HOME HERO ──
   Una sola columna centrada, con el mismo ancho de página que el resto
   del sitio (no un layout de dos columnas aparte) — la cita en violeta
   va abajo como franja completa, igual que el resto de las secciones
   violeta del sitio (.cta-block). */
.hero {
  padding: 6rem 4rem 4rem; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-header { display: flex; align-items: center; gap: 1.8rem; margin-bottom: 2rem; text-align: left; }
.hero-eyebrow { font-size: 1.05rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--v400); margin-bottom: 0.7rem; font-weight: 500; }
.hero-title {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(2.8rem, 5vw, 4.6rem);
  font-weight: 300; line-height: 1.05; color: var(--v700); margin-bottom: 0.4rem; font-style: italic;
}
.hero-subtitle { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 300; color: var(--muted); margin-bottom: 0.4rem; letter-spacing: 0.02em; }
.hero-mn { font-size: 0.9rem; color: var(--v300); letter-spacing: 0.08em; }
.hero-header .hero-mn { margin-bottom: 0; }
.hero-portrait { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; display: block; flex-shrink: 0; filter: grayscale(10%); border: 3px solid var(--v200); }
.hero-desc { font-size: 1.15rem; line-height: 1.85; color: var(--muted); max-width: 720px; margin: 0 auto 2rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.hero-quote-section {
  position: relative; background: var(--v700); padding: 4.5rem 4rem; text-align: center; overflow: hidden;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.12;
  background-image: radial-gradient(circle at 30% 30%, var(--v300) 0%, transparent 50%),
                     radial-gradient(circle at 70% 70%, var(--v400) 0%, transparent 50%);
}
.hero-quote { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; }
.hero-quote p {
  font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 300;
  font-style: italic; color: white; line-height: 1.5; letter-spacing: 0.01em;
}
.hero-quote span:last-child {
  display: block; margin-top: 1.3rem; font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--v300); font-family: 'DM Sans', sans-serif; font-style: normal;
}
@media (max-width: 700px) {
  .hero { padding: 6rem 1.5rem 2.5rem; }
  .hero-header { gap: 1rem; }
  .hero-portrait { width: 96px; height: 96px; }
  .hero-quote-section { padding: 3rem 1.5rem; }
}

/* ── HUB: SEÑALES ── */
.senales-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--v200); margin-top: 2rem; }
@media (max-width: 700px) { .senales-grid { grid-template-columns: 1fr; } }
.senal-card { background: white; padding: 1.8rem 2rem; font-size: 0.92rem; line-height: 1.7; color: var(--muted); }
.senal-card::before { content: '—'; color: var(--v400); margin-right: 0.5rem; }
/* Evita celda vacía con fondo lavanda cuando hay 3 señales en una grilla de 2 columnas */
.senal-card--full { grid-column: 1 / -1; }

/* ── HUB: CÓMO SE TRABAJA ── */
.como-trabaja p { font-size: 0.95rem; line-height: 1.9; color: var(--muted); margin-bottom: 1.1rem; max-width: 680px; }
body.pagina-angosta .como-trabaja p { max-width: none; }

/* ── ARTÍCULOS RELACIONADOS (dentro de hub / recursos) ── */
.relacionados-lista { display: flex; flex-direction: column; gap: 0; margin-top: 1.5rem; max-width: 720px; }
.relacionados-item {
  display: block; padding: 1.1rem 0; border-bottom: 1px solid var(--v200);
  text-decoration: underline; text-decoration-color: var(--v200); text-underline-offset: 3px;
  color: var(--v700); font-size: 0.95rem; transition: color 0.2s, padding-left 0.2s, text-decoration-color 0.2s;
}
.relacionados-item:hover { color: var(--v500); padding-left: 0.5rem; text-decoration-color: var(--v500); }
.relacionados-item .icono-red { width: 17px; height: 17px; vertical-align: -3px; margin-right: 0.3rem; }
.relacionados-item .cat-tag { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--v400); margin-bottom: 0.3rem; }
/* Dentro de un hub, todos los artículos de "relacionados" ya son de la misma categoría: la etiqueta es redundante */
.relacionados-lista--sin-cat .cat-tag { display: none; }
.contenido-en-camino {
  border: 1px dashed var(--v300); padding: 1.6rem 1.8rem; color: var(--muted); font-size: 0.92rem;
  line-height: 1.7; margin-top: 1.5rem; max-width: 680px;
}

/* ── TEMAS RELACIONADOS (chips a otros hubs) ── */
.temas-relacionados { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }
.tema-chip {
  padding: 0.6rem 1.1rem; background: var(--v100); border: 1px solid var(--v200); color: var(--v600);
  text-decoration: none; font-size: 0.82rem; transition: background 0.2s, border-color 0.2s;
}
.tema-chip:hover { background: var(--v200); border-color: var(--v400); }

/* ── CTA BLOCK ── */
/* Estas dos secciones tienen fondo violeta de pantalla completa a propósito:
   se excluyen del ancho máximo general para que el color llegue a los bordes
   (el contenido de adentro ya tiene su propio ancho máximo centrado). */
.cta-block, .hero-quote-section { max-width: none; margin-left: 0; margin-right: 0; }
.cta-block { background: var(--v700); color: white; padding: 3.5rem 4rem; text-align: left; }
@media (max-width: 700px) { .cta-block { padding: 2.5rem 1.3rem; } }
.cta-block .section-label { color: var(--v300); }
.cta-block h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 300; margin-bottom: 0.9rem; font-style: italic; }
.cta-block p { color: var(--v200); font-size: 0.95rem; line-height: 1.7; max-width: 520px; margin-bottom: 1.8rem; }
.cta-block .cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-block .btn-primary { background: white; color: var(--v700); }
.cta-block .btn-primary:hover { background: var(--v100); }
.cta-discreto {
  border-top: 1px solid var(--v200); padding-top: 1.6rem; margin-top: 2.5rem; max-width: 680px;
}
.cta-discreto p { font-size: 0.92rem; color: var(--muted); margin-bottom: 0.9rem; }
.cta-discreto a { color: var(--v600); text-decoration: underline; font-size: 0.92rem; }

/* ── EBOOK CARD (reusado tal cual del sitio actual) ── */
.ebooks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
@media (max-width: 1000px) { .ebooks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ebooks-grid { grid-template-columns: 1fr; } }
.ebook-card { background: white; border: 1px solid var(--v200); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.ebook-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(30,14,58,0.10); }
.ebook-cover-wrap { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--v100); }
.ebook-cover { width: 100%; height: 100%; object-fit: cover; }
.ebook-tag-activo { position: absolute; top: 0.7rem; right: 0.7rem; background: var(--v600); color: white; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.6rem; }
.ebook-card-body { padding: 1.3rem 1.4rem 1.6rem; }
.ebook-cat-label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--v400); margin-bottom: 0.5rem; }
.ebook-titulo { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 500; color: var(--v700); margin-bottom: 0.4rem; line-height: 1.25; }
.ebook-subtitulo { font-size: 0.85rem; color: var(--muted); line-height: 1.5; margin-bottom: 1.1rem; }
.ebook-form-inline { display: flex; flex-direction: column; gap: 0.6rem; }
.ebook-input { padding: 0.65rem 0.8rem; border: 1px solid var(--v300); font-family: inherit; font-size: 0.85rem; background: var(--cream); }
.ebook-btn-pedir { padding: 0.7rem 1rem; background: var(--v500); color: white; border: none; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: background 0.2s; }
.ebook-btn-pedir:hover { background: var(--v600); }
.ebook-form-msg { font-size: 0.78rem; color: #c0392b; min-height: 1em; }
.ebook-ok { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.85rem; color: var(--v700); }
.ebook-ok-icon { color: var(--v500); font-size: 1.2rem; }

.recursos-categoria-titulo { font-family: 'Cormorant Garamond', serif; font-size: 1.85rem; font-weight: 400; color: var(--v700); margin: 3rem 0 0.4rem; }
.recursos-categoria-titulo:first-of-type { margin-top: 0; }
.recursos-categoria-desc { color: var(--muted); font-size: 0.9rem; max-width: 560px; margin-bottom: 0.5rem; }

/* ── CATEGORÍAS "¿QUÉ TE ESTÁ PASANDO?" (Home) ── */
.motivos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; background: var(--v200); }
@media (max-width: 900px) { .motivos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .motivos-grid { grid-template-columns: 1fr; } }
.motivo-card { background: white; padding: 2.5rem 2rem; transition: background 0.25s; text-decoration: none; display: block; cursor: pointer; }
.motivo-card:hover { background: var(--v700); }
.motivo-card:hover .motivo-num, .motivo-card:hover .motivo-title, .motivo-card:hover .motivo-desc { color: white; }
/* Evita celdas vacías con el fondo lavanda visible cuando el número de tarjetas no completa la última fila */
.motivo-card--full { grid-column: 1 / -1; }
.motivo-card--wide { grid-column: span 2; }
@media (max-width: 900px) { .motivo-card--wide { grid-column: auto; } }
.motivo-num { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--v300); display: block; margin-bottom: 1rem; }
.motivo-title { font-size: 1.12rem; font-weight: 500; color: var(--v700); margin-bottom: 0.6rem; }
.motivo-desc { font-size: 0.92rem; color: var(--muted); line-height: 1.6; }

/* ── BLOG: BUSCADOR + FILTROS ── */
.blog-buscador { position: relative; max-width: 480px; margin: 2rem 0 2.5rem; }
.blog-buscador input {
  width: 100%; padding: 0.9rem 1.2rem; border: 1px solid var(--v300); background: white;
  font-family: inherit; font-size: 0.92rem; color: var(--ink);
}
.blog-filtros-grupo { margin-bottom: 1.6rem; }
.blog-filtros-label { font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--v400); margin-bottom: 0.7rem; }
.filtro-btn {
  padding: 0.5rem 1rem; border: 1px solid var(--v300); background: white; color: var(--v600);
  font-size: 0.8rem; cursor: pointer; margin: 0 0.5rem 0.5rem 0; transition: background 0.2s, color 0.2s;
  font-family: inherit;
}
.filtro-btn:hover { border-color: var(--v500); }
.filtro-btn.activo { background: var(--v600); color: white; border-color: var(--v600); }
.filtros-wrap { display: flex; flex-wrap: wrap; }
.ver-hub-link { display: inline-block; margin-top: 0.8rem; font-size: 0.85rem; color: var(--v600); text-decoration: none; border-bottom: 1px solid var(--v400); }
.ver-hub-link:hover { color: var(--v500); }

/* ── BLOG GRID / CARDS (reusado, con toggle expandible como hoy) ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
@media (max-width: 1000px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { background: white; border: 1px solid var(--v200); padding: 1.6rem; cursor: pointer; transition: box-shadow 0.2s; }
.blog-card:hover { box-shadow: 0 8px 24px rgba(30,14,58,0.08); }
.blog-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.9rem; }
.blog-tag { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--v500); background: var(--v100); padding: 0.25rem 0.6rem; }
.blog-date { display: none; }
.blog-card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 500; color: var(--v700); margin-bottom: 0.6rem; line-height: 1.3; }
.blog-card-excerpt { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.blog-card-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; font-size: 0.9rem; line-height: 1.75; color: var(--muted); }
.blog-card.open .blog-card-body { max-height: 3000px; margin-top: 1rem; }
.blog-card-body h4 { font-family: 'Cormorant Garamond', serif; color: var(--v700); font-size: 1.05rem; margin: 1.1rem 0 0.4rem; }
.blog-closing { font-style: italic; color: var(--v600); margin-top: 1rem; }
.blog-toggle { margin-top: 1rem; background: none; border: none; color: var(--v500); font-size: 0.82rem; cursor: pointer; font-family: inherit; padding: 0; }

/* ── FOOTER ── */
footer { text-align: center; padding: 3rem 1.5rem; color: var(--muted); font-size: 0.8rem; border-top: 1px solid var(--v200); }
footer p { margin-bottom: 0.3rem; }

/* Utilidad genérica */
.container-narrow { max-width: 780px; }
.mt-lg { margin-top: 3rem; }

/* ── VOLVER ARRIBA ── */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--v500); color: white; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 90;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  box-shadow: 0 4px 16px rgba(124, 77, 184, 0.3);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.2s;
}
.back-to-top.mostrar { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--v600); }
@media (max-width: 640px) { .back-to-top { bottom: 1.2rem; right: 1.2rem; width: 2.7rem; height: 2.7rem; } }
