:root {
  --bg: #120f0c;
  --bg-2: #1c1713;
  --panel: rgba(43, 35, 28, 0.84);
  --panel-2: rgba(55, 44, 35, 0.94);
  --text: #f1dfc0;
  --text-soft: #c9b89b;
  --line: rgba(241, 223, 192, 0.16);
  --line-strong: rgba(194, 138, 61, 0.32);
  --accent: #c28a3d;
  --accent-2: #e9d2a7;
  --olive: #6f8064;
  --cocoa: #795239;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 12px 26px rgba(0, 0, 0, 0.24);
  --radius-xl: 34px;
  --radius-pill: 999px;
  --card-max: 430px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding:
    calc(14px + env(safe-area-inset-top))
    14px
    calc(14px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(16, 13, 10, 0.62), rgba(16, 13, 10, 0.76)),
    radial-gradient(circle at 14% 12%, rgba(194, 138, 61, 0.08), transparent 22%),
    radial-gradient(circle at 82% 86%, rgba(111, 128, 100, 0.05), transparent 24%),
    url("fondo.png");
  background-size: cover, cover, cover, cover;
  background-position: center center, center center, center center, center center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: scroll, scroll, scroll, scroll;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(16px);
  opacity: 0.75;
}

body::before {
  width: 260px;
  height: 260px;
  top: -90px;
  left: -80px;
  background: radial-gradient(circle, rgba(194, 138, 61, 0.12), transparent 68%);
}

body::after {
  width: 320px;
  height: 320px;
  right: -120px;
  bottom: -130px;
  background: radial-gradient(circle, rgba(111, 128, 100, 0.09), transparent 68%);
}

.card {
  width: min(calc(100% - 28px), var(--card-max));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px 20px;
  border: 1px solid rgba(233, 210, 167, 0.14);
  border-radius: calc(var(--radius-xl) + 2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 22%),
    linear-gradient(180deg, rgba(38, 31, 25, 0.96), rgba(24, 20, 16, 0.98));
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
  animation: card-in 0.7s ease both;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.035) 18%, transparent 36%),
    radial-gradient(circle at top, rgba(233, 210, 167, 0.035), transparent 44%);
  pointer-events: none;
}

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

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.avatar-wrap {
  position: relative;
  width: clamp(145px, 45vw, 220px);
  aspect-ratio: 1;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  animation: drift 7s ease-in-out infinite;
}

.avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(
    from 220deg,
    #c28a3d,
    #d09a4a,
    #e9d2a7,
    #76856b,
    #795239,
    #c28a3d
  );
  opacity: 0.9;
  z-index: 0;
}

.avatar-wrap::after {
  display: none;
}

.avatar-ring {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(121, 82, 57, 0.10), transparent 45%),
    linear-gradient(180deg, #211a15 0%, #15110e 100%);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(233, 210, 167, 0.06);
  z-index: 1;
}

.avatar-ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(233, 210, 167, 0.035), transparent 35%),
    linear-gradient(180deg, rgba(34, 27, 22, 0.96), rgba(18, 14, 12, 0.98));
  z-index: 0;
}

.avatar {
  position: relative;
  z-index: 2;
  width: 92%;
  height: 92%;
  display: block;
  object-fit: contain;
  object-position: center center;
  border-radius: 50%;
  border: 0;
  transform: translateY(-6px) scale(0.96);
  transform-origin: center;
  left: auto;
  right: auto;
  top: auto;
}

.sparkle {
  position: absolute;
  display: block;
  background: linear-gradient(180deg, rgba(241, 223, 192, 0.98), rgba(194, 138, 61, 0.32));
  opacity: 0.78;
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
  filter: drop-shadow(0 0 10px rgba(194, 138, 61, 0.12));
  transform-origin: center center;
  animation: sparkle-drift 5.8s ease-in-out infinite, sparkle-glow 3.6s ease-in-out infinite;
}

.sparkle--1 {
  width: 14px;
  height: 14px;
  top: 9px;
  left: -16px;
  animation-delay: 0s, -1.2s;
}

.sparkle--2 {
  width: 18px;
  height: 18px;
  top: 41%;
  left: -30px;
  animation-duration: 6.8s, 4.2s;
  animation-delay: -1.6s, -0.6s;
}

.sparkle--3 {
  width: 16px;
  height: 16px;
  right: -14px;
  bottom: 22px;
  animation-duration: 6.2s, 3.9s;
  animation-delay: -0.8s, -1.8s;
}

@keyframes sparkle-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate3d(4px, -3px, 0) rotate(8deg) scale(1.04);
  }
  50% {
    transform: translate3d(-3px, 5px, 0) rotate(-7deg) scale(0.98);
  }
  75% {
    transform: translate3d(2px, -2px, 0) rotate(5deg) scale(1.03);
  }
}

@keyframes sparkle-glow {
  0%,
  100% {
    opacity: 0.58;
    filter: drop-shadow(0 0 8px rgba(194, 138, 61, 0.08));
  }
  50% {
    opacity: 0.92;
    filter: drop-shadow(0 0 14px rgba(233, 210, 167, 0.14));
  }
}

.eyebrow {
  margin: 0 0 10px;
  padding: 8px 14px;
  border: 1px solid rgba(233, 210, 167, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-name {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.18rem, 6.4vw, 2.18rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0.045em;
  color: var(--text);
  white-space: nowrap;
}

.brand-tagline {
  margin: 10px 0 20px;
  max-width: 24ch;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.45;
}

.links {
  width: 100%;
  display: grid;
  gap: 10px;
}

.btn {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(233, 210, 167, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 16%),
    linear-gradient(180deg, rgba(52, 43, 34, 0.98), rgba(36, 29, 23, 0.98));
  color: #f4e4c8;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: -1;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(194, 138, 61, 0.48);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.26);
}

.btn:hover::before,
.btn:focus-visible::before {
  opacity: 1;
}

.btn:focus-visible {
  outline: 2px solid rgba(233, 210, 167, 0.78);
  outline-offset: 3px;
}

.btn:active {
  transform: scale(0.985);
}

.btn--disabled {
  opacity: 0.86;
  cursor: not-allowed;
  pointer-events: none;
  border-color: rgba(233, 210, 167, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 16%),
    linear-gradient(180deg, rgba(56, 46, 36, 0.98), rgba(42, 34, 27, 0.98));
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.16);
}

.btn--disabled:hover,
.btn--disabled:focus-visible {
  transform: none;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.16);
  border-color: rgba(233, 210, 167, 0.16);
}

.btn--disabled .btn-icon {
  color: rgba(241, 223, 192, 0.92);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--accent-2);
  line-height: 0;
}

.btn-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.btn span:last-child {
  color: var(--text);
}

.btn-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
  text-align: center;
}

.btn-label strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.btn-label small {
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(233, 210, 167, 0.86);
  opacity: 0.9;
}

@media (max-width: 420px) {
  .card {
    padding-inline: 18px;
  }

  .brand-name {
    font-size: clamp(1.12rem, 6.7vw, 1.9rem);
  }
}

@media (max-width: 360px) {
  .card {
    padding: 22px 16px 18px;
  }

  .brand-name {
    font-size: clamp(1.02rem, 6.7vw, 1.58rem);
    letter-spacing: 0.03em;
  }

  .btn {
    min-height: 56px;
    padding-inline: 18px;
  }
}

@media (min-width: 700px) {
  body {
    padding: 26px 22px;
    background-attachment: fixed, fixed, fixed, fixed;
  }

  .card {
    padding: 30px 24px 24px;
  }
}

@media (hover: none) {
  .btn:hover {
    transform: none;
  }

  .btn:active {
    transform: scale(0.985);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
