@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Manrope:wght@400;600;800&display=swap");

:root {
  --fondo: #080b10;
  --tarjeta-1: #171f30;
  --tarjeta-2: #101623;
  --linea: rgba(255, 255, 255, 0.09);
  --texto: #f2f5fa;
  --texto-suave: #93a0b8;
  --texto-tenue: #5f6c85;
  --cian: #4fd8ff;
  --dorado: #ffc23c;
  --magenta: #ff3f7e;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(14px, 7.5vh, 90px) clamp(14px, 7.5vw, 140px);
  display: flex;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--texto);
  background:
    radial-gradient(1100px 560px at 12% -8%, rgba(79, 216, 255, 0.16), transparent 60%),
    radial-gradient(900px 520px at 108% 8%, rgba(255, 63, 126, 0.12), transparent 55%),
    var(--fondo);
  -webkit-font-smoothing: antialiased;
}

.tarjeta {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(22px, 5vh, 64px) clamp(20px, 5vw, 64px);
  background:
    radial-gradient(700px 380px at 50% 0%, rgba(79, 216, 255, 0.10), transparent 70%),
    linear-gradient(165deg, var(--tarjeta-1), var(--tarjeta-2));
  border: 1px solid var(--linea);
  border-radius: 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.tarjeta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--dorado), var(--cian), var(--magenta), transparent);
}

.escudo {
  height: clamp(78px, 15vh, 128px);
  width: auto;
  margin-bottom: clamp(14px, 2.6vh, 28px);
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.45));
}

.etiqueta {
  margin: 0 0 clamp(10px, 1.8vh, 18px);
  font-size: clamp(11px, 1.3vw, 14px);
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dorado);
}

h1 {
  max-width: 960px;
  margin: 0 0 clamp(14px, 2.4vh, 26px);
  font-family: "Archivo Black", "Manrope", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(28px, min(5.2vw, 7.5vh), 60px);
  line-height: 1.1;
}

p {
  max-width: 760px;
  margin: 0 auto clamp(10px, 1.6vh, 16px);
  font-size: clamp(16px, min(1.9vw, 2.9vh), 21px);
  line-height: 1.65;
  color: var(--texto-suave);
}

strong { color: var(--texto); }

.etiqueta,
.firma { max-width: none; }

.destacado {
  font-weight: 600;
  color: var(--cian);
}
.boton {
  position: relative;
  isolation: isolate;
  margin: clamp(18px, 3.4vh, 38px) 0 clamp(16px, 3vh, 34px);
  padding: 17px 30px 17px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 800;
  letter-spacing: 0.2px;
  text-decoration: none;
  color: #04141f;
  border-radius: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: botonEntra 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.5s backwards,
             botonLatido 2.8s ease-in-out 2.5s infinite;
  transition: transform 0.2s ease;
}
.boton::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -2;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dorado), var(--cian), var(--magenta), var(--dorado));
  background-size: 300% 100%;
  animation: botonAro 5s linear infinite;
}
.boton::after {
  content: "";
  position: absolute;
  inset: 4px -2px -8px;
  z-index: -3;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dorado), var(--cian), var(--magenta), var(--dorado));
  background-size: 300% 100%;
  filter: blur(18px);
  opacity: 0.45;
  animation: botonAro 5s linear infinite;
  transition: opacity 0.25s ease;
}
.boton-fondo {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(110deg, #4fd8ff 0%, #8be9ff 45%, #4fd8ff 100%);
  background-size: 200% 100%;
  animation: botonFluye 4s ease-in-out infinite alternate;
}

.boton-fondo::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-20deg);
  animation: botonBrillo 3.4s ease-in-out 1.2s infinite;
}

.boton .icono {
  width: 24px;
  height: 24px;
  flex: none;
  animation: iconoBalanceo 2.8s ease-in-out infinite;
  transform-origin: 50% 80%;
}

.boton .flecha {
  width: 22px;
  height: 22px;
  flex: none;
  transition: transform 0.25s ease;
}

.boton:hover { transform: translateY(-3px) scale(1.02); }
.boton:hover::after { opacity: 0.75; }
.boton:hover .flecha { transform: translateX(6px); }
.boton:active { transform: scale(0.97); }
.boton:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.boton .onda {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0);
  pointer-events: none;
  animation: botonOnda 0.6s ease-out forwards;
}

@keyframes botonEntra {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}
@keyframes botonLatido {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 216, 255, 0.0); }
  50%      { box-shadow: 0 0 0 10px rgba(79, 216, 255, 0.12); }
}
@keyframes botonAro    { to { background-position: -300% 0; } }
@keyframes botonFluye  { to { background-position: 100% 0; } }
@keyframes botonBrillo {
  0%        { left: -60%; }
  55%, 100% { left: 130%; }
}
@keyframes iconoBalanceo {
  0%, 60%, 100% { transform: rotate(0); }
  70% { transform: rotate(-12deg); }
  80% { transform: rotate(10deg); }
  90% { transform: rotate(-6deg); }
}
@keyframes botonOnda { to { transform: scale(4); opacity: 0; } }
.tarjeta { transition: opacity 0.35s ease, transform 0.35s ease; }
body.saliendo .tarjeta { opacity: 0; transform: scale(0.98); }

.firma {
  margin: 0;
  font-size: clamp(13px, 1.4vw, 16px);
  font-style: italic;
  letter-spacing: 0.3px;
  color: var(--texto-tenue);
}

@media (max-width: 640px) {
  .tarjeta { border-radius: 20px; }
  .boton { width: 100%; max-width: 420px; }
}
.tarjeta {
  animation: tarjetaEntra 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.tarjeta > :nth-child(1) { animation: escudoEntra 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s backwards; }
.tarjeta > :nth-child(2) { animation: apareceTexto 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.85s backwards; }
.tarjeta > :nth-child(3) { animation: apareceTexto 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 1.0s backwards; }
.tarjeta > :nth-child(4) { animation: apareceTexto 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.2s backwards; }
.tarjeta > :nth-child(5) { animation: apareceTexto 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.35s backwards; }
.tarjeta > :nth-child(7) { animation: apareceTexto 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.8s backwards; }

@keyframes tarjetaEntra {
  from { opacity: 0; filter: blur(10px); transform: perspective(1000px) translateZ(-240px) scale(0.92); }
  to   { opacity: 1; filter: blur(0);    transform: perspective(1000px) translateZ(0) scale(1); }
}
@keyframes escudoEntra {
  from { opacity: 0; transform: scale(1.7) translateY(-10px); filter: blur(10px) drop-shadow(0 12px 22px rgba(0, 0, 0, 0.45)); }
  to   { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 12px 22px rgba(0, 0, 0, 0.45)); }
}
@keyframes apareceTexto {
  from { opacity: 0; transform: translateY(22px) scale(0.97); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  .tarjeta, .tarjeta > *, .boton, .boton::before, .boton::after, .boton-fondo, .boton-fondo::after, .boton .icono {
    animation: none !important;
  }
  .boton, .tarjeta { transition: none; }
}
