/* Concepto: papel de escritorio (secciones claras) y pizarra académica (secciones oscuras),
   unidos por anillos de madera, una red de conocimiento y láminas de grabado antiguo con luz actual. */

/* ---- Progress bar ---- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-wood), var(--color-accent));
  z-index: 100;
  transition: width 0.1s linear;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
}
.brand__name { font-weight: 600; letter-spacing: 0.01em; }
.nav { display: flex; gap: 26px; font-size: 0.95rem; font-weight: 500; }
.nav a { opacity: 0.75; transition: opacity 0.15s ease, color 0.15s ease; position: relative; padding: 2px 0; }
.nav a:hover { opacity: 1; color: var(--color-brand-light); }
.nav a.is-active { opacity: 1; color: var(--color-brand-light); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--color-wood);
  border-radius: 2px;
}
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--color-ink); }

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav.is-open { max-height: 320px; }
  .nav a { padding: 14px 24px; border-top: 1px solid var(--color-border); }
  .nav a.is-active::after { display: none; }
  .nav-toggle { display: block; }
}

/* ---- Sections ---- */
.section { padding: 88px 0; position: relative; }
.section--alt { background: var(--color-bg-alt); }
.section--curved { padding-top: 140px; }
.section__title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 10px 0 16px; text-wrap: balance; }
.section__intro { color: var(--color-ink-soft); max-width: 640px; margin: 0 0 48px; font-size: 1.02rem; }

/* Fondos generativos (anillos + red) */
.has-bg { position: relative; overflow: hidden; }
.has-bg > .container { position: relative; z-index: 2; }
.section-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.section-bg canvas { display: block; width: 100%; height: 100%; }
.has-canvas-light { --ring-rgb: 169, 117, 79; --node-rgb: 31, 127, 120; --warm-rgb: 169, 117, 79; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .has-canvas-light { --ring-rgb: 217, 180, 143; --node-rgb: 127, 209, 196; --warm-rgb: 217, 180, 143; }
}
:root[data-theme="dark"] .has-canvas-light { --ring-rgb: 217, 180, 143; --node-rgb: 127, 209, 196; --warm-rgb: 217, 180, 143; }

/* Pizarra académica (secciones oscuras, iguales en ambos temas) */
.section--slate {
  padding-block: 150px 160px;
  color: var(--slate-text);
  --ring-rgb: 217, 180, 143;
  --node-rgb: 170, 225, 215;
  --warm-rgb: 217, 180, 143;
  background:
    radial-gradient(ellipse 60% 50% at 88% 12%, rgba(217, 180, 143, 0.20), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(58, 122, 95, 0.28), transparent 70%),
    linear-gradient(160deg, var(--slate-deep) 0%, var(--slate-ink) 100%);
}
.section--slate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 85%);
}
.section--slate .eyebrow { color: var(--color-wood-light); }
.section--slate .section__title { color: var(--slate-text); }
.section--slate .section__intro { color: var(--slate-muted); }
.section--slate .module-panel .eyebrow { color: var(--color-brand-light); }

/* Transiciones orgánicas entre secciones */
.divider {
  position: absolute;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 1;
  fill: var(--color-bg);
  pointer-events: none;
}
.divider--top { top: -1px; }
.divider--bottom { bottom: -1px; }

@media (max-width: 880px) {
  .section--slate { padding-block: 110px 120px; }
  .section--curved { padding-top: 110px; }
  .divider { height: 44px; }
}

/* ---- Láminas ---- */
.plate-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.plate {
  position: relative;
  margin: 0;
  padding: 16px 16px 12px;
  background-color: var(--color-paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 2px 4px rgba(20, 30, 28, 0.12),
    0 18px 36px -16px rgba(20, 30, 28, 0.35);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.plate::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid color-mix(in srgb, var(--color-wood) 45%, transparent);
  outline: 1px solid color-mix(in srgb, var(--color-wood) 22%, transparent);
  outline-offset: 3px;
  border-radius: 3px;
  pointer-events: none;
}
.plate:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 8px rgba(20, 30, 28, 0.14),
    0 30px 50px -18px rgba(20, 30, 28, 0.45);
}
.section--slate .plate {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 2px 4px rgba(4, 18, 22, 0.3),
    0 22px 44px -16px rgba(4, 18, 22, 0.6);
}
.plate__art svg { display: block; width: 100%; height: auto; }
.plate figcaption {
  margin-top: 6px;
  padding: 0 6px 4px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--color-ink-soft);
  text-wrap: balance;
}
.plate__no {
  font-style: normal;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  color: var(--color-wood);
  margin-right: 0.35em;
}

/* Trazos del grabado */
.pl-hatch-line { stroke: var(--color-wood); stroke-width: 1; }
.pl-ink-line { stroke: var(--plate-ink); stroke-width: 0.8; opacity: 0.45; }
.plate svg .ln { fill: var(--color-paper); stroke: var(--plate-ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.plate svg .lo { fill: none; stroke: var(--plate-ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.plate svg .lt { fill: none; stroke: var(--plate-ink); stroke-width: 0.9; stroke-linecap: round; opacity: 0.75; }
.plate svg .wd { fill: var(--plate-wood-tint); stroke: var(--plate-ink); stroke-width: 1.6; stroke-linejoin: round; }
.plate svg .ht { fill: url(#pl-hatch); }
.plate svg .hx { fill: url(#pl-cross); }
.plate svg .hi { fill: url(#pl-ink); }
.plate svg .ink { fill: var(--plate-ink); }
.plate svg .pel { fill: var(--plate-wood-tint); stroke: var(--plate-ink); stroke-width: 0.9; }
.plate svg .peld { fill: url(#pl-cross); stroke: var(--plate-ink); stroke-width: 0.9; }
.plate svg .gl { fill: var(--plate-glass); stroke: var(--plate-ink); stroke-width: 1.6; }
.plate svg .bd { fill: var(--plate-board); stroke: var(--plate-ink); stroke-width: 1.6; }
.plate svg .lf { fill: var(--color-brand-light); stroke: var(--plate-ink); stroke-width: 1.4; stroke-linejoin: round; }
.plate svg .lgt { fill: var(--color-wood-light); opacity: 0.3; }
.plate svg .seal { fill: var(--color-wood); stroke: var(--plate-ink); stroke-width: 1.4; }
.plate svg .bark { fill: url(#pl-cross); stroke: var(--plate-ink); stroke-width: 1.6; }
.plate svg .ring { fill: none; stroke: var(--color-wood); stroke-width: 0.8; }
.plate svg .ringl { fill: none; stroke: var(--color-wood); stroke-width: 1.6; }
.plate svg .tx { fill: var(--plate-ink); font-family: var(--font-display); font-style: italic; }
.plate svg .shine { fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; opacity: 0.7; }
/* Lo actual: luz turquesa */
.plate svg .sg { fill: none; stroke: var(--plate-signal); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.plate svg .sgd { fill: var(--plate-signal); }
.plate svg .sgg { fill: var(--plate-signal); opacity: 0.16; animation: plate-glow 3.6s ease-in-out infinite; }
.plate svg .liq { fill: var(--plate-signal); opacity: 0.2; }
.plate svg .txs { fill: var(--plate-signal); font-family: var(--font-display); font-style: italic; }
/* Tiza sobre la pizarra */
.plate svg .ck { fill: none; stroke: #f1ecdf; stroke-width: 1.3; stroke-linecap: round; }
.plate svg .ckt { fill: #f1ecdf; font-family: var(--font-display); font-style: italic; }
.plate svg .cks { fill: none; stroke: #8fdccd; stroke-width: 1.2; }
.plate svg .cksd { fill: #8fdccd; }
.plate:nth-child(2n) svg .sgg { animation-delay: -1.2s; }
@keyframes plate-glow { 0%, 100% { opacity: 0.1; } 50% { opacity: 0.3; } }

.plates-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: 56px;
  align-items: start;
}
.plates-row > .plate:nth-child(1) { --tilt: -1.6deg; }
.plates-row > .plate:nth-child(2) { --tilt: 1.2deg; margin-top: 22px; }
.plates-row > .plate:nth-child(3) { --tilt: -0.8deg; }
.plates-row--balance {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  margin: 0 0 48px;
}
.plates-row--balance > .plate:nth-child(2) { margin-top: 0; }

@media (max-width: 720px) {
  .plates-row,
  .plates-row--balance {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 68%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 14px 6px 20px;
    margin-inline: -6px;
    align-items: start;
  }
  .plates-row > .plate { scroll-snap-align: center; }
  .plates-row > .plate:nth-child(2) { margin-top: 0; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 96px 0 84px;
  background:
    radial-gradient(ellipse 45% 55% at 86% 18%, color-mix(in srgb, var(--color-wood-light) 30%, transparent), transparent 70%),
    var(--color-bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--color-ink) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--color-ink) 7%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--color-ink) 3%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--color-ink) 3%, transparent) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
}
.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}
.hero__inner { max-width: 640px; }
.hero__title {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  margin: 18px 0 24px;
  text-wrap: balance;
}
.hero__highlight {
  background: linear-gradient(90deg, var(--color-wood), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: 1.12rem;
  color: var(--color-ink-soft);
  max-width: 600px;
  margin: 0 0 36px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 56px;
  font-size: 0.82rem;
  color: var(--color-ink-soft);
  letter-spacing: 0.04em;
}
.hero__scroll span {
  width: 1px; height: 28px;
  background: var(--color-ink-soft);
  position: relative;
  overflow: hidden;
}
.hero__scroll span::after {
  content: "";
  position: absolute;
  top: -100%; left: 0; right: 0; height: 100%;
  background: var(--color-wood);
  animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue { to { top: 100%; } }

.hero__collage { position: relative; height: 560px; }
.hero__collage .plate { position: absolute; }
.plate--a { top: 0; left: 20%; width: 54%; --tilt: 2deg; z-index: 1; }
.plate--b { bottom: 0; left: 0; width: 47%; --tilt: -4deg; z-index: 2; }
.plate--c { bottom: 28px; right: 0; width: 45%; --tilt: 3.5deg; z-index: 3; }

@media (max-width: 960px) {
  .hero__layout { grid-template-columns: 1fr; gap: 40px; }
  .hero__collage {
    height: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .hero__collage .plate { position: relative; inset: auto; width: auto; padding: 8px 8px 6px; }
  .hero__collage .plate::before { inset: 4px; outline-offset: 2px; }
  .hero__collage figcaption { font-size: 0.72rem; }
  .hero__scroll { display: none; }
}

/* ---- About ---- */
.about { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 56px; align-items: start; }
.about__text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 10px 0 20px; text-wrap: balance; }
.about__text p { color: var(--color-ink-soft); margin: 0 0 14px; }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.stat__num { font-family: var(--font-display); font-size: 1.4rem; color: var(--color-brand-light); font-weight: 600; }
.stat__label { color: var(--color-ink-soft); font-size: 0.85rem; }

@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
}

/* ---- Module explorer ---- */
.section--explorer { overflow: hidden; }
.explorer {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
.stepper {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 90px;
}
.stepper__item { position: relative; }
.stepper__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 33px; top: 58px; bottom: -6px;
  width: 1px;
  background: linear-gradient(rgba(217, 180, 143, 0.45), rgba(255, 255, 255, 0.12));
}
.stepper__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: none;
  border: none;
  text-align: left;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--slate-muted);
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
}
.stepper__btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--slate-text); }
.stepper__btn:focus-visible { outline: 2px solid var(--color-wood-light); outline-offset: 2px; }
.stepper__num {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--slate-text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.3s ease;
  z-index: 1;
}
.stepper__label { font-weight: 500; font-size: 0.95rem; }
.stepper__btn.is-active { color: #fff; }
.stepper__btn.is-active .stepper__num {
  background: var(--color-wood-light);
  border-color: var(--color-wood-light);
  color: var(--slate-deep);
  box-shadow: 0 0 0 6px rgba(217, 180, 143, 0.14), 0 0 26px rgba(217, 180, 143, 0.4);
}
.stepper__btn.is-active .stepper__label { font-weight: 700; }

.module-panel {
  background: var(--color-paper);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 44px;
  min-height: 420px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 2px 4px rgba(4, 18, 22, 0.25),
    0 18px 40px -12px rgba(4, 18, 22, 0.55),
    0 50px 90px -30px rgba(4, 18, 22, 0.6);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.module-panel.is-visible { opacity: 1; transform: translateY(0); }
.module-panel__num {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.module-panel h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 8px 0 16px; text-wrap: balance; }
.module-panel__resumen { color: var(--color-ink-soft); font-size: 1.02rem; margin: 0 0 20px; }
.module-panel__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chip {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.applied-card {
  margin-top: 28px;
  padding: 26px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, color-mix(in srgb, var(--color-wood) 10%, transparent), color-mix(in srgb, var(--color-brand) 8%, transparent));
  border: 1px solid var(--color-border);
}
.applied-card__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-wood);
  margin: 0 0 8px;
}
.applied-card h4 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 6px; font-weight: 600; }
.applied-card__curso {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--color-ink-soft);
  margin: 0 0 14px;
}
.applied-card p { color: var(--color-ink-soft); margin: 0 0 14px; line-height: 1.6; }
.applied-card blockquote {
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid var(--color-wood);
  font-style: italic;
  color: var(--color-ink);
}

.module-panel__recursos { margin-top: 28px; }
.module-panel__recursos ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.module-panel__recursos li {
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  padding-left: 20px;
  position: relative;
}
.module-panel__recursos li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-wood-light);
}
.module-panel__link {
  display: inline-block;
  margin-top: 24px;
  font-weight: 600;
  color: var(--color-brand-light);
}
.module-panel__link:hover { text-decoration: underline; }

@media (max-width: 880px) {
  .explorer { grid-template-columns: 1fr; }
  .stepper {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .stepper__item::after { display: none; }
  .stepper__btn { flex-direction: column; gap: 6px; min-width: 92px; text-align: center; padding: 10px; }
  .stepper__label { font-size: 0.78rem; }
  .module-panel { padding: 26px 22px; }
}

/* ---- Sí / No de la IA ---- */
.sine__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sine__col {
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--color-border);
}
.sine__col--yes { background: color-mix(in srgb, var(--color-accent) 7%, var(--color-surface)); }
.sine__col--no { background: color-mix(in srgb, var(--color-wood) 9%, var(--color-surface)); }
.sine__col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin: 0 0 20px; }
.sine__dot { width: 12px; height: 12px; border-radius: 50%; }
.sine__dot--yes { background: var(--color-accent); }
.sine__dot--no { background: var(--color-wood); }
.sine__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.sine__col li { color: var(--color-ink-soft); font-size: 0.95rem; line-height: 1.55; }
.sine__col li strong { color: var(--color-ink); }

@media (max-width: 720px) {
  .sine__grid { grid-template-columns: 1fr; }
}

/* ---- Mirada (diario reflexivo, pizarra) ---- */
.mirada__title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 10px 0 20px; color: #fff; text-wrap: balance; }
.eyebrow--inverse { color: var(--color-wood-light); }
.mirada__context { color: var(--slate-muted); font-size: 1.05rem; max-width: 680px; margin: 0 0 56px; }
.mirada__context strong { color: #fff; }
.quote-rows { display: grid; gap: 48px; }
.quote-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 44px;
  align-items: center;
}
.quote-row--flip { grid-template-columns: 240px minmax(0, 1fr); }
.quote-row > .plate { --tilt: 2.2deg; }
.quote-row--flip > .plate { --tilt: -2.2deg; order: -1; }
.pull-quote {
  margin: 0;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--color-wood-light);
  border-radius: var(--radius-md);
}
.pull-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.5;
  color: #fdfcf8;
}
.mirada__signature {
  margin: 44px 0 0;
  font-size: 0.9rem;
  color: var(--slate-muted);
}

@media (max-width: 760px) {
  .quote-row,
  .quote-row--flip { grid-template-columns: 1fr; gap: 24px; }
  .quote-row > .plate { width: min(240px, 80%); justify-self: center; order: 0; }
}

/* ---- Portfolio closing ---- */
.portfolio__text { max-width: 720px; margin: 0 auto; text-align: center; }
.portfolio__text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 10px 0 20px; text-wrap: balance; }
.portfolio__text p { color: var(--color-ink-soft); }
.portfolio .plates-row { margin: 48px auto 56px; max-width: 900px; }
.portfolio__pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.pillar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
}
.pillar__icon {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-wood);
  margin-bottom: 10px;
}
.pillar p { margin: 0; font-size: 0.88rem; color: var(--color-ink-soft); line-height: 1.4; }

@media (max-width: 960px) {
  .portfolio__pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .portfolio__pillars { grid-template-columns: 1fr; }
}

/* ---- About me ---- */
.about-me {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}
.about-me h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 10px 0 16px; text-wrap: balance; }
.about-me p { color: var(--color-ink-soft); max-width: 560px; }
.about-me .plates-row { margin-top: 0; }

@media (max-width: 900px) {
  .about-me { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- Footer ---- */
.footer { padding: 32px 0; border-top: 1px solid var(--color-border); }
.footer__inner { color: var(--color-ink-soft); font-size: 0.88rem; text-align: center; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .hero__scroll span::after,
  .plate svg .sgg { animation: none; }
  .module-panel, .reveal, .plate { transition: none; }
}
