:root {
  --navy: #0b2d4d;
  --navy-soft: #16486f;
  --blue: #1269d3;
  --blue-pale: #eaf3fa;
  --text: #142536;
  --muted: #526579;
  --border: rgba(151, 179, 204, 0.42);
  --glass: rgba(255, 255, 255, 0.72);
  --whatsapp: #25d366;
  --whatsapp-dark: #128c4a;
  --youtube: #ff0033;
  --focus: #005fcc;
  --shadow: 0 14px 38px rgba(11, 45, 77, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow-hover: 0 18px 44px rgba(11, 45, 77, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

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

html {
  min-width: 320px;
  background: #f4f8fc;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(18, 105, 211, 0.12), transparent 38%),
    linear-gradient(160deg, #fbfdff 0%, #f3f8fc 52%, #edf5fb 100%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

.ambient-light {
  position: fixed;
  z-index: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(42, 134, 225, 0.08);
  filter: blur(58px);
  pointer-events: none;
}

.ambient-light--top {
  top: -150px;
  right: -120px;
}

.ambient-light--bottom {
  bottom: -180px;
  left: -130px;
  background: rgba(11, 45, 77, 0.08);
}

.links-app {
  position: relative;
  z-index: 1;
  width: min(100%, 536px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding:
    max(20px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(22px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 3px 2px 17px;
}

.brand__logo {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 10px 24px rgba(11, 45, 77, 0.11);
}

.brand__copy {
  min-width: 0;
}

.brand h1 {
  margin: 0 0 2px;
  color: var(--navy);
  font-size: clamp(1.45rem, 6vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.brand p {
  max-width: 31ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.34;
}

.link-section h2 {
  margin: 0 0 12px;
  padding-left: 2px;
  color: var(--navy);
  font-size: 1.04rem;
  font-weight: 750;
  letter-spacing: -0.012em;
  line-height: 1.3;
}

.link-list {
  display: grid;
  gap: 12px;
}

.link-card {
  --pointer-x: 50%;
  --pointer-y: 0%;
  position: relative;
  isolation: isolate;
  min-height: 80px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--glass);
  box-shadow: var(--shadow);
  color: var(--navy);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  transform: translateZ(0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.link-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(190px circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.7), transparent 65%);
  opacity: 0.72;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.link-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.34), transparent 42%);
  pointer-events: none;
}

.link-card:hover {
  border-color: rgba(104, 151, 191, 0.58);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.link-card:active {
  box-shadow: 0 8px 24px rgba(11, 45, 77, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(1px) scale(0.992);
}

.link-card:focus-visible,
.footer a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.link-card--whatsapp {
  border-color: rgba(11, 122, 61, 0.32);
  background: linear-gradient(145deg, rgba(42, 219, 112, 0.97), rgba(30, 188, 91, 0.96));
  box-shadow: 0 16px 38px rgba(18, 140, 74, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.52);
  color: #062c19;
}

.link-card--whatsapp::before {
  background: radial-gradient(190px circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.42), transparent 68%);
}

.link-card--whatsapp:hover {
  border-color: rgba(11, 105, 53, 0.44);
  box-shadow: 0 20px 44px rgba(18, 140, 74, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.link-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--navy);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.link-card__icon svg {
  width: 27px;
  height: 27px;
}

.link-card__icon--youtube {
  background: rgba(255, 255, 255, 0.82);
  color: var(--youtube);
}

.link-card__icon--approved {
  background: rgba(234, 243, 250, 0.72);
  color: var(--blue);
}

.link-card__icon--analysis {
  background: rgba(232, 242, 252, 0.78);
  color: var(--navy-soft);
}

.link-card__icon--calculator {
  background: rgba(238, 245, 251, 0.82);
  color: var(--blue);
}

.link-card__text {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.link-card__text strong {
  font-size: 1rem;
  font-weight: 780;
  letter-spacing: -0.015em;
  line-height: 1.22;
}

.link-card__text small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
}

.link-card--whatsapp .link-card__text small {
  color: rgba(6, 44, 25, 0.76);
}

.link-card__arrow {
  width: 20px;
  height: 20px;
  color: rgba(11, 45, 77, 0.55);
  transition: transform 180ms ease;
}

.link-card__arrow svg {
  display: block;
  width: 100%;
  height: 100%;
}

.link-card:hover .link-card__arrow {
  transform: translateX(2px);
}

.link-card--whatsapp .link-card__arrow {
  color: rgba(6, 44, 25, 0.62);
}

.footer {
  margin-top: auto;
  padding: 24px 8px 2px;
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer__brand {
  display: grid;
  gap: 1px;
  color: var(--navy);
  font-size: 0.82rem;
  line-height: 1.35;
}

.footer__brand strong {
  font-size: 0.9rem;
}

.footer__brand span {
  color: var(--muted);
}

.footer a {
  display: inline-block;
  margin: 8px 0 7px;
  border-radius: 6px;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 700;
  text-underline-offset: 3px;
}

.footer__notice {
  max-width: 48ch;
  margin-inline: auto !important;
  color: #667789;
  font-size: 0.72rem;
  line-height: 1.42;
}

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .link-card {
    background: rgba(255, 255, 255, 0.96);
  }

  .link-card--whatsapp {
    background: var(--whatsapp);
  }
}

@media (min-width: 700px) {
  body {
    display: grid;
    place-items: center;
  }

  .links-app {
    min-height: min(100vh, 860px);
    min-height: min(100svh, 860px);
    padding-top: max(34px, env(safe-area-inset-top));
    padding-bottom: max(30px, env(safe-area-inset-bottom));
  }

  .brand {
    padding-bottom: 22px;
  }

  .brand__logo {
    width: 80px;
    height: 80px;
    flex-basis: 80px;
  }

  .link-list {
    gap: 14px;
  }

  .link-card {
    min-height: 84px;
  }
}

@media (max-width: 374px) {
  .links-app {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  .brand {
    gap: 12px;
  }

  .brand__logo {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .brand p {
    font-size: 0.8rem;
  }

  .link-card {
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    gap: 10px;
    min-height: 78px;
    padding: 11px 12px;
    border-radius: 20px;
  }

  .link-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .link-card__text strong {
    font-size: 0.94rem;
  }

  .link-card__text small {
    font-size: 0.77rem;
  }
}

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

  .link-card:hover,
  .link-card:active {
    transform: none;
  }
}

@media (forced-colors: active) {
  .link-card,
  .link-card--whatsapp {
    border: 2px solid ButtonText;
    background: Canvas;
    color: CanvasText;
  }

  .link-card__icon {
    border: 1px solid ButtonText;
  }
}

@media print {
  .ambient-light {
    display: none;
  }

  body {
    background: #fff;
  }

  .links-app {
    width: 100%;
  }

  .link-card {
    break-inside: avoid;
    box-shadow: none;
  }
}
