/* Base: page canvas, type, links, focus, layout primitives, the design-line hero
   and cards. Values come from tokens.css; the few extra ones below are the live
   site's measured colors that the token files do not name yet. */
:root {
  --crema-banda: #F4F1EA;      /* section band behind white cards */
  --gris-texto: #6C675F;       /* small secondary text, AA on white and on the band */
  --borde-campo: #968E82;      /* form field border, 3:1 on white */
  --borde-suave: #ECE6DA;      /* card hairline */
  --verde-footer: #163A25;
  --wrap: 1160px;
  --gutter: 24px;
  --r-card: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--tinta);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  caret-color: var(--verde-accion);
  accent-color: var(--verde-accion);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--verde-pale); color: var(--verde-hover); }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--verde-accion); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--verde-hover); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-sans); color: var(--tinta); line-height: var(--leading-snug); margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--verde-accion); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.tul-skip {
  position: absolute; left: 12px; top: -60px; z-index: 100000;
  padding: 12px 18px; border-radius: var(--r-pill);
  background: var(--verde-accion); color: #fff; font-weight: 600; text-decoration: none;
  transition: top var(--dur-fast) var(--ease-flor);
}
.tul-skip:focus { top: 12px; color: #fff; }

.tul-main { display: block; outline: none; }
.tul-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.tul-band { background: var(--crema-banda); padding: 8px 0 72px; }

/* Hero card, the template the FAQ, Pagos and Contact pages already use on live. */
.tul-hero { background: var(--crema-banda); padding: 40px 0 24px; }
.tul-hero-card {
  background: #fff; border: 1px solid var(--borde-suave); border-radius: var(--r-card);
  box-shadow: 0 10px 30px rgb(28 25 21 / .07); padding: 32px 36px;
}
.tul-crumbs { font-size: .84rem; color: var(--gris-texto); margin: 0 0 14px; }
.tul-crumbs a { color: var(--gris-texto); text-decoration: none; }
.tul-crumbs a:hover { color: var(--verde-accion); text-decoration: underline; }
.tul-eyebrow { margin: 0 0 8px; font-size: .75rem; font-weight: 700; letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--marca-label); }
.tul-hero-h { margin: 0; font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.18; }
.tul-hero-meta { margin: 10px 0 0; font-size: .9rem; color: var(--gris-texto); }
.tul-hero-sub { margin: 12px 0 0; max-width: 62ch; color: var(--tinta-70); font-size: 1.02rem; }

/* White reading sheet for page and post content. */
.tul-sheet {
  background: #fff; border: 1px solid var(--borde-suave); border-radius: var(--r-card);
  box-shadow: 0 10px 30px rgb(28 25 21 / .07); padding: 40px 44px;
}
.tul-post, .tul-narrow { max-width: 860px; margin-left: auto; margin-right: auto; }
.tul-post-img { margin: 0 0 28px; }
.tul-post-img img { width: 100%; border-radius: 12px; }

/* Cards for the blog index, archives and search. */
.tul-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.tul-card { background: #fff; border-radius: var(--r-card); box-shadow: 0 4px 16px rgb(43 38 34 / .07); overflow: hidden; transition: transform var(--dur-base) var(--ease-flor), box-shadow var(--dur-base) var(--ease-flor); }
.tul-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgb(43 38 34 / .11); }
.tul-card-link { display: flex; flex-direction: column; height: 100%; color: var(--tinta); text-decoration: none; }
.tul-card-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tul-card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.tul-card-meta { font-size: .8rem; color: var(--gris-texto); }
.tul-card-h { margin: 0; font-size: 1.1rem; font-weight: 600; line-height: 1.35; }
.tul-card-ex { font-size: .92rem; color: var(--tinta-70); }
.tul-card-link:hover .tul-card-h { color: var(--verde-accion); }

.tul-pages { margin-top: 32px; }
.tul-pages .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tul-pages .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--borde-suave); color: var(--tinta); text-decoration: none; font-weight: 500; }
.tul-pages .page-numbers.current { background: var(--verde-accion); border-color: var(--verde-accion); color: #fff; }

/* Buttons outside the block editor. */
.tul-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: var(--r-pill); border: 1.5px solid var(--verde-accion); background: var(--verde-accion); color: #fff; font-weight: 600; text-decoration: none; transition: background var(--dur-fast) var(--ease-flor); }
.tul-btn:hover { background: var(--verde-hover); border-color: var(--verde-hover); color: #fff; }
.tul-btn-line { background: #fff; color: var(--verde-accion); }
.tul-btn-line:hover { background: var(--verde-pale); color: var(--verde-hover); }
/* Button row (404). Not "tul-actions": the plugin header uses that name for its icons. */
.tul-btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.tul-ico { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Search form (404, blog). */
.search-form { display: flex; gap: 10px; flex-wrap: wrap; }
.search-form label { flex: 1 1 260px; }
.search-form .search-field { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--borde-campo); border-radius: var(--r-pill); background: #fff; font-size: 1rem; }
.search-form .search-submit { min-height: 50px; padding: 0 24px; border: 0; border-radius: var(--r-pill); background: var(--verde-accion); color: #fff; font-weight: 600; cursor: pointer; }

@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .tul-hero { padding: 24px 0 16px; }
  .tul-hero-card { padding: 22px 20px; }
  .tul-sheet { padding: 24px 20px; }
  .tul-band { padding-bottom: 48px; }
}

/* Blog post: article beside a sticky column (contents, author, share). */
.tul-post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.tul-post-grid .tul-post { max-width: none; margin: 0; }
.tul-post-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.tul-toc, .tul-byline, .tul-share { margin: 0; padding: 20px 22px; background: #fff; border: 1px solid var(--borde-suave); border-radius: var(--r-card); }
.tul-toc-h, .tul-share-h { margin: 0 0 10px; font-size: .75rem; font-weight: 700; letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--marca-label); }
.tul-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.tul-toc li.is-h3 { padding-left: 14px; }
.tul-toc a { display: block; padding: 4px 0; font-size: .9rem; line-height: 1.4; color: var(--tinta-70); text-decoration: none; }
.tul-toc a:hover { color: var(--verde-accion); text-decoration: underline; }
.tul-byline { font-size: .92rem; }
.tul-share ul { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tul-share a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--crema); color: var(--tinta); }
.tul-share a:hover { background: var(--verde-pale); color: var(--verde-accion); }
.tul-post-cat { color: var(--verde-accion); font-weight: 600; text-decoration: none; }
.entry-content :is(h2, h3)[id] { scroll-margin-top: 96px; }
@media (max-width: 960px) {
  .tul-post-grid { grid-template-columns: 1fr; }
  .tul-post-side { position: static; }
}
