:root {
  --red: #E4262C;
  --red-dark: #B71C21;
  --yellow: #FFC72C;
  --cream: #FFF5E1;
  --ink: #2A1209;
  --green: #6FA33A;
  --card: #fff;
  --display: 'Bagel Fat One', 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  font-weight: 500;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.wrap {
  width: min(1120px, 92%);
  margin-inline: auto;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: .01em;
}

/* nav */
header.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 245, 225, .88);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(42, 18, 9, .06);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 0;
}

.logo {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.7rem;
  text-decoration: none;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.logo .x {
  font-family: 'Coiny', 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.1em;
  line-height: 1;
}

.logo i {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, .08);
  display: inline-block;
  position: relative;
}

.logo i::after {
  content: "";
  position: absolute;
  inset: .45rem;
  border-radius: 50%;
  background: var(--red);
}

.nav a.btn-sm {
  font-weight: 800;
  text-decoration: none;
  background: var(--ink);
  color: var(--cream);
  padding: .55rem 1.1rem;
  border-radius: 99px;
  font-size: .95rem;
  transition: transform .2s;
}

.nav a.btn-sm:hover {
  transform: translateY(-2px);
}

/* hero carousel */
.hero {
  position: relative;
  background: var(--red);
  color: #fff;
  overflow: hidden;
}

.hero-track {
  display: flex;
  transition: transform .65s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
  overflow: hidden;
  min-height: clamp(500px, 74vh, 640px);
  display: flex;
}

/* slide 1: Papitas Posta portada */
.slide-posta {
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4.5rem;
  background: radial-gradient(ellipse 64% 68% at 50% 42%, #E20214 0%, #CC0209 60%, #990103 100%);
}

.chips-side {
  position: absolute;
  top: 0;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.chips-left {
  left: 0;
  -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, #000 88%, transparent 100%);
}

.chips-right {
  right: 0;
  -webkit-mask-image: linear-gradient(to left, #000 88%, transparent 100%);
  mask-image: linear-gradient(to left, #000 88%, transparent 100%);
}

.posta-lockup {
  position: relative;
  z-index: 2;
  width: clamp(240px, 28vw, 355px);
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(90, 0, 0, .28));
}

/* slide 2: hero original */
.slide-crunch {
  align-items: flex-end;
  padding: clamp(3rem, 7vw, 5.5rem) 0 0;
}

.slide-crunch::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: var(--yellow);
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .95;
}

.slide-crunch .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: end;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45);
  background: rgba(42, 18, 9, .28);
  color: #fff;
  font-family: var(--body);
  font-size: 1.7rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s, transform .2s, border-color .2s;
}

.hero-arrow:hover {
  background: rgba(42, 18, 9, .55);
  border-color: #fff;
  transform: translateY(-50%) scale(1.06);
}

.hero-arrow.prev {
  left: clamp(.6rem, 2vw, 1.5rem);
}

.hero-arrow.next {
  right: clamp(.6rem, 2vw, 1.5rem);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: .55rem;
  padding: .4rem .7rem;
  border-radius: 99px;
  background: rgba(42, 18, 9, .28);
  backdrop-filter: blur(6px);
}

.hero-dots .dot {
  width: .65rem;
  height: .65rem;
  border-radius: 99px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: width .25s, background .25s;
}

.hero-dots .dot.active {
  width: 1.8rem;
  background: var(--yellow);
}

.eyebrow {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem .9rem;
  border-radius: 99px;
  margin-bottom: 1.2rem;
  transform: rotate(-2deg);
}

.hero h1 {
  font-size: clamp(2.8rem, 7.4vw, 5.6rem);
  margin-bottom: 1.2rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--yellow);
}

.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 30em;
  opacity: .95;
  margin-bottom: 2rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.btn {
  font-family: var(--body);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 1rem 1.6rem;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  transition: transform .2s, box-shadow .2s;
  border: 0;
  cursor: pointer;
}

.btn.primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 5px 0 #C99400;
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 #C99400;
}

.btn.ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .7);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, .14);
}

.btn.dark {
  background: var(--ink);
  color: var(--yellow);
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-self: center;
  padding-bottom: 2rem;
}

.hero-art img.pack {
  height: min(440px, 52vw);
  width: auto;
  filter: drop-shadow(0 25px 30px rgba(60, 0, 0, .4));
  transform: rotate(6deg);
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: rotate(3deg) translateY(-14px);
  }
}

.sticker {
  position: absolute;
  left: 2%;
  bottom: 14%;
  background: var(--green);
  color: #fff;
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.05;
  padding: .9rem 1.1rem;
  border-radius: 1.2rem;
  transform: rotate(-7deg);
  box-shadow: 0 8px 0 rgba(0, 0, 0, .18);
  text-align: center;
}

.sticker small {
  display: block;
  font-family: var(--body);
  font-weight: 800;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .9;
}

/* marquee */
.marquee {
  background: var(--ink);
  color: var(--yellow);
  overflow: hidden;
  white-space: nowrap;
  padding: .85rem 0;
  font-family: var(--display);
  font-size: 1.25rem;
}

.marquee div {
  display: inline-block;
  animation: slide 28s linear infinite;
}

.marquee span {
  margin: 0 1.4rem;
}

.marquee span::after {
  content: "✦";
  margin-left: 2.8rem;
  color: var(--red);
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* sections */
section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: .8rem;
  color: var(--red);
}

.sub {
  max-width: 36em;
  font-size: 1.1rem;
  margin-bottom: 2.8rem;
  opacity: .85;
}

.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.card {
  background: var(--card);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 10px 0 rgba(42, 18, 9, .07);
  display: flex;
  flex-direction: column;
  transition: transform .25s;
}

.card:hover {
  transform: translateY(-6px) rotate(-.4deg);
}

.card .ph {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0ece6;
}

.card .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.card:hover .ph img {
  transform: scale(1.05);
}

.card .body {
  padding: 1.5rem 1.6rem 1.8rem;
}

.card h3 {
  font-size: 1.7rem;
  margin-bottom: .4rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.chip {
  font-weight: 800;
  font-size: .82rem;
  padding: .35rem .8rem;
  border-radius: 99px;
  background: var(--cream);
  border: 2px solid rgba(42, 18, 9, .08);
}

.chip.g {
  background: #E2F0CF;
}

.chip.r {
  background: #FFD9D6;
}

.chip.y {
  background: #FFEBB3;
}

/* próximamente */
.soon {
  background: var(--yellow);
  position: relative;
  overflow: hidden;
}

.soon .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.soon .title {
  color: var(--ink);
}

.soon p {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

.boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
}

.box {
  aspect-ratio: 1;
  border-radius: 1.5rem;
  border: 3px dashed rgba(42, 18, 9, .45);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 2.6rem;
  color: rgba(42, 18, 9, .55);
  background: rgba(255, 255, 255, .35);
  animation: pulse 3s ease-in-out infinite;
}

.box:nth-child(2) {
  animation-delay: .4s;
}

.box:nth-child(3) {
  animation-delay: .8s;
}

.box:nth-child(4) {
  animation-delay: 1.2s;
}

.box:nth-child(5) {
  animation-delay: 1.6s;
}

.box:nth-child(6) {
  animation-delay: 2s;
}

@keyframes pulse {
  50% {
    transform: scale(.93) rotate(-3deg);
    background: rgba(255, 255, 255, .6);
  }
}

.pill {
  display: inline-block;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--display);
  padding: .5rem 1.2rem;
  border-radius: 99px;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  transform: rotate(-2deg);
}

/* contacto */
.contact {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact .title {
  color: var(--yellow);
}

.contact .sub {
  margin-inline: auto;
  color: var(--cream);
}

.mailcard {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  background: var(--red);
  padding: 2rem clamp(1.5rem, 5vw, 3.5rem);
  border-radius: 2.2rem;
  text-decoration: none;
  box-shadow: 0 10px 0 var(--red-dark);
  transition: transform .2s, box-shadow .2s;
  max-width: 100%;
}

.mailcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 0 var(--red-dark);
}

.mailcard small {
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .8rem;
  opacity: .9;
}

.mailcard strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.4rem, 4.6vw, 2.8rem);
  color: #fff;
  word-break: break-all;
}

.copy {
  margin-top: 1.4rem;
  background: transparent;
  border: 2px solid rgba(255, 245, 225, .4);
  color: var(--cream);
  font: 800 .95rem var(--body);
  padding: .6rem 1.2rem;
  border-radius: 99px;
  cursor: pointer;
}

.copy:hover {
  background: rgba(255, 245, 225, .12);
}

.wa {
  display: none;
}

footer {
  background: var(--ink);
  color: rgba(255, 245, 225, .6);
  text-align: center;
  padding: 1.6rem 0 2rem;
  font-size: .9rem;
  border-top: 1px solid rgba(255, 245, 225, .1);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s, transform .7s;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion:reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width:820px) {
  .hero-slide {
    min-height: 540px;
  }

  .slide-posta .chips-side {
    width: 34vw;
    opacity: .92;
  }

  .slide-posta .chips-left {
    object-position: right center;
  }

  .slide-posta .chips-right {
    object-position: left center;
  }

  .posta-lockup {
    width: min(260px, 64vw);
  }

  .hero-arrow {
    width: 2.3rem;
    height: 2.3rem;
    font-size: 1.4rem;
  }

  .slide-crunch .wrap,
  .soon .wrap {
    grid-template-columns: 1fr;
  }

  .slide-crunch::before {
    width: 340px;
    height: 340px;
    right: auto;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
  }

  .products {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
    padding-top: 0;
  }

  .hero-art img.pack {
    height: 300px;
  }

  .sticker {
    left: 8%;
    bottom: 10%;
    font-size: 1.05rem;
  }
}
