/* =========================================================
   OneTV — Landing de enlaces
   ========================================================= */

:root {
  --blue: #2f6fed;
  --purple: #7b2fe0;
  --amber: #ff8a00;
  --amber-light: #ffd36b;

  --bg: #eef1fa;
  --surface: #ffffff;
  --ink: #1b1e2b;
  --ink-soft: #5b6072;
  --border: #e6e8f2;

  --whatsapp: #25d366;
  --telegram: #29a9eb;

  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --shadow-card: 0 30px 60px -25px rgba(43, 32, 90, 0.28), 0 8px 20px -12px rgba(43, 32, 90, 0.18);
  --shadow-btn: 0 1px 2px rgba(27, 30, 43, 0.04), 0 8px 16px -10px rgba(27, 30, 43, 0.12);

  --font-display: "Unbounded", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -5%;
  background-image: url("assets/banner.jpg");
  background-size: cover;
  background-position: center 40%;
  filter: blur(22px) saturate(1.6) contrast(1.05);
  transform: scale(1.15);
  opacity: 0.8;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(680px 420px at 15% -10%, rgba(47, 111, 237, 0.1), transparent 60%),
    radial-gradient(560px 380px at 100% 0%, rgba(123, 47, 224, 0.08), transparent 55%),
    radial-gradient(500px 500px at 50% 100%, rgba(255, 138, 0, 0.05), transparent 60%),
    rgba(238, 241, 250, 0.22);
  z-index: -1;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 28px 16px 56px;
}

/* ---------- Tarjeta ---------- */

.card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  animation: card-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Banner ---------- */

.banner {
  position: relative;
  height: 168px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
}

.banner__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transform: scale(1.02);
}

.banner__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 6, 30, 0.12) 0%, rgba(10, 6, 30, 0) 40%, rgba(10, 6, 30, 0.38) 100%);
}

.logo-wrap {
  position: absolute;
  left: 28px;
  bottom: -42px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--surface);
  padding: 5px;
  box-shadow: 0 10px 24px -8px rgba(27, 30, 43, 0.35);
}

.logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* ---------- Identidad ---------- */

.identity {
  padding: 62px 28px 4px;
  animation: fade-up 0.6s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.identity__subtitle {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(13px, 3.9vw, 19px);
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: normal;
}

/* ---------- Compartir ---------- */

.share {
  display: flex;
  gap: 10px;
  padding: 18px 28px 6px;
  animation: fade-up 0.6s 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.share-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: #fff;
  box-shadow: var(--shadow-btn);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.share-btn:active {
  transform: translateY(0);
}

.share-btn--whatsapp { background: var(--whatsapp); }
.share-btn--telegram { background: var(--telegram); }

/* ---------- Enlaces ---------- */

.links {
  padding: 14px 28px 6px;
}

.links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.links li {
  animation: fade-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(0.22s + var(--i) * 0.05s);
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-btn);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.link-btn:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: 0 14px 26px -14px rgba(47, 111, 237, 0.35), 0 4px 10px -6px rgba(123, 47, 224, 0.2);
}

.link-btn__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: linear-gradient(135deg, rgba(47, 111, 237, 0.12), rgba(123, 47, 224, 0.12));
}

.link-btn__label {
  flex: 1;
}

.link-btn__chevron {
  color: var(--ink-soft);
  transition: transform 0.18s ease, color 0.18s ease;
}

.link-btn:hover .link-btn__chevron {
  transform: translateX(3px);
  color: var(--amber);
}

/* ---------- Footer ---------- */

.footer {
  padding: 22px 28px 26px;
  text-align: center;
  animation: fade-up 0.5s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.footer p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
  opacity: 0.85;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Foco accesible ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
  .page {
    align-items: center;
    padding: 40px 16px;
  }

  .card {
    max-width: 560px;
  }

  .banner {
    height: 220px;
  }

  .logo-wrap {
    left: 34px;
    bottom: -48px;
    width: 96px;
    height: 96px;
  }

  .identity {
    padding: 70px 34px 4px;
  }

  .identity__subtitle {
    font-size: 15.5px;
  }

  .share {
    padding: 20px 34px 6px;
  }

  .share-btn {
    height: 50px;
    font-size: 14.5px;
  }

  .links {
    padding: 16px 34px 6px;
  }

  .link-btn {
    height: 58px;
    font-size: 15px;
  }

  .footer {
    padding: 24px 34px 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
