/*
Theme Name:   Bienestar Interno
Theme URI:    https://bienestarinterno.com
Description:  Tema hijo de Kadence para Bienestar Interno. Solo contiene lo que Kadence y Kadence Blocks no pueden expresar del diseño de Claude Code: tokens, estilos de las secciones (por clase CSS adicional de cada bloque) y animaciones.
Author:       Bienestar Interno
Template:     kadence
Version:      1.0.0
Text Domain:  bienestar-interno
*/

/* =========================================================================
   Cómo funciona
   - El Home está hecho con bloques de Kadence (Fila, Sección, Título avanzado,
     Icono, Botones, Lista de iconos, Acordeón…): su diseño se edita en el
     propio bloque, por dispositivo. Los pocos efectos que Kadence no trae
     (mezcla de los círculos, relieves, movimientos al pasar el cursor…) están
     en assets/bloques.css, cada uno ligado a una clase "bi-…" del bloque.
   - Animación de aparición: clase "rv" (+ "rv-d120" = 120 ms de retraso).
   - Este archivo: Blog, artículos, Sobre nosotros, header y footer.
   Orden: 1 Tokens · 2 Base · 3 Animaciones · 4 Header · 5 Footer
          · 6 Componentes · 7 Tarjeta del ebook · 9 Blog …
   Breakpoints del diseño: 640 · 760 · 900 · 960 · 1024 · 1100 px
   ========================================================================= */

/* 1 · TOKENS ------------------------------------------------------------ */
:root {
  --cream: #F4F1E1;
  --sand: #E9EBDC;
  --stone: #FCFBF6;
  --sage: #DCE4D5;
  --olive: #4F7A5C;
  --forest: #28392E;
  --ink-soft: #4D5A4E;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Work Sans', sans-serif;
  --mono: ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);

  --stripes: repeating-linear-gradient(135deg, rgba(40,57,46,.07) 0 1px, transparent 1px 11px);
  --lead-size: clamp(1.07rem, 1.5vw, 1.1875rem);
}

/* 2 · BASE -------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; background: var(--cream); }
body.bi {
  margin: 0;
  background: var(--cream);
  color: var(--forest);
  font: 400 1.0625rem/1.65 "Work Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.bi #wrapper { overflow: visible; }
.bi a { color: var(--forest); }
.bi a:hover { color: var(--olive); }
.bi :focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  .bi *, .bi *::before, .bi *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}

/* Página construida con bloques a todo el ancho (Home): sin márgenes de Kadence */
#inner-wrap .single-content { margin: 0; }
#inner-wrap .single-content :where(h1,h2,h3,h4,p,ul,ol,li,blockquote,figure,.wp-block-group,.wp-block-cover,.wp-block-kadence-advancedbtn,.wp-block-kadence-accordion,.wp-block-image,.wp-block-spacer,.wp-block-quote):where(:not(.kb-row-layout-wrap *, #blog-areas *)) { margin: 0; }
#inner-wrap .single-content :where(ul,ol):where(:not(.kb-row-layout-wrap *, #blog-areas *)) { padding: 0; list-style: none; }
/* Dentro de las Filas de Kadence manda el ajuste de cada bloque (margen por dispositivo) */
:where(#inner-wrap .single-content .kb-row-layout-wrap) :where(h1,h2,h3,h4,p,ul,ol,li,figure,.wp-block-kadence-advancedbtn,.wp-block-kadence-accordion,.wp-block-kadence-image) { margin: 0; }
#inner-wrap .single-content :where(h1,h2,h3,h4):where(:not(.kb-row-layout-wrap *)) { color: inherit; }
#inner-wrap .single-content .wp-block-spacer { clear: none; }
/* Plantilla de artículo (single-post.php) */
#inner-wrap .bi-tpl :where(h1,h2,h3,h4,p,ul,ol,li,blockquote,figure,.wp-block-group,.wp-block-image,.wp-block-quote) { margin: 0; }
#inner-wrap .bi-tpl :where(ul,ol) { padding: 0; list-style: none; }
html:has(> body.single-post) { scroll-padding-top: 6rem; }
html:has(> body.page-sobre) { scroll-padding-top: 0; }

#inner-wrap .container { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
#inner-wrap .icon { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }

/* 3 · ANIMACIONES DE APARICIÓN AL HACER SCROLL --------------------------
   html.bi-anim lo pone un script en <head> solo si el navegador admite la
   animación y el usuario no pidió "reducir movimiento". assets/bi.js añade
   .is-in cuando el elemento entra en pantalla. */
body.bi { --rv-y: 16px; --rv-o: .9s; --rv-t: 1s; }
body.single-post { --rv-y: 14px; --rv-o: .8s; --rv-t: .9s; }
.bi-anim #inner-wrap :is(.rv, .art-body > *) {
  opacity: 0;
  transform: translateY(var(--rv-y));
  transition: opacity var(--rv-o) var(--ease) var(--d, 0ms), transform var(--rv-t) var(--ease) var(--d, 0ms);
}
.bi-anim #inner-wrap :is(.rv, .art-body > *).is-in { opacity: 1; transform: none; }

/* 4 · HEADER (Kadence Header Builder) ----------------------------------- */
#masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(244,241,225,0);
  border-bottom: 1px solid rgba(40,57,46,0);
  box-shadow: none;
  transition: background-color .45s ease, border-color .45s ease, box-shadow .45s ease;
}
.admin-bar #masthead { top: var(--wp-admin--admin-bar--height, 32px); }
#masthead .site-header-row-container-inner,
#masthead .site-main-header-wrap .site-header-row-container-inner { background: transparent; }
/* Estado "sólido" (al hacer scroll o con el menú móvil abierto) */
#masthead.is-scrolled,
.showing-popup-drawer-from-right #masthead,
.showing-popup-drawer-from-left #masthead {
  background: rgba(244,241,225,.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: rgba(40,57,46,.1);
  box-shadow: 0 12px 30px -26px rgba(40,57,46,.35);
}
/* Home: cristal más translúcido y sin sombra */
.home #masthead.is-scrolled,
.home.showing-popup-drawer-from-right #masthead,
.home.showing-popup-drawer-from-left #masthead {
  background: rgba(244,241,225,.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border-bottom-color: rgba(40,57,46,.07);
  box-shadow: none;
}
/* Barra de progreso de lectura (solo artículo) */
#masthead .read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
#masthead .read-progress__bar { height: 100%; width: 100%; background: linear-gradient(90deg, var(--olive), var(--forest)); transform-origin: left center; transform: scaleX(0); }
/* Fila del header: misma caja que el diseño (72 px, contenedor 1180) */
#masthead .site-container { max-width: none; width: min(1180px, calc(100% - 3rem)); margin-inline: auto; padding: 0; }
#masthead { height: 4.5rem; }
#masthead .site-main-header-inner-wrap { min-height: calc(4.5rem - 1px); height: calc(4.5rem - 1px); gap: 2rem; }
/* Marca */
#masthead .site-branding { padding: 0; }
#masthead .site-branding a.brand { color: var(--forest); text-decoration: none; }
#masthead .site-title,
#masthead .site-branding .site-title {
  margin: 0; font: 500 1.45rem/1 var(--serif); letter-spacing: -.01em;
  color: var(--forest); white-space: nowrap;
}
/* Navegación de escritorio */
#masthead .header-navigation .menu { gap: clamp(1.5rem, 3vw, 2.5rem); }
#masthead .header-navigation .menu > li { margin: 0; padding: 0; }
#masthead .header-navigation .menu > li > a {
  padding: .6rem 0; font: 500 .95rem/1 var(--sans); color: var(--ink-soft); text-decoration: none;
  border-bottom: 2px solid transparent; transition: none;
}
.home #masthead .header-navigation .menu > li > a { transition: color .3s, border-color .3s; }
#masthead .header-navigation .menu > li > a:hover { color: var(--forest); }
#masthead .header-navigation .menu > li > a .dropdown-nav-toggle { display: none !important; }
#masthead .header-navigation .menu > li > a .nav-drop-title-wrap { padding-right: 0; }
#masthead .header-navigation .menu > li.menu-item-has-children > a { padding-right: 0; }
/* Enlace activo: en el Home lo marca el script (sección visible);
   en el resto de páginas, la página actual */
#masthead .header-navigation .menu > li > a.is-active,
body:not(.home) #masthead .header-navigation .menu > li:is(.current-menu-item, .current_page_item, .current-menu-ancestor, .current_page_parent) > a {
  color: var(--forest); border-bottom-color: var(--olive);
}
.home #masthead .header-navigation .menu > li:is(.current-menu-item, .current_page_item) > a:not(.is-active) { color: var(--ink-soft); border-bottom-color: transparent; }
.home #masthead .header-navigation .menu > li:is(.current-menu-item, .current_page_item) > a:not(.is-active):hover { color: var(--forest); }
body:not(.home) #masthead .header-navigation .menu > li:is(.current-menu-item, .current_page_item, .current_page_parent) > a:hover { color: var(--olive); }

/* Desplegable de categorías del blog */
#masthead .header-navigation .menu > li.menu-item-has-children { position: relative; display: flex; }
#masthead .header-navigation ul.sub-menu {
  position: absolute; top: 100%; left: 50% !important; right: auto;
  display: flex; flex-direction: column; gap: .15rem;
  width: max-content; min-width: 16rem; padding: .5rem; margin-top: .85rem;
  background: var(--sand); border: 1px solid rgba(79,122,92,.22); border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(244,241,225,.8), 0 18px 40px -24px rgba(40,57,46,.42);
  opacity: 0; visibility: hidden; clip: auto; height: auto; overflow: visible;
  transform: translate(-50%, -6px);
  transition: opacity .25s ease .14s, transform .3s var(--ease) .14s, visibility .25s .14s;
}
/* Puente invisible para que el puntero llegue al panel sin cerrarlo */
#masthead .header-navigation ul.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -.85rem; height: .85rem; }
#masthead .header-navigation .menu > li.menu-item-has-children:hover > ul.sub-menu,
#masthead .header-navigation .menu > li.menu-item-has-children:focus-within > ul.sub-menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s;
}
#masthead .header-navigation .menu > li.menu-item-has-children.is-dismissed > ul.sub-menu { opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition-delay: 0s; }
#masthead .header-navigation ul.sub-menu li { margin: 0; border: 0; }
#masthead .header-navigation ul.sub-menu li a {
  display: flex; align-items: center; width: auto; min-height: 2.85rem; padding: .6rem .95rem;
  border: 0; border-radius: 12px; background: transparent;
  font: 500 .93rem/1.3 var(--sans); color: var(--forest); text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease;
}
#masthead .header-navigation ul.sub-menu li a:hover { background: var(--sage); color: var(--forest); }

/* Botón hamburguesa (< 900 px) */
#masthead .menu-toggle-open {
  position: relative; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  border: 1.5px solid rgba(40,57,46,.18); border-radius: 12px;
  background: transparent; color: var(--forest); cursor: pointer; box-shadow: none;
}
#masthead .menu-toggle-open:hover, #masthead .menu-toggle-open:focus { background: transparent; color: var(--forest); }
/* En pantallas muy estrechas el botón se comprime como en el diseño */
#mobile-header .site-header-main-section-right,
#mobile-header .site-header-item-navgation-popup-toggle,
#mobile-header .mobile-toggle-open-container { min-width: 0; flex-shrink: 1; }
#mobile-header .menu-toggle-open { max-width: 100%; }
#masthead .menu-toggle-open .menu-toggle-icon { display: none; }
#masthead .menu-toggle-open::before,
#masthead .menu-toggle-open::after {
  content: ""; grid-area: 1 / 1; width: 1.4rem; height: 1.4rem; background: currentColor;
  -webkit-mask: var(--m) center / 100% no-repeat; mask: var(--m) center / 100% no-repeat;
  transition: opacity .25s ease, transform .3s var(--ease);
}
#masthead .menu-toggle-open::before { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E"); }
#masthead .menu-toggle-open::after { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); opacity: 0; transform: rotate(-45deg); }
#masthead .menu-toggle-open[aria-expanded="true"]::before { opacity: 0; transform: rotate(45deg); }
#masthead .menu-toggle-open[aria-expanded="true"]::after { opacity: 1; transform: none; }

/* Escritorio a partir de 900 px (Kadence cambia a 1024 px por defecto) */
@media (min-width: 900px) {
  #main-header { display: block !important; }
  #mobile-header { display: none !important; }
  #mobile-drawer { display: none !important; }
}

/* Panel del menú móvil: tarjeta flotante bajo el header */
body.bi[class*="showing-popup-drawer-"] { overflow: visible; padding-right: 0 !important; }
#mobile-drawer.popup-drawer { z-index: 49; }
#mobile-drawer .drawer-overlay { background: transparent; }
#mobile-drawer .drawer-inner {
  position: fixed; inset: auto; top: calc(4.5rem - 1px + .6rem); right: 1.5rem; left: auto; bottom: auto;
  width: min(calc(100% - 3rem), 22rem); max-width: none; height: auto;
  max-height: calc(100dvh - 4.5rem - 1.2rem); overflow-y: auto; overscroll-behavior: contain;
  background: var(--sand); color: var(--forest);
  border: 1.5px solid rgba(40,57,46,.1); border-radius: 20px;
  box-shadow: 0 20px 44px -26px rgba(40,57,46,.32);
  opacity: 0; transform: translateY(-6px); visibility: hidden;
  transition: opacity .25s ease, transform .3s var(--ease), visibility .25s;
}
.admin-bar #mobile-drawer .drawer-inner { top: calc(var(--wp-admin--admin-bar--height, 46px) + 4.5rem - 1px + .6rem); }
#mobile-drawer.show-drawer.active .drawer-inner { opacity: 1; transform: none; visibility: visible; }
#mobile-drawer .drawer-header { display: none; }
#mobile-drawer .drawer-content { padding: .5rem; }
#mobile-drawer .mobile-navigation ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .1rem; }
#mobile-drawer .mobile-navigation ul li { margin: 0; border: 0; }
#mobile-drawer .mobile-navigation .drawer-nav-drop-wrap,
#mobile-drawer .mobile-navigation ul li > a { border: 0; }
#mobile-drawer .mobile-navigation ul li > a,
#mobile-drawer .mobile-navigation ul li .drawer-nav-drop-wrap > a {
  display: flex; align-items: center; width: 100%; min-height: 3.25rem; padding: 0 1rem;
  border-radius: 14px; font: 500 1.05rem/1.2 var(--sans); color: var(--forest); text-decoration: none;
  background: transparent;
}
#mobile-drawer .mobile-navigation ul li > a:hover,
#mobile-drawer .mobile-navigation ul li .drawer-nav-drop-wrap > a:hover { background: var(--sage); color: var(--forest); }
#mobile-drawer .mobile-navigation .drawer-sub-toggle { display: none; }
#mobile-drawer .mobile-navigation ul.sub-menu { display: flex !important; margin: 0; padding: .1rem 0 0; gap: .1rem; }
#mobile-drawer .mobile-navigation ul.sub-menu li > a {
  min-height: 2.75rem; padding: 0 1rem 0 2rem; border-radius: 12px;
  font: 500 .95rem/1.25 var(--sans); color: var(--ink-soft);
}
#mobile-drawer .mobile-navigation ul.sub-menu li > a:hover { background: var(--sage); color: var(--forest); }
/* Página actual (fuera del Home): punto y negrita, como en el diseño */
body:not(.home) #mobile-drawer .mobile-navigation .menu > li:is(.current-menu-item, .current_page_item, .current_page_parent) > a,
body:not(.home) #mobile-drawer .mobile-navigation .menu > li:is(.current-menu-item, .current_page_item, .current_page_parent) > .drawer-nav-drop-wrap > a { gap: .65rem; font-weight: 600; }
body:not(.home) #mobile-drawer .mobile-navigation .menu > li:is(.current-menu-item, .current_page_item, .current_page_parent) > a::before,
body:not(.home) #mobile-drawer .mobile-navigation .menu > li:is(.current-menu-item, .current_page_item, .current_page_parent) > .drawer-nav-drop-wrap > a::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--olive); }

/* 5 · FOOTER (Kadence Footer Builder) ----------------------------------- */
#colophon { background: var(--forest); color: var(--cream); }
#colophon .site-footer-row-container-inner { background: transparent; border: 0; }
#colophon .site-container { max-width: none; width: min(1180px, calc(100% - 3rem)); margin-inline: auto; padding: 0; }
#colophon .site-top-footer-wrap .site-footer-row-container-inner { padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
#colophon .site-bottom-footer-wrap .site-footer-row-container-inner { padding: clamp(2.5rem, 5vw, 3rem) 0 clamp(1.75rem, 4vw, 2.25rem); }
#colophon .site-footer-row {
  display: flex; flex-wrap: wrap; gap: 2rem 3rem; justify-content: space-between; align-items: flex-start;
}
#colophon .site-bottom-footer-inner-wrap {
  border-top: 1px solid rgba(244,241,225,.16); padding-top: 1.5rem;
  gap: 1rem 2rem; align-items: center; font-size: .85rem;
}
#colophon .site-top-footer-inner-wrap { padding: 0; min-height: 0; }
#colophon .site-bottom-footer-inner-wrap { padding-bottom: 0; min-height: 0; }
#colophon .site-footer-section { flex: 0 1 auto; display: block; }
#colophon .footer-widget-area-inner, #colophon .site-footer-section .widget { margin: 0; }
#colophon .widget p { margin: 0; }
#colophon .footer__brand { font: 500 1.35rem/1 var(--serif); color: var(--cream); }
#colophon .widget p.footer__tagline { margin-top: .5rem; font-size: .92rem; line-height: 1.65; color: var(--cream); }
#colophon .footer-navigation .menu { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 0; padding: 0; }
#colophon .footer-navigation .menu > li { margin: 0; }
#colophon #footer-navigation .menu > li > a { padding: 0; font: 500 .95rem/1 var(--sans); color: var(--cream); text-decoration: none; }
#colophon #footer-navigation .menu > li > a:hover { color: var(--sage); }
#colophon .footer__legal { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin: 0; padding: 0; list-style: none; font-size: .85rem; line-height: 1.65; }
#colophon .footer__legal li { margin: 0; padding: 0; line-height: 1.65; }
#colophon #footer-navigation .menu { justify-content: flex-start; }
#colophon .footer__legal a { color: var(--cream); text-decoration: none; }
#colophon .footer__legal a:hover { color: var(--cream); text-decoration: underline; }
#colophon .footer-html, #colophon .footer-html p { margin: 0; font-size: .85rem; line-height: 1.65; color: var(--cream); }
/* Contacto y redes (bajo la marca): correo en texto discreto + iconos circulares de contorno */
#colophon .footer__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.25rem; }
#colophon .footer__mail { font: 400 .92rem/1.65 var(--sans); color: var(--cream); text-decoration: none; transition: color .25s ease; }
#colophon .footer__mail:hover { color: var(--cream); text-decoration: underline; }
#colophon .footer__social { display: flex; gap: .75rem; margin: 0; padding: 0; list-style: none; }
#colophon .footer__social li { margin: 0; padding: 0; }
#colophon .footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid rgba(244,241,225,.3); border-radius: 50%; color: var(--cream); text-decoration: none; transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
#colophon .footer__social a:hover { background: rgba(244,241,225,.12); border-color: var(--cream); color: var(--cream); }
#colophon .footer__social svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 6 · COMPONENTES ------------------------------------------------------- */
#inner-wrap .bg-cream { background: var(--cream); }
#inner-wrap .bg-sand { background: var(--sand); }
#inner-wrap .bg-stone { background: var(--stone); }
#inner-wrap .bg-sage { background: var(--sage); }
#inner-wrap .section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }

/* Botón principal (Kadence Blocks · Botón, clase "btn") */
#inner-wrap a.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1.05rem 1.8rem; border: 0; border-radius: 999px;
  background: var(--forest); color: var(--cream); box-shadow: none;
  font: 600 1rem/1 var(--sans); letter-spacing: normal; text-transform: none; text-decoration: none; text-align: start;
  transition: background-color .3s, transform .3s, gap .3s;
}
#inner-wrap a.kb-button.btn::after { content: "→"; content: "→" / ""; }
#inner-wrap a.kb-button.btn::before { display: none; }
#inner-wrap a.btn:hover { background: var(--olive); color: var(--cream); transform: translateY(-2px); gap: .9rem; }
#inner-wrap a.kb-button.btn .kt-btn-inner-text { padding: 0; }
#inner-wrap a.btn--lg {
  padding: 1.1rem 1.9rem; line-height: 1.2;
  box-shadow: 0 14px 28px -18px rgba(40,57,46,.55);
  transition: background-color .3s, transform .3s, gap .3s, box-shadow .3s;
}
#inner-wrap a.btn--lg:hover { box-shadow: 0 20px 34px -18px rgba(40,57,46,.55); }

/* Etiquetas superiores */
#inner-wrap .pill {
  display: inline-flex; align-items: center; margin-bottom: 1.1rem; padding: .5rem .9rem;
  border-radius: 999px; background: rgba(79,122,92,.08); border: 1px solid rgba(79,122,92,.24);
  box-shadow: inset 0 1px 0 rgba(244,241,225,.55), 0 4px 10px -8px rgba(40,57,46,.35);
  font: 600 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--olive);
}

/* Titulares y textos de sección */
#inner-wrap .section-head { margin-inline: auto; text-align: center; }
#inner-wrap .title { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; text-wrap: balance; }
#inner-wrap .lead { font-size: var(--lead-size); line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }



/* 7 · TARJETA DEL EBOOK (bloque reutilizado en los artículos) ----------- */
#inner-wrap .ebook-card {
  display: grid; grid-template-columns: minmax(0,1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
  padding: clamp(1.75rem, 5vw, 4rem);
  background: linear-gradient(160deg, rgba(79,122,92,.09) 0%, rgba(79,122,92,.035) 100%);
  border: 1px solid rgba(79,122,92,.32); border-radius: 28px;
  box-shadow: inset 0 1px 0 rgba(244,241,225,.7), 0 2px 6px -3px rgba(40,57,46,.14), 0 30px 60px -38px rgba(40,57,46,.5);
}
#inner-wrap .ebook-card__text { order: 1; min-width: 0; }
#inner-wrap .ebook-card__title { font: 400 clamp(2rem, 3.6vw, 2.9rem)/1.1 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
#inner-wrap .ebook-card__desc { margin-top: 1.1rem; font-size: 1.05rem; line-height: 1.65; color: var(--ink-soft); max-width: 36em; text-wrap: pretty; }
#inner-wrap .ebook-card__list { margin-top: 1.6rem; display: grid; grid-template-columns: minmax(0,1fr); gap: .35rem 1.75rem; }
#inner-wrap .ebook-card__list li {
  position: relative; display: flex; gap: .75rem; align-items: flex-start; margin: 0 -.7rem; padding: .6rem .7rem;
  border-radius: 12px; font-size: .98rem; line-height: 1.5; color: var(--forest);
  transition: background-color .3s ease, transform .3s ease;
}
#inner-wrap .ebook-card__list li:hover { background: rgba(79,122,92,.1); transform: translateX(3px); }
/* Círculo del check (::before) y check (::after) */
#inner-wrap .ebook-card__list li::before {
  content: ""; flex: none; width: 1.45rem; height: 1.45rem; margin-top: .05rem;
  border-radius: 50%; background: var(--sage); box-shadow: inset 0 0 0 1px rgba(79,122,92,.3);
}
#inner-wrap .ebook-card__list li::after {
  content: ""; position: absolute; left: calc(.7rem + .325rem); top: calc(.6rem + .05rem + .325rem); width: .8rem; height: .8rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23576D3A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4 4 9-9'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.bi-anim #inner-wrap .rv-draw > li::after { clip-path: inset(0 100% 0 0); transition: clip-path .8s var(--ease) var(--d, 0ms); }
.bi-anim #inner-wrap .rv-draw > li.is-in::after { clip-path: inset(0 0 0 0); }
#inner-wrap .rv-draw > li:nth-child(1) { --d: 450ms; }
#inner-wrap .rv-draw > li:nth-child(2) { --d: 670ms; }
#inner-wrap .rv-draw > li:nth-child(3) { --d: 890ms; }
#inner-wrap .rv-draw > li:nth-child(4) { --d: 1110ms; }
#inner-wrap .ebook-card__cta { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid rgba(79,122,92,.22); display: flex; justify-content: center; }
#inner-wrap .ebook-mock { position: relative; justify-self: center; width: min(100%, 13rem); order: 0; }
#inner-wrap .ebook-mock::before { content: ""; position: absolute; left: 6%; right: 6%; top: 12%; bottom: 6%; border-radius: 50%; background: var(--sage); opacity: .9; }
#inner-wrap .ebook-mock::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -.9rem; height: 2.2rem; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(40,57,46,.55) 0%, rgba(40,57,46,.26) 38%, rgba(40,57,46,0) 70%);
  filter: blur(3px);
}
#inner-wrap .ebook-mock .wp-block-image { position: relative; z-index: 1; }
#inner-wrap .ebook-mock img {
  position: relative; display: block; width: 100%; height: auto;
  filter: drop-shadow(0 1px 1px rgba(40,57,46,.35)) drop-shadow(0 4px 6px rgba(40,57,46,.22)) drop-shadow(0 14px 16px rgba(40,57,46,.22));
  transform: perspective(1100px) rotateY(-4deg);
}
/* La sombra queda delante del círculo y detrás de la portada, como en el diseño */
#inner-wrap .ebook-mock::after { z-index: 0; }
@media (min-width: 640px) {
  #inner-wrap .ebook-card__list { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 900px) {
  #inner-wrap .ebook-card { grid-template-columns: minmax(0,1.35fr) minmax(0,.65fr); }
  #inner-wrap .ebook-card__text { order: 0; }
  #inner-wrap .ebook-mock { order: 1; width: min(100%, 19rem); }
}

/* =========================================================================
   9 · ETIQUETA EN MAYÚSCULAS (plantilla de artículo). Blog: assets/blog.css
   ========================================================================= */
#inner-wrap .kicker {
  display: block; margin-bottom: 1.1rem;
  font: 600 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--olive);
}

/* =========================================================================
   10 · ARTÍCULO (plantilla single-post.php: igual para todas las entradas)
   ========================================================================= */
/* Contenido del artículo (párrafos, H2, listas, cajas, citas…): assets/articulo.css
   Tamaños y espacios marcados con var(--bi-…): Apariencia › Personalizar › Bienestar Interno */
#inner-wrap .art-top { position: relative; background: var(--bi-art_head_bg, #DCE4D5); }
#inner-wrap .art-top .photo-veil { position: absolute; inset: 0; background: url('/wp-content/uploads/2026/10/hero-yoga.jpg') center 62%/cover no-repeat; opacity: .11; }
#inner-wrap .art-header { position: relative; overflow: hidden; background: transparent; padding: var(--bi-art_head_top, 144px) 0 var(--bi-art_head_bottom, 56px); }
#inner-wrap .art-header__inner { position: relative; max-width: 52rem; text-align: center; }
#inner-wrap .crumbs { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; font: 500 .85rem/1.3 var(--sans); color: var(--ink-soft); }
#inner-wrap .crumbs a { color: var(--ink-soft); text-decoration: none; }
#inner-wrap .crumbs a:hover { color: var(--forest); text-decoration: underline; }
#inner-wrap .crumbs span { color: var(--olive); }
#inner-wrap .crumbs a.crumbs__cat { color: var(--olive); font-weight: 600; }
#inner-wrap .crumbs a.crumbs__cat:hover { color: var(--forest); }
#inner-wrap .art-header h1 { color: var(--forest); margin-top: 1.4rem; font: 400 var(--bi-art_title, 59.2px)/1.08 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
#inner-wrap .art-header__excerpt { margin: 1.4rem auto 0; font-size: var(--bi-art_excerpt, 19.2px); line-height: 1.6; color: var(--ink-soft); max-width: 34em; text-wrap: pretty; }
#inner-wrap .art-header__meta { margin-top: 1.4rem; display: inline-flex; align-items: center; gap: .5rem; font: 500 .85rem/1 var(--sans); color: var(--ink-soft); }
#inner-wrap .art-header__meta svg { width: 1rem; height: 1rem; fill: none; stroke: var(--olive); stroke-width: 1.6; stroke-linecap: round; }
#inner-wrap .art-cover-wrap { position: relative; background: linear-gradient(180deg, transparent 50%, var(--cream) 50%); }
#inner-wrap .art-cover-wrap > div { width: min(50rem, calc(100% - 3rem)); margin-inline: auto; }
#inner-wrap .art-cover {
  aspect-ratio: 4/3; border-radius: 24px; position: relative; overflow: hidden;
  background-color: var(--sand); background-image: var(--stripes);
  display: flex; align-items: flex-end; padding: 1.25rem;
  box-shadow: 0 26px 50px -36px rgba(40,57,46,.45);
}
#inner-wrap .art-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
#inner-wrap .art-cover .ph-label { font-size: .72rem; padding: .35rem .6rem; }
@media (min-width: 700px) { #inner-wrap .art-cover { aspect-ratio: 16/9; } }

#inner-wrap .art-cover-wrap { background: linear-gradient(180deg, transparent 50%, var(--bi-art_bg, #F4F1E1) 50%); }
#inner-wrap .art-content { background: var(--bi-art_bg, #F4F1E1); padding-block: var(--bi-art_content_top, 80px) var(--bi-art_content_bottom, 96px); }
#inner-wrap .art-layout { display: grid; grid-template-columns: minmax(0, var(--bi-art_width, 704px)); justify-content: center; gap: clamp(3rem, 6vw, 5.5rem); align-items: start; }
#inner-wrap .art-body { min-width: 0; }
#inner-wrap .art-toc { display: none; }
@media (min-width: 1100px) {
  #inner-wrap .art-layout { grid-template-columns: minmax(0, var(--bi-art_width, 704px)) 15rem; }
  #inner-wrap .art-toc { display: block; position: sticky; top: 7rem; }
}

/* CTA al final del artículo */
#inner-wrap .art-cta-ebook {
  margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: minmax(0,1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem); align-items: center; padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--sage); border: 1px solid rgba(79,122,92,.2); border-radius: 28px;
  box-shadow: 0 22px 44px -32px rgba(40,57,46,.45);
}
#inner-wrap .art-cta-ebook img { display: block; width: min(100%, 9rem); height: auto; justify-self: center; filter: drop-shadow(0 16px 20px rgba(40,57,46,.28)); }
#inner-wrap .art-cta-ebook__text { text-align: center; }
@media (min-width: 640px) {
  #inner-wrap .art-cta-ebook { grid-template-columns: 9rem minmax(0,1fr); }
  #inner-wrap .art-cta-ebook__text { text-align: left; }
}
#inner-wrap .art-cta__kicker { display: block; margin-bottom: .8rem; font: 600 .76rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--olive); }
#inner-wrap .art-cta__title { font: 400 clamp(1.4rem, 2.4vw, 1.75rem)/1.2 var(--serif); letter-spacing: -.015em; text-wrap: balance; color: var(--forest); }
#inner-wrap .art-cta__desc { margin-top: .7rem; font-size: 1rem; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
#inner-wrap .art-cta__btn { margin-top: 1.4rem; }
#inner-wrap .art-cta-neutral {
  margin-top: clamp(3rem, 6vw, 4.5rem); text-align: center;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  background: var(--sand); border: 1px solid rgba(40,57,46,.1); border-radius: 28px;
  box-shadow: 0 22px 44px -32px rgba(40,57,46,.4);
}
#inner-wrap .art-cta-neutral .art-cta__title { line-height: 1.25; max-width: 22em; margin-inline: auto; }
#inner-wrap .art-cta-neutral__row { margin-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 1.5rem; }
#inner-wrap .art-cta-neutral__link { font: 600 .95rem/1.3 var(--sans); color: var(--forest); text-decoration: underline; text-decoration-color: var(--olive); text-underline-offset: 5px; }
#inner-wrap .art-cta-neutral__link:hover { color: var(--olive); }

/* Anterior / siguiente */
#inner-wrap .art-pager { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: minmax(0,1fr); gap: 1rem; }
@media (min-width: 640px) {
  #inner-wrap .art-pager { grid-template-columns: repeat(2, minmax(0,1fr)); }
  #inner-wrap .art-pager__link--next:only-child { grid-column: 2; }
}
#inner-wrap .art-pager__link {
  display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem 1.4rem; border-radius: 20px;
  border: 1px solid rgba(40,57,46,.12); background: var(--sand); color: var(--forest); text-decoration: none;
  transition: transform .4s var(--ease), border-color .4s ease;
}
#inner-wrap .art-pager__link:hover { transform: translateY(-3px); border-color: rgba(79,122,92,.35); color: var(--forest); }
#inner-wrap .art-pager__link--next { text-align: right; }
#inner-wrap .art-pager__label { font: 600 .74rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--olive); }
#inner-wrap .art-pager__title { color: var(--forest); font: 400 1.05rem/1.35 var(--serif); text-wrap: balance; }

/* Índice lateral */
#inner-wrap .art-toc__label { font: 600 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--olive); }
#inner-wrap .art-toc ol { list-style: none; padding: 0; margin-top: 1.1rem; display: flex; flex-direction: column; border-left: 1px solid rgba(40,57,46,.14); }
#inner-wrap .art-toc ol a {
  display: block; margin-left: -1px; padding: .5rem 0 .5rem 1rem; border-left: 2px solid transparent;
  font: 400 .92rem/1.4 var(--sans); color: var(--ink-soft); text-decoration: none;
  transition: color .3s, border-color .3s;
}
#inner-wrap .art-toc ol a:hover { color: var(--forest); }
#inner-wrap .art-toc ol a.is-active { border-left-color: var(--olive); font-weight: 600; color: var(--forest); }
#inner-wrap .art-toc__cat {
  margin-top: 2rem; display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; border-radius: 18px;
  background: var(--sand); border: 1px solid rgba(40,57,46,.1); color: var(--forest); text-decoration: none;
  transition: transform .35s var(--ease), border-color .35s;
}
#inner-wrap .art-toc__cat:hover { transform: translateY(-2px); border-color: rgba(79,122,92,.35); color: var(--forest); }
#inner-wrap .art-toc__cat-icon { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--sage); }
#inner-wrap .art-toc__cat-icon svg { width: 1.15rem; height: 1.15rem; stroke: var(--forest); stroke-width: 1.5; }
#inner-wrap .art-toc__cat span:last-child { font: 500 .9rem/1.35 var(--sans); }

/* Artículos relacionados */
#inner-wrap .related { background: var(--bi-rel_bg, #DCE4D5); padding-block: clamp(4rem, 8vw, 6rem); }
#inner-wrap .related .kicker { margin-bottom: 1rem; }
#inner-wrap .related__title { font: 400 var(--bi-rel_title, 40px)/1.15 var(--serif); letter-spacing: -.02em; text-wrap: balance; color: var(--forest); }
#inner-wrap .related .post-grid { margin-top: clamp(2.25rem, 4vw, 3rem); }
#inner-wrap .related .post-card__body { gap: .6rem; padding: 1.4rem 1.5rem 1.55rem; }
#inner-wrap .related .post-card__cat { font: 600 .72rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--olive); }
#inner-wrap .related .post-card__title { font-size: 1.22rem; line-height: 1.3; }
