/* ============================================
   PATAGONIC WORKS — Diseño épico minimalista
   Negro puro + dorado de marca
   ============================================ */

:root {
  --black: #000000;
  --ink: #0a0a0a;
  --ink-2: #111111;
  --gold: #f5c45e;
  --gold-soft: #f7d488;
  --gold-deep: #d9a23f;
  --white: #ffffff;
  --gray: #9a9a92;
  --line: rgba(245, 196, 94, 0.14);
  --maxw: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--black);
  color: var(--white);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--black); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- GRAIN ---- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 60px);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease),
    border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px clamp(20px, 5vw, 60px);
  border-color: var(--line);
}
.nav__brand img { height: 46px; width: auto; transition: height 0.4s var(--ease); }
.nav.scrolled .nav__brand img { height: 38px; }
.nav__links {
  display: flex; gap: 34px;
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.nav__links a { color: var(--gray); transition: color 0.25s; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--gold); transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { width: 100%; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Archivo", sans-serif;
  font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 15px 28px; border-radius: 100px;
  cursor: pointer; transition: all 0.35s var(--ease);
  border: 1px solid transparent; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover {
  background: var(--gold-soft); transform: translateY(-2px);
  box-shadow: 0 14px 40px -10px rgba(245, 196, 94, 0.55);
}
.btn--gold:hover svg { transform: translateX(5px); }
.btn--ghost {
  background: transparent; color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--small { padding: 11px 20px; font-size: 12px; }
.btn--lg { padding: 19px 38px; font-size: 15px; }

/* ---- HERO ---- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px clamp(20px, 5vw, 60px) 80px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(110px); opacity: 0.4;
}
.orb--1 {
  width: 620px; height: 620px; top: -180px; right: -120px;
  background: radial-gradient(circle, var(--gold-deep), transparent 70%);
  animation: float1 16s ease-in-out infinite;
}
.orb--2 {
  width: 480px; height: 480px; bottom: -160px; left: -100px;
  background: radial-gradient(circle, #6b4e1c, transparent 70%);
  animation: float2 20s ease-in-out infinite;
}
@keyframes float1 {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(-50px, 60px); }
}
@keyframes float2 {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(60px, -50px); }
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 10%, transparent 75%);
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
}
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Space Mono", monospace; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--gold); padding: 8px 18px;
  border: 1px solid var(--line); border-radius: 100px;
  margin-bottom: 38px;
}
.hero__tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(245, 196, 94, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245,196,94,0.55); }
  70% { box-shadow: 0 0 0 12px rgba(245,196,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,196,94,0); }
}
.hero__title {
  font-family: "Anton", sans-serif;
  font-size: clamp(3.4rem, 12vw, 11rem);
  line-height: 0.92; letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 34px;
}
.hero__title span { display: block; }
.hero__title--accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
  text-stroke: 2px var(--gold);
}
.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  color: var(--gray); max-width: 640px;
  line-height: 1.7; margin-bottom: 44px;
}
.hero__sub strong { color: var(--white); font-weight: 700; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 72px; }
.hero__stats {
  display: flex; gap: clamp(28px, 6vw, 80px); flex-wrap: wrap;
  padding-top: 38px; border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num {
  font-family: "Anton", sans-serif; font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold); line-height: 1;
}
.stat__label {
  font-size: 12px; color: var(--gray);
  text-transform: uppercase; letter-spacing: 0.1em; max-width: 200px;
}
.scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: "Space Mono", monospace; font-size: 10px;
  letter-spacing: 0.3em; color: var(--gray); z-index: 2;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { transform: scaleY(0.3); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* ---- REVEAL ---- */
.reveal {
  opacity: 0; transform: translateY(34px);
  animation: reveal 1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes reveal { to { opacity: 1; transform: none; } }

.in-view { animation: reveal 0.9s var(--ease) forwards; }
[data-scroll] { opacity: 0; transform: translateY(40px); }

/* ---- MARQUEE ---- */
.marquee-section {
  padding: 70px 0; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}
.marquee-label {
  text-align: center; font-family: "Space Mono", monospace;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 44px;
}
.marquee {
  position: relative; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
@media (max-width: 560px) {
  .marquee {
    mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
  }
  .flags-strip {
    mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
  }
}
.marquee__track {
  display: flex; gap: 90px; width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item {
  display: flex; align-items: center; gap: 14px;
  font-family: "Anton", sans-serif; font-size: 1.5rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--gray); opacity: 0.55;
  transition: opacity 0.3s, color 0.3s; white-space: nowrap;
}
.marquee__item:hover { opacity: 1; color: var(--gold); }
.marquee__item img { height: 68px; width: auto; opacity: 0.8; }
.marquee__item img.logo-small { height: 42px; }
.marquee__item img.logo-rounded { border-radius: 12px; }
.marquee__item img.logo-dark { background: #fff; padding: 4px; }
.marquee__item .m-dot { color: var(--gold); }

/* ---- FLAGS STRIP ---- */
.flags-strip {
  overflow: hidden; margin: 0 0 44px;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.flags-strip__track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee 18s linear infinite;
}
.flag-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.flag-item img {
  width: 56px; height: 38px; object-fit: cover;
  border-radius: 6px; border: 1px solid rgba(255,255,255,0.12);
  opacity: 0.85;
}
.flag-item span {
  font-family: "Space Mono", monospace; font-size: 9px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray); white-space: nowrap;
}

/* ---- SECTION ---- */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) clamp(20px, 5vw, 60px);
}
.section__head { max-width: 760px; margin-bottom: 80px; }
.section__index {
  display: inline-block; font-family: "Space Mono", monospace;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.section__title {
  font-family: "Anton", sans-serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1; text-transform: uppercase;
  letter-spacing: -0.01em; margin-bottom: 26px;
}
.section__title em {
  font-style: normal; color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
}
.section__lead { font-size: 1.1rem; color: var(--gray); line-height: 1.7; }

/* ---- FEATURES ---- */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.feature {
  background: var(--ink); padding: 46px 38px;
  transition: background 0.4s var(--ease);
}
.feature:hover { background: var(--ink-2); }
.feature__num {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(245, 196, 94, 0.08);
  border: 1px solid var(--line);
  font-size: 1.6rem; color: var(--gold); margin-bottom: 26px;
}
.feature h3 {
  font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: 1.3rem; margin-bottom: 12px;
}
.feature p { color: var(--gray); font-size: 0.96rem; }

/* ---- EVOLUTION ---- */
.evolution { margin-top: 90px; }
.evolution__line {
  display: flex; align-items: stretch; gap: 30px; flex-wrap: wrap;
}
.evolution__point {
  flex: 1; min-width: 260px;
  padding: 40px; border: 1px solid var(--line);
  border-radius: 18px; background: var(--ink);
}
.evolution__point--now {
  background: linear-gradient(160deg, rgba(245,196,94,0.1), transparent);
  border-color: rgba(245, 196, 94, 0.4);
}
.evolution__year {
  font-family: "Space Mono", monospace; font-size: 12px;
  letter-spacing: 0.22em; color: var(--gold);
}
.evolution__point h4 {
  font-family: "Anton", sans-serif; font-size: 1.7rem;
  text-transform: uppercase; margin: 14px 0 12px;
}
.evolution__point p { color: var(--gray); font-size: 0.96rem; }
.evolution__arrow {
  display: flex; align-items: center;
  font-family: "Anton", sans-serif; font-size: 2.6rem;
  color: var(--gold); opacity: 0.5;
}

/* ---- GALLERY ---- */
.gallery-section--alt { background: var(--ink); border-radius: 0; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.gallery__empty {
  grid-column: 1 / -1; text-align: center;
  padding: 80px 20px; color: var(--gray);
  font-family: "Space Mono", monospace; font-size: 13px;
  letter-spacing: 0.1em; border: 1px dashed var(--line); border-radius: 16px;
}
.vcard {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line);
  aspect-ratio: 9 / 16; cursor: pointer;
  transition: transform 0.45s var(--ease), border-color 0.4s;
}
.vcard:hover { transform: translateY(-6px); border-color: var(--gold); }
.vcard video {
  width: 100%; height: 100%; object-fit: cover;
  display: block; background: #000;
}
.vcard__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 45%, rgba(0,0,0,0.85));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; opacity: 1; transition: opacity 0.4s var(--ease);
}
.vcard__play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(245, 196, 94, 0.92);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.35s var(--ease), opacity 0.35s;
}
.vcard__play svg { width: 24px; height: 24px; fill: var(--black); margin-left: 3px; }
.vcard.playing .vcard__play { opacity: 0; pointer-events: none; }
.vcard.playing .vcard__overlay { opacity: 0; }
.vcard__title {
  font-family: "Archivo", sans-serif; font-weight: 700;
  font-size: 1.05rem; margin-bottom: 4px;
}
.vcard__client {
  font-family: "Space Mono", monospace; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
}
.vcard__badge {
  position: absolute; top: 14px; left: 14px;
  font-family: "Space Mono", monospace; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 100px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
  border: 1px solid var(--line); color: var(--gold);
}

/* ---- CTA ---- */
.cta {
  text-align: center; position: relative;
  padding: clamp(100px, 14vw, 180px) clamp(20px, 5vw, 60px);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, rgba(245,196,94,0.12), transparent 65%);
}
.cta__inner { max-width: 860px; margin: 0 auto; }
.cta__title {
  font-family: "Anton", sans-serif;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.98; text-transform: uppercase;
  margin: 24px 0 28px;
}
.cta__title span {
  color: transparent; -webkit-text-stroke: 2px var(--gold);
}
.cta__lead {
  font-size: 1.15rem; color: var(--gray);
  max-width: 620px; margin: 0 auto 48px; line-height: 1.7;
}
.cta__buttons {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 40px;
}
.cta__social {
  font-family: "Space Mono", monospace; font-size: 13px;
  color: var(--gray); display: flex; gap: 14px;
  justify-content: center; letter-spacing: 0.06em;
}
.cta__social a { color: var(--gold); transition: opacity 0.2s; }
.cta__social a:hover { opacity: 0.7; }

/* ---- FOOTER ---- */
.footer {
  text-align: center; padding: 70px 20px 50px;
  border-top: 1px solid var(--line);
}
.footer__logo { height: 70px; margin: 0 auto 24px; opacity: 0.85; }
.footer p { color: var(--gray); font-size: 0.92rem; }
.footer__roots { margin-top: 8px; font-size: 0.82rem; opacity: 0.7; }
.footer__roots strong { color: var(--gold); }
.footer__admin {
  display: inline-block; margin-top: 26px;
  font-family: "Space Mono", monospace; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gray); opacity: 0.4; transition: opacity 0.3s;
}
.footer__admin:hover { opacity: 1; color: var(--gold); }

/* ---- LIGHTBOX ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(0,0,0,0.94); backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox video {
  max-width: 92vw; max-height: 88vh; border-radius: 14px;
  border: 1px solid var(--line);
}
.lightbox.horizontal video {
  transform: rotate(-90deg);
  max-width: 85vh;
  max-height: 95vw;
}
.lightbox__close {
  position: absolute; top: 26px; right: 30px;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(0,0,0,0.5);
  color: var(--white); font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.lightbox__close:hover { background: var(--gold); color: var(--black); }

/* ---- RESPONSIVE ---- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .hero { padding-top: 120px; }
  .evolution__arrow { transform: rotate(90deg); width: 100%; justify-content: center; }
  .evolution__line { flex-direction: column; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .cta__buttons { flex-direction: column; }
  .cta__buttons .btn { justify-content: center; }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .vcard__title { font-size: 0.72rem; margin-bottom: 2px; }
  .vcard__client { font-size: 0.6rem; letter-spacing: 0.08em; }
  .vcard__badge { font-size: 8px; padding: 4px 8px; }
  .vcard__overlay { padding: 10px; }
}
