/* Blog index, archives, search and single post. Builds on style.css tokens. */
body.totalapp-inner { margin: 0; }
.ta-blog :where(h1, h2, h3, p, figure) { margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Hero band */
.ta-blog-hero { background: linear-gradient(135deg, var(--negro) 0%, var(--negro-suave) 100%); color: #fff; padding: 72px 0 56px; position: relative; overflow: hidden; }
.ta-blog-hero::after { content: ''; position: absolute; top: -60%; right: -10%; width: 520px; height: 520px; border-radius: 50%; background: rgba(245,130,31,.08); pointer-events: none; }
.ta-blog-hero .container { position: relative; z-index: 1; }
.ta-blog-eyebrow { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--naranja); margin-bottom: 12px !important; }
.ta-blog-hero h1 { font-size: 2.8rem; line-height: 1.15; max-width: 22ch; text-wrap: balance; overflow-wrap: anywhere; }
.ta-blog-hero h1 span { color: var(--naranja); }
.ta-blog-intro { margin-top: 16px !important; max-width: 60ch; font-size: 1.1rem; line-height: 1.6; color: rgba(255,255,255,.82); }

.ta-blog-search { display: flex; max-width: 520px; margin-top: 28px; background: #fff; border-radius: 50px; padding: 6px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.ta-blog-search input[type=search] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 18px; font: inherit; font-size: 1rem; color: var(--negro); }
.ta-blog-search input[type=search]:focus { outline: none; }
.ta-blog-search:focus-within { outline: 3px solid var(--naranja); outline-offset: 3px; }
.ta-blog-search button { flex: 0 0 auto; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--naranja); color: #fff; cursor: pointer; font-size: 1rem; transition: background .2s ease; }
.ta-blog-search button:hover { background: var(--naranja-hover); }

.ta-blog-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ta-blog-cats a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 50px; border: 1px solid rgba(255,255,255,.25); color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .85rem; white-space: nowrap; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.ta-blog-cats a:hover { border-color: var(--naranja); color: var(--naranja); }
.ta-blog-cats a[aria-current="page"] { background: var(--naranja); border-color: var(--naranja); color: #fff; }

/* Listing */
.ta-blog-list { background: var(--gris-fondo); padding: 64px 0 80px; }
.ta-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.ta-post-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid #edf0f2; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.ta-post-card:hover { transform: translateY(-6px); border-color: var(--naranja); box-shadow: 0 20px 35px -12px rgba(0,0,0,.15); }
.ta-post-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--negro-suave); }
.ta-post-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ta-post-card:hover .ta-post-img { transform: scale(1.04); }
.ta-post-img--empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--negro) 0%, #3a2a1c 100%); color: var(--naranja); font-size: 2.4rem; }
.ta-post-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 22px; }
.ta-chip { align-self: flex-start; display: inline-block; white-space: nowrap; background: rgba(245,130,31,.12); color: #b45309; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .7rem; letter-spacing: .5px; text-transform: uppercase; padding: 5px 12px; border-radius: 50px; margin-bottom: 14px; transition: background .2s ease, color .2s ease; }
.ta-chip:hover { background: var(--naranja); color: #fff; }
.ta-post-card h2, .ta-post-card h3 { font-family: 'Montserrat', sans-serif; font-size: 1.15rem; font-weight: 700; line-height: 1.35; text-transform: none; letter-spacing: 0; color: var(--negro); margin-bottom: 10px; }
.ta-post-card h2 a, .ta-post-card h3 a { color: inherit; }
.ta-post-card h2 a:hover, .ta-post-card h3 a:hover { color: var(--naranja); }
.ta-post-card h2 a::after, .ta-post-card h3 a::after { content: ''; position: absolute; inset: 0; }
.ta-post-card { position: relative; }
.ta-post-card .ta-chip { position: relative; z-index: 1; }
.ta-post-body > p { color: var(--gris-texto); font-size: .95rem; line-height: 1.65; flex: 1; margin-bottom: 16px; }
.ta-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .82rem; color: #5c636a; margin-top: auto; }

.ta-post-card.is-featured { grid-column: 1 / -1; flex-direction: row; }
.ta-post-card.is-featured .ta-post-media { flex: 0 0 55%; aspect-ratio: auto; min-height: 340px; }
.ta-post-card.is-featured .ta-post-body { padding: 40px; justify-content: center; }
.ta-post-card.is-featured h2 { font-size: 1.8rem; }

/* Pagination */
.ta-pagination { margin-top: 48px; }
.ta-pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.ta-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 50px; background: #fff; border: 1px solid #e2e8f0; font-family: 'Montserrat', sans-serif; font-weight: 600; color: var(--negro); transition: background .2s ease, color .2s ease, border-color .2s ease; }
.ta-pagination a.page-numbers:hover { border-color: var(--naranja); color: var(--naranja); }
.ta-pagination .page-numbers.current { background: var(--naranja); border-color: var(--naranja); color: #fff; }
.ta-pagination .page-numbers.dots { background: transparent; border: 0; }

.ta-blog-empty { text-align: center; max-width: 480px; margin: 0 auto; padding: 48px 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.ta-blog-empty > i { font-size: 2.2rem; color: var(--naranja); margin-bottom: 16px; }
.ta-blog-empty h2 { font-size: 1.4rem; text-transform: none; margin-bottom: 8px; }
.ta-blog-empty p { color: var(--gris-texto); margin-bottom: 24px; }

/* Single post */
.ta-article-wrap { max-width: 1180px; }
.ta-article-head { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--negro) 0%, var(--negro-suave) 100%); color: #fff; padding: 56px 0 64px; }
.ta-article-head::after { content: ''; position: absolute; top: -55%; right: -12%; width: 560px; height: 560px; border-radius: 50%; background: rgba(245,130,31,.09); pointer-events: none; }
.ta-article.has-cover .ta-article-head { padding-bottom: 168px; }
.ta-article-head .container { position: relative; z-index: 1; }
.ta-article-head-inner { max-width: 820px; }
.ta-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; color: rgba(255,255,255,.72); margin-bottom: 24px; }
.ta-breadcrumb a { color: rgba(255,255,255,.72); }
.ta-breadcrumb a:hover { color: var(--naranja); }
.ta-breadcrumb i { font-size: .6rem; }
.ta-chip--dark { background: rgba(245,130,31,.18); color: #ffb26b; }
.ta-article-head h1 { font-size: 3rem; line-height: 1.15; text-transform: none; letter-spacing: -.02em; color: #fff; text-wrap: balance; overflow-wrap: anywhere; margin-bottom: 22px; }
.ta-article-head .ta-post-meta { font-size: .92rem; gap: 8px 22px; color: rgba(255,255,255,.78); }
.ta-article-head .ta-post-meta i { color: var(--naranja); margin-right: 5px; }

.ta-article-cover { margin: -128px 0 0; position: relative; z-index: 2; }
.ta-article-cover img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 20px; box-shadow: 0 30px 60px -25px rgba(0,0,0,.45); }

.ta-article-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 64px; align-items: start; padding-top: 48px; }
.ta-article-main { min-width: 0; max-width: 760px; }
.ta-article-aside { position: relative; height: 100%; }
.ta-aside-sticky { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 24px; }
.admin-bar .ta-aside-sticky { top: 136px; }
.ta-aside-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .75rem; letter-spacing: 1px; text-transform: uppercase; color: var(--gris-texto); margin-bottom: 14px !important; }

.ta-toc ol { list-style: none; margin: 0; padding: 0; }
.ta-toc a { display: block; padding: 8px 0 8px 14px; border-left: 2px solid #e2e8f0; font-size: .92rem; line-height: 1.45; color: var(--negro-suave); transition: color .2s ease, border-color .2s ease; }
.ta-toc a:hover { color: var(--naranja); border-left-color: var(--naranja); }
.ta-toc--desktop { background: #fff; border: 1px solid #edf0f2; border-radius: var(--radius); padding: 22px 22px 12px; box-shadow: var(--shadow); }
.ta-toc--mobile { display: none; background: var(--gris-fondo); border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 0 18px; margin-bottom: 8px; }
.ta-toc--mobile summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: 10px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .9rem; color: var(--negro); }
.ta-toc--mobile summary i { color: var(--naranja); }
.ta-toc--mobile[open] { padding-bottom: 10px; }

.ta-promo { background: linear-gradient(160deg, var(--negro) 0%, #3a2a1c 100%); color: #fff; border-radius: var(--radius); padding: 28px 24px; }
.ta-promo > i { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(245,130,31,.18); color: var(--naranja); font-size: 1.25rem; margin-bottom: 16px; }
.ta-promo .ta-aside-title { color: rgba(255,255,255,.7); margin-bottom: 6px !important; }
.ta-promo-title { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.35rem; text-transform: uppercase; margin-bottom: 8px !important; }
.ta-promo-text { color: rgba(255,255,255,.8); font-size: .92rem; line-height: 1.6; margin-bottom: 20px !important; }
.ta-promo .btn-primary { display: block; text-align: center; padding: 12px 20px; font-size: .85rem; }

.ta-prose { padding: 8px 0 16px; font-size: 1.125rem; line-height: 1.8; color: var(--negro-suave); }
.ta-prose > :first-child { margin-top: 0; }
.ta-prose h2 { scroll-margin-top: 110px; }
.ta-prose > * + * { margin-top: 1.25em; }
.ta-prose h2 { font-size: 1.7rem; line-height: 1.3; text-transform: none; color: var(--negro); margin-top: 2em; }
.ta-prose h3 { font-size: 1.3rem; line-height: 1.35; font-weight: 700; color: var(--negro); margin-top: 1.75em; }
.ta-prose h4 { font-size: 1.1rem; margin-top: 1.5em; }
.ta-prose a { color: #c2410c; text-decoration: underline; text-underline-offset: 3px; }
.ta-prose a:hover { color: var(--naranja); }
.ta-prose ul, .ta-prose ol { padding-left: 1.5em; }
.ta-prose ul { list-style: disc; }
.ta-prose ol { list-style: decimal; }
.ta-prose li + li { margin-top: .4em; }
.ta-prose li::marker { color: var(--naranja); }
.ta-prose blockquote { margin-left: 0; margin-right: 0; padding: 20px 24px; border-left: 4px solid var(--naranja); background: var(--gris-fondo); border-radius: 0 12px 12px 0; font-style: italic; color: var(--negro); }
.ta-prose blockquote p { margin: 0; }
.ta-prose img, .ta-prose figure img { border-radius: 12px; height: auto; }
.ta-prose figure { margin-left: 0; margin-right: 0; }
.ta-prose figcaption { font-size: .85rem; color: #5c636a; text-align: center; margin-top: 8px; }
.ta-prose code { font-size: .9em; background: #f1f3f5; padding: 2px 6px; border-radius: 4px; }
.ta-prose pre { background: var(--negro); color: #f8f9fa; padding: 20px; border-radius: 12px; overflow-x: auto; font-size: .9rem; line-height: 1.6; }
.ta-prose pre code { background: none; padding: 0; color: inherit; }
.ta-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.ta-prose th, .ta-prose td { padding: 10px 14px; border-bottom: 1px solid #e2e8f0; text-align: left; }
.ta-prose th { font-family: 'Montserrat', sans-serif; background: var(--gris-fondo); }
.ta-prose hr { border: 0; border-top: 1px solid #e2e8f0; margin: 2.5em 0; }
.ta-prose .alignwide, .ta-prose .alignfull { max-width: none; }
.ta-prose .aligncenter { margin-left: auto; margin-right: auto; }
.ta-page-links { margin-top: 24px; font-weight: 600; }

.ta-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 24px 0; border-top: 1px solid #e2e8f0; margin-top: 24px; }
.ta-tags a { background: var(--gris-fondo); border: 1px solid #e2e8f0; color: var(--gris-texto); padding: 6px 14px; border-radius: 50px; font-size: .85rem; white-space: nowrap; }
.ta-tags a:hover { border-color: var(--naranja); color: var(--naranja); }

.ta-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px 0 72px; }
.ta-post-nav a:only-child { grid-column: 1 / -1; }
.ta-post-nav a { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border: 1px solid #e2e8f0; border-radius: var(--radius); transition: border-color .2s ease, box-shadow .2s ease; }
.ta-post-nav a:hover { border-color: var(--naranja); box-shadow: var(--shadow); }
.ta-post-nav a.is-next { grid-column: 2; text-align: right; }
.ta-post-nav a.is-next:only-child { grid-column: 1 / -1; }
.ta-post-nav small { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: var(--naranja); }
.ta-post-nav span { font-family: 'Montserrat', sans-serif; font-weight: 600; color: var(--negro); line-height: 1.4; }

.ta-related { background: var(--gris-fondo); padding: 72px 0; }
.ta-related .section-title { margin-bottom: 40px; }
.ta-single .cta-final h2 { margin-bottom: 12px; }
.ta-single .cta-final p { margin: 0 auto 32px; }

@media (max-width: 1100px) {
  .ta-article-layout { grid-template-columns: minmax(0,1fr) 260px; gap: 40px; }
}
@media (max-width: 992px) {
  .ta-article-layout { grid-template-columns: 1fr; gap: 8px; padding-top: 36px; }
  .ta-article-main { max-width: 760px; margin: 0 auto; width: 100%; }
  .ta-article-aside { height: auto; max-width: 760px; margin: 0 auto 64px; width: 100%; }
  .ta-aside-sticky { position: static; }
  .ta-toc--desktop { display: none; }
  .ta-toc--mobile { display: block; }
  .ta-article-head-inner { margin: 0 auto; max-width: 760px; }
  .ta-article-head h1 { font-size: 2.4rem; }
  .ta-article-cover img { aspect-ratio: 16 / 9; }
  .ta-post-nav { padding-bottom: 40px; }
  .ta-post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ta-post-card.is-featured .ta-post-media { flex-basis: 50%; min-height: 280px; }
  .ta-post-card.is-featured .ta-post-body { padding: 28px; }
  .ta-post-card.is-featured h2 { font-size: 1.45rem; }
}
@media (max-width: 768px) {
  .ta-blog-hero { padding: 52px 0 44px; }
  .ta-blog-hero h1 { font-size: 2.1rem; }
  .ta-post-card.is-featured { flex-direction: column; }
  .ta-post-card.is-featured .ta-post-media { flex-basis: auto; aspect-ratio: 16 / 9; min-height: 0; }
  .ta-article-head h1 { font-size: 2rem; }
  .ta-article.has-cover .ta-article-head { padding-bottom: 120px; }
  .ta-article-cover { margin-top: -88px; }
  .ta-article-cover img { border-radius: 14px; }
  .ta-prose { font-size: 1.05rem; }
  .ta-prose h2 { font-size: 1.45rem; }
}
@media (max-width: 600px) {
  .ta-post-grid { grid-template-columns: 1fr; }
  .ta-post-nav { grid-template-columns: 1fr; }
  .ta-post-nav a.is-next { grid-column: 1; }
}
@media (max-width: 480px) {
  .ta-blog-hero h1 { font-size: 1.75rem; }
  .ta-article-head { padding: 36px 0 44px; }
  .ta-article.has-cover .ta-article-head { padding-bottom: 96px; }
  .ta-article-cover { margin-top: -64px; }
  .ta-article-head h1 { font-size: 1.65rem; }
  .ta-blog-list { padding: 40px 0 56px; }
  .ta-blog-cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-right: -20px; scrollbar-width: none; }
  .ta-blog-cats::-webkit-scrollbar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ta-post-card:hover, .ta-post-card:hover .ta-post-img { transform: none; }
}
