/* =========================================================================
   DALE UN GIRO — Landing MAXIMALISTA
   Collage creativo: recortes, stickers, cinta, subrayados a mano, memes.
   Tokens del design system + Poppins para UI.
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
  --font-ui: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-logo: 'More Sugar', 'Bagel Fat One', 'Arial Black', sans-serif;
  --hard-shadow: 5px 5px 0 var(--dug-ink);
  --hard-shadow-red: 5px 5px 0 var(--dug-red);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--dug-cream);
  color: var(--dug-ink);
  font-family: var(--font-ui);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--dug-red); color: var(--dug-cream); }

/* grain */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.05;
  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='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- helpers ------------------------------------------------------ */
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; position: relative; }
.section { position: relative; z-index: 1; padding: clamp(64px, 9vw, 120px) 0; }

/* display type: Poppins black + More Sugar accents */
.display {
  font-family: var(--font-ui);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.ms { font-family: var(--font-logo); font-weight: 400; letter-spacing: 0; color: var(--dug-red); text-transform: lowercase; }

/* scribble underline (inline svg via mask) */
.scribble {
  position: relative; display: inline-block; white-space: nowrap;
}
.scribble::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -0.18em; height: 0.28em;
  background: var(--dug-red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C40 8, 80 16, 120 10 S 180 12, 197 8' fill='none' stroke='black' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C40 8, 80 16, 120 10 S 180 12, 197 8' fill='none' stroke='black' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.scribble--cream::after { background: var(--dug-cream); }

/* marker highlight swipe */
.swipe {
  background: linear-gradient(104deg, transparent 1%, color-mix(in srgb, var(--dug-red-soft) 38%, transparent) 3%, color-mix(in srgb, var(--dug-red-soft) 30%, transparent) 97%, transparent 99%);
  padding: 0 0.12em;
  border-radius: 4px;
}

/* hand-written annotation */
.hand {
  font-family: var(--font-script);
  font-size: clamp(20px, 2.2vw, 27px);
  color: var(--dug-ink-soft);
  line-height: 1.15;
}
.hand--red { color: var(--dug-red); }

/* stickers */
.sticker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-marker);
  font-size: 15px;
  letter-spacing: 0.02em;
  background: var(--dug-paper);
  color: var(--dug-ink);
  border: 2px solid var(--dug-ink);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  box-shadow: 3px 3px 0 var(--dug-ink);
  transition: transform var(--dur-base) var(--ease-bounce);
}
.sticker:hover { transform: rotate(0deg) scale(1.06) !important; }
.sticker--red { background: var(--dug-red); color: var(--dug-cream); border-color: var(--dug-ink); }
.sticker--ink { background: var(--dug-ink); color: var(--dug-cream); }

/* eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: var(--fs-sm);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--dug-red);
}
.eyebrow::before {
  content: ""; width: 16px; height: 16px;
  background: var(--dug-red);
  -webkit-mask: url("assets/giro-arrow.svg") center/contain no-repeat;
  mask: url("assets/giro-arrow.svg") center/contain no-repeat;
}
.eyebrow.on-red { color: var(--dug-cream); }
.eyebrow.on-red::before { background: var(--dug-cream); }

/* buttons — chunky, hard shadow */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-weight: 700; font-size: var(--fs-md);
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  border: 2.5px solid var(--dug-ink);
  background: var(--dug-red);
  color: var(--dug-cream);
  cursor: pointer;
  box-shadow: var(--hard-shadow);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast);
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--dug-ink); background: var(--dug-red-deep); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--dug-ink); }
.btn svg { width: 20px; height: 20px; }

.btn--ghost { background: var(--dug-paper); color: var(--dug-ink); }
.btn--ghost:hover { background: var(--dug-cream-warm); }
.btn--on-red { background: var(--dug-cream); color: var(--dug-red); }
.btn--on-red:hover { background: var(--dug-paper); }
.btn--sm { font-size: var(--fs-sm); padding: 10px 20px; border-width: 2px; box-shadow: 3px 3px 0 var(--dug-ink); }
.btn--sm:hover { box-shadow: 5px 5px 0 var(--dug-ink); }
.btn--lg { font-size: calc(var(--fs-md) + 4px); padding: 22px 44px; border-width: 3px; gap: 13px; box-shadow: 6px 6px 0 var(--dug-ink); }
.btn--lg:hover { box-shadow: 9px 9px 0 var(--dug-ink); }
.btn--lg svg { width: 27px; height: 27px; }

/* tape pieces */
.tape {
  position: absolute; z-index: 4;
  width: 92px; height: 26px;
  background: color-mix(in srgb, var(--dug-cream-deep) 82%, transparent);
  border-left: 2px dashed color-mix(in srgb, var(--dug-clay) 40%, transparent);
  border-right: 2px dashed color-mix(in srgb, var(--dug-clay) 40%, transparent);
  box-shadow: 0 1px 3px rgba(31,26,23,.12);
}

/* polaroid frame */
.polaroid {
  margin: 0;
  background: var(--dug-paper);
  border: 2px solid var(--dug-ink);
  box-shadow: var(--hard-shadow);
  padding: 12px 12px 14px;
  border-radius: 6px;
  position: relative;
  transition: transform var(--dur-base) var(--ease-bounce), box-shadow var(--dur-base);
}
.polaroid:hover { transform: rotate(0deg) translateY(-4px) !important; box-shadow: 8px 10px 0 var(--dug-ink); z-index: 6; }
.polaroid image-slot { display: block; width: 100%; height: auto; }
.polaroid .polaroid__video { display: block; width: 100%; object-fit: cover; background: var(--dug-ink); }
.polaroid .polaroid__gif { display: block; width: 100%; object-fit: cover; }
.hero__collage .p1 .polaroid__video { aspect-ratio: 4/5; }
.hero__collage .p2 .polaroid__gif { aspect-ratio: 1/1; }
.hero__collage .p3 .polaroid__video { aspect-ratio: 4/5; }
.polaroid figcaption {
  font-family: var(--font-script);
  font-size: 21px;
  color: var(--dug-ink-soft);
  text-align: center;
  padding-top: 9px;
}

/* floating doodles */
.doodle { position: absolute; pointer-events: none; z-index: 0; }
.doodle--spin { animation: spin 20s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wiggle { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(2.5deg); } }

/* =========================================================================
   NAV
   ========================================================================= */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background var(--dur-base), box-shadow var(--dur-base), border-color var(--dur-base); border-bottom: 2px solid transparent; }
.nav.scrolled {
  background: color-mix(in srgb, var(--dug-cream) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--dug-ink);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand__mark { font-family: var(--font-logo); font-size: 26px; color: var(--dug-red); line-height: 1; text-transform: lowercase; transform: rotate(-2deg); }
.brand__spark { width: 16px; height: 16px; flex: none; margin-top: -12px; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a { font-weight: 600; font-size: var(--fs-sm); padding: 9px 13px; color: var(--dug-ink-soft); position: relative; transition: color var(--dur-fast); }
.nav__links a:hover { color: var(--dug-red); }
.nav__links a.active { color: var(--dug-red); }
.nav__links a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 5px;
  background: var(--dug-red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C40 8, 80 16, 120 10 S 180 12, 197 8' fill='none' stroke='black' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C40 8, 80 16, 120 10 S 180 12, 197 8' fill='none' stroke='black' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav__toggle span { width: 24px; height: 3px; background: var(--dug-ink); border-radius: 2px; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast); }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================================
   HERO — typographic collage
   ========================================================================= */
.hero { padding-top: 140px; padding-bottom: clamp(48px, 6vw, 90px); overflow: visible; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4vw, 56px); align-items: center; }

.hero__stickers { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero__stickers .sticker:nth-child(1) { transform: rotate(-3deg); }
.hero__stickers .sticker:nth-child(2) { transform: rotate(2deg); }

.hero__title { font-size: clamp(46px, 7.2vw, 104px); }
.hero__title .ms { font-size: 1.06em; display: inline-block; transform: rotate(-2deg); }

.hero__lead { font-size: var(--fs-lg); font-weight: 500; color: var(--dug-ink-soft); max-width: 32ch; margin: 24px 0 0; }
.hero__lead .swipe { font-weight: 700; color: var(--dug-ink); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; align-items: center; }
.hero__actions .hand { transform: rotate(-3deg); }

/* collage column — CSS grid, rotations give the collage feel, captions never overlap */
.hero__collage { position: relative; display: grid; grid-template-columns: 1.1fr 0.95fr; gap: 26px 22px; align-items: start; padding: 24px 0 64px; }
.hero__collage .polaroid { width: auto; }
.hero__collage .p1 { transform: rotate(-3deg); z-index: 3; }
.hero__collage .p2 { transform: rotate(3deg); margin-top: 44px; z-index: 4; }
.hero__collage .p3 { transform: rotate(-2deg); width: 80%; justify-self: end; margin-top: -4px; z-index: 5; }
.hero__collage .p1 image-slot { aspect-ratio: 4/3; }
.hero__collage .p2 image-slot { aspect-ratio: 1/1; }
.hero__collage .p3 image-slot { aspect-ratio: 4/3; }
.hero__collage .tape--p1 { top: -13px; left: 38%; transform: rotate(-5deg); }
.hero__collage .tape--p2 { top: -12px; right: 18%; transform: rotate(6deg); }
.hero__collage .tape--p3 { top: -13px; left: 32%; transform: rotate(-3deg); }
.hero__collage .hand-note { position: absolute; right: -2%; bottom: 18%; max-width: 150px; text-align: center; transform: rotate(4deg); z-index: 6; }
.hero__collage .doodle-arrow { position: absolute; right: 10%; bottom: 26%; width: 60px; height: 60px; z-index: 6; transform: rotate(-12deg); }
.hero__spin { position: absolute; top: -34px; right: -8px; width: 84px; height: 84px; z-index: 5; animation: spin 16s linear infinite; }

.hero__badge {
  position: absolute; bottom: 0; right: 4%;
  background: var(--dug-red); color: var(--dug-cream);
  border: 2px solid var(--dug-ink);
  border-radius: var(--radius-lg);
  padding: 13px 20px;
  box-shadow: var(--hard-shadow);
  transform: rotate(-3deg);
  z-index: 7;
}
.hero__badge .num { font-family: var(--font-logo); font-size: 22px; line-height: 1; }
.hero__badge .lbl { font-family: var(--font-script); font-size: 17px; opacity: 0.95; margin-top: 3px; }

/* =========================================================================
   MARQUEES — two crossing strips
   ========================================================================= */
.marquees { position: relative; padding: 40px 0 56px; overflow: hidden; z-index: 2; }
.marquee { overflow: hidden; padding: 13px 0; border-top: 2px solid var(--dug-ink); border-bottom: 2px solid var(--dug-ink); }
.marquee--red { background: var(--dug-red); color: var(--dug-cream); transform: rotate(-1.6deg) scale(1.04); }
.marquee--ink { background: var(--dug-ink); color: var(--dug-cream); transform: rotate(1.3deg) scale(1.04); margin-top: -8px; }
.marquee__track { display: flex; gap: 44px; width: max-content; animation: slide 26s linear infinite; }
.marquee--ink .marquee__track { animation-duration: 32s; animation-direction: reverse; }
.marquee__track span { font-family: var(--font-logo); font-size: 24px; text-transform: lowercase; display: inline-flex; align-items: center; gap: 44px; white-space: nowrap; }
.marquee__track span::after {
  content: ""; width: 20px; height: 20px;
  background: var(--dug-cream);
  -webkit-mask: url("assets/giro-arrow.svg") center/contain no-repeat;
  mask: url("assets/giro-arrow.svg") center/contain no-repeat;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* =========================================================================
   NOSOTROS — red band, torn edges
   ========================================================================= */
.nosotros { background: var(--dug-red); color: var(--dug-cream); }
.nosotros::before, .nosotros::after {
  content: ""; position: absolute; left: 0; right: 0; height: 18px; z-index: 2;
  background: var(--dug-red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 20' preserveAspectRatio='none'%3E%3Cpath d='M0 20 L0 12 L40 4 L95 14 L150 3 L210 13 L280 5 L340 15 L400 4 L470 12 L540 3 L600 14 L660 5 L730 13 L800 4 L860 14 L920 6 L990 13 L1050 3 L1120 12 L1200 5 L1200 20 Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 20' preserveAspectRatio='none'%3E%3Cpath d='M0 20 L0 12 L40 4 L95 14 L150 3 L210 13 L280 5 L340 15 L400 4 L470 12 L540 3 L600 14 L660 5 L730 13 L800 4 L860 14 L920 6 L990 13 L1050 3 L1120 12 L1200 5 L1200 20 Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.nosotros::before { top: -17px; }
.nosotros::after { bottom: -17px; transform: scaleY(-1); }
.nosotros__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.nosotros__statement { font-family: var(--font-ui); font-weight: 800; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.12; letter-spacing: -0.02em; margin: 18px 0 0; }
.nosotros__statement .ms { color: var(--dug-cream); font-size: 1.05em; }
.nosotros__statement .scribble::after { background: var(--dug-cream); }
.nosotros__doodle { position: absolute; left: -30px; bottom: -40px; width: 130px; opacity: 0.25; }
.nosotros__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.nosotros__cols h4 { font-weight: 700; font-size: var(--fs-md); margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.nosotros__cols h4::before { content: ""; width: 14px; height: 14px; background: var(--dug-cream); -webkit-mask: url("assets/sparkle.svg") center/contain no-repeat; mask: url("assets/sparkle.svg") center/contain no-repeat; }
.nosotros__cols p { color: color-mix(in srgb, var(--dug-cream) 88%, var(--dug-red)); margin: 0; }
.steps { display: flex; flex-direction: column; gap: 20px; margin-top: 34px; }
.step { display: flex; gap: 18px; align-items: flex-start; background: color-mix(in srgb, var(--dug-red-deep) 45%, var(--dug-red)); border: 2px dashed color-mix(in srgb, var(--dug-cream) 50%, var(--dug-red)); border-radius: var(--radius-lg); padding: 18px 22px; transform: rotate(-0.4deg); }
.step:nth-child(2) { transform: rotate(0.5deg); }
.step:nth-child(3) { transform: rotate(-0.3deg); }
.step__n { font-family: var(--font-logo); font-size: 42px; line-height: 0.9; color: var(--dug-cream); flex: none; width: 50px; }
.step__b h4 { margin: 0 0 4px; font-weight: 700; font-size: var(--fs-md); }
.step__b p { margin: 0; color: color-mix(in srgb, var(--dug-cream) 84%, var(--dug-red)); font-size: var(--fs-base); }

/* =========================================================================
   SERVICIOS — rotated cutout cards
   ========================================================================= */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 60px); flex-wrap: wrap; }
.sec-head .display { font-size: clamp(36px, 5vw, 64px); }
.sec-head .display .ms { font-size: 1.06em; }
.sec-head p { max-width: 38ch; color: var(--dug-ink-soft); font-size: var(--fs-md); margin: 14px 0 0; }

.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.svc-card {
  border: 2px solid var(--dug-ink);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative; overflow: visible;
  box-shadow: var(--hard-shadow);
  transition: transform var(--dur-base) var(--ease-bounce), box-shadow var(--dur-base);
}
.svc-card:nth-child(1) { background: var(--dug-paper); transform: rotate(-1deg); }
.svc-card:nth-child(2) { background: var(--dug-red); color: var(--dug-cream); transform: rotate(0.8deg); }
.svc-card:nth-child(3) { background: var(--dug-ink); color: var(--dug-cream); transform: rotate(0.6deg); }
.svc-card:nth-child(4) { background: var(--dug-cream-warm); transform: rotate(-0.8deg); }
.svc-card:hover { transform: rotate(0deg) translateY(-5px); box-shadow: 8px 10px 0 var(--dug-ink); z-index: 3; }
.svc-card:nth-child(2):hover, .svc-card:nth-child(3):hover { box-shadow: 8px 10px 0 var(--dug-red-deep); }
.svc-card__num {
  position: absolute; top: -18px; left: 24px;
  font-family: var(--font-logo); font-size: 20px;
  background: var(--dug-cream); color: var(--dug-red);
  border: 2px solid var(--dug-ink); border-radius: var(--radius-pill);
  padding: 4px 14px;
  box-shadow: 3px 3px 0 var(--dug-ink);
  transform: rotate(-4deg);
}
.svc-card h3 { font-family: var(--font-logo); font-weight: 400; font-size: 30px; text-transform: lowercase; margin: 12px 0 16px; line-height: 1; }
.svc-card:nth-child(1) h3, .svc-card:nth-child(4) h3 { color: var(--dug-red); }
.svc-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.svc-card li { display: flex; gap: 10px; align-items: center; font-size: var(--fs-base); font-weight: 500; }
.svc-card:nth-child(1) li, .svc-card:nth-child(4) li { color: var(--dug-ink-soft); }
.svc-card li::before { content: ""; width: 12px; height: 12px; flex: none; background: currentColor; -webkit-mask: url("assets/sparkle.svg") center/contain no-repeat; mask: url("assets/sparkle.svg") center/contain no-repeat; opacity: 0.85; }
.svc-card .hand-tag { position: absolute; right: 18px; bottom: -14px; transform: rotate(-2deg); font-size: 11.5px; padding: 5px 12px; max-width: 64%; box-shadow: 2px 2px 0 var(--dug-ink); line-height: 1.25; }

/* =========================================================================
   TRABAJOS — corkboard collage
   ========================================================================= */
.trabajos { background: var(--dug-cream-warm); border-top: 2px dashed var(--dug-cream-deep); border-bottom: 2px dashed var(--dug-cream-deep); }
.work-board { display: grid; grid-template-columns: repeat(12, 1fr); gap: 30px; }
.work { position: relative; }
.work .polaroid { width: 100%; }
.work--a { grid-column: span 7; }
.work--a .polaroid { transform: rotate(-1.6deg); }
.work--b { grid-column: span 5; margin-top: 38px; }
.work--b .polaroid { transform: rotate(2.2deg); }
.work--c { grid-column: span 5; margin-top: -16px; }
.work--c .polaroid { transform: rotate(-2.4deg); }
.work--d { grid-column: span 7; margin-top: 22px; }
.work--d .polaroid { transform: rotate(1.4deg); }
.work .tape { top: -12px; left: 40%; transform: rotate(-4deg); }
.work--b .tape { transform: rotate(5deg); }
.work--d .tape { transform: rotate(3deg); }
.work__tag {
  position: absolute; right: -10px; top: -14px; z-index: 5;
  font-family: var(--font-marker); font-size: 14px;
  background: var(--dug-red); color: var(--dug-cream);
  border: 2px solid var(--dug-ink);
  padding: 6px 14px; border-radius: var(--radius-pill);
  box-shadow: 3px 3px 0 var(--dug-ink);
  transform: rotate(4deg);
}
.work--a image-slot { aspect-ratio: 16/10; }

/* brand manual stack (Super Container) */
.brand-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 70% 20%, rgba(255, 255, 255, 0.10), transparent 60%),
    #007a46;
}
.brand-stack img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82%;
  height: auto;
  border: 4px solid #fff;
  box-shadow: 0 12px 26px rgba(31, 26, 23, 0.32);
  transition: transform 0.55s var(--ease-out, ease), opacity 0.45s ease;
  will-change: transform, opacity;
}
.work--b image-slot { aspect-ratio: 4/5; }
.work--b .work__photo { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.work--c image-slot { aspect-ratio: 4/5; }
.work--d image-slot { aspect-ratio: 16/10; }
.work--c .polaroid__video { aspect-ratio: 4/5; }
.work--d .polaroid__video { aspect-ratio: 16/10; }
.trabajos__foot { display: flex; gap: 18px; justify-content: center; align-items: center; margin-top: 56px; flex-wrap: wrap; }
.trabajos__doodle { position: absolute; right: 2%; top: 8%; width: 90px; opacity: 0.18; }

/* =========================================================================
   PLANES
   ========================================================================= */
.planes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.plan {
  background: var(--dug-paper);
  border: 2px solid var(--dug-ink);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  display: flex; flex-direction: column;
  box-shadow: var(--hard-shadow);
  position: relative;
  transition: transform var(--dur-base) var(--ease-bounce), box-shadow var(--dur-base);
}
.plan:nth-child(1) { transform: rotate(-0.9deg); }
.plan:nth-child(3) { transform: rotate(0.9deg); }
.plan:hover { transform: rotate(0deg) translateY(-5px); box-shadow: 8px 10px 0 var(--dug-ink); z-index: 2; }
.plan--feat { background: var(--dug-red); color: var(--dug-cream); transform: scale(1.04); z-index: 1; }
.plan--feat:hover { transform: scale(1.04) translateY(-5px); }
.plan__badge {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  font-family: var(--font-marker); font-size: 14px;
  background: var(--dug-cream); color: var(--dug-red);
  border: 2px solid var(--dug-ink); border-radius: var(--radius-pill);
  padding: 6px 16px;
  box-shadow: 3px 3px 0 var(--dug-ink);
  white-space: nowrap;
}
.plan__name { font-family: var(--font-logo); font-weight: 400; font-size: 38px; text-transform: lowercase; line-height: 1; margin: 0 0 6px; color: var(--dug-red); }
.plan--feat .plan__name { color: var(--dug-cream); }
.plan__for { font-size: var(--fs-sm); color: var(--dug-ink-soft); margin: 0 0 24px; }
.plan--feat .plan__for { color: color-mix(in srgb, var(--dug-cream) 85%, var(--dug-red)); }
.plan__list { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan__list li { display: flex; gap: 11px; align-items: flex-start; font-size: var(--fs-base); font-weight: 500; }
.plan__list li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; stroke: var(--dug-red); }
.plan--feat .plan__list li svg { stroke: var(--dug-cream); }
.plan__note { font-family: var(--font-script); font-size: 19px; color: var(--dug-clay); margin: 0 0 18px; transform: rotate(-1deg); }
.plan--feat .plan__note { color: color-mix(in srgb, var(--dug-cream) 80%, var(--dug-red)); }
.plan .btn { align-self: stretch; justify-content: center; }

/* =========================================================================
   MÉTRICAS — ink board
   ========================================================================= */
.metricas { background: var(--dug-ink); color: var(--dug-cream); overflow: hidden; }
.metricas .doodle-a { top: 10%; left: 4%; width: 70px; opacity: 0.16; }
.metricas .doodle-b { bottom: 12%; right: 5%; width: 100px; opacity: 0.14; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: center; }
.stat { padding: 12px; position: relative; }
.stat:nth-child(1) { transform: rotate(-1deg); }
.stat:nth-child(3) { transform: rotate(1deg); }
.stat__num { font-family: var(--font-logo); font-size: clamp(64px, 8.5vw, 116px); color: var(--dug-red-soft); line-height: 0.9; }
.stat__num .plus { color: var(--dug-cream); }
.stat__lbl { font-family: var(--font-script); font-size: clamp(20px, 2vw, 26px); color: color-mix(in srgb, var(--dug-cream) 82%, var(--dug-ink)); margin-top: 12px; max-width: 20ch; margin-inline: auto; line-height: 1.2; }

/* =========================================================================
   CLIENTES
   ========================================================================= */
.clientes__wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.logo-cell {
  min-width: 0; width: 100%; height: auto; aspect-ratio: 3/2;
  background: var(--dug-paper);
  border: 2px solid var(--dug-cream-deep);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-bounce), border-color var(--dur-base), box-shadow var(--dur-base);
}
/* absolute centering: percentage constraints resolve reliably against the
   padding box, regardless of aspect-ratio-derived heights */
.logo-cell img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 78%; max-height: 70%; object-fit: contain; }
.logo-cell--dark { background: var(--dug-ink); border-color: var(--dug-ink); }
.logo-cell--black { background: #000; border-color: #000; }
.logo-cell--black img { max-width: 86%; max-height: 86%; }
.logo-cell--cta {
  font-family: var(--font-script);
  font-size: 22px;
  color: var(--dug-red);
  border: 2px dashed var(--dug-red);
  background: transparent;
  text-align: center;
  padding: 12px;
  display: grid; place-items: center;
}
.logo-cell--cta:hover { background: var(--dug-red); color: var(--dug-cream); border-style: solid; }
.clientes__wall .logo-cell:nth-child(odd) { transform: rotate(-1.2deg); }
.clientes__wall .logo-cell:nth-child(even) { transform: rotate(1.2deg); }
.logo-cell:hover { transform: rotate(0) scale(1.05); border-color: var(--dug-ink); box-shadow: 4px 4px 0 var(--dug-ink); }

/* =========================================================================
   CTA FINAL
   ========================================================================= */
.cta-final { background: var(--dug-red); color: var(--dug-cream); text-align: center; overflow: hidden; }
.cta-final::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 18px; z-index: 2;
  background: var(--dug-cream);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 20' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L0 8 L40 16 L95 6 L150 17 L210 7 L280 15 L340 5 L400 16 L470 8 L540 17 L600 6 L660 15 L730 7 L800 16 L860 6 L920 14 L990 7 L1050 17 L1120 8 L1200 15 L1200 0 Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 20' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L0 8 L40 16 L95 6 L150 17 L210 7 L280 15 L340 5 L400 16 L470 8 L540 17 L600 6 L660 15 L730 7 L800 16 L860 6 L920 14 L990 7 L1050 17 L1120 8 L1200 15 L1200 0 Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.cta-final .display { font-size: clamp(40px, 6.5vw, 92px); }
.cta-final .display .ms { color: var(--dug-cream); }
.cta-final .display .scribble::after { background: var(--dug-cream); }
.cta-final p { font-size: var(--fs-lg); color: color-mix(in srgb, var(--dug-cream) 88%, var(--dug-red)); max-width: 44ch; margin: 22px auto 36px; }
.cta-final__spark { position: absolute; width: 110px; height: 110px; opacity: 0.18; }
.cta-final__spark.a { top: 10%; left: 6%; animation: spin 22s linear infinite; }
.cta-final__spark.b { bottom: 8%; right: 7%; width: 160px; height: 160px; animation: spin 28s linear infinite reverse; }
.cta-final .hand { color: color-mix(in srgb, var(--dug-cream) 90%, var(--dug-red)); display: inline-block; margin-top: 18px; transform: rotate(-2deg); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { background: var(--dug-ink); color: var(--dug-cream); padding: clamp(56px, 7vw, 88px) 0 36px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__mark { font-family: var(--font-logo); font-size: 44px; color: var(--dug-cream); text-transform: lowercase; line-height: 1; transform: rotate(-1.5deg); display: inline-block; }
.footer__tag { color: color-mix(in srgb, var(--dug-cream) 70%, var(--dug-ink)); margin: 16px 0 0; max-width: 32ch; }
.footer h5 { font-size: var(--fs-sm); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dug-red-soft); margin: 0 0 18px; }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { display: inline-flex; align-items: center; gap: 11px; color: color-mix(in srgb, var(--dug-cream) 86%, var(--dug-ink)); transition: color var(--dur-fast), transform var(--dur-fast); }
.footer__links a:hover { color: var(--dug-cream); transform: translateX(3px); }
.footer__links svg { width: 18px; height: 18px; flex: none; stroke: var(--dug-red-soft); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 2px dashed color-mix(in srgb, var(--dug-cream) 20%, var(--dug-ink)); flex-wrap: wrap; }
.footer__bottom p { margin: 0; font-size: var(--fs-sm); color: color-mix(in srgb, var(--dug-cream) 60%, var(--dug-ink)); }
.footer__bottom .hand { font-size: 19px; color: color-mix(in srgb, var(--dug-cream) 70%, var(--dug-ink)); }

/* =========================================================================
   REVEAL — content is visible by default; .pre (added by JS only when the
   page is actually visible) sets the hidden start state. If transitions
   can't run (hidden tab/iframe), nothing is ever hidden.
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal.pre { opacity: 0; transform: translateY(26px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
  .reveal.pre.in { opacity: 1; transform: none; }
  .reveal.pre[data-d="1"] { transition-delay: 0.08s; }
  .reveal.pre[data-d="2"] { transition-delay: 0.16s; }
  .reveal.pre[data-d="3"] { transition-delay: 0.24s; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__collage { grid-template-columns: 1fr 1fr; gap: 26px; padding: 20px 0 76px; }
  .hero__collage .polaroid { width: 100%; }
  .hero__collage .p2 { margin-top: 0; }
  .hero__collage .p3 { grid-column: span 2; width: 100%; max-width: 60%; justify-self: center; margin-top: 0; }
  .hero__collage .hand-note, .hero__collage .doodle-arrow { display: none; }
  .hero__badge { right: 0; bottom: 0; }
  .nosotros__grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .planes__grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .plan--feat { transform: none; }
  .plan--feat:hover { transform: translateY(-5px); }
  .work--a, .work--b, .work--c, .work--d { grid-column: span 12; margin-top: 0; }
  .clientes__wall { grid-template-columns: repeat(4, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--dug-cream); border-bottom: 2px solid var(--dug-ink);
    padding: 12px 24px 24px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity var(--dur-base), transform var(--dur-base);
  }
  .nav.open .nav__links { display: flex; opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 14px 8px; font-size: var(--fs-md); border-bottom: 1px dashed var(--dug-cream-deep); }
  .nav__links a:last-child { border-bottom: none; }
  .hero__collage { grid-template-columns: 1fr; }
  .hero__collage .p3 { grid-column: span 1; max-width: 100%; }.stat-grid { grid-template-columns: 1fr; gap: 40px; }
  .clientes__wall { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .sec-head { flex-direction: column; align-items: flex-start; }
}

/* =========================================================================
   MOBILE POLISH (phone) — fixes for collage size, stickers, CTA centering
   ========================================================================= */
@media (max-width: 720px) {
  /* prevent decorative absolute elements from pushing horizontal scroll */
  body { overflow-x: hidden; }

  /* smaller, tidier section headings so they never overflow */
  .sec-head .display { font-size: clamp(27px, 8.4vw, 56px); }

  /* hero collage: two small cards instead of one giant one */
  .hero__collage { grid-template-columns: 1fr 1fr; gap: 16px 14px; padding: 8px 0 28px; }
  .hero__collage .p1 { transform: rotate(-2deg); margin-top: 0; }
  .hero__collage .p2 { transform: rotate(2deg); margin-top: 16px; }
  .hero__collage .p3 { grid-column: 1 / -1; width: auto; max-width: 60%; justify-self: center; margin-top: 8px; transform: rotate(-1.5deg); }
  /* @daleungiro_ badge: drop it out of overlap, center it below the collage */
  .hero__badge { position: static; grid-column: 1 / -1; justify-self: center; margin-top: 16px; transform: rotate(-2deg); }

  /* service stickers: flow under the list instead of covering it */
  .svc-card .hand-tag {
    position: static; display: inline-flex;
    right: auto; bottom: auto; max-width: 100%;
    margin-top: 16px; transform: rotate(-1.5deg);
  }

  /* final WhatsApp CTA: keep it within the screen and truly centered */
  .cta-final .btn--lg {
    padding: 16px 22px; font-size: var(--fs-base); gap: 9px;
    max-width: 100%; box-shadow: 5px 5px 0 var(--dug-ink);
  }
  .cta-final .btn--lg svg { width: 22px; height: 22px; }

  /* Trabajos: full-width like desktop, but centered and slightly smaller */
  .work-board { gap: 22px; }
  .work--a, .work--b, .work--c, .work--d { grid-column: span 12; margin-top: 0; justify-self: center; width: 86%; }
  .work__tag { font-size: 12px; padding: 4px 11px; right: -8px; top: -12px; }
}

