/* Media Pixel Lab — base system
   Tone: Tech moderno Silicon Valley, verde oscuro dominante, beige durazno accent
*/

:root {
  /* Brand */
  --ink:        #0D3B34;          /* deep green from logo */
  --ink-2:      #0A2E29;          /* darker surface */
  --ink-3:      #072420;          /* deepest */
  --accent:     #F2C79A;          /* beige / durazno */
  --accent-2:   #E8B078;
  --cream:      #F1EFEA;          /* off-white */
  --cream-2:    #E7E4DB;
  --paper:      #FAF8F3;
  --line:       rgba(241,239,234,0.12);
  --line-ink:   rgba(13,59,52,0.14);
  --muted:      rgba(241,239,234,0.58);
  --muted-ink:  rgba(13,59,52,0.56);

  /* Type */
  --sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Fraunces", "Times New Roman", serif;

  /* Rhythm */
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1400px;
}

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

html {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01","cv11";
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  cursor: none;
}

@media (max-width: 900px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: none; }

::selection { background: var(--accent); color: var(--ink-3); }

/* Container + grid */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* Type scale */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.02;
}

.display {
  font-size: clamp(56px, 10vw, 168px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.h1 { font-size: clamp(40px, 6vw, 88px); letter-spacing: -0.03em; line-height: 1.0; font-weight: 500; }
.h2 { font-size: clamp(32px, 4.2vw, 64px); letter-spacing: -0.025em; line-height: 1.05; font-weight: 500; }
.h3 { font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.015em; line-height: 1.15; font-weight: 500; }

.lead {
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.45;
  color: var(--muted);
  max-width: 62ch;
  font-weight: 400;
}

.mono { font-family: var(--mono); }
.serif-it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: -0.01em;
  border: 1px solid var(--line);
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  cursor: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--ink-3); border-color: var(--accent); }
.btn-primary:hover { background: var(--cream); border-color: var(--cream); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn-ghost:hover { background: rgba(241,239,234,0.06); border-color: rgba(241,239,234,0.3); }
.btn .arrow { width: 16px; height: 16px; transition: transform .25s ease; }
.btn:hover .arrow { transform: translate(2px,-2px); }

/* Always-on dot */
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #7BD389;
  position: relative;
  display: inline-block;
}
.live-dot::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: #7BD389;
  opacity: 0.4;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Section helpers */
section { position: relative; }
.rule { height: 1px; background: var(--line); width: 100%; }
.rule-ink { height: 1px; background: var(--line-ink); }

.section-label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 56px;
}

/* Scroll reveal — JS-controlled only; no CSS hiding by default */
.reveal { transition: opacity .9s cubic-bezier(.2,.6,.2,1), transform .9s cubic-bezier(.2,.6,.2,1); }
.reveal.hidden-init { opacity: 0; transform: translateY(24px); }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }

/* Marquee */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: inline-flex;
  gap: 64px;
  animation: marquee 40s linear infinite;
  padding-right: 64px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Custom cursor */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%,-50%);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  transition: transform .08s linear, width .2s, height .2s, background .2s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(242,199,154,0.4);
  transition: transform .2s cubic-bezier(.2,.6,.2,1), width .25s, height .25s, border-color .25s;
}
.cursor-ring.hover {
  width: 64px; height: 64px;
  border-color: rgba(242,199,154,0.9);
  background: rgba(242,199,154,0.08);
}

/* Page entry */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Nav */
.nav {
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 20px;
  background: rgba(7,36,32,0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  max-width: calc(100% - 40px);
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-right: 12px;
  text-decoration: none;
  color: var(--cream);
}
.nav-logo-mark {
  width: 110px; height: 28px;
  position: relative;
  display: block;
}
.nav-logo-mark svg, .nav-logo-mark img.logo-img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: left center; }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: rgba(241,239,234,0.08);
  border: 1px solid var(--line);
  padding: 0;
  position: relative;
  cursor: pointer;
  margin-left: 4px;
}
.nav-burger span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--cream);
  transition: transform .35s cubic-bezier(.2,.6,.2,1), top .25s, opacity .2s;
}
.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 23px; }
.nav-burger.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink);
  background:
    radial-gradient(circle at 20% 20%, rgba(194,168,153,0.08), transparent 50%),
    var(--ink);
  transform: translateY(-100%);
  transition: transform .5s cubic-bezier(.7,0,.3,1);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.nav-overlay.open { transform: translateY(0); }
.nav-overlay-inner { width: 100%; max-width: 600px; }
.nav-overlay ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--line);
}
.nav-overlay ul li { border-bottom: 1px solid var(--line); }
.nav-overlay ul a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 0;
  font-size: clamp(34px, 8vw, 56px);
  letter-spacing: -0.03em;
  font-weight: 500;
  text-decoration: none;
  color: var(--cream);
}
.nav-overlay ul a::after { content: '→'; color: var(--accent); font-size: 0.7em; opacity: 0; transform: translateX(-10px); transition: all .3s; }
.nav-overlay ul a:hover::after { opacity: 1; transform: translateX(0); }
.nav-overlay-foot {
  margin-top: 40px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em;
}
.nav ul {
  display: flex; align-items: center; gap: 4px;
  list-style: none; padding: 0; margin: 0;
}
.nav ul a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--cream);
  opacity: 0.75;
  transition: opacity .2s, background .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav ul a:hover, .nav ul a.active { opacity: 1; background: rgba(241,239,234,0.06); }
.nav-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.lang-toggle {
  display: inline-flex;
  background: rgba(241,239,234,0.06);
  border-radius: 999px;
  padding: 3px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}
.lang-toggle button {
  padding: 4px 10px;
  border-radius: 999px;
  opacity: 0.6;
}
.lang-toggle button.active {
  background: var(--cream);
  color: var(--ink-3);
  opacity: 1;
}
.nav-cta {
  background: var(--accent);
  color: var(--ink-3) !important;
  opacity: 1 !important;
  font-weight: 500;
}

@media (max-width: 900px) {
  .nav-inner { padding: 6px 6px 6px 14px; gap: 4px; font-size: 13px; }
  .nav-links { display: none; }
  .nav-right { border-left: 0; padding-left: 0; gap: 6px; }
  .nav-burger { display: block; }
  .nav-cta { display: none; }
  .nav-logo-mark { width: 92px; height: 24px; }
}
@media (max-width: 520px) {
  .lang-toggle { display: none; }
  .nav-logo-mark { width: 84px; height: 22px; }
}

/* Footer */
.footer {
  background: var(--ink-3);
  color: var(--cream);
  border-top: 1px solid var(--line);
  padding: 100px 0 40px;
  margin-top: 120px;
}
.footer-big {
  font-size: clamp(64px, 14vw, 220px);
  letter-spacing: -0.05em;
  line-height: 0.9;
  font-weight: 600;
  margin: 40px 0 80px;
}
.footer-big em { font-family: var(--serif); font-style: italic; color: var(--accent); font-weight: 400; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { opacity: 0.8; }
.footer-col a:hover { opacity: 1; color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 20px;
}

/* Hero collage (home) */
.hero-collage {
  position: relative;
  margin-top: 80px;
  height: 460px;
  width: 100%;
  max-width: 1200px;
}
.hc-item {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  border: 1px solid rgba(241,239,234,0.08);
  transition: transform .7s cubic-bezier(.2,.6,.2,1);
  cursor: pointer;
}
.hc-item:hover { transform: translateY(-6px) scale(1.02) !important; }
.hc-a { width: 32%; aspect-ratio: 4/5; left: 0; top: 10px; transform: rotate(-3deg); }
.hc-b { width: 24%; aspect-ratio: 3/4; left: 28%; top: 80px; transform: rotate(2deg); z-index: 2; }
.hc-c { width: 30%; aspect-ratio: 4/5; left: 48%; top: 0; transform: rotate(-2deg); }
.hc-d { width: 22%; aspect-ratio: 1/1; left: 72%; top: 220px; transform: rotate(4deg); }
.hc-e { width: 22%; aspect-ratio: 4/3; left: 8%; top: 330px; transform: rotate(3deg); z-index: 2; }
.hc-item .hc-cap {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream);
  z-index: 3; pointer-events: none;
}
.hc-item .hc-cap .hc-tag { background: rgba(0,0,0,0.55); backdrop-filter: blur(8px); padding: 4px 8px; border-radius: 999px; }
.hc-item .hc-cap .hc-title { background: var(--accent); color: var(--ink-3); padding: 4px 10px; border-radius: 999px; font-weight: 600; letter-spacing: -0.01em; text-transform: none; font-family: var(--sans); font-size: 12px; }
.hc-badge {
  position: absolute; top: -20px; right: 40px; z-index: 4;
  background: var(--cream); color: var(--ink-3);
  padding: 14px 22px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transform: rotate(4deg);
}
.hc-badge-inner { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.hc-badge .live-dot { background: #1F5C48; box-shadow: 0 0 0 4px rgba(31,92,72,0.15); }
@media (max-width: 900px) {
  .hero-collage { height: 360px; margin-top: 60px; }
  .hc-a { width: 46%; top: 20px; left: 2%; } .hc-b { width: 42%; left: 52%; top: 0; }
  .hc-c, .hc-d { display: none; }
  .hc-e { display: block; width: 52%; left: 24%; top: 230px; }
  .hc-badge { right: 20px; top: -12px; padding: 10px 16px; }
  .hc-badge-inner { font-size: 10px; }
}

/* Hero image slot for inner pages */
.hero-visual {
  margin-top: 60px;
  aspect-ratio: 16/7;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.hero-visual .hv-inner { position: absolute; inset: 0; }
.hero-visual .hv-label {
  position: absolute; left: 24px; top: 20px; z-index: 3;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cream);
  background: rgba(0,0,0,0.55); backdrop-filter: blur(8px);
  padding: 6px 12px; border-radius: 999px;
}
