:root {
  --bg: #f6f3ec;
  --surf: #e6eed9;
  --ink: #183829;
  --mut: #4b6556;
  --grn: #2f6b17;
  --grnb: #dbe7c8;
  --sun: #ffe15a;
  --line: #cdd8bd;
  --pill: #183829;
  --panel: #183829;
  --panelink: #eef2dc;
  --r: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #173629;
    --surf: #1f4535;
    --ink: #eef2dc;
    --mut: #b9c9a8;
    --grn: #9bd37b;
    --grnb: #2a5441;
    --line: #3b5f4c;
    --pill: #e6edd8;
    --panel: #0f261c;
    --panelink: #eef2dc;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #173629;
  --surf: #1f4535;
  --ink: #eef2dc;
  --mut: #b9c9a8;
  --grn: #9bd37b;
  --grnb: #2a5441;
  --line: #3b5f4c;
  --pill: #e6edd8;
  --panel: #0f261c;
  --panelink: #eef2dc;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 5rem;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    1.0625rem/1.65 "DM Sans",
    system-ui,
    sans-serif;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
h1,
h2,
h3,
.brand {
  font-family: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin: 0.4em 0 0.3em;
  font-weight: 800;
}
h2 {
  font-size: 1.7rem;
  margin: 1.6em 0 0.5em;
}
h3 {
  font-size: 1.2rem;
  margin: 0.3em 0;
}
a {
  color: var(--grn);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--sun);
  color: #000;
  padding: 0.5rem 1rem;
  z-index: 99;
}
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.narrow {
  max-width: 760px;
}
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--mut);
  letter-spacing: 0.04em;
}
.leaf {
  width: 2rem;
  color: var(--grn);
}
#nav {
  margin-left: auto;
}
#nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}
#nav a {
  display: block;
  padding: 0.45rem 0.8rem;
  border-radius: 99px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
#nav a:hover,
#nav a[aria-current] {
  background: var(--grnb);
}
.has-sub {
  position: relative;
}
#nav .has-sub > ul {
  position: absolute;
  left: 0;
  top: 100%;
  flex-direction: column;
  gap: 0.1rem;
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0.4rem;
  min-width: 15rem;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
#nav .has-sub:hover > ul,
#nav .has-sub:focus-within > ul,
#nav .has-sub.open > ul {
  display: flex;
}
.sub-t {
  display: none;
}
#menu,
#theme {
  background: var(--surf);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
#menu {
  display: none;
}
.memo {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  max-width: 1080px;
  margin: 1rem auto 0;
  padding: 0.9rem 1.2rem;
  background: var(--surf);
  border: 1px solid var(--line);
  border-left: 6px solid var(--sun);
  border-radius: var(--r);
  font-size: 0.95rem;
}
.memo p {
  margin: 0;
}
.memo {
  width: calc(100% - 2.5rem);
}
.hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 2rem;
}
.kicker {
  color: var(--mut);
  font-weight: 700;
  max-width: 46ch;
}
.lead {
  font-size: 1.25rem;
  color: var(--mut);
  max-width: 60ch;
}
.sprig {
  display: flex;
  gap: 0.2rem;
  color: var(--grn);
  justify-content: center;
}
.sprig .leaf {
  width: 30%;
  transform: rotate(-8deg);
}
.sprig .leaf:nth-child(2) {
  transform: rotate(6deg) translateY(-1.5rem);
  color: var(--sun);
}
.sprig .leaf:nth-child(3) {
  transform: rotate(14deg);
}
.btn {
  display: inline-block;
  background: var(--grn);
  color: #fff;
  border-radius: 99px;
  padding: 0.65rem 1.3rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--grn);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  margin: 0.2rem 0.2rem 0.2rem 0;
}
:root[data-theme="dark"] .btn,
@media(prefers-color-scheme:dark) {
}
.btn:hover {
  filter: brightness(1.1);
}
.btn.ghost {
  background: transparent;
  color: var(--grn);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  display: block;
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.2rem;
  color: var(--ink);
  text-decoration: none;
}
.card:hover {
  border-color: var(--grn);
}
.card p {
  color: var(--mut);
  margin: 0.3rem 0 0;
}
.prog {
  border-top: 6px solid var(--grn);
}
.prog:nth-child(2) {
  border-top-color: var(--sun);
}
.tag {
  display: inline-block;
  background: var(--grnb);
  color: var(--grn);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.1rem 0.6rem;
  border-radius: 99px;
}
.crumb {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}
.hero-img {
  max-width: 100%;
  max-height: 420px;
  border-radius: var(--r);
  margin: 1rem 0;
  border: 1px solid var(--line);
  background: var(--surf);
}
.prose p,
.prose li {
  max-width: 68ch;
}
.prose blockquote {
  margin: 1.2rem 0;
  padding: 0.2rem 1.2rem;
  border-left: 5px solid var(--sun);
  background: var(--surf);
  border-radius: 0 var(--r) var(--r) 0;
}
.prose cite {
  color: var(--mut);
}
.prose dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.3rem 1rem;
}
.prose dt {
  font-weight: 700;
}
.prose dd {
  margin: 0;
}
.date {
  color: var(--mut);
  font-weight: 700;
}
details {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0.8rem 1.2rem;
  margin: 0.8rem 0;
}
summary {
  cursor: pointer;
  font-weight: 700;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.chip {
  border: 1px solid var(--line);
  background: var(--surf);
  color: var(--ink);
  border-radius: 99px;
  padding: 0.4rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.chip.on {
  background: var(--grn);
  color: #fff;
  border-color: var(--grn);
}
.list {
  display: grid;
  gap: 0.8rem;
}
.list [hidden] {
  display: none;
}
.form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 700;
}
.form input,
.form textarea {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surf);
  color: var(--ink);
}
.ok {
  color: var(--grn);
  font-weight: 700;
}
.pn {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.5rem 0 1rem;
  font-weight: 700;
}
.foot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1080px;
  margin: 4rem auto 0;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--mut);
  font-size: 0.95rem;
}
.foot p {
  margin: 0.3rem 0;
}
@media (max-width: 820px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }
  .sprig {
    display: none;
  }
  #menu {
    display: block;
    margin-left: auto;
  }
  #nav {
    display: none;
    width: 100%;
    margin: 0;
  }
  #nav.open {
    display: block;
  }
  #nav > ul {
    flex-direction: column;
  }
  .has-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .has-sub > a {
    flex: 1;
  }
  .sub-t {
    display: block;
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    background: none;
    color: var(--ink);
    cursor: pointer;
  }
  .sub-t::after {
    content: "▾";
  }
  #nav .has-sub > ul {
    position: static;
    border: 0;
    box-shadow: none;
    width: 100%;
    padding-left: 1rem;
  }
  #nav .has-sub:hover > ul,
  #nav .has-sub:focus-within > ul {
    display: none;
  }
  #nav .has-sub.open > ul {
    display: flex;
  }
}
.logo,.logo2 {
  display: block;
  height: 4.6rem;
  width: auto;
  border-radius: 10px;
}
.seal-box {
  text-align: center;
  color: var(--mut);
}
.seal {
  max-width: 100%;
  height: auto;
  width: min(13rem, 60%);
  border-radius: 14px;
}
.seal.sm {
  width: 3rem;
  margin-bottom: 0.5rem;
}
.seal-box p {
  font-weight: 700;
  margin: 0.5rem 0 0;
}
.logo2,
:root[data-theme="dark"] .logo,
:root[data-theme="dark"] .seal {
  background: #f6f3ec;
  padding: 0.35rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo,
  :root:not([data-theme="light"]) .seal {
    background: #f6f3ec;
    padding: 0.35rem;
  }
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surf);
  color: var(--ink);
  max-width: 30rem;
  width: calc(100% - 2rem);
  padding: 1.5rem;
  position: fixed;
}
dialog::backdrop {
  background: rgba(20, 18, 42, 0.55);
}
dialog .x {
  position: absolute;
  right: 0.8rem;
  top: 0.6rem;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 1.8rem;
  cursor: pointer;
}
dialog h2 {
  margin-top: 0;
}
.opts {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0;
}
.opts a {
  display: block;
  padding: 0.8rem 1rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.opts a:hover,
.opts a:focus-visible {
  border-color: var(--grn);
  background: var(--grnb);
}
.linkbtn {
  background: none;
  border: 0;
  color: var(--grn);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
#help {
  max-width: 46rem;
  text-align: center;
}
#help p {
  max-width: 60ch;
  margin: 0.6rem auto;
}
.opts {
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.opts a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.4rem;
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 0.9rem;
  text-transform: none;
}
.form select {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surf);
  color: var(--ink);
}
@media (max-width: 560px) {
  .opts {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- estilo tríptico 2026 --- */
h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.025em;
}
h2 {
  font-size: 1.9rem;
}
.btn {
  background: var(--sun);
  color: #183829;
  border: 1.5px solid var(--sun);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--pill);
}
.btn:hover {
  filter: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun) 45%, transparent);
}
#nav a {
  border: 1.5px solid transparent;
}
#nav a:hover {
  background: transparent;
  border-color: var(--pill);
}
#nav a[aria-current] {
  background: var(--sun);
  color: #183829;
  border-color: var(--sun);
}
.chip {
  background: transparent;
  border: 1.5px solid var(--pill);
}
.chip.on {
  background: var(--sun);
  color: #183829;
  border-color: var(--sun);
}
.tag {
  background: none;
  padding: 0;
  border-radius: 0;
  color: var(--grn);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.card {
  background: var(--surf);
  border: 0;
  border-radius: var(--r);
  padding: 1.4rem;
}
.card:hover {
  box-shadow: inset 0 0 0 2px var(--pill);
}
.grid3 .prog {
  border-top: 0;
}
.grid3 .prog:nth-child(1) {
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--pill);
}
.grid3 .prog:nth-child(2) {
  background: var(--panel);
  color: var(--panelink);
}
.grid3 .prog:nth-child(2) p {
  color: var(--panelink);
  opacity: 0.85;
}
.grid3 .prog h3 {
  font-size: 1.45rem;
}
.memo {
  border: 0;
  border-left: 0;
  background: var(--surf);
  box-shadow: inset 6px 0 0 var(--sun);
}
.top {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}
details,
.prose blockquote {
  background: var(--surf);
  border: 0;
}
details {
  border-radius: var(--r);
}
.prose blockquote {
  border-left: 6px solid var(--sun);
}
.form input,
.form textarea,
.form select {
  border: 1.5px solid var(--pill);
  background: transparent;
}
.foot {
  max-width: none;
  background: var(--panel);
  color: var(--panelink);
  margin-top: 4rem;
  padding: 2.5rem max(1.25rem, calc((100% - 1080px) / 2 + 1.25rem));
}
.foot p {
  color: inherit;
  opacity: 0.85;
}
.foot a,
.foot .linkbtn {
  color: #b6e08f;
}
.foot .seal {
  background: #f6f3ec;
  padding: 0.3rem;
}
dialog {
  border: 0;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.opts a {
  border: 1.5px solid var(--pill);
}
.opts a:hover,
.opts a:focus-visible {
  background: var(--sun);
  color: #183829;
  border-color: var(--sun);
}
.crumb a,
.row a {
  font-weight: 700;
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 {
    animation: rise 0.6s ease both;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
  }
}
.dark .hero-img {
  filter: invert(80%);
  background: transparent;
}
