/* =========================================================
   Eco Adventures PC — Link in Bio
   Tipografía: Poppins (Regular 400, SemiBold 600, Italic 400)
   ========================================================= */

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --verde-oscuro: #00512D;
  --verde-lima: #E1FF53;
  --verde-claro: #C2D874;
  --turquesa: #00878F;
  --verde-marca: #00893A;
  --blanco: #FFFFFF;

  /* Espaciados base (se ajustan por breakpoint) */
  --content-max-width: 480px;
  --side-padding: 28px;
  --stack-gap: 34px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--verde-oscuro);
  font-family: "Poppins", sans-serif;
  color: var(--blanco);
  overflow-x: hidden;
}

/* Fondo original de palmeras, completo y sin deformar */
.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: -1;
}

.page {
  position: relative;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 56px var(--side-padding) 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* ---------- Logo ---------- */
.logo {
  width: 78%;
  max-width: 300px;
  height: auto;
  margin-bottom: 30px;
}

/* ---------- Frase introductoria ---------- */
.intro {
  margin: 0 0 var(--stack-gap);
  text-align: center;
  color: var(--verde-claro);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.35;
  max-width: 22ch;
}

.intro strong {
  font-weight: 600;
}

/* ---------- Lista de enlaces ---------- */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--stack-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-item {
  width: 100%;
  display: flex;
  justify-content: center;
}

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 84px;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 0;
  isolation: isolate;
}

.btn:focus-visible {
  outline: 3px solid var(--blanco);
  outline-offset: 4px;
}

.btn-stripe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--verde-oscuro);
}

.btn-title {
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.25;
}

.btn-sub {
  font-weight: 400;
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.3;
  margin-top: 2px;
}

/* ---------- Bloque inactivo: Eco Pa'l Camino ---------- */
.btn-soon {
  cursor: default;
  opacity: 0.55;
}

.btn-soon .btn-stripe {
  filter: grayscale(35%);
}

.sticker {
  position: absolute;
  right: -14px;
  bottom: -22px;
  width: 34%;
  max-width: 150px;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.btn-soon.is-active {
  cursor: pointer;
  opacity: 1;
}

.btn-soon.is-active .btn-stripe {
  filter: none;
}

/* ---------- Pie ---------- */
.footer-user {
  margin-top: var(--stack-gap);
  color: var(--blanco);
  font-weight: 400;
  font-size: 1.05rem;
  text-decoration: none;
  text-align: center;
  padding: 6px 10px;
}

.footer-user:focus-visible {
  outline: 3px solid var(--blanco);
  outline-offset: 4px;
}

.footer-user:hover,
.footer-user:active {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Responsive
   ========================================================= */

/* Móviles pequeños (360px) */
@media (max-width: 380px) {
  :root {
    --side-padding: 20px;
    --stack-gap: 26px;
  }
  .intro {
    font-size: 1.1rem;
  }
  .btn {
    min-height: 74px;
    padding: 12px 18px;
  }
  .btn-title {
    font-size: 1.02rem;
  }
  .btn-sub {
    font-size: 0.82rem;
  }
  .logo {
    max-width: 240px;
  }
}

/* Tablets (768px) y superior */
@media (min-width: 700px) {
  :root {
    --content-max-width: 520px;
    --stack-gap: 40px;
  }
  .page {
    padding-top: 72px;
  }
  .intro {
    font-size: 1.4rem;
    max-width: 26ch;
  }
  .btn {
    min-height: 96px;
  }
  .btn-title {
    font-size: 1.3rem;
  }
  .btn-sub {
    font-size: 1rem;
  }
}

/* Escritorio (1440px) y superior: columna centrada, sin estirar */
@media (min-width: 1200px) {
  :root {
    --content-max-width: 560px;
  }
  .page {
    padding-top: 88px;
    padding-bottom: 72px;
  }
}

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