:root {
  --crazy-green: #8cc63f;
  --crazy-green-dark: #5d9f16;
  --crazy-yellow: #ffc914;
  --crazy-orange: #ff9700;
  --crazy-red: #ef3e23;
  --crazy-blue: #1e95d4;
  --crazy-black: #161616;
  --crazy-cream: #fff7db;
  --crazy-white: #ffffff;
  --shadow-soft: 0 24px 70px rgba(25, 25, 25, 0.14);
  --shadow-card: 0 18px 40px rgba(25, 25, 25, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --header-height: 104px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family:
    "Nunito",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--crazy-black);
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(255, 201, 20, 0.35),
      transparent 28rem
    ),
    radial-gradient(
      circle at 92% 15%,
      rgba(140, 198, 63, 0.28),
      transparent 25rem
    ),
    linear-gradient(180deg, #fffdfa 0%, #fff7db 38%, #ffffff 100%);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
.form-control,
.form-select {
  transition: all 0.25s ease;
}

::selection {
  color: var(--crazy-black);
  background: var(--crazy-yellow);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -100px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--crazy-black);
  color: var(--crazy-white);
}

.skip-link:focus {
  top: 1rem;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  width: 0%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--crazy-green),
    var(--crazy-yellow),
    var(--crazy-orange)
  );
  box-shadow: 0 0 18px rgba(255, 151, 0, 0.55);
}

.section-pad {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

.site-header {
  pointer-events: none;
}

.top-ribbon,
.crazy-navbar {
  pointer-events: auto;
}

.top-ribbon {
  padding: 0.45rem 0;
  background: var(--crazy-black);
  color: var(--crazy-white);
  font-size: 0.92rem;
  font-weight: 800;
}

.top-ribbon a:hover {
  color: var(--crazy-yellow);
}

.crazy-navbar {
  margin-top: 0;
  padding: 0.55rem 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(22, 22, 22, 0.08);
  box-shadow: 0 12px 32px rgba(22, 22, 22, 0.08);
}

.site-header.is-scrolled .crazy-navbar {
  padding: 0.25rem 0;
  background: rgba(255, 255, 255, 0.94);
}

.brand-mark,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--crazy-green-dark);
}

.brand-mark img,
.footer-brand img {
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.12));
}

.navbar-nav .nav-link {
  position: relative;
  padding: 0.65rem 0.85rem;
  color: var(--crazy-black);
  font-weight: 900;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.35rem;
  height: 4px;
  border-radius: 999px;
  background: var(--crazy-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--crazy-green-dark);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border: 0;
  border-radius: 14px;
  background: var(--crazy-yellow);
  box-shadow: 0 8px 20px rgba(22, 22, 22, 0.12);
}

.btn-crazy,
.btn-outline-crazy,
.filter-btn {
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.btn-crazy {
  border: 3px solid var(--crazy-black);
  background: linear-gradient(135deg, var(--crazy-yellow), var(--crazy-orange));
  color: var(--crazy-black);
  box-shadow:
    0 10px 0 var(--crazy-black),
    0 20px 32px rgba(255, 151, 0, 0.25);
}

.btn-crazy:hover,
.btn-crazy:focus-visible {
  border-color: var(--crazy-black);
  background: linear-gradient(135deg, var(--crazy-green), var(--crazy-yellow));
  color: var(--crazy-black);
  transform: translateY(-4px) rotate(-1deg);
  box-shadow:
    0 14px 0 var(--crazy-black),
    0 24px 36px rgba(140, 198, 63, 0.28);
}

.btn-outline-crazy {
  border: 3px solid var(--crazy-green);
  background: var(--crazy-white);
  color: var(--crazy-black);
  box-shadow: 0 8px 0 var(--crazy-green);
}

.btn-outline-crazy:hover,
.btn-outline-crazy:focus-visible {
  background: var(--crazy-green);
  color: var(--crazy-white);
  transform: translateY(-3px);
  box-shadow: 0 11px 0 var(--crazy-black);
}

.hero-section {
  position: relative;
  min-height: auto;
  display: grid;
  align-items: start;
  padding-top: clamp(5.8rem, 7vw, 7rem);
  padding-bottom: clamp(3.2rem, 5vw, 5.2rem);
  background:
    linear-gradient(135deg, rgba(255, 201, 20, 0.92), rgba(255, 151, 0, 0.83)),
    radial-gradient(
      circle at 15% 20%,
      rgba(255, 255, 255, 0.44),
      transparent 16rem
    );
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.75) 0 12px, transparent 13px),
    radial-gradient(circle, rgba(140, 198, 63, 0.72) 0 10px, transparent 11px);
  background-size:
    120px 120px,
    180px 180px;
  background-position:
    20px 30px,
    60px 80px;
  animation: bgDrift 18s linear infinite;
}

.hero-bg-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.48;
  pointer-events: none;
}

.hero-bg-shape-1 {
  width: 28rem;
  height: 28rem;
  left: -12rem;
  bottom: -8rem;
  background: var(--crazy-green);
}

.hero-bg-shape-2 {
  width: 20rem;
  height: 20rem;
  right: -6rem;
  top: 9rem;
  background: var(--crazy-yellow);
  border: 34px solid var(--crazy-green);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.42rem 0.85rem;
  border: 2px solid rgba(22, 22, 22, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--crazy-green-dark);
  font-size: 0.84rem;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--crazy-orange);
  box-shadow:
    14px 0 0 var(--crazy-yellow),
    28px 0 0 var(--crazy-green);
}

.display-title,
.section-title,
.section-heading h2,
.challenge-card h2 {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 700;
  line-height: 0.93;
  letter-spacing: -0.05em;
}

.display-title {
  max-width: 14ch;
  margin-bottom: 1.1rem;
  font-size: clamp(2.35rem, 5.3vw, 4.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--crazy-black);
  text-wrap: balance;
}

.display-title span {
  color: var(--crazy-white);
  text-shadow:
    3px 3px 0 var(--crazy-green),
    6px 6px 0 var(--crazy-black);
}

.hero-copy,
.lead-copy,
.section-heading p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 800;
  line-height: 1.65;
}

.hero-copy {
  max-width: 34rem;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 40rem;
}

.hero-metrics div {
  padding: 1rem;
  border: 2px solid rgba(22, 22, 22, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 22px rgba(22, 22, 22, 0.08);
}

.hero-metrics strong {
  display: block;
  font-family: "Fredoka", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.hero-metrics span {
  display: block;
  font-size: 0.86rem;
  font-weight: 900;
}

.hero-main-row {
  align-items: flex-start !important;
}

.hero-product-stage {
  position: relative;
  min-height: clamp(360px, 48vw, 560px);
  margin-top: -0.4rem;
}

.hero-product {
  position: absolute;
  display: block;
  filter: drop-shadow(0 28px 30px rgba(22, 22, 22, 0.22));
  will-change: transform;
}

.hero-product-main {
  z-index: 3;
  width: min(76vw, 500px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: productFloat 5s ease-in-out infinite;
}

.hero-product-left {
  z-index: 2;
  width: min(42vw, 270px);
  left: 1rem;
  top: 4rem;
  transform: rotate(-12deg);
  animation: productFloatAlt 5.8s ease-in-out infinite;
}

.hero-product-right {
  z-index: 4;
  width: min(38vw, 260px);
  right: 0;
  bottom: 2rem;
  transform: rotate(10deg);
  animation: productFloatAlt 6.2s ease-in-out infinite reverse;
}

.hero-sticker {
  position: absolute;
  z-index: 5;
  padding: 0.65rem 1rem;
  border: 3px solid var(--crazy-black);
  border-radius: 999px;
  background: var(--crazy-white);
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  box-shadow: 8px 8px 0 var(--crazy-black);
  animation: stickerWiggle 2.7s ease-in-out infinite;
}

.sticker-top {
  right: 10%;
  top: 8%;
  color: var(--crazy-red);
}

.sticker-bottom {
  left: 4%;
  bottom: 10%;
  color: var(--crazy-green-dark);
}

.floating-snack {
  position: absolute;
  z-index: 1;
  font-size: clamp(2rem, 6vw, 5.4rem);
  opacity: 0.85;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.18));
  animation: snackFloat 7s ease-in-out infinite;
  pointer-events: none;
}

.snack-1 {
  left: 6%;
  top: 24%;
  animation-delay: -0.5s;
}
.snack-2 {
  right: 8%;
  top: 28%;
  animation-delay: -1.4s;
}
.snack-3 {
  left: 14%;
  bottom: 12%;
  animation-delay: -2.2s;
}
.snack-4 {
  right: 20%;
  bottom: 9%;
  animation-delay: -3.1s;
}

.ticker-strip {
  position: relative;
  overflow: hidden;
  padding: 0.85rem 0;
  background: var(--crazy-green);
  color: var(--crazy-white);
  border-top: 5px solid var(--crazy-black);
  border-bottom: 5px solid var(--crazy-black);
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 200%;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1.55rem, 4vw, 3.2rem);
  font-weight: 700;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}

.ticker-track i {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--crazy-yellow);
  box-shadow: 22px 0 0 var(--crazy-orange);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading h2,
.section-title {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 6vw, 5rem);
  text-wrap: balance;
}

.mood-card,
.product-card,
.branch-card,
.moment-card,
.builder-card,
.challenge-card,
.crazy-accordion .accordion-item {
  border: 3px solid rgba(22, 22, 22, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
}

.mood-card {
  height: 100%;
  padding: clamp(1.15rem, 3vw, 1.7rem);
  overflow: hidden;
  position: relative;
}

.mood-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(140, 198, 63, 0.18);
}

.mood-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 1rem;
  border: 3px solid var(--crazy-black);
  border-radius: 22px;
  background: var(--crazy-yellow);
  font-size: 2rem;
  box-shadow: 8px 8px 0 var(--crazy-black);
}

.mood-card h3,
.product-card h3,
.moment-card h3,
.branch-card h3,
.builder-card h3 {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
}

.mood-card p,
.product-card p,
.moment-card p,
.branch-card p {
  margin-bottom: 0;
  color: rgba(22, 22, 22, 0.72);
  font-weight: 700;
  line-height: 1.55;
}

.builder-section {
  position: relative;
  background:
    radial-gradient(
      circle at 0% 10%,
      rgba(239, 62, 35, 0.12),
      transparent 22rem
    ),
    radial-gradient(
      circle at 95% 70%,
      rgba(140, 198, 63, 0.18),
      transparent 26rem
    ),
    #ffffff;
}

.check-list {
  padding: 0;
  margin: 1.4rem 0 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
  font-weight: 900;
}

.check-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--crazy-green);
  color: var(--crazy-white);
  box-shadow: 4px 4px 0 var(--crazy-black);
}

.builder-card {
  position: relative;
  padding: clamp(1.2rem, 4vw, 2.5rem);
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.92),
      rgba(255, 247, 219, 0.96)
    ),
    radial-gradient(
      circle at 100% 0%,
      rgba(255, 201, 20, 0.42),
      transparent 18rem
    );
}

.builder-card::before {
  content: "";
  position: absolute;
  inset: auto -50px -80px auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: var(--crazy-yellow);
  opacity: 0.36;
}

.builder-preview,
.builder-controls,
.builder-cta {
  position: relative;
  z-index: 1;
}

.builder-preview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 1.8rem;
}

.bowl {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(120px, 18vw, 170px);
  height: clamp(120px, 18vw, 170px);
  border: 5px solid var(--crazy-black);
  border-radius: 42% 42% 48% 48%;
  background: linear-gradient(180deg, #fff 0%, #fff7db 100%);
  box-shadow: 12px 12px 0 var(--crazy-black);
  overflow: hidden;
}

.bowl::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 18%;
  height: 22px;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.12);
}

.bowl-emoji {
  position: relative;
  z-index: 2;
  font-size: clamp(3.3rem, 8vw, 5.5rem);
  animation: stickerWiggle 2.2s ease-in-out infinite;
}

.bowl-sauce {
  position: absolute;
  z-index: 1;
  display: block;
  width: 18px;
  height: 76px;
  border-radius: 999px;
  background: var(--crazy-red);
  opacity: 0.75;
  transform: rotate(26deg);
}

.sauce-1 {
  left: 32%;
  top: 18%;
}
.sauce-2 {
  right: 31%;
  top: 20%;
  height: 60px;
  background: var(--crazy-green);
  transform: rotate(-22deg);
}

.mini-label {
  margin-bottom: 0.2rem;
  color: var(--crazy-green-dark);
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.builder-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.builder-controls label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 1000;
}

.form-select,
.form-control {
  border: 3px solid rgba(22, 22, 22, 0.16);
  border-radius: 16px;
  padding: 0.8rem 1rem;
  font-weight: 800;
  box-shadow: none !important;
}

.form-select:focus,
.form-control:focus {
  border-color: var(--crazy-green);
}

.builder-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.products-section {
  background: linear-gradient(180deg, #fff7db 0%, #ffffff 100%);
}

.product-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.2rem;
}

.filter-btn {
  border: 3px solid rgba(22, 22, 22, 0.14);
  background: var(--crazy-white);
  padding: 0.7rem 1.05rem;
  color: var(--crazy-black);
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--crazy-black);
  background: var(--crazy-green);
  color: var(--crazy-white);
  box-shadow: 6px 6px 0 var(--crazy-black);
  transform: translateY(-2px);
}

.product-item.is-hidden {
  display: none;
}

.product-card {
  height: 100%;
  overflow: hidden;
  background: #fff;
}

.product-image {
  display: grid;
  place-items: center;
  height: 310px;
  background:
    radial-gradient(circle, rgba(255, 201, 20, 0.42), transparent 62%),
    linear-gradient(135deg, rgba(140, 198, 63, 0.16), rgba(255, 151, 0, 0.18));
}

.product-image img {
  width: 86%;
  max-height: 290px;
  object-fit: contain;
  filter: drop-shadow(0 20px 18px rgba(0, 0, 0, 0.18));
  transform: scale(1.04);
}

.product-card:hover .product-image img {
  transform: scale(1.1) rotate(-2deg);
}

.product-body {
  padding: 1.25rem;
}

.product-tag,
.state-pill {
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: var(--crazy-yellow);
  color: var(--crazy-black);
  font-size: 0.82rem;
  font-weight: 1000;
}

.moments-section {
  position: relative;
  isolation: isolate;
  background: linear-gradient url("../img/fondo.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--crazy-white);
}

.moments-section .eyebrow {
  border-color: rgba(255, 255, 255, 0.18);
}

.moments-section .lead-copy {
  color: rgba(255, 255, 255, 0.84);
}

.moment-card {
  height: 100%;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--crazy-white);
  backdrop-filter: blur(10px);
}

.moment-card span {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: "Fredoka", sans-serif;
  font-size: 2.5rem;
  color: var(--crazy-yellow);
}

.moment-card p {
  color: rgba(255, 255, 255, 0.78);
}

.promos-section {
  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(239, 62, 35, 0.14),
      transparent 22rem
    ),
    #fff;
}

.rounded-crazy {
  overflow: hidden;
  border: 5px solid var(--crazy-black);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background-color: var(--crazy-black);
  background-size: 55%;
}

.branches-section {
  background: linear-gradient(180deg, #fff7db 0%, #fff 100%);
}

.search-box {
  position: relative;
}

.search-box i {
  position: absolute;
  z-index: 1;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--crazy-green-dark);
  font-size: 1.2rem;
}

.search-box .form-control {
  padding-left: 2.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.branch-card {
  height: 100%;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.92);
}

.branch-card h3 {
  margin-bottom: 0.6rem;
}

.branch-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  color: var(--crazy-green-dark);
  font-weight: 1000;
}

.branch-card a:hover {
  color: var(--crazy-orange);
  transform: translateX(3px);
}

.no-results {
  margin: 2rem 0 0;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  background: rgba(239, 62, 35, 0.12);
  color: var(--crazy-red);
  font-weight: 900;
}

.challenge-section {
  background: var(--crazy-green);
  color: var(--crazy-white);
}

.challenge-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(255, 201, 20, 0.55),
      transparent 13rem
    ),
    var(--crazy-orange);
  border-color: var(--crazy-black);
  box-shadow:
    12px 12px 0 var(--crazy-black),
    var(--shadow-soft);
}

.challenge-card .eyebrow {
  background: rgba(255, 255, 255, 0.92);
}

.challenge-card h2 {
  max-width: 850px;
  font-size: clamp(2.3rem, 5.2vw, 4.8rem);
}

.challenge-card p {
  max-width: 680px;
  margin-bottom: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.challenge-actions {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-section {
  background: #fff;
}

.crazy-accordion {
  max-width: 860px;
  margin: 0 auto;
}

.crazy-accordion .accordion-item {
  overflow: hidden;
  margin-bottom: 1rem;
}

.crazy-accordion .accordion-button {
  font-family: "Fredoka", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: none;
}

.crazy-accordion .accordion-button:not(.collapsed) {
  color: var(--crazy-black);
  background: var(--crazy-yellow);
}

.crazy-accordion .accordion-body {
  font-weight: 800;
  line-height: 1.65;
}

.footer-section {
  padding: 3.5rem 0 1.2rem;
  background: var(--crazy-black);
  color: var(--crazy-white);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.footer-section a:hover {
  color: var(--crazy-yellow);
}

.footer-brand {
  margin-bottom: 1rem;
  color: var(--crazy-yellow);
}

.footer-section h3 {
  font-family: "Fredoka", sans-serif;
  color: var(--crazy-green);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.3rem;
}

.social-links a:hover {
  background: var(--crazy-yellow);
  color: var(--crazy-black);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
  font-weight: 800;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 3px solid var(--crazy-black);
  border-radius: 999px;
  background: var(--crazy-yellow);
  color: var(--crazy-black);
  box-shadow: 6px 6px 0 var(--crazy-black);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.snack-burst {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 3000;
  pointer-events: none;
  font-size: 1.6rem;
  animation: burst 0.8s ease-out forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.delay-1 {
  transition-delay: 0.08s;
}
.delay-2 {
  transition-delay: 0.16s;
}
.delay-3 {
  transition-delay: 0.24s;
}
.delay-4 {
  transition-delay: 0.32s;
}

.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

@keyframes productFloat {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  50% {
    transform: translate(-50%, calc(-50% - 16px)) rotate(2deg);
  }
}

@keyframes productFloatAlt {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -18px;
  }
}

@keyframes snackFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-22px) rotate(12deg);
  }
}

@keyframes stickerWiggle {
  0%,
  100% {
    transform: rotate(-2deg) scale(1);
  }
  50% {
    transform: rotate(3deg) scale(1.04);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes bgDrift {
  0% {
    background-position:
      20px 30px,
      60px 80px;
  }
  100% {
    background-position:
      140px 150px,
      240px 260px;
  }
}

@keyframes burst {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.7) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y)))
      scale(1.35) rotate(var(--r));
  }
}

@media (max-width: 1199.98px) {
  :root {
    --header-height: 88px;
  }

  .hero-product-left {
    left: -1rem;
  }

  .hero-product-right {
    right: -1rem;
  }
}

@media (max-width: 991.98px) {
  :root {
    --header-height: 82px;
  }

  .site-header {
    pointer-events: auto;
  }

  .crazy-navbar .navbar-collapse {
    margin-top: 0.9rem;
    padding: 1rem;
    border: 2px solid rgba(22, 22, 22, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.95);
  }

  .hero-section {
    min-height: auto;
    padding-top: 5.9rem;
    padding-bottom: 3.8rem;
  }

  .display-title {
    max-width: 100%;
  }

  .hero-product-stage {
    min-height: 430px;
  }

  .builder-controls,
  .challenge-card {
    grid-template-columns: 1fr;
  }

  .challenge-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 767.98px) {
  .section-pad {
    padding: 4rem 0;
  }

  .hero-section {
    padding-top: 5.25rem;
    padding-bottom: 3.2rem;
  }

  .hero-copy,
  .lead-copy,
  .section-heading p {
    font-size: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-product-stage {
    min-height: 360px;
  }

  .hero-product-main {
    width: min(92vw, 380px);
  }

  .hero-product-left {
    width: 170px;
    top: 2rem;
  }

  .hero-product-right {
    width: 165px;
    bottom: 1.5rem;
  }

  .sticker-top {
    right: 3%;
    top: 2%;
  }

  .sticker-bottom {
    left: 0;
    bottom: 2%;
  }

  .builder-preview {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bowl {
    margin: 0 auto;
  }

  .product-image {
    height: 260px;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .brand-mark span {
    display: none;
  }

  .hero-product-stage {
    min-height: 330px;
  }

  .floating-snack {
    opacity: 0.35;
  }

  .challenge-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

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

.branch-card {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.branch-card h3 {
  color: #ffffff !important;
  text-shadow:
    0 4px 14px rgba(0, 0, 0, 0.85),
    0 1px 0 rgba(0, 0, 0, 0.55) !important;
}

.branch-card p {
  max-width: 92%;
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.85);
}

.social-float-left {
  position: fixed;
  left: 18px;
  top: 50%;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(-50%);
}

.social-float-link {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 3px solid var(--crazy-black);
  border-radius: 18px;
  color: var(--crazy-white);
  font-size: 1.35rem;
  box-shadow: 6px 6px 0 var(--crazy-black);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-radius 0.25s ease;
}

.social-float-link:hover {
  transform: translateX(6px) rotate(-4deg);
  border-radius: 999px;
  color: var(--crazy-white);
  box-shadow: 9px 9px 0 var(--crazy-black);
}

.social-email {
  background: var(--crazy-orange);
}

.social-facebook {
  background: #1877f2;
}

.social-instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.social-whatsapp {
  background: #25d366;
}

/* Versión móvil: se manda abajo para no estorbar */
@media (max-width: 767.98px) {
  .social-float-left {
    left: 50%;
    top: auto;
    bottom: 18px;
    flex-direction: row;
    transform: translateX(-50%);
  }

  .social-float-link {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 1.15rem;
    box-shadow: 4px 4px 0 var(--crazy-black);
  }

  .social-float-link:hover {
    transform: translateY(-5px) rotate(-4deg);
    box-shadow: 6px 6px 0 var(--crazy-black);
  }
}

/* Más altura para tarjetas de sucursales */
.branch-card {
  min-height: 300px !important;
}

/* ================================
   BOTÓN VER MAPA EN SUCURSALES
================================ */

.branch-card .map-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;

  margin-top: 1.1rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;

  background: var(--crazy-white);
  color: var(--crazy-green-dark) !important;

  font-size: 0.82rem;
  font-weight: 1000;
  line-height: 1;

  border: 2px solid rgba(22, 22, 22, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);

  text-decoration: none;
}

.branch-card .map-pill i {
  font-size: 0.9rem;
}

.branch-card .map-pill:hover {
  background: var(--crazy-green);
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767.98px) {
  .display-title {
    font-size: clamp(2rem, 9.5vw, 3.15rem) !important;
    line-height: 1.03 !important;
    max-width: 100% !important;
  }

  .display-title span {
    text-shadow:
      2px 2px 0 var(--crazy-green),
      4px 4px 0 var(--crazy-black) !important;
  }
}
