/* ==========================================================================
   Playa Escondida · Resort & Marina — link in bio
   Design source: opcion-2.jpg (mockup aprobado)
   ========================================================================== */

@font-face {
  font-family: "Punta";
  src: url("assets/fonts/Punta-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-500-latin-ext.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #ffffff;
  --bg-fallback: #0b141b;

  --glass: rgba(255, 255, 255, 0.26);
  --glass-hover: rgba(255, 255, 255, 0.35);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-border-hover: rgba(255, 255, 255, 0.4);

  --scrim-top: rgba(6, 14, 20, 0.76);
  --scrim-mid: rgba(6, 14, 20, 0.34);
  --scrim-low: rgba(6, 14, 20, 0.48);
  --scrim-bottom: rgba(6, 14, 20, 0.86);

  --page-max: 26rem;
  --pill-h: clamp(3.15rem, 14.4vw, 3.5rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  overflow-x: hidden;
  background: var(--bg-fallback);
  color: var(--ink);
  font-family: "Cormorant Garamond", Garamond, Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------- background */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-fallback);
}

.bg__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--scrim-top) 0%,
    var(--scrim-mid) 32%,
    var(--scrim-low) 62%,
    var(--scrim-bottom) 100%
  );
}

/* -------------------------------------------------------------------- page */

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--page-max);
  margin: auto;
  padding: clamp(1.75rem, 7.2vh, 3.5rem) clamp(1.35rem, 9vw, 2.25rem)
    calc(clamp(1.25rem, 3.6vh, 2.25rem) + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  justify-content: center;
}

.logo {
  display: block;
  width: clamp(5rem, 22.7vw, 7.4rem);
  height: auto;
}

.welcome {
  margin: clamp(1.35rem, 4.2vh, 2rem) 0 0;
  font-size: clamp(0.98rem, 4.95vw, 1.3rem);
  font-weight: 500;
  line-height: 1.34;
  text-align: center;
  text-shadow: 0 1px 16px rgba(4, 10, 15, 0.6);
}

/* ------------------------------------------------------------------- links */

.links {
  margin-top: clamp(1.5rem, 4.6vh, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.7rem, 2.2vh, 1rem);
}

.link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--pill-h);
  padding: 0.35rem 1.25rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(9px) saturate(1.08);
  backdrop-filter: blur(9px) saturate(1.08);
  color: var(--ink);
  font-family: "Punta", Garamond, Georgia, "Times New Roman", serif;
  font-size: calc(var(--pill-h) * 0.312);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.22s var(--ease), border-color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

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

.link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (hover: hover) {
  .link:hover {
    background: var(--glass-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-1px);
  }
}

/* ------------------------------------------------------------------ social */

.social {
  margin-top: clamp(1.4rem, 4.2vh, 2.2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3.4vw, 1.5rem);
}

.social__link {
  display: block;
  line-height: 0;
  border-radius: 6px;
  transition: opacity 0.22s var(--ease);
}

.social__link img {
  display: block;
  width: auto;
  height: clamp(1.55rem, 7.7vw, 2rem);
}

.social__link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

@media (hover: hover) {
  .social__link:hover {
    opacity: 0.72;
  }
}

/* ------------------------------------------------------------ preferences */

@media (prefers-reduced-motion: reduce) {
  .bg {
    background-image: url("assets/bg-poster.jpg");
    background-size: cover;
    background-position: center;
  }

  .bg__video {
    display: none;
  }

  .link,
  .social__link {
    transition: none;
  }

  .link:hover {
    transform: none;
  }
}
