/* ═══════════════════════════════════════════════════════════════
   CTA FINAL — Conversión máxima, estilo Apple
   Sección 8 de Blindafon Landing Page
   ═══════════════════════════════════════════════════════════════ */

/* ── Sección contenedor ─────────────────────────────────────── */

#ultimo-cta {
  position: relative;
  min-height: 90vh;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px var(--pad-mobile);
  overflow: hidden;
}

/* Degradado radial naranja muy sutil (8% opacidad) */
#ultimo-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 50% 60%,
    rgba(241, 139, 59, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

#ultimo-cta > * {
  position: relative;
  z-index: 1;
}

/* ── Eyebrow ─────────────────────────────────────────────────── */

.ucta-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 24px;
  opacity: 0; /* GSAP anima */
}

/* ── Título ─────────────────────────────────────────────────── */

.ucta-titulo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy);
  max-width: 900px;
  margin: 0 auto 32px;
  opacity: 0; /* GSAP anima */
}

/* ── Subtítulo ──────────────────────────────────────────────── */

.ucta-subtitulo {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  line-height: 1.6;
  color: #5F5F5F;
  max-width: 640px;
  margin: 0 auto 56px;
  opacity: 0; /* GSAP anima */
}

.ucta-subtitulo-enfasis {
  color: var(--orange);
  font-weight: 600;
}

/* ── Caja de regalo animada (cupón) ─────────────────────────── */

.ucta-regalo-wrap {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

.ucta-regalo-svg {
  width: 26px;
  height: 26px;
  overflow: visible;
}

.ucta-regalo-tapa {
  transform-origin: 16px 16px;
  animation: regalo-abrir 2.5s ease-in-out infinite;
}

@keyframes regalo-abrir {
  0%   { transform: scaleY(1)    translateY(0);    }
  10%  { transform: scaleY(1)    translateY(0);    }
  35%  { transform: scaleY(0.1)  translateY(-6px); }
  50%  { transform: scaleY(0.1)  translateY(-6px); }
  75%  { transform: scaleY(1)    translateY(0);    }
  100% { transform: scaleY(1)    translateY(0);    }
}

/* ── Botón CTA gigante ──────────────────────────────────────── */

.ucta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background-color: var(--orange);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 999px;
  padding: 20px 36px;
  width: 100%;
  max-width: 380px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(241, 139, 59, 0.35);
  transition:
    transform 400ms var(--ease-premium),
    box-shadow 400ms var(--ease-premium);
  will-change: transform, box-shadow;
  cursor: pointer;
  margin-bottom: 32px;
  opacity: 0; /* GSAP anima */
  transform: scale(0.9) translateY(30px);
}

/* Shine diagonal en loop continuo */
.ucta-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 70%
  );
  animation: ucta-btn-shine 3.5s linear infinite;
  pointer-events: none;
}

@keyframes ucta-btn-shine {
  0%   { left: -100%; opacity: 0; }
  8%   { opacity: 1; }
  88%  { left: 200%; opacity: 1; }
  90%  { left: 200%; opacity: 0; }
  91%  { left: -100%; opacity: 0; }
  100% { left: -100%; opacity: 0; }
}

.ucta-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 20px 60px rgba(241, 139, 59, 0.5);
}

.ucta-btn:active {
  transform: scale(0.98);
  transition-duration: 100ms;
}

/* Texto del botón en 2 líneas */
.ucta-btn-texto {
  text-align: center;
  line-height: 1.3;
}

/* Teléfono animado 3D en el botón */
.ucta-telefono-anim {
  width: 36px;
  height: 36px;
  perspective: 200px;
  flex-shrink: 0;
}

.ucta-telefono-flip {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: telefono-flip 4s ease-in-out infinite;
  animation-delay: 0.8s;
}

.ucta-telefono-cara {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  color: #ffffff;
  opacity: 0.95;
}

.ucta-telefono-cara--atras {
  transform: rotateY(180deg);
}

/* ── Recordatorio cupón ─────────────────────────────────────── */

.ucta-cupon {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: #5F5F5F;
  margin: 0 0 48px;
  opacity: 0; /* GSAP anima */
  line-height: 1.8;
  text-align: center;
}

.ucta-cupon-link {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-color: rgba(241, 139, 59, 0.4);
  text-underline-offset: 3px;
  transition:
    text-decoration-color 300ms var(--ease-premium),
    letter-spacing 250ms var(--ease-premium);
  display: inline-block;
}

.ucta-cupon-link:hover {
  text-decoration-color: var(--orange);
  letter-spacing: 0.01em;
}

/* Flecha con micro-animación al hover */
.ucta-cupon-flecha {
  display: inline-block;
  transition: transform 250ms var(--ease-premium);
}

.ucta-cupon-link:hover .ucta-cupon-flecha {
  transform: translateX(4px);
}

/* ── Microconfianza ─────────────────────────────────────────── */

.ucta-microconfianza {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0; /* GSAP anima */
}

.ucta-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: #7A7A7A;
  line-height: 1.4;
}

/* Iconos SVG de los trust items */
.ucta-trust-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Rayo: pulso con destello naranja */
.ucta-icon-rayo {
  animation: trust-rayo-pulso 2s ease-in-out infinite;
}

@keyframes trust-rayo-pulso {
  0%, 100% { transform: scale(1);    }
  40%       { transform: scale(1.2); }
  60%       { transform: scale(0.95); }
}

/* Carro: rebote horizontal (servicio a domicilio) */
.ucta-icon-carro {
  animation: trust-carro-viaje 3s ease-in-out infinite;
}

@keyframes trust-carro-viaje {
  0%, 100% { transform: translateX(0); }
  30%      { transform: translateX(4px); }
  60%      { transform: translateX(-2px); }
  80%      { transform: translateX(2px); }
}

/* Estrella: rotación suave con escala */
.ucta-icon-estrella {
  animation: trust-estrella-giro 4s ease-in-out infinite;
}

@keyframes trust-estrella-giro {
  0%, 100% { transform: rotate(0deg)   scale(1); }
  25%      { transform: rotate(15deg)  scale(1.1); }
  50%      { transform: rotate(0deg)   scale(1); }
  75%      { transform: rotate(-10deg) scale(1.05); }
}

/* Separador · solo visible en desktop */
.ucta-trust-sep {
  display: none;
  color: #C0C0C0;
  font-size: 0.8125rem;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Desktop
   ═══════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
  #ultimo-cta {
    padding: 120px var(--pad-desktop);
  }
}

@media (min-width: 1024px) {
  #ultimo-cta {
    padding: 160px var(--pad-desktop);
  }

  .ucta-btn {
    font-size: 0.9375rem;
    padding: 24px 52px;
    width: auto;
    max-width: none;
    min-width: 340px;
  }

  .ucta-microconfianza {
    flex-direction: row;
    gap: 0;
    justify-content: center;
  }

  .ucta-trust-sep {
    display: inline;
    margin: 0 20px;
  }

  .ucta-cupon {
    font-size: 0.875rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ACCESIBILIDAD — reduce motion
   ═══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .ucta-btn {
    transition: box-shadow 300ms ease;
  }

  .ucta-btn::after {
    animation: none;
    display: none;
  }

  .ucta-btn:hover {
    transform: none;
  }

  .ucta-cupon-link {
    transition: none;
  }

  .ucta-cupon-flecha {
    transition: none;
  }

  .ucta-regalo-tapa,
  .ucta-icon-rayo,
  .ucta-icon-carro,
  .ucta-icon-estrella,
  .ucta-telefono-flip {
    animation: none;
  }
}
