@font-face { font-family: "Brandon Grotesque"; src: url("fonts/brandon-grotesque-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Brandon Grotesque"; src: url("fonts/brandon-grotesque-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Brandon Grotesque"; src: url("fonts/brandon-grotesque-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ink: #fffdf0;
  --ink-soft: rgba(255, 253, 240, 0.78);
  --ink-faint: rgba(255, 253, 240, 0.55);
  --sans: "Brandon Grotesque", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --chip-w: 52px;
  --chip-h: 44px;
  --chip-gap: 4px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  background: #101418;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  overscroll-behavior: none;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────── Fondo ───────── */
.bgs, .bg, .veil { position: fixed; inset: 0; }
.bgs { z-index: 0; }
.bg {
  background-size: cover;
  background-position: center;
  opacity: 0;
  will-change: opacity;
}
.bg .photo {
  position: absolute; inset: 0;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.bg .photo.on { opacity: 1; }
.veil {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 12, 16, 0.56) 0%, rgba(8, 12, 16, 0.4) 26%, rgba(8, 12, 16, 0.28) 60%, rgba(8, 12, 16, 0.6) 100%);
}
.veil::after {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.11;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───────── Vidrio ───────── */
.glass {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.09) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(170%) brightness(1.04);
  backdrop-filter: blur(22px) saturate(170%) brightness(1.04);
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.55),
    inset 0 -1px 0.5px rgba(255, 255, 255, 0.14),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.22),
    inset 0 14px 18px -14px rgba(255, 255, 255, 0.28),
    0 14px 34px -16px rgba(0, 0, 0, 0.55),
    0 2px 6px -2px rgba(0, 0, 0, 0.2);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(30, 38, 46, 0.72); }
}

/* ───────── Paginador ───────── */
.pager {
  position: fixed; inset: 0; z-index: 2;
  display: flex;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pager::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}
.slide::-webkit-scrollbar { display: none; }
.slide.far > .col { visibility: hidden; }

.col {
  width: min(100%, 472px);
  min-height: 100%;
  margin: 0 auto;
  padding:
    calc(env(safe-area-inset-top, 0px) + clamp(54px, 8.5vh, 92px))
    20px
    calc(env(safe-area-inset-bottom, 0px) + 132px);
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}

/* Cabecera de marca */
.brand { margin: 0; font: inherit; display: grid; place-items: center; min-height: 104px; }
.logo { display: block; }
.logo img { display: block; width: 100%; height: auto; }
.hero-logo { max-width: 68vw; filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.35)); }
.logo-txt { font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; font-size: 15px; }
.tagline {
  margin: 20px 0 0;
  max-width: 33ch;
  font-size: 17px; font-weight: 400; line-height: 1.38;
  color: rgba(255, 253, 240, 0.92);
  text-wrap: pretty;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7), 0 0 3px rgba(0, 0, 0, 0.4);
}

/* Enlaces */
.links {
  list-style: none; padding: 0;
  margin: 26px 0 0;
  width: 100%;
  display: grid; gap: 10px;
}
.link {
  --pad: 7px;
  display: grid;
  grid-template-columns: 50px 1fr 34px;
  column-gap: 13px;
  align-items: center;
  min-height: 64px;
  padding: var(--pad) 13px var(--pad) var(--pad);
  border-radius: 24px;
  text-align: left;
  transition: transform 0.35s var(--ease), background-color 0.3s ease, filter 0.3s ease;
}
/* Miniatura: cuadrada, radio concéntrico con el botón (24 − 7 = 17) */
.thumb {
  width: 50px; height: 50px;
  border-radius: calc(24px - var(--pad));
  overflow: hidden;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.28), 0 2px 8px -3px rgba(0, 0, 0, 0.45);
  position: relative;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.35), inset 0 1px 0.5px rgba(255, 255, 255, 0.45); pointer-events: none; }
.thumb.ic svg { width: 22px; height: 22px; opacity: 0.95; }
.link .txt { display: grid; gap: 1px; min-width: 0; }
.link .t { font-size: 17.5px; font-weight: 500; letter-spacing: 0.005em; line-height: 1.2; text-wrap: balance; }
.link .n { font-size: 14px; color: var(--ink-soft); font-weight: 400; line-height: 1.25; }
.link .ico {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.35s var(--ease), background-color 0.3s ease;
}
.link .ico svg { width: 15px; height: 15px; }
/* Principal: mismo vidrio, apenas teñido con el color de marca */
.link.primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.12) 100%),
    color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.7),
    inset 0 -1px 0.5px rgba(255, 255, 255, 0.2),
    inset 0 0 0 0.5px color-mix(in srgb, var(--accent) 45%, rgba(255, 255, 255, 0.5)),
    inset 0 16px 20px -14px rgba(255, 255, 255, 0.36),
    0 14px 34px -16px rgba(0, 0, 0, 0.55),
    0 0 26px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.link.primary .ico { background: rgba(255, 255, 255, 0.26); }
@media (hover: hover) {
  .link:hover { transform: translateY(-2px); background-color: rgba(255, 255, 255, 0.1); }
  .link:hover .ico { transform: translate(1px, -1px); background: rgba(255, 255, 255, 0.26); }
}
.link:active { transform: scale(0.975); filter: brightness(1.12); }

/* Redes */
.socials { display: flex; gap: 10px; margin: 22px 0 0; }
.social {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  transition: transform 0.35s var(--ease);
}
.social svg { width: 18px; height: 18px; fill: currentColor; }
@media (hover: hover) { .social:hover { transform: translateY(-2px); } }
.social:active { transform: scale(0.94); }

.foot {
  margin-top: auto;
  padding-top: 34px;
  font-size: 12px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint);
}
.foot a:hover { color: var(--ink); }

/* Entrada */
@media (prefers-reduced-motion: no-preference) {
  .slide.enter .rise {
    animation: rise 0.9s var(--ease) backwards;
    animation-delay: calc(var(--i, 0) * 55ms + 80ms);
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }
}

/* ───────── Dock de marcas ───────── */
.dock {
  position: fixed; z-index: 5;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  transform: translateX(-50%);
  padding: 7px;
  border-radius: 999px;
  display: flex; gap: var(--chip-gap);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07)), rgba(16, 22, 28, 0.38);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
}
.lens {
  position: absolute; z-index: -1;
  top: 7px; left: 7px;
  width: var(--chip-w); height: var(--chip-h);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.16));
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.75),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.32),
    0 6px 16px -6px rgba(0, 0, 0, 0.5);
  will-change: transform;
}
.chip {
  width: var(--chip-w); height: var(--chip-h);
  border-radius: 999px;
  display: grid; place-items: center;
  flex: none;
}
.chip-logo {
  width: calc(var(--chip-w) - 12px); height: calc(var(--chip-h) - 16px);
  display: grid; place-items: center;
  opacity: 0.66;
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
}
.chip-logo img { width: 100%; height: 100%; object-fit: contain; }
.chip-logo .logo-txt { font-size: 8px; letter-spacing: 0.06em; }
.chip[aria-current="true"] .chip-logo { opacity: 1; transform: scale(1.05); }
@media (hover: hover) { .chip:hover .chip-logo { opacity: 1; } }

/* Idioma */
.lang {
  position: fixed; z-index: 6;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: calc(env(safe-area-inset-right, 0px) + 14px);
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07)), rgba(16, 22, 28, 0.3);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
}
.lang button {
  position: relative; z-index: 1;
  min-width: 42px; height: 30px; padding: 0 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em;
  color: var(--ink-soft);
  transition: color 0.3s ease;
}
.lang button[aria-pressed="true"] { color: var(--ink); }
.lang::after {
  content: "";
  position: absolute; top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.16));
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.75), inset 0 0 0 0.5px rgba(255, 255, 255, 0.32), 0 4px 12px -5px rgba(0, 0, 0, 0.5);
  transition: transform 0.45s var(--ease);
}
.lang[data-lang="es"]::after { transform: translateX(100%); }

/* Flechas (desktop) */
.nav {
  position: fixed; z-index: 5;
  top: 50%;
  width: 54px; height: 54px; margin-top: -27px;
  border-radius: 50%;
  display: none; place-items: center;
  transition: transform 0.35s var(--ease), opacity 0.3s ease;
}
.nav svg { width: 20px; height: 20px; }
.nav.prev { left: max(28px, calc(50% - 420px)); }
.nav.next { right: max(28px, calc(50% - 420px)); }
.nav[disabled] { opacity: 0; pointer-events: none; }
.nav:hover { transform: scale(1.06); }
.nav:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) and (min-width: 820px) {
  .nav { display: grid; }
}

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

@media (min-width: 820px) {
  :root { --chip-w: 92px; --chip-h: 52px; }
  .col { padding-top: clamp(48px, 9vh, 110px); }
  .brand { min-height: 128px; }
  .hero-logo { transform: scale(1.16); }
  .chip-logo { width: calc(var(--chip-w) - 26px); height: calc(var(--chip-h) - 20px); }
}
@media (max-width: 359px) { :root { --chip-w: 46px; } }
@media (max-height: 640px) { .brand { min-height: 84px; } .links { margin-top: 22px; } }
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation: none !important; }
}
