/* sections.css */

/* ===== SECCIÓN BASE ===== */
.section {
  padding-block: var(--space-3xl);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.section__title {
  color: var(--color-text-main);
}

.section__subtitle {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  text-transform: uppercase;
}

.section__desc {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  max-width: 600px;
  margin-inline: auto;
}

.section__cta {
  text-align: center;
  margin-top: var(--space-xl);
}

/* FONDOS CON TEXTURA */
.section--texture {
  background-image: var(--texture-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.section--texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(232, 82, 58, 0.55);
  z-index: 0;
}

.section--texture > .container,
.section--texture > * {
  position: relative;
  z-index: 1;
}


/* ===== CANVAS MONEDAS — HERO ===== */
#hero-coins-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ===== HERO ===== */
.section--hero {
  background-color: var(--color-dark-alt);
  padding-block: var(--space-3xl) var(--space-2xl);
  min-height: 85vh;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.section--hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  max-width: 860px;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__title {
  font-size: clamp(2rem, 5.5vw, var(--fs-3xl));
  color: var(--color-text-main);
  line-height: 1.2;
}

/* "20% Extra" — neon con color primario del sitio */
.hero__title--accent {
  color: var(--color-primary);
  text-shadow:
    0 0 12px rgba(232, 82, 58, 0.7),
    0 0 35px rgba(232, 82, 58, 0.35);
}

.hero__subtitle {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  max-width: 640px;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.8;
}


/* ===== BENEFICIOS ===== */
.section--beneficios {
  background-color: var(--color-dark);
}

.beneficios__list {
  list-style: none;
}

.beneficio__card {
  background-color: var(--color-dark-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.beneficio__card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.beneficio__icon {
  font-size: 2.5rem;
  line-height: 1;
}

.beneficio__title {
  font-size: var(--fs-lg);
  color: var(--color-text-main);
}

.beneficio__desc {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  text-transform: none;
  letter-spacing: 0;
}


/* ===== BANNER / SOCIAL PROOF ===== */
.section--banner {
  padding-block: var(--space-2xl);
  text-align: center;
}

.section--banner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.banner__title {
  font-size: clamp(2rem, 5vw, var(--fs-3xl));
  color: var(--color-white);
}

.banner__subtitle {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.85);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
}


/* ===== PASOS ===== */
.section--pasos {
  background-color: var(--color-dark-alt);
}

.pasos__list {
  list-style: none;
  counter-reset: pasos;
}

.paso__card {
  background-color: var(--color-dark-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.paso__card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.paso__number {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-black);
  color: var(--color-primary);
  opacity: 0.25;
  line-height: 1;
}

.paso__title {
  font-size: var(--fs-xl);
  color: var(--color-text-main);
}

.paso__desc {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  text-transform: none;
  letter-spacing: 0;
}


/* ===== CTA FINAL ===== */
.section--cta-final {
  padding-block: var(--space-3xl);
  text-align: center;
}

.section--cta-final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  max-width: 700px;
  margin-inline: auto;
}

.cta-final__title {
  font-size: clamp(1.75rem, 4vw, var(--fs-3xl));
  color: var(--color-white);
}

.cta-final__subtitle {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.85);
  text-transform: none;
  letter-spacing: 0;
}

/* ===== EMOTES CAJA===== */

.gift-wrapper {
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
  }

  .gift-svg { width: 100%; height: 100%; }

  /* Animación de la Tapa */
  .lid-group {
    animation: openLid 2s ease-in-out infinite;
    transform-origin: 100px 120px;
  }

  @keyframes openLid {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    30%, 60% { transform: translateY(-35px) rotate(-10deg); }
  }

  /* Lógica del Dinero */
  .money {
    opacity: 0;
    transform-origin: center;
  }

  .coin1 { animation: burst 2s infinite 0.3s; }
  .cash1 { animation: burstLeft 2s infinite 0.4s; }
  .coin2 { animation: burstRight 2s infinite 0.5s; }
  .cash2 { animation: burstUp 2s infinite 0.3s; }
  .coin3 { animation: burstLeftSmall 2s infinite 0.6s; }

  @keyframes burst {
    0% { transform: translate(0, 40px) scale(0); opacity: 0; }
    40% { opacity: 1; }
    100% { transform: translate(-30px, -80px) scale(1.2); opacity: 0; }
  }

  @keyframes burstRight {
    0% { transform: translate(0, 40px) scale(0); opacity: 0; }
    40% { opacity: 1; }
    100% { transform: translate(40px, -90px) scale(1.1); opacity: 0; }
  }

  @keyframes burstLeft {
    0% { transform: translate(0, 40px) scale(0); opacity: 0; }
    40% { opacity: 1; }
    100% { transform: translate(-50px, -60px) rotate(-20deg); opacity: 0; }
  }

  @keyframes burstUp {
    0% { transform: translate(0, 40px) scale(0); opacity: 0; }
    40% { opacity: 1; }
    100% { transform: translate(10px, -110px); opacity: 0; }
  }

  @keyframes burstLeftSmall {
    0% { transform: translate(0, 40px) scale(0); opacity: 0; }
    40% { opacity: 1; }
    100% { transform: translate(-20px, -100px); opacity: 0; }
  }
  /* ===== EMOTES DINERO===== */
  .money-stack-wrapper {
        width: 350px; /* Contenedor más ancho para el nuevo billete */
        height: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
        perspective: 1000px;
    }

    .money-vector {
        width: 100%;
        height: auto;
        filter: drop-shadow(0 12px 18px rgba(0,0,0,0.12));
        animation: smoothFloat 4s ease-in-out infinite;
    }

    /* Animación de flotado suave con ligera rotación isométrica */
    @keyframes smoothFloat {
        0%, 100% { transform: translateY(0) rotateX(5deg); }
        50% { transform: translateY(-12px) rotateX(0deg); }
    }

    /* Brillo suave que barre el billete */
    .shine-sweep {
        animation: shineMove 3s infinite ease-in-out;
        transform: skewX(-20deg);
        opacity: 0;
    }

    @keyframes shineMove {
        0% { transform: translateX(-100px) skewX(-20deg); opacity: 0; }
        30% { opacity: 1; }
        60%, 100% { transform: translateX(250px) skewX(-20deg); opacity: 0; }
    }

    /* Interactividad: Se "emociona" al pasar el mouse */
    .money-stack-wrapper:hover .money-vector {
        animation: shakeVibe 0.5s ease-in-out infinite;
        cursor: grab;
    }

    @keyframes shakeVibe {
        0% { transform: translate(1px, 1px) rotateX(2deg); }
        20% { transform: translate(-1px, -1px) rotateX(6deg) rotate(0.5deg); }
        40% { transform: translate(-2px, 0px) rotateX(4deg); }
        60% { transform: translate(2px, 1px) rotateX(7deg) rotate(-0.5deg); }
        100% { transform: translate(1px, -1px) rotateX(5deg); }
    }
      /* ===== EMOTES whatssapp===== */
      .whatsapp-wrapper {
        width: 300px;
        height: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
        background: transparent;
    }

    .wa-svg {
        width: 100%;
        height: 100%;
        cursor: pointer;
    }

    /* Animación del fondo: Pulso de escala */
    .wa-bg {
        animation: wa-pulse 3s ease-in-out infinite;
        transform-origin: center;
    }

    @keyframes wa-pulse {
        0%, 100% { transform: scale(1); opacity: 1; }
        50% { transform: scale(1.05); opacity: 0.9; }
    }

    /* Animación de la burbuja y el teléfono: Balanceo tipo Lottie */
    .wa-bubble, .wa-phone {
        animation: wa-swing 3s ease-in-out infinite;
        transform-origin: center;
    }

    @keyframes wa-swing {
        0%, 100% { transform: rotate(0deg); }
        25% { transform: rotate(-5deg); }
        75% { transform: rotate(5deg); }
    }

    /* Efecto al pasar el mouse (Hover) */
    .wa-svg:hover .wa-phone {
        animation: wa-call 0.5s ease-in-out infinite;
    }

    @keyframes wa-call {
        0% { transform: translate(0, 0); }
        25% { transform: translate(2px, -2px); }
        50% { transform: translate(-2px, 2px); }
        75% { transform: translate(2px, 2px); }
        100% { transform: translate(0, 0); }
    }