:root {
  --bg: #f7f4ec;
  --paper: #fffdf7;
  --ink: #151515;
  --muted: #5f5f5f;
  --line: #151515;
  --blue: #dbe8ff;
  --blue-strong: #2d6cdf;
  --yellow: #f0c84b;
  --yellow-soft: #fff1a8;
  --green-soft: #dff0d7;
  --green: #2f7d4f;
  --shadow: 5px 5px 0 rgba(0, 0, 0, 0.12);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 24px 24px;
  line-height: 1.55;
}

a {
  color: var(--ink);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 236, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border: 2px solid var(--line);
  background: var(--yellow);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.16);
  font-weight: 900;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-weight: 700;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  border-bottom-color: var(--line);
}

.mobile-menu {
  display: none;
}

section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 20px;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 62px 20px 52px;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.82fr);
  gap: 42px;
  align-items: start;
}

.hero-copy {
  max-width: 660px;
}

.hero-card-top {
  margin-top: 80px;
}

.eyebrow {
  display: inline-block;
  border: 2px solid var(--line);
  background: var(--blue);
  padding: 4px 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 1.06;
  margin: 0 0 18px;
  letter-spacing: -0.07em;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  max-width: 920px;
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

p {
  margin-top: 0;
}

.claim {
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  font-weight: 900;
  margin: 0 0 18px;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  color: #232323;
  margin: 0 0 28px;
  max-width: 820px;
}

.lead.short {
  max-width: 610px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 12px 16px;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.16);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.18);
}

.btn.primary {
  background: var(--yellow);
}

.btn.blue {
  background: var(--blue);
}

.no-wrap {
  white-space: nowrap;
}

.small-btn {
  padding: 9px 12px;
  font-size: 0.92rem;
}

.hero-card,
.card,
.guide-preview,
.diagram,
.codebox,
.resource,
.cta-block {
  background: var(--paper);
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.10);
}

.hero-card {
  padding: 20px;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.placeholder-img {
  min-height: 320px;
  border: 2px dashed var(--line);
  background:
    repeating-linear-gradient(
      -45deg,
      #fffdf7,
      #fffdf7 12px,
      #f1eadb 12px,
      #f1eadb 24px
    );
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  font-weight: 900;
  color: var(--muted);
}

.placeholder-img.small {
  min-height: 190px;
}

.caption {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 12px 0 0;
}

.intro-block {
  padding-top: 34px;
}

.section-title {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
}

.section-title span,
.stage-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  background: var(--yellow);
  font-weight: 900;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: 20px;
}

.card p {
  color: var(--muted);
}

.large-text p {
  font-size: 1.15rem;
  color: var(--ink);
}

.stage-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stage-card {
  border: 2px solid var(--line);
  background: var(--paper);
  padding: 20px;
  box-shadow: var(--shadow);
  min-height: 260px;
}

.stage-blue {
  background: var(--blue);
}

.stage-yellow {
  background: var(--yellow-soft);
}

.stage-green {
  background: var(--green-soft);
}

.text-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 900;
  text-decoration-thickness: 2px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.steps.compact {
  grid-template-columns: repeat(4, 1fr);
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--paper);
  border: 2px solid var(--line);
  padding: 16px;
}

.steps.compact .step {
  grid-template-columns: 1fr;
}

.step::before {
  content: counter(step);
  width: 38px;
  height: 38px;
  background: var(--yellow);
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.guide-preview {
  overflow: hidden;
}

.guide-body {
  padding: 18px;
}

.cta-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px;
  margin-bottom: 46px;
}

.page-hero {
  padding-top: 70px;
  padding-bottom: 34px;
}

.guide-hero {
  border-bottom: 2px solid var(--line);
  max-width: none;
  padding-left: max(20px, calc((100vw - var(--max)) / 2 + 20px));
  padding-right: max(20px, calc((100vw - var(--max)) / 2 + 20px));
}

.blue-hero {
  background: var(--blue);
}

.yellow-hero {
  background: var(--yellow-soft);
}

.green-hero {
  background: var(--green-soft);
}

.diagram {
  padding: 20px;
  overflow-x: auto;
}

.flow {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-width: 760px;
}

.flow-box {
  flex: 1;
  border: 2px solid var(--line);
  padding: 14px;
  background: #fff;
  text-align: center;
  font-weight: 900;
  min-height: 82px;
  display: grid;
  place-items: center;
}

.arrow {
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 900;
}

.wide-text {
  max-width: 880px;
  font-size: 1.25rem;
  font-weight: 700;
}

.resource-list {
  display: grid;
  gap: 12px;
}

.resource {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
}

.resource small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--line);
  padding: 3px 8px;
  font-size: 0.78rem;
  font-weight: 900;
  background: #fff;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
}

.codebox {
  padding: 18px;
  overflow-x: auto;
}

.codebox pre {
  margin: 0;
  font-size: 1rem;
}

.footer {
  border-top: 2px solid var(--line);
  background: var(--paper);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 20px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer a {
  color: var(--ink);
}

@media (max-width: 980px) {
  .hero,
  .grid.two,
  .grid.three,
  .stage-flow,
  .steps.compact {
    grid-template-columns: 1fr;
  }

  .hero-card-top {
    margin-top: 0;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 5.8rem);
    line-height: 1.08;
  }

  .cta-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .mobile-menu {
    display: inline-flex;
    border: 2px solid var(--line);
    background: var(--paper);
    padding: 8px 10px;
    font-weight: 900;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    width: 100%;
    padding-top: 12px;
    flex-direction: column;
    gap: 10px;
  }

  .nav.open .nav-links {
    display: flex;
  }

  .hero,
  section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 42px;
  }

  .resource {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Imágenes reales */
img {
  max-width: 100%;
}

figure {
  margin: 0;
}

.image-frame {
  display: block;
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--paper);
}

.image-frame img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.hero-card .image-frame {
  border-style: dashed;
}

.hero-image img {
  aspect-ratio: 16 / 11;
  max-height: 470px;
}

.card-image img,
.section-image img {
  aspect-ratio: 14 / 10;
  min-height: 100%;
}

.code-image img {
  object-position: left center;
}

.image-grid .image-frame {
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.10);
}

.visual-intro {
  padding-top: 34px;
  padding-bottom: 22px;
}

.guide-preview .image-frame {
  border-width: 0 0 2px 0;
}

.guide-preview .image-frame img {
  aspect-ratio: 4 / 3;
}

@media (max-width: 980px) {
  .hero-image img {
    aspect-ratio: 4 / 3;
    max-height: 520px;
  }
}

@media (max-width: 760px) {
  .hero-image img {
    aspect-ratio: 3 / 4;
    max-height: 430px;
  }

  .card-image img,
  .section-image img,
  .guide-preview .image-frame img {
    aspect-ratio: 4 / 3;
    max-height: 320px;
  }
}

/* Galería / carrusel de recursos */
.gallery-intro {
  margin-bottom: 24px;
}

.carousel {
  position: relative;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 72%);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: 4px;
  padding: 4px 4px 14px;
  scrollbar-width: thin;
}

.carousel-slide {
  scroll-snap-align: start;
  margin: 0;
  background: var(--paper);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
}

.carousel-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 14 / 10;
  object-fit: cover;
  border-bottom: 2px solid var(--line);
}

.carousel-slide figcaption {
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--ink);
}

.carousel-btn {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 2px solid var(--line);
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.16);
}

.carousel-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.18);
}

.carousel-btn-prev {
  left: -12px;
}

.carousel-btn-next {
  right: -12px;
}

@media (max-width: 760px) {
  .carousel-track {
    grid-auto-columns: 88%;
  }

  .carousel-btn {
    position: static;
    margin: 10px 8px 0 0;
  }

  .carousel {
    display: flex;
    flex-wrap: wrap;
  }

  .carousel-track {
    flex-basis: 100%;
    order: 1;
  }

  .carousel-btn-prev,
  .carousel-btn-next {
    order: 2;
  }
}

/* Spot publicitario */
.video-section {
  padding-top: 34px;
}

.video-section .section-title {
margin-bottom: 20px;
}

.video-card {
  max-width: 980px;
  margin: 0 auto;
  background: var(--paper);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  padding: 24px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--line);
  background: #000;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-quote {
  max-width: 820px;
  margin: 32px auto 0;
  text-align: center;
}

.video-quote p:first-child {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2.2vw, 2.15rem);
  line-height: 1.28;
  font-weight: 900;
  color: var(--ink);
}

.video-quote span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 700;
  font-size: 1.05rem;
}

.video-cta {
  margin: 0;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--ink);
}

.video-cta-link {
  display: inline-block;
  margin-top: 8px;
  background: var(--yellow);
  border: 2px solid var(--line);
  padding: 6px 12px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.12);
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.video-cta-link:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.18);
}

@media (max-width: 760px) {
  .video-card {
    padding: 14px;
  }

  .video-quote {
    margin-top: 22px;
  }

  .video-quote p:first-child {
    font-size: clamp(1.25rem, 7vw, 2rem);
  }
}
