:root {
  --bg: #060805;
  --surface-border: rgba(255, 255, 255, 0.14);
  --text: #f7f2e8;
  --muted: rgba(247, 242, 232, 0.74);
  --accent: #c7a56b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --title-font: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body-font: "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  overflow: hidden;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 18px;
  isolation: isolate;
}

.media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #040503;
}

.media::before,
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.media::before {
  background:
    radial-gradient(circle at 50% 44%, rgba(198, 165, 105, 0.14), transparent 28%),
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(2, 2, 2, 0.62) 0%, rgba(2, 2, 2, 0.25) 38%, rgba(2, 2, 2, 0.72) 100%);
}

.media::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.25) 28%, rgba(0, 0, 0, 0.25) 72%, rgba(0, 0, 0, 0.82) 100%);
}

.photo-layer {
  position: absolute;
  inset: -3%;
  width: 106%;
  height: 106%;
  object-fit: cover;
  object-position: center;
}

.photo-layer {
  background: url("fondo.jpg") center center / cover no-repeat;
  filter: saturate(0.9) contrast(1.02) brightness(0.58);
  transform: scale(1.06);
}

.content {
  position: relative;
  z-index: 3;
  width: min(100%, 560px);
  padding: 28px 24px 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(10, 11, 10, 0.34) 0%, rgba(10, 11, 10, 0.58) 100%);
  border: 1px solid var(--surface-border);
  border-radius: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.content::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(199, 165, 107, 0.16);
  border-radius: 24px;
  pointer-events: none;
}

.content > * {
  position: relative;
  z-index: 1;
}

.crest {
  display: block;
  width: min(43vw, 180px);
  min-width: 124px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
  animation: crest-enter 1s ease-out both;
}

.eyebrow {
  margin: 0 0 8px;
  font-family: var(--title-font);
  font-size: clamp(0.8rem, 1.6vw, 0.95rem);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.9;
  animation: fade-up 1s 0.18s ease-out both;
}

h1 {
  width: 100%;
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(1.7rem, 4.4vw, 2.95rem);
  line-height: 0.96;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
  animation: fade-up 1s 0.28s ease-out both;
}

h1 span {
  display: block;
  width: 100%;
  text-align: center;
}

.divider {
  width: 88px;
  height: 1px;
  margin: 16px auto 14px;
  background: linear-gradient(90deg, rgba(199, 165, 107, 0), rgba(236, 211, 163, 0.92), rgba(199, 165, 107, 0));
  animation: fade-up 1s 0.38s ease-out both;
}

.subtitle {
  margin: 0 auto;
  max-width: 24ch;
  font-size: clamp(0.95rem, 1.8vw, 1.04rem);
  line-height: 1.5;
  color: var(--muted);
  animation: fade-up 1s 0.48s ease-out both;
}

.actions {
  width: min(100%, 680px);
  margin: 22px auto 0;
  display: grid;
  gap: 10px;
}

.membership-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f1ddb4 0%, #d1ae74 45%, #b48741 100%);
  color: #17130d;
  text-decoration: none;
  font-family: var(--title-font);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  animation: fade-up 1s 0.53s ease-out both;
}

.membership-link:focus-visible {
  outline: 2px solid rgba(236, 211, 163, 0.75);
  outline-offset: 3px;
}

.contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  animation: fade-up 1s 0.58s ease-out both;
}

.contact:focus-visible {
  outline: 1px solid rgba(236, 211, 163, 0.45);
  outline-offset: 3px;
}

.contact img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.contact span:last-child {
  white-space: nowrap;
}

.ambient-glow {
  position: absolute;
  z-index: 1;
  inset: auto 50% 8%;
  width: min(62vw, 660px);
  height: min(62vw, 660px);
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(199, 165, 107, 0.2) 0%, rgba(199, 165, 107, 0.05) 36%, transparent 68%);
  filter: blur(26px);
  opacity: 0.65;
  pointer-events: none;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes crest-enter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  body {
    overflow: auto;
  }

  .page {
    padding: 16px 14px;
  }

  .content {
    padding: 24px 16px 20px;
    border-radius: 24px;
  }

  .content::before {
    inset: 10px;
    border-radius: 18px;
  }

  .crest {
    width: min(48vw, 142px);
    margin-bottom: 18px;
  }

  h1 {
    font-size: clamp(1.55rem, 8.1vw, 2.45rem);
    line-height: 0.98;
  }

  .actions {
    margin-top: 18px;
    gap: 10px;
  }

  .membership-link {
    min-height: 48px;
    padding-inline: 16px;
    font-size: clamp(0.95rem, 4.2vw, 1.08rem);
    letter-spacing: 0.06em;
  }

  .contact {
    width: 100%;
    padding-inline: 16px;
  }

  .contact span:last-child {
    font-size: 0.95rem;
  }
}

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

}
