/* ==========================================================================
   CHILPO plaza banner + KODIQ-aligned CTA (home, before testimonios)
   ========================================================================== */

.chilpo-plaza {
  --chilpo-blue: #1a9bff;
  --chilpo-blue-deep: #0d7fe0;
  --chilpo-yellow: #ffe14a;
  --chilpo-ink: #2a2f36;
  --chilpo-snow: #ffffff;
  display: grid;
  gap: 0;
}

.chilpo-plaza__banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(0.85rem, 2vw, 1.25rem);
  min-height: clamp(280px, 42vw, 420px);
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter);
  background: var(--chilpo-blue);
  color: var(--chilpo-snow);
  text-align: center;
}

.chilpo-plaza__deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.chilpo-plaza__deco--zig {
  top: 10%;
  left: 5%;
  width: 42px;
  height: 54px;
  background:
    linear-gradient(var(--chilpo-yellow), var(--chilpo-yellow)) center top / 100% 8px no-repeat,
    linear-gradient(var(--chilpo-yellow), var(--chilpo-yellow)) center 18px / 100% 8px no-repeat,
    linear-gradient(var(--chilpo-yellow), var(--chilpo-yellow)) center 36px / 100% 8px no-repeat;
  clip-path: polygon(50% 0, 100% 35%, 72% 35%, 72% 100%, 28% 100%, 28% 35%, 0 35%);
  opacity: 0.95;
  animation: chilpoZigSpin 9s linear infinite;
}

.chilpo-plaza__deco--arcs {
  top: -10%;
  right: -3%;
  width: min(30vw, 190px);
  height: min(30vw, 190px);
  border: 10px solid var(--chilpo-yellow);
  border-radius: 50%;
  border-left-color: transparent;
  border-bottom-color: transparent;
  opacity: 0.95;
  animation: chilpoSpinSlow 18s linear infinite;
}

.chilpo-plaza__deco--arcs::before,
.chilpo-plaza__deco--arcs::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 8px solid var(--chilpo-yellow);
  border-radius: 50%;
  border-left-color: transparent;
  border-bottom-color: transparent;
}
.chilpo-plaza__deco--arcs::after { inset: 28px; border-width: 6px; }

.chilpo-plaza__deco--swirl {
  bottom: 12%;
  left: 6%;
  width: 68px;
  height: 68px;
  border: 3px solid var(--chilpo-yellow);
  border-radius: 50%;
  border-top-color: transparent;
  animation: chilpoOrbitSpin 10s linear infinite;
}
.chilpo-plaza__deco--swirl::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 8px;
  border: 7px solid transparent;
  border-bottom-color: var(--chilpo-yellow);
  transform: rotate(55deg);
}

.chilpo-plaza__deco--plus {
  right: 8%;
  bottom: 14%;
  width: 40px;
  height: 40px;
  background:
    linear-gradient(#fff, #fff) center / 100% 9px no-repeat,
    linear-gradient(#fff, #fff) center / 9px 100% no-repeat;
  animation: chilpoPlusSpin 12s linear infinite;
}

.chilpo-plaza__deco--dot {
  top: 42%;
  left: 12%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  animation: chilpoDrift 7s ease-in-out infinite;
}

.chilpo-plaza__deco--bar {
  top: 58%;
  right: 14%;
  width: 28px;
  height: 6px;
  border-radius: 999px;
  background: var(--chilpo-yellow);
  animation: chilpoBarSpin 8s linear infinite;
}

.chilpo-plaza__kicker,
.chilpo-plaza__brand,
.chilpo-plaza__slogan,
.chilpo-plaza__foot {
  position: relative;
  z-index: 1;
}

.chilpo-plaza__kicker {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 0.65rem + 0.4vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chilpo-plaza__brand {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.chilpo-plaza__tag {
  justify-self: start;
  margin-left: 0.4rem;
  padding: 0.2rem 0.55rem;
  background: #fff;
  color: var(--chilpo-ink);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.chilpo-plaza__sticker {
  position: absolute;
  top: -0.35rem;
  right: -0.2rem;
  padding: 0.28rem 0.55rem;
  background: var(--chilpo-yellow);
  color: var(--chilpo-ink);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(8deg);
  animation: chilpoWiggle 3.4s ease-in-out infinite;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.08);
}

.chilpo-plaza__wordmark {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.chilpo-plaza__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 1.1rem + 2.8vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--chilpo-ink);
  transform: rotate(-1.5deg);
}

.chilpo-plaza__chip--yellow {
  background: var(--chilpo-yellow);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.08);
}

.chilpo-plaza__chip--white {
  background: #fff;
  transform: rotate(1.5deg);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.08);
}

.chilpo-plaza__slogan {
  margin: 0.35rem 0 0;
  max-width: 28ch;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.8rem + 0.9vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
}

.chilpo-plaza__foot {
  margin: 0.15rem 0 0;
  font-size: clamp(0.7rem, 0.65rem + 0.35vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.95;
}

/* ---- CTA block: KODIQ paper / fog ---- */
.chilpo-ad {
  position: relative;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--pine-soft);
  padding: clamp(2.25rem, 4vw, 3.5rem) 0;
}

.chilpo-ad__inner {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  max-width: 720px;
}

.chilpo-ad__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--pine);
  max-width: 18ch;
}

.chilpo-ad__title em {
  font-style: normal;
  color: var(--chilpo-blue-deep);
}

.chilpo-ad__text {
  margin: 0;
  max-width: 48ch;
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--pine-mute);
}

.chilpo-ad__ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
}

.chilpo-ad__ticks li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--fog);
  border: 1px solid var(--line);
  color: var(--pine-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.chilpo-ad__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.55rem;
}

.chilpo-ad__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  background: var(--chilpo-yellow);
  color: var(--chilpo-ink);
  font-weight: 800;
  font-size: 1rem;
  border: 1px solid color-mix(in srgb, var(--chilpo-ink) 12%, var(--chilpo-yellow));
  box-shadow: 0 8px 0 color-mix(in srgb, var(--chilpo-ink) 14%, transparent);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.chilpo-ad__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 11px 0 color-mix(in srgb, var(--chilpo-ink) 14%, transparent);
}
.chilpo-ad__cta svg { width: 18px; height: 18px; }

.chilpo-ad__ghost {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid var(--chilpo-blue);
  color: var(--chilpo-blue-deep);
  font-weight: 600;
  font-size: 0.92rem;
  background: transparent;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}
.chilpo-ad__ghost:hover {
  background: color-mix(in srgb, var(--chilpo-blue) 10%, transparent);
  color: var(--chilpo-ink);
}

@keyframes chilpoSpinSlow {
  to { transform: rotate(360deg); }
}
@keyframes chilpoZigSpin {
  0% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(180deg) translateY(6px); }
  100% { transform: rotate(360deg) translateY(0); }
}
@keyframes chilpoOrbitSpin {
  to { transform: rotate(360deg); }
}
@keyframes chilpoPlusSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.06); }
  100% { transform: rotate(360deg) scale(1); }
}
@keyframes chilpoDrift {
  0%, 100% { transform: translate(0, 0); opacity: 0.85; }
  50% { transform: translate(10px, -14px); opacity: 1; }
}
@keyframes chilpoBarSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes chilpoWiggle {
  0%, 100% { transform: rotate(8deg); }
  50% { transform: rotate(12deg) translateY(-2px); }
}

@media (max-width: 720px) {
  .chilpo-plaza__deco--zig { left: 2%; transform-origin: center; }
  .chilpo-plaza__deco--plus { right: 4%; bottom: 8%; }
  .chilpo-plaza__deco--dot { left: 6%; }
  .chilpo-plaza__deco--bar { right: 6%; }
  .chilpo-plaza__sticker { right: auto; left: 58%; }
  .chilpo-ad__actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .chilpo-ad__cta,
  .chilpo-ad__ghost {
    width: 100%;
    justify-content: center;
  }
}

html[data-theme="dark"] .chilpo-ad {
  background: var(--paper);
  border-color: var(--line);
}

html[data-theme="dark"] .chilpo-ad__ticks li {
  background: var(--fog);
  border-color: var(--line);
  color: var(--pine-soft);
}

@media (prefers-reduced-motion: reduce) {
  .chilpo-plaza__deco,
  .chilpo-plaza__sticker {
    animation: none !important;
  }
}
