/* Navigation, footer and reading refresh. Loaded after style.css. */

/* ---------- header: four grouped entries, search popover ---------- */
.site-header__inner { gap: 1rem; }

@media (min-width: 960px) {
  .site-header__inner { display: flex !important; justify-content: space-between; }
  .site-header__brand { margin-right: 0; flex: 1 1 0; }
  .site-nav { flex: 0 0 auto; }
  .site-header__cta { flex: 0 0 auto; }
}
@media (min-width: 960px) and (max-width: 1099px) {
  .site-nav__link { padding-inline: .75rem; }
  .site-header__cta { padding-inline: 1rem; font-size: .9rem; }
}

.site-nav__dropdown--mega {
  display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: .25rem 1rem;
  min-width: 520px; padding: .75rem;
}
.site-nav__label {
  margin: .35rem .875rem .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255, 255, 255, .45);
}
.site-nav__dropdown--mega > div:first-child a:first-of-type { color: #fff; font-weight: 650; }

/* mobile menu: collapsible groups, search first */
.site-mobile-nav .site-search--mobile { margin: .75rem 0 .5rem; padding-left: 1rem; }
details.site-mobile-nav__group > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.site-mobile-nav__group > summary::-webkit-details-marker { display: none; }
details.site-mobile-nav__group > summary::after { content: "▾"; font-size: .8em; opacity: .6; transition: transform .15s ease; }
details.site-mobile-nav__group[open] > summary::after { transform: rotate(180deg); }
details.site-mobile-nav__group[open] > summary { border-bottom: 0; }
details.site-mobile-nav__group:not([open]) > .site-mobile-nav__sub { display: none; }

/* ---------- footer ---------- */
.site-footer__ebook {
  display: grid; gap: 1.25rem; align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem); padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px;
  background: linear-gradient(120deg, rgba(233, 90, 42, .16), rgba(255, 255, 255, .03) 60%);
}
.site-footer__ebook .eyebrow { margin-bottom: .4rem; color: var(--accent); }
.site-footer__ebook-title {
  margin: 0 0 .5rem; font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 750; line-height: 1.15; color: #fff;
}
.site-footer__ebook p:last-child { margin: 0; color: rgba(255, 255, 255, .7); max-width: 60ch; }
.site-footer .site-footer__ebook .btn { color: #fff; justify-self: start; }
@media (min-width: 760px) { .site-footer__ebook { grid-template-columns: 1fr auto; } }
.site-footer__contact { margin-top: 1.25rem; }
@media (min-width: 760px) and (max-width: 1023px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- article: breadcrumb, contents ---------- */
.post-hero__crumb .breadcrumb ol { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.post-hero__crumb .breadcrumb li { color: rgba(255, 255, 255, .55); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-hero__crumb .breadcrumb li + li::before { content: "/"; margin-right: .35rem; color: rgba(255, 255, 255, .3); }
.post-hero__crumb .breadcrumb a { color: var(--accent); font-weight: 600; }
.post-hero__crumb .breadcrumb a:hover { text-decoration: underline; }

.prose h2[id] { scroll-margin-top: 96px; }
.post-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: .15rem; }
.post-toc li { counter-increment: toc; }
.post-toc a {
  display: grid; grid-template-columns: 2rem 1fr; padding: .4rem .5rem; border-radius: 6px;
  color: var(--ink-2); font-size: .93rem; line-height: 1.4;
}
.post-toc a::before { content: counter(toc) "."; color: var(--accent); font-weight: 700; }
.post-toc a:hover { background: var(--accent-soft); color: var(--ink); }
.post-toc--inline {
  margin-bottom: 1rem; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.post-toc--inline > summary { cursor: pointer; font-weight: 700; }
.post-toc--inline[open] > summary { margin-bottom: .6rem; }
.post-toc--side { display: none; }
.post-sidebar { display: grid; gap: 1rem; align-content: start; }
@media (min-width: 980px) {
  .post-toc--inline { display: none; }
  .post-sidebar { position: sticky; top: 104px; max-height: calc(100vh - 120px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .post-sidebar .sticky-aside { position: static; }
  .post-toc--side { display: block; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
  .post-toc--side .eyebrow { margin: 0 0 .6rem .5rem; }
}

/* ---------- small polish ---------- */
.post-card { transition: transform var(--transition), box-shadow var(--transition); }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
:where(a, button, summary, input):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .post-card, .post-card:hover { transition: none; transform: none; } }
.site-footer__contact a { display: inline-flex; align-items: center; gap: .5rem; }
.site-footer__brand .site-footer__contact .whatsapp-logo { height: 1.18rem; margin: 0; }
.site-footer__contact .whatsapp-wordmark { font-weight: 600; }
.post-hero__crumb .breadcrumb li[aria-current] { display: none; }
.post-hero__crumb .breadcrumb li:nth-last-child(2)::after { content: none; }

/* ---------- editorial hubs ---------- */
.editorial-hub-page .landing-prose--wide { max-width: 1120px; margin-inline: auto; }
.hub-hero--entry { padding-block: clamp(3rem, 7vw, 5.5rem); }
.hub-hero__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 980px) { .hub-hero__grid { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; } }
.hub-stages { display: grid; gap: .65rem; }
.hub-stages__label { margin: 0 0 .25rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.hub-stages a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: 1rem 1.15rem; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px;
  background: rgba(255, 255, 255, .045); color: #fff; transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.hub-stages a:hover { background: rgba(233, 90, 42, .14); border-color: rgba(233, 90, 42, .55); transform: translateX(4px); }
.hub-stages__num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--accent); line-height: 1; }
.hub-stages strong { font-size: 1.05rem; font-weight: 650; }
.hub-stages__arrow { color: var(--accent); font-weight: 700; }

.editorial-hub-page--entry .landing-prose { counter-reset: stage; }
.editorial-hub-page--entry [data-emprende-stage] {
  counter-increment: stage; position: relative; scroll-margin-top: 96px;
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem); padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line); border-radius: 20px; background: var(--bg-warm);
}
.editorial-hub-page--entry [data-emprende-stage]:nth-of-type(2) { background: var(--sage-soft); }
.editorial-hub-page--entry [data-emprende-stage]:nth-of-type(3) { background: var(--accent-soft); }
.editorial-hub-page--entry [data-emprende-stage] > h2 { margin-top: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.editorial-hub-page--entry [data-emprende-stage] > h2::before {
  content: "Etapa " counter(stage, decimal-leading-zero); display: block; width: auto; height: auto; margin: 0 0 .6rem;
  background: none; font-family: var(--font-sans); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
}
.editorial-hub-page--entry [data-emprende-stage] > p { max-width: 70ch; font-size: 1.05rem; }

.editorial-hub-page .link-grid { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); margin: 1.5rem 0; }
.editorial-hub-page .landing-prose .link-grid > a {
  position: relative; display: block; padding: 1.15rem 2.6rem 1.15rem 1.15rem; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; box-shadow: var(--shadow-sm); text-decoration: none; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.editorial-hub-page .landing-prose .link-grid > a::after { content: "→"; position: absolute; top: 1.1rem; right: 1.1rem; color: var(--accent); font-weight: 700; }
.editorial-hub-page .landing-prose .link-grid > a:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.editorial-hub-page .landing-prose .link-grid > a > strong { display: block; }

.editorial-hub-page .landing-prose .post-grid { gap: 1rem; margin-top: 1.25rem; }
.editorial-hub-page .landing-prose .post-card { border-radius: 14px; overflow: hidden; background: #fff; }
.editorial-hub-page .landing-prose .post-card a { text-decoration: none; }
.editorial-hub-page .landing-prose .post-card__title { margin-top: .35rem; font-size: 1.08rem; line-height: 1.3; }
.editorial-hub-page .landing-prose .post-card__title a { color: var(--ink); }
.editorial-hub-page .landing-prose .post-card__title a:hover { color: var(--accent); }
.editorial-hub-page .landing-prose .post-card__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.editorial-hub-page .landing-prose .post-card img { margin: 0; border-radius: 0; }
.editorial-hub-page .landing-prose > ul:last-child { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; list-style: none; }
.editorial-hub-page .landing-prose > ul:last-child a { display: inline-flex; padding: .65rem 1.1rem; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); font-weight: 600; text-decoration: none; }
.editorial-hub-page .landing-prose > ul:last-child a:hover { background: var(--ink); color: #fff; }

/* featured entry in the Aprende menu */
.site-nav__dropdown .site-nav__featured {
  grid-column: 1 / -1; position: relative; display: grid; gap: .2rem; margin-bottom: .5rem;
  padding: 1rem 3rem 1rem 1.1rem; border-radius: 12px; color: #fff;
  background: linear-gradient(120deg, var(--accent), #c9491f); box-shadow: 0 12px 28px -12px rgba(233, 90, 42, .7);
}
.site-nav__dropdown .site-nav__featured:hover { background: linear-gradient(120deg, #f06a3a, var(--accent)); color: #fff; }
.site-nav__dropdown .site-nav__featured[aria-current="page"] { color: #fff; }
.site-nav__featured-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.site-nav__featured strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 750; }
.site-nav__featured > span:not([class]) { font-size: .88rem; line-height: 1.4; opacity: .9; }
.site-nav__featured-arrow { position: absolute; top: 50%; right: 1.1rem; transform: translateY(-50%); font-size: 1.2rem; font-weight: 700; transition: transform var(--transition); }
.site-nav__featured:hover .site-nav__featured-arrow { transform: translate(4px, -50%); }
.site-nav__dropdown--mega > div:first-child a:first-of-type { color: rgba(255, 255, 255, .85); font-weight: 500; }
.site-mobile-nav__sub a.site-mobile-nav__featured {
  margin: .25rem 0 .4rem; padding: .7rem .9rem; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700;
}
.site-footer .site-footer__author { display: flex; align-items: center; gap: .85rem; max-width: 36ch; margin-top: .25rem; padding: .75rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(255, 255, 255, .04); }
.site-footer .site-footer__author:hover { border-color: rgba(233, 90, 42, .55); }
.site-footer__brand .site-footer__author img { width: 56px; height: 56px; margin: 0; border-radius: 999px; object-fit: cover; flex: none; }
.site-footer__author > span { display: grid; gap: .15rem; }
.site-footer__author strong { color: #fff; font-size: .95rem; }
.site-footer__author > span > span { color: rgba(255, 255, 255, .6); font-size: .82rem; line-height: 1.4; }

/* ---------- icons and readability (site-wide) ---------- */
:root {
  --icon-web: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M2 9h20M6 6.5h.01M9 6.5h.01'/%3E%3C/svg%3E");
  --icon-seo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M8 13l2-2 2 1 3-3'/%3E%3C/svg%3E");
  --icon-ia: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.8 4.7 4.7 1.8-4.7 1.8L12 16l-1.8-4.7-4.7-1.8 4.7-1.8zM19 15l.8 2.2 2.2.8-2.2.8L19 21l-.8-2.2-2.2-.8 2.2-.8z'/%3E%3C/svg%3E");
  --icon-ads: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11v2a1 1 0 0 0 1 1h3l5 4V6L7 10H4a1 1 0 0 0-1 1zM16 9a4 4 0 0 1 0 6M19 6a8 8 0 0 1 0 12'/%3E%3C/svg%3E");
  --icon-brand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l3 6.5 7 .9-5.1 4.8 1.3 7L12 17.8 5.8 21.2l1.3-7L2 9.4l7-.9z'/%3E%3C/svg%3E");
  --icon-social: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 21l1.9-5.4A8 8 0 1 1 21 12zM8.5 12h.01M12 12h.01M15.5 12h.01'/%3E%3C/svg%3E");
  --icon-prof: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0M17 14.5a5 5 0 0 1 4.5 5'/%3E%3Ccircle cx='17.5' cy='9' r='2.5'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --icon-cal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");
  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --icon-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
  --iconc-web: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e95a2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M2 9h20M6 6.5h.01M9 6.5h.01'/%3E%3C/svg%3E");
  --iconc-seo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e95a2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M8 13l2-2 2 1 3-3'/%3E%3C/svg%3E");
  --iconc-ia: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e95a2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.8 4.7 4.7 1.8-4.7 1.8L12 16l-1.8-4.7-4.7-1.8 4.7-1.8zM19 15l.8 2.2 2.2.8-2.2.8L19 21l-.8-2.2-2.2-.8 2.2-.8z'/%3E%3C/svg%3E");
  --iconc-ads: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e95a2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11v2a1 1 0 0 0 1 1h3l5 4V6L7 10H4a1 1 0 0 0-1 1zM16 9a4 4 0 0 1 0 6M19 6a8 8 0 0 1 0 12'/%3E%3C/svg%3E");
  --iconc-brand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e95a2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l3 6.5 7 .9-5.1 4.8 1.3 7L12 17.8 5.8 21.2l1.3-7L2 9.4l7-.9z'/%3E%3C/svg%3E");
  --iconc-social: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e95a2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 21l1.9-5.4A8 8 0 1 1 21 12zM8.5 12h.01M12 12h.01M15.5 12h.01'/%3E%3C/svg%3E");
  --iconc-prof: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e95a2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0M17 14.5a5 5 0 0 1 4.5 5'/%3E%3Ccircle cx='17.5' cy='9' r='2.5'/%3E%3C/svg%3E");
  --iconc-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e95a2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --iconc-cal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e95a2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");
  --iconc-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e95a2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --iconc-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e95a2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
  --iconc-book: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e95a2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20V3H6.5A2.5 2.5 0 0 0 4 5.5zM4 19.5A2.5 2.5 0 0 0 6.5 22H20v-5'/%3E%3C/svg%3E");
  --icon-book-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20V3H6.5A2.5 2.5 0 0 0 4 5.5zM4 19.5A2.5 2.5 0 0 0 6.5 22H20v-5'/%3E%3C/svg%3E");
  --iconc-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e95a2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
  --icon-wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 0 1-13.4 7.9L3 21l1.2-4.4A9 9 0 1 1 21 12z'/%3E%3Cpath d='M9 9.5c0 3 2.5 5.5 5.5 5.5l1-1.5-2-1-1 .8a4 4 0 0 1-1.8-1.8l.8-1-1-2z'/%3E%3C/svg%3E");
  --iconc-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e95a2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E");
  --iconc-quote: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e95a2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h4v4c0 3-1.5 5-4 6M15 7h4v4c0 3-1.5 5-4 6'/%3E%3C/svg%3E");
  --iconc-help: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e95a2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9a2.5 2.5 0 0 1 4.9.8c0 1.7-2.4 2.2-2.4 3.7M12 17h.01'/%3E%3C/svg%3E");
  --muted: #57504c;
}
.service-card { position: relative; }
.service-card::before, .feature-card::before {
  content: ""; display: block; width: 46px; height: 46px; margin-bottom: 1rem; border-radius: 12px;
  background: var(--accent-soft) var(--iconc, var(--iconc-check)) no-repeat center / 24px 24px;
}
.feature-card { position: relative; }
.service-card--dark::before { background-color: rgba(233, 90, 42, .16); }
a[href="/paginas-web-psicologos"].service-card { --iconc: var(--iconc-web); }
a[href="/posicionamiento-seo-psicologos"].service-card { --iconc: var(--iconc-seo); }
a[href="/posicionamiento-ia-psicologos"].service-card { --iconc: var(--iconc-ia); }
a[href="/publicidad-psicologos"].service-card { --iconc: var(--iconc-ads); }
a[href="/branding-psicologos"].service-card { --iconc: var(--iconc-brand); }
a[href="/community-manager-psicologos"].service-card { --iconc: var(--iconc-social); }
a[href="/profesionales"].service-card { --iconc: var(--iconc-prof); }
.service-card__link { display: inline-flex; align-items: center; gap: .4rem; }
.service-card__link::after { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--icon-arrow) no-repeat center / contain; mask: var(--icon-arrow) no-repeat center / contain; transition: transform var(--transition); }
.service-card:hover .service-card__link::after { transform: translateX(3px); }
.post-card__meta span, .post-dates span { display: inline-flex; align-items: center; gap: .35rem; }
.post-card__meta span:first-child::before, .post-dates--hero span:first-child::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; opacity: .7; -webkit-mask: var(--icon-cal) no-repeat center / contain; mask: var(--icon-cal) no-repeat center / contain; }
.post-dates--hero span:last-child::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; opacity: .7; -webkit-mask: var(--icon-clock) no-repeat center / contain; mask: var(--icon-clock) no-repeat center / contain; }

/* readability */
.service-card p, .feature-card p, .method-card p, .post-card__excerpt, .card p { font-size: 1rem; line-height: 1.6; color: var(--muted); }
.service-card h3, .feature-card h3 { font-size: 1.2rem; line-height: 1.25; }
.lead { line-height: 1.6; }
.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); }
.prose p, .prose li { max-width: 72ch; }
.prose h2 { margin-top: 2.2em; line-height: 1.2; }
.prose h3 { margin-top: 1.8em; }
.prose li + li { margin-top: .4em; }
.prose a { text-underline-offset: 3px; }
.prose blockquote { margin: 1.5em 0; padding: 1rem 1.25rem; border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--bg-warm); }
.section-head p, .section-head .lead { max-width: 60ch; }
.service-card__tag, .feature-card > span:first-child { display: none; }
.service-card--dark p, .section--dark .card p, .bg-dark .card p { color: rgba(255, 255, 255, .72); }
.prose ul > li::marker { color: var(--accent); }
.prose ol > li::marker { color: var(--accent); font-weight: 700; }
.related-services .section-head .eyebrow { color: var(--accent); }
.related-services .section-head p:not(.eyebrow) { color: rgba(255, 255, 255, .72); }

/* ---------- shared instant search, Emprende theme (site-search.css loads later, hence the specificity) ---------- */
html:root { --salus-search-accent: #e95a2a; --salus-search-ink: #161312; --salus-search-muted: #57504c; --salus-search-soft: #fff0e8; --salus-search-surface: #fff; --salus-search-border: rgba(0, 0, 0, .1); }
.site-header .salus-search-trigger {
  border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .8);
}
.site-header .salus-search-trigger:hover { border-color: #e95a2a; color: #fff; background: rgba(233, 90, 42, .14); }
.site-header .salus-search-trigger--emprende { display: none; min-height: 44px; padding: 0 .55rem 0 1rem; font-size: .9rem; font-weight: 600; }
.site-header .salus-search-trigger--emprende .salus-search-trigger__key { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .7); }
.site-header .salus-search-trigger--emprende-mobile { display: inline-flex; width: 44px; height: 44px; justify-content: center; margin-left: auto; }
@media (min-width: 960px) {
  .site-header .salus-search-trigger--emprende { display: inline-flex; }
  .site-header .salus-search-trigger--emprende-mobile { display: none; }
}
@media (min-width: 960px) and (max-width: 1199px) { .site-header .salus-search-trigger--emprende .salus-search-trigger__key { display: none; } }
.blog-hero .salus-search-hero { margin-top: 1.5rem; max-width: 560px; }

/* ---------- lead popup: centered modal on desktop, bottom sheet on mobile ---------- */
.lead-popup { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.lead-popup__backdrop { position: absolute; inset: 0; background: rgba(9, 8, 7, .55); opacity: 0; transition: opacity .2s ease; pointer-events: auto; }
.lead-popup__panel {
  position: relative; width: 100%; max-width: 520px; padding: 1.5rem 1.25rem 1.25rem; border-radius: 20px 20px 0 0;
  background: #fff; color: var(--ink); box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .45);
  transform: translateY(24px); opacity: 0; transition: transform .22s ease, opacity .22s ease; pointer-events: auto;
}
.lead-popup.is-open .lead-popup__backdrop { opacity: 1; }
.lead-popup.is-open .lead-popup__panel { transform: none; opacity: 1; }
@media (max-width: 759px) { .lead-popup__backdrop { background: rgba(9, 8, 7, .25); } }
@media (min-width: 760px) {
  .lead-popup { align-items: center; padding: 1.5rem; }
  .lead-popup__panel { padding: 2rem; border-radius: 20px; box-shadow: var(--shadow-lg); }
}
.lead-popup__close { position: absolute; top: .75rem; right: .75rem; width: 36px; height: 36px; border: 0; border-radius: 999px; background: var(--bg-soft); color: var(--ink); font-size: 1.4rem; line-height: 1; }
.lead-popup__close:hover { background: var(--accent-soft); color: var(--accent); }
.lead-popup .eyebrow { margin: 0 0 .35rem; color: var(--accent); }
.lead-popup__title { margin: 0 2rem .4rem 0; font-family: var(--font-display); font-size: clamp(1.35rem, 3vw, 1.7rem); font-weight: 750; line-height: 1.15; }
.lead-popup__text { margin: 0 0 1.1rem; color: var(--muted); }
.lead-popup__options { display: grid; gap: .6rem; }
.lead-popup__option { display: flex; align-items: center; gap: .85rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); transition: border-color var(--transition), background var(--transition); }
.lead-popup__option:hover { border-color: var(--accent); background: var(--accent-soft); }
.lead-popup__option > span:last-child { display: grid; gap: .1rem; }
.lead-popup__option strong { font-size: 1rem; }
.lead-popup__option > span:last-child > span { color: var(--muted); font-size: .88rem; }
.lead-popup__icon { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--accent-soft) var(--iconc-book) no-repeat center / 22px; }
.lead-popup__option--ebook { border-color: var(--accent); }
.lead-popup__option--ebook .lead-popup__icon { background: var(--accent) var(--icon-book-w) no-repeat center / 22px; }
.lead-popup__option--whatsapp .lead-popup__icon { background: #e7f8ee var(--icon-wa) no-repeat center / 22px; }
.lead-popup__option--mail .lead-popup__icon { background-image: var(--iconc-mail); }
@media (prefers-reduced-motion: reduce) { .lead-popup__panel, .lead-popup__backdrop { transition: none; } }

.site-header__actions { display: contents; }
@media (min-width: 960px) {
  .site-header__actions { display: flex; flex: 1 1 0; align-items: center; justify-content: flex-end; gap: .75rem; }
}

/* ---------- landing pass ---------- */
/* one consistent section label everywhere */
main .eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent) !important; }
main .section-head .eyebrow::before, main .service-focus__copy .eyebrow::before, main .about-block .eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
main .section-head { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }

/* outcome band: the pains become cards */
.service-outcome-band ul { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.service-outcome-band li {
  display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm);
}
.service-outcome-band li::before { content: ""; position: static; width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--accent-soft) var(--iconc-alert) no-repeat center / 18px; transform: none; }

/* "en detalle": heading above, cards get the full width */
@media (min-width: 980px) {
  .service-focus__grid { display: grid !important; grid-template-columns: 1fr !important; gap: 2rem !important; }
  .service-focus__copy { max-width: 760px; }
  .service-focus__cards { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 1rem !important; }
}
.service-focus-card { padding: 1.5rem !important; border-radius: 16px !important; border-top: 3px solid var(--accent) !important; }
.service-focus-card h3 { font-size: 1.2rem !important; line-height: 1.25; }
.service-focus-card p { font-size: 1rem; line-height: 1.6; color: var(--muted); }

/* testimonials */
.testimonials { gap: 1.25rem !important; }
.testimonial { position: relative; padding-top: 4.25rem !important; border-radius: 16px !important; transition: transform var(--transition), box-shadow var(--transition); }
.testimonial:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.testimonial::before { content: "" !important; position: absolute; top: 1.5rem; left: 1.75rem; width: 32px !important; height: 32px !important; background: var(--iconc-quote) no-repeat center / contain !important; border: 0 !important; }
.testimonial__quote { font-size: 1.05rem; line-height: 1.65; color: var(--ink-2); }

/* recommended reading */
.service-reading .link-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.service-reading .link-grid > a {
  position: relative; display: grid; gap: .45rem; padding: 1.25rem 3rem 1.25rem 1.25rem; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.service-reading .link-grid > a::after { content: ""; position: absolute; right: 1.15rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); background: var(--accent); -webkit-mask: var(--icon-arrow) no-repeat center / contain; mask: var(--icon-arrow) no-repeat center / contain; transition: transform var(--transition); }
.service-reading .link-grid > a:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-reading .link-grid > a:hover::after { transform: translate(4px, -50%); }
.service-reading .link-grid > a > span { display: inline-flex; align-items: center; gap: .4rem; }
.service-reading .link-grid > a > span::before { content: ""; width: 16px; height: 16px; background: var(--iconc-book) no-repeat center / contain; }
.service-reading .link-grid > a > strong { font-size: 1.05rem; line-height: 1.35; }

/* FAQ */
.faq-item { border-radius: 14px !important; transition: border-color var(--transition), box-shadow var(--transition); }
.faq-item:hover, .faq-item[open] { border-color: rgba(233, 90, 42, .45) !important; box-shadow: var(--shadow-sm); }
.faq-item > summary { display: flex; align-items: center; gap: .75rem; font-size: 1.02rem; }
.faq-item > summary::before { content: ""; width: 22px; height: 22px; flex: none; background: var(--iconc-help) no-repeat center / contain; }
.faq-answer, .faq__body { color: var(--muted); line-height: 1.7; }

/* method steps */
.method-card { border-radius: 14px !important; transition: border-color var(--transition), transform var(--transition); }
.method-card:hover { border-color: rgba(233, 90, 42, .45); transform: translateX(3px); }
.testimonial__quote::before { content: none !important; }
.testimonial { padding-top: 4rem !important; }
:is(.faq-list, .faq-accordion) .faq-item > summary { justify-content: flex-start; text-align: left; }
:is(.faq-list, .faq-accordion) .faq-item > summary::after { margin-left: auto; }

/* references block (built client-side from the article's reference lists) */
.prose .post-refs { margin: 2.5em 0 0; padding: 1.25rem 1.35rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); font-size: .9rem; line-height: 1.55; }
.prose .post-refs h2 { margin: 0 0 .75rem; font-size: 1.05rem; font-family: var(--font-sans); font-weight: 700; }
.prose .post-refs h2::before, .prose .post-refs h2::after { display: none; }
.prose .post-refs ol { margin: 0; padding-left: 1.4rem; display: grid; gap: .5rem; }
.prose .post-refs li { max-width: none; margin: 0; color: var(--ink-2); }
.prose .post-refs li::marker { font-size: .85em; }
.prose .post-refs .post-refs__source {
  display: inline-flex; align-items: center; gap: .2rem; margin-left: .2rem; padding: .05rem .5rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: .8rem; font-weight: 600; text-decoration: none; white-space: nowrap; color: var(--accent);
}
.prose .post-refs .post-refs__source::after { content: "↗"; font-size: .85em; }
.prose .post-refs .post-refs__source:hover { border-color: var(--accent); }
.prose .post-refs.is-collapsed li:nth-child(n+4) { display: none; }
.post-refs__more { margin-top: .75rem; padding: .45rem .95rem; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font-size: .85rem; font-weight: 600; }
.post-refs__more:hover { background: var(--ink); color: #fff; }
.post-refs__anchor { display: block; scroll-margin-top: 96px; }
