/* ============================================================
   Papelera Gaso · Hero Mundial 2026
   Self-contained, scoped bajo .pg-hero-* para no chocar con
   estilos existentes del sitio.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

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

.pg-hero {
  /* tokens locales */
  --pg-hero-sky-1:    #ffb976;   /* atardecer arriba */
  --pg-hero-sky-2:    #ffd9a8;
  --pg-hero-sky-3:    #ffe9c9;   /* horizonte cálido */
  --pg-hero-sky-4:    #cfe2ee;
  --pg-hero-celeste:        #75AADB;
  --pg-hero-celeste-deep:   #2A6FD8;
  --pg-hero-white:    #ffffff;
  --pg-hero-gold:     #f7c948;
  --pg-hero-ink:      #0b1b2b;

  position: relative;
  width: 100%;
  /* Altura fija para que el contenido no haga crecer el hero.
     Se aproxima al ratio 1920×470 (~24.5vw) con un piso útil. */
  height: clamp(420px, 28vw, 520px);
  overflow: hidden;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--pg-hero-ink);
  background: linear-gradient(180deg,
              var(--pg-hero-sky-1) 0%,
              var(--pg-hero-sky-2) 22%,
              var(--pg-hero-sky-3) 45%,
              var(--pg-hero-sky-4) 65%,
              var(--pg-hero-sky-4) 100%);
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ============================================================
   ESCENARIO
   ============================================================ */

.pg-hero__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Sol detrás del estadio (atardecer) */
.pg-hero__sun {
  position: absolute;
  left: 50%;
  top: 22%;
  width: 70%;
  aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
              rgba(255, 246, 220, 0.95) 0%,
              rgba(255, 224, 165, 0.7)  18%,
              rgba(255, 200, 130, 0.35) 40%,
              rgba(255, 200, 130, 0)    70%);
  filter: blur(4px);
  z-index: 1;
}

/* Estadio + césped: SVG anclado al borde inferior */
.pg-hero__stadium {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 90%;
  display: block;
  z-index: 2;
}
@media (max-width: 900px) {
  .pg-hero__stadium { height: 58%; }
}

/* Veladura oscura a la izquierda para garantizar legibilidad del texto
   sobre el estadio. Suave, no rompe la composición. */
.pg-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(8, 18, 32, 0.62) 0%,
      rgba(8, 18, 32, 0.42) 18%,
      rgba(8, 18, 32, 0.18) 36%,
      rgba(8, 18, 32, 0)    52%),
    linear-gradient(180deg,
      rgba(8, 18, 32, 0)    55%,
      rgba(8, 18, 32, 0.22) 100%);
}
@media (max-width: 900px) {
  .pg-hero__scrim {
    background:
      linear-gradient(180deg,
        rgba(8, 18, 32, 0.55) 0%,
        rgba(8, 18, 32, 0.3)  35%,
        rgba(8, 18, 32, 0)    55%);
  }
}

/* AFA shield decorativo arriba izquierda */
.pg-hero__crest {
  position: absolute;
  top: clamp(14px, 2vw, 28px);
  left: clamp(14px, 2vw, 28px);
  width: clamp(46px, 5vw, 78px);
  height: auto;
  z-index: 8;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
  animation: pgHeroFadeUp 1100ms 100ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

/* Confetti */
.pg-hero__confetti {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}
.pg-hero__confetti span {
  position: absolute;
  top: -20px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  opacity: 0.85;
  animation: pgHeroFall linear infinite;
  will-change: transform;
}
.pg-hero__confetti span:nth-child(odd)  { background: var(--pg-hero-celeste); }
.pg-hero__confetti span:nth-child(even) { background: var(--pg-hero-white); box-shadow: 0 0 0 1px rgba(0,0,0,0.06); }
.pg-hero__confetti span:nth-child(3n)   { background: var(--pg-hero-gold); width: 6px; height: 6px; border-radius: 50%; }

@keyframes pgHeroFall {
  0%   { transform: translate3d(0, -10vh, 0) rotate(0deg); }
  100% { transform: translate3d(40px, 110vh, 0) rotate(540deg); }
}

/* ============================================================
   CONTENIDO
   ============================================================ */

.pg-hero__inner {
  position: absolute;
  inset: 0;
  z-index: 10;
  max-width: 1920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  align-items: end;
  gap: clamp(20px, 2.5vw, 48px);
  padding: clamp(20px, 3vw, 44px) clamp(24px, 4vw, 80px);
}

/* ---------- TEXTO ---------- */

.pg-hero__text {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.4vw, 20px);
  max-width: 620px;
  align-self: center;
  animation: pgHeroFadeUp 900ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.pg-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--pg-hero-celeste-deep);
  font-size: clamp(10px, 0.7vw, 12px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(20, 30, 50, 0.22);
  backdrop-filter: blur(4px);
}
.pg-hero__eyebrow span { color: var(--pg-hero-gold); font-size: 14px; line-height: 1; }

.pg-hero__title {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 3.4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #ffffff;
  text-shadow:
    0 2px 0  rgba(8, 28, 50, 0.16),
    0 10px 28px rgba(8, 28, 50, 0.45);
}
.pg-hero__title em {
  font-style: normal;
  background: linear-gradient(180deg, #ffec8a 0%, #f7c948 55%, #d99c1a 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.pg-hero__subtitle {
  margin: 0;
  font-size: clamp(13px, 0.95vw, 17px);
  line-height: 1.45;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  max-width: 48ch;
  text-shadow: 0 2px 10px rgba(8, 28, 50, 0.45);
}

/* ---------- COUNTDOWN + CTA ---------- */

.pg-hero__row {
  display: flex;
  align-items: stretch;
  gap: clamp(12px, 1.3vw, 20px);
  flex-wrap: wrap;
  margin-top: clamp(4px, 0.6vw, 10px);
}

.pg-hero__countdown {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(10px, 1vw, 14px) clamp(14px, 1.4vw, 20px);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 18px;
  box-shadow: 0 18px 36px -12px rgba(20, 30, 50, 0.35);
  animation: pgHeroFadeUp 1100ms 120ms cubic-bezier(0.19, 1, 0.22, 1) both;
}
.pg-hero__count-num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 4vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--pg-hero-celeste-deep);
  font-variant-numeric: tabular-nums;
}
.pg-hero__count-num small {
  font-size: 0.32em;
  color: var(--pg-hero-ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pg-hero__count-labels {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.05;
}
.pg-hero__count-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pg-hero-ink);
  opacity: 0.6;
}
.pg-hero__count-headline {
  font-size: clamp(11px, 0.85vw, 14px);
  font-weight: 700;
  color: var(--pg-hero-ink);
  letter-spacing: -0.01em;
  max-width: 14ch;
}

/* CTA */
.pg-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(14px, 1.1vw, 20px) clamp(20px, 1.8vw, 32px);
  background: linear-gradient(180deg, #ffffff 0%, #f4f6fa 100%);
  color: var(--pg-hero-celeste-deep);
  font-size: clamp(13px, 0.9vw, 16px);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 14px;
  border: 2px solid #ffffff;
  box-shadow:
    0 14px 32px -8px rgba(20, 30, 50, 0.45),
    inset 0 -3px 0 rgba(42, 111, 216, 0.12);
  transition: transform 250ms cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 250ms cubic-bezier(0.25, 1, 0.5, 1),
              background 200ms ease-out;
  animation: pgHeroFadeUp 1100ms 220ms cubic-bezier(0.19, 1, 0.22, 1) both;
  cursor: pointer;
  white-space: nowrap;
}
.pg-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 44px -10px rgba(20, 30, 50, 0.55),
    inset 0 -3px 0 rgba(42, 111, 216, 0.12);
  background: #ffffff;
}
.pg-hero__cta:active { transform: translateY(0); }
.pg-hero__cta .pg-hero__arrow {
  display: inline-block;
  font-size: 1.15em;
  line-height: 1;
  transform: translateX(0);
  transition: transform 250ms cubic-bezier(0.25, 1, 0.5, 1);
}
.pg-hero__cta:hover .pg-hero__arrow { transform: translateX(4px); }

@keyframes pgHeroFadeUp {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ============================================================
   PRODUCTOS — apoyados sobre el césped, sin tarjetas
   ============================================================ */

.pg-hero__stage {
  position: relative;
  height: 100%;
  min-height: 360px;
  align-self: stretch;
  pointer-events: none;
  animation: pgHeroFadeIn 800ms 200ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

@keyframes pgHeroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.pg-hero__product {
  position: absolute;
  display: block;
  margin: 0;
  padding: 0;
  pointer-events: auto;
  transition: transform 350ms cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}
.pg-hero__product img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter:
    drop-shadow(0 2px 0 rgba(0, 0, 0, 0.15))
    drop-shadow(0 22px 14px rgba(0, 0, 0, 0.42));
  transition: filter 350ms cubic-bezier(0.25, 1, 0.5, 1);
}
.pg-hero__product:hover {
  z-index: 20;
}
.pg-hero__product:hover img {
  filter:
    drop-shadow(0 2px 0 rgba(0, 0, 0, 0.18))
    drop-shadow(0 30px 22px rgba(0, 0, 0, 0.5));
  transform: scale(1.05) translateY(-6px);
}

/* Sombra elíptica de cada producto en el césped */
.pg-hero__product::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: 78%;
  height: 14px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
              rgba(0, 0, 0, 0.55) 0%,
              rgba(0, 0, 0, 0)   70%);
  filter: blur(4px);
  z-index: -1;
}

/* === DESKTOP banner: productos en fila apoyados sobre césped === */
/* Coordenadas: porcentajes sobre la ROW derecha del stage */

.pg-hero__product--1 { /* cuaderno (el principal, central izq) */
  bottom: 6%;
  left: 8%;
  width: 26%;
  height: 86%;
  z-index: 5;
  animation: pgHeroFloatA 7s ease-in-out infinite;
}
.pg-hero__product--2 { /* cartuchera (pegada al cuaderno) */
  bottom: 6%;
  left: 28%;
  width: 18%;
  height: 56%;
  z-index: 6;
  animation: pgHeroFloatB 8s ease-in-out infinite;
}
.pg-hero__product--3 { /* botella del mundo */
  bottom: 6%;
  left: 42%;
  width: 17%;
  height: 78%;
  z-index: 7;
  animation: pgHeroFloatC 9s ease-in-out infinite;
}
.pg-hero__product--4 { /* lonchera */
  bottom: 6%;
  left: 56%;
  width: 24%;
  height: 80%;
  z-index: 6;
  animation: pgHeroFloatB 7.5s ease-in-out infinite;
}
.pg-hero__product--5 { /* botella messi */
  bottom: 6%;
  left: 78%;
  width: 16%;
  height: 74%;
  z-index: 5;
  animation: pgHeroFloatA 8.5s ease-in-out infinite;
}

/* Float keyframes (sutiles, solo y) */
@keyframes pgHeroFloatA {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes pgHeroFloatB {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes pgHeroFloatC {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ============================================================
   BREAKPOINTS
   ============================================================ */

@media (min-width: 1280px) {
  .pg-hero { height: clamp(420px, 24.5vw, 420px); }
  .pg-hero__inner { padding: 28px 72px; }
}

/* Tablet portrait y mobile: layout vertical, foto cuadrada */
@media (max-width: 900px) {
  .pg-hero {
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 1024px;
    min-height: 560px;
  }

  .pg-hero__inner {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 0;
    padding: clamp(20px, 4vw, 32px);
    padding-top: clamp(64px, 10vw, 92px);
    align-items: stretch;
  }

  /* Texto arriba, productos abajo (sobre el césped) */
  .pg-hero__text  {
    order: 1; max-width: 100%;
    align-items: flex-start;
    align-self: start;
  }
  .pg-hero__stage { order: 2; min-height: 0; align-self: stretch; }

  .pg-hero__title    { font-size: clamp(26px, 6.4vw, 44px); }
  .pg-hero__subtitle { font-size: clamp(13px, 3.4vw, 16px); }
  .pg-hero__crest    { width: clamp(40px, 9vw, 64px); }

  .pg-hero__row { gap: 12px; }
  .pg-hero__countdown { padding: 12px 16px; }
  .pg-hero__count-num { font-size: clamp(44px, 11vw, 64px); }
  .pg-hero__cta { padding: 14px 22px; font-size: 13px; flex: 1 1 auto; }

  /* Productos en formato cuadrado: apoyados todos al mismo baseline */
  .pg-hero__product--1 { /* cuaderno */
    bottom: 4%; left: 24%;  width: 38%; height: 80%;
  }
  .pg-hero__product--2 { /* cartuchera */
    bottom: 4%; left: 4%;   width: 26%; height: 44%;
  }
  .pg-hero__product--3 { /* botella mundo */
    bottom: 4%; left: 55%;  width: 22%; height: 72%;
  }
  .pg-hero__product--4 { /* lonchera */
    bottom: 4%; left: 72%;  width: 26%; height: 60%;
  }
  .pg-hero__product--5 { /* botella messi */
    bottom: 4%; left: 86%;  width: 14%; height: 58%;
  }
}

/* Móvil chico */
@media (max-width: 480px) {
  .pg-hero { min-height: 640px; }
  .pg-hero__inner { padding: 70px 18px 22px; }
  .pg-hero__eyebrow { font-size: 9.5px; padding: 6px 10px; }
  .pg-hero__count-num { font-size: 54px; }
  .pg-hero__count-headline { font-size: 12px; }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .pg-hero *,
  .pg-hero *::before,
  .pg-hero *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
