/* ZHUVRY — Sketchbook (Jellying Over It) */
:root {
  --paper: #FDFBF4;
  --rule: #E8E4D8;
  --margin: #F3B6B6;
  --ink: #22323F;
  --accent: #E5636F;
  --gray: #8a93a0;
  --gray-dark: #4a5560;
  --tape: rgba(240, 220, 150, .75);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  background-image: repeating-linear-gradient(var(--paper) 0 27px, var(--rule) 27px 28px);
  font-family: 'Patrick Hand', cursive;
  color: var(--ink);
  position: relative;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
img, video { max-width: 100%; height: auto; }

html[data-lang="es"] .i-en { display: none !important; }
html[data-lang="en"] .i-es { display: none !important; }

/* Línea de margen del cuaderno */
.margin-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 56px;
  width: 2px;
  background: var(--margin);
  z-index: 1;
}

.caveat { font-family: Caveat, cursive; font-weight: 600; }

/* ---------- Nav ---------- */
.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px 14px 84px;
  gap: 16px;
}
.nav-logo {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 2px;
  border-bottom: 3px solid var(--ink);
  line-height: 1;
}
.nav-logo .star { color: var(--accent); }
.nav-links { display: flex; gap: 26px; align-items: center; font-size: 19px; }
.nav-links .wavy { text-decoration: underline wavy var(--accent) 2px; }
.lang-btn {
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  padding: 3px 12px;
  transform: rotate(1.5deg);
  font-size: 16px;
  font-family: 'Patrick Hand', cursive;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  white-space: nowrap;
}
.lang-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 48px 60px 84px;
}
.hero-copy { display: flex; flex-direction: column; gap: 16px; }
.hero .note-top {
  font-family: Caveat, cursive;
  font-weight: 600;
  font-size: 22px;
  color: var(--gray);
  transform: rotate(-2deg);
  align-self: flex-start;
}
.hero h1 { margin: 0; font-size: 54px; line-height: 1.08; font-weight: 700; }
.hero h1 .ouch { position: relative; display: inline-block; color: var(--accent); }
.hero-copy > p { margin: 0; font-size: 21px; line-height: 1.45; color: var(--gray-dark); max-width: 400px; }
.hero-buttons { display: flex; gap: 14px; margin-top: 4px; flex-wrap: wrap; }
.hero .note-bottom {
  font-family: Caveat, cursive;
  font-weight: 600;
  font-size: 20px;
  color: var(--accent);
  transform: rotate(-1deg);
  align-self: flex-start;
}

.btn-solid {
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  padding: 11px 22px;
  font-size: 20px;
  transform: rotate(-1deg);
  box-shadow: 3px 3px 0 rgba(34, 50, 63, .25);
  display: inline-block;
  transition: background .12s ease, color .12s ease;
}
.btn-solid:hover { background: var(--accent); color: var(--paper); }
.btn-dashed {
  border: 2px dashed var(--ink);
  border-radius: 10px;
  padding: 11px 22px;
  font-size: 20px;
  transform: rotate(.5deg);
  display: inline-block;
}

/* Polaroids */
.hero-stack { position: relative; height: 340px; }
.polaroid img, .polaroid video {
  display: block;
  border: 6px solid #fff;
  box-shadow: 0 6px 18px rgba(34, 50, 63, .22);
}
.tape {
  position: absolute;
  background: var(--tape);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.hero-stack .polaroid-capsule { position: absolute; top: 6px; right: 0; transform: rotate(2.5deg); }
.hero-stack .polaroid-capsule img { width: 330px; }
.hero-stack .polaroid-capsule .tape { top: -12px; left: 36%; width: 80px; height: 24px; transform: rotate(-4deg); }
.hero-stack .polaroid-shot { position: absolute; bottom: 0; left: 10px; transform: rotate(-3deg); }
.hero-stack .polaroid-shot img { width: 300px; }
.hero-stack .polaroid-shot .tape { top: -12px; left: 36%; width: 80px; height: 24px; transform: rotate(5deg); }

/* ---------- Cómo se juega ---------- */
.howto { position: relative; z-index: 2; }
.howto-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 48px 60px 84px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.video-polaroid { position: relative; transform: rotate(-1.5deg); }
.video-polaroid video {
  width: 100%;
  display: block;
  border: 6px solid #fff;
  box-shadow: 0 8px 22px rgba(34, 50, 63, .22);
}
.video-polaroid .tape { top: -14px; left: 44%; width: 90px; height: 26px; transform: rotate(-3deg); }
.video-polaroid .caption {
  position: absolute;
  bottom: -30px;
  right: 8px;
  font-family: Caveat, cursive;
  font-weight: 600;
  font-size: 21px;
  color: var(--gray);
  transform: rotate(-2deg);
}
.howto-copy { display: flex; flex-direction: column; gap: 14px; }
.howto h2 { margin: 0; font-size: 38px; font-weight: 700; }
.howto ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 20px;
  line-height: 1.4;
  color: var(--gray-dark);
}
.howto li { display: flex; gap: 10px; }
.howto li .pencil { color: var(--accent); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; font-size: 16px; margin-top: 4px; }
.chip { border: 2px solid var(--ink); border-radius: 8px; padding: 2px 12px; display: inline-block; }
.chip-r1 { transform: rotate(-1deg); }
.chip-r2 { transform: rotate(1deg); }
.chip-r3 { transform: rotate(-.5deg); }
.chip-r4 { transform: rotate(1.5deg); }

/* ---------- Mímico ---------- */
.mimic { position: relative; z-index: 2; }
.mimic-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 48px 70px 84px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.mimic-copy { display: flex; flex-direction: column; gap: 12px; }
.mimic h2 { margin: 0; font-size: 38px; font-weight: 700; color: var(--accent); }
.mimic p { margin: 0; font-size: 20px; line-height: 1.45; color: var(--gray-dark); max-width: 380px; }
.dev-note {
  border: 2px dashed var(--accent);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 18px;
  color: var(--accent);
  transform: rotate(-.5deg);
  align-self: flex-start;
}
.mimic .video-polaroid { transform: rotate(1.5deg); }
.mimic .video-polaroid .tape { transform: rotate(4deg); }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: var(--paper);
}
.cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 52px 48px 56px 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-copy { display: flex; flex-direction: column; gap: 6px; }
.cta h2 { margin: 0; font-size: 36px; font-weight: 700; }
.cta p { margin: 0; font-size: 19px; color: rgba(253, 251, 244, .7); }
.cta-btn {
  background: var(--accent);
  color: var(--paper);
  border-radius: 12px;
  padding: 14px 26px;
  font-size: 21px;
  white-space: nowrap;
  transform: rotate(-1deg);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .3);
  display: inline-block;
  transition: background .12s ease, color .12s ease;
}
.cta-btn:hover { background: var(--paper); color: var(--ink); }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  padding: 26px 48px 30px 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-logo { font-size: 22px; font-weight: 700; }
.footer-logo .star { color: var(--accent); }
.footer .copyright { font-size: 16px; color: var(--gray); }
.footer .cross-link { font-size: 17px; text-decoration: underline wavy var(--accent) 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .margin-line { left: 24px; }
  .nav { padding: 16px 20px 12px 44px; }
  .nav-logo { font-size: 24px; }
  .nav-links { gap: 16px; font-size: 17px; }

  .hero-grid { grid-template-columns: 1fr; padding: 36px 24px 52px 44px; gap: 36px; }
  .hero h1 { font-size: 42px; }
  .hero-stack { height: 320px; max-width: 440px; width: 100%; margin: 0 auto; }
  .hero-stack .polaroid-capsule img { width: min(330px, 100%); max-width: 72vw; }
  .hero-stack .polaroid-shot img { width: min(300px, 100%); max-width: 64vw; }

  .howto-grid, .mimic-grid { grid-template-columns: 1fr; padding: 24px 24px 56px 44px; gap: 48px; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 44px 24px 48px 44px; }
  .footer { padding: 22px 20px 26px 44px; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 36px; }
  .howto h2, .mimic h2 { font-size: 30px; }
  .cta h2 { font-size: 28px; }
  .hero-stack { height: 280px; }
  .btn-solid, .btn-dashed { font-size: 18px; padding: 10px 18px; }
  .footer { flex-direction: column; align-items: flex-start; }
}
