/* ── kalink · páginas de links personalizadas ── by Carlstein Group ── */
:root {
  --bg:     #0d0d12;
  --card:   rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.09);
  --text:   #f4f4f6;
  --muted:  rgba(244, 244, 246, 0.55);
  /* cada página redefine estas variables con su color de marca */
  --accent:     #f31022;
  --accent-rgb: 243, 16, 34;
  --glow-a:     rgba(43, 27, 126, 0.40);
  --glow-b:     rgba(243, 16, 34, 0.16);
}

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

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.25rem 2rem;
  position: relative;
  overflow-x: hidden;
}

/* glow de fondo con tinte de marca */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 75% 45% at 50% -5%, var(--glow-a), transparent 62%),
    radial-gradient(ellipse 60% 40% at 50% 108%, var(--glow-b), transparent 62%);
  pointer-events: none;
}

main {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 0.6s ease-out both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── placa de marca (logo apaisado sobre plaqueta blanca) ── */
.brandmark {
  min-height: 84px;
  padding: 1.15rem 1.6rem;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 34px rgba(0, 0, 0, 0.28),
    0 0 46px rgba(var(--accent-rgb), 0.22);
}
.brandmark img { height: 46px; width: auto; max-width: 240px; object-fit: contain; display: block; }

/* logo como perfil (círculo) */
.brandmark.circulo {
  width: 106px;
  height: 106px;
  min-height: 0;
  padding: 0.95rem;
  border-radius: 50%;
}
.brandmark.circulo img { height: auto; max-width: 100%; max-height: 100%; }

h1 {
  margin-top: 1.15rem;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
}
h1 .at { color: var(--accent); filter: brightness(1.35); }

.domain {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
  filter: brightness(1.4);
}

.tagline {
  margin-top: 0.7rem;
  font-size: 0.925rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
  max-width: 36ch;
}

/* ── botones de links ── */
.links {
  width: 100%;
  margin-top: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  animation: rise 0.55s ease-out both;
}
.links .btn:nth-child(1) { animation-delay: 0.06s; }
.links .btn:nth-child(2) { animation-delay: 0.12s; }
.links .btn:nth-child(3) { animation-delay: 0.18s; }
.links .btn:nth-child(4) { animation-delay: 0.24s; }
.links .btn:nth-child(5) { animation-delay: 0.30s; }
.links .btn:nth-child(6) { animation-delay: 0.36s; }
.links .btn:nth-child(7) { animation-delay: 0.42s; }

.btn:hover, .btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.65);
  background: rgba(var(--accent-rgb), 0.10);
  box-shadow: 0 6px 24px rgba(var(--accent-rgb), 0.22);
  outline: none;
}
.btn:active { transform: translateY(0); }

.btn .ico {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.16);
  color: var(--accent);
  filter: brightness(1.25);
}
.btn .ico svg { width: 19px; height: 19px; }

/* botones con logo de marca (hub del grupo) */
.btn .ico.logo {
  background: #ffffff;
  padding: 6px;
  filter: none;
}
.btn .ico.logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.btn .lbl { flex: 1; text-align: left; line-height: 1.25; }
.btn .lbl small {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}

.btn .arw { flex: 0 0 auto; color: var(--muted); transition: transform 0.18s ease, color 0.18s ease; }
.btn .arw svg { width: 15px; height: 15px; display: block; }
.btn:hover .arw { transform: translateX(3px); color: var(--text); }

/* ── redes ── */
.socials {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}
.socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  transition: color 0.18s, border-color 0.18s, transform 0.18s;
}
.socials a:hover {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.65);
  transform: translateY(-2px);
}
.socials svg { width: 19px; height: 19px; }

/* ── firma kalix ── */
footer {
  margin-top: auto;
  padding-top: 2.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.sig-logo { display: inline-flex; opacity: 0.72; transition: opacity 0.18s; }
.sig-logo:hover { opacity: 1; }
.sig-logo img { height: 24px; width: auto; max-width: 200px; display: block; }
.copy { font-size: 0.7rem; color: var(--muted); opacity: 0.7; }

@media (max-width: 380px) {
  body { padding: 2.2rem 1rem 1.6rem; }
  h1 { font-size: 1.28rem; }
  .brandmark img { height: 40px; }
}
