/* ============================================================
   STAR ROTULACIONES — Design System
   Dirección de arte: minimalismo editorial premium
   en negro y dorado, para una firma de comunicación visual.
   ============================================================ */

:root {
  /* Paleta — negro & dorado, lujo silencioso */
  --ink-0: #07070a;        /* negro profundo (fondo absoluto) */
  --ink-1: #0c0b0a;        /* fondo principal, ligeramente cálido */
  --ink-2: #141210;        /* carbón */
  --ink-3: #1d1a17;        /* antracita */
  --ink-4: #2a2620;        /* gris oscuro cálido */
  --line:  rgba(244, 239, 230, 0.10);
  --line-strong: rgba(244, 239, 230, 0.22);

  --paper:   #f4efe6;       /* texto principal, blanco cálido */
  --paper-2: #d8d2c6;       /* texto secundario */
  --paper-3: #8a8478;       /* texto terciario / metadatos */
  --paper-4: #5a554d;       /* texto deshabilitado / decorativo */

  --gold:    #c8a86b;       /* dorado champagne, acento principal */
  --gold-2:  #d8be88;       /* dorado luz */
  --gold-3:  #8e7444;       /* dorado profundo */
  --gold-glow: rgba(200, 168, 107, 0.18);

  /* Tipografía */
  --serif: "Bodoni Moda", "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

  /* Espacio y radio */
  --gutter: clamp(20px, 4vw, 64px);
  --section-y: clamp(96px, 14vw, 200px);
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;

  /* Transiciones */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  background: var(--ink-1);
  color: var(--paper);
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  background: var(--ink-1);
  color: var(--paper);
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

/* Subtle film grain over everything — adds a tactile, premium feel.
   Sits behind content (negative z-index) so it never washes out text. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.85  0 0 0 0 0.80  0 0 0 0 0.70  0 0 0 0.035 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 1;
}

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

/* ───────────────────────── Tipografía base ───────────────────────── */

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 300;
  font-style: normal;
  color: var(--paper);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.04;
  text-wrap: balance;
}

h1 { font-size: clamp(36px, 9vw, 156px); font-weight: 300; }
h2 { font-size: clamp(30px, 6.4vw, 104px); font-weight: 300; }
h3 { font-size: clamp(28px, 3.6vw, 56px); font-weight: 400; }
h4 { font-size: clamp(20px, 2vw, 28px); font-weight: 400; }

p { margin: 0; }
.lead {
  font-family: var(--sans);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--paper-2);
  letter-spacing: 0.005em;
  max-width: 36ch;
  text-wrap: pretty;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.no-line::before { display: none; }

.italic { font-style: italic; font-family: var(--serif); }
.gold { color: var(--gold); }
.muted { color: var(--paper-3); }

a { color: inherit; text-decoration: none; }

/* ───────────────────────── Layout ───────────────────────── */

.container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
  z-index: 2;
}
.container.narrow { max-width: 1100px; }
.container.wide   { max-width: 1640px; }

section { position: relative; z-index: 2; }

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-sm { padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(64px, 8vw, 120px); }

.divider {
  height: 1px;
  background: var(--line);
  border: none;
  margin: 0;
}

/* ───────────────────────── Navegación ───────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 480ms var(--ease), backdrop-filter 480ms var(--ease), padding 320ms var(--ease);
}
.nav.scrolled {
  background: rgba(12, 11, 10, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  height: 48px;
  width: auto;
  filter: invert(1);
  transition: opacity 280ms var(--ease);
}
.brand:hover .brand-mark { opacity: 0.85; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--paper-2);
  padding: 10px 14px;
  position: relative;
  white-space: nowrap;
  transition: color 220ms var(--ease);
}
.nav-link:hover { color: var(--paper); }
.nav-link.active { color: var(--gold); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 1px;
  background: var(--gold);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 400;
  transition: all 320ms var(--ease);
  background: transparent;
}
.nav-cta:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.nav-cta .arrow { transition: transform 320ms var(--ease); }
.nav-cta:hover .arrow { transform: translateX(4px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  background: none;
  border: none;
  color: var(--paper);
  padding: 11px;
  cursor: pointer;
  z-index: 110;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--paper);
  transition: transform 320ms var(--ease), opacity 240ms var(--ease);
}
.nav.open .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ───────────────────────── Botones ───────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 30px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--paper);
  transition: all 360ms var(--ease);
  position: relative;
  white-space: nowrap;
}
.btn.primary {
  background: var(--paper);
  color: var(--ink-0);
}
.btn.primary:hover {
  background: var(--gold);
  color: var(--ink-0);
}
.btn.outline {
  border: 1px solid var(--line-strong);
  color: var(--paper);
}
.btn.outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn.ghost {
  padding: 18px 0;
  color: var(--paper-2);
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
}
.btn.ghost:hover { color: var(--gold); border-bottom-color: var(--gold); }

.btn .arrow {
  display: inline-block;
  transition: transform 360ms var(--ease);
}
.btn:hover .arrow { transform: translateX(6px); }

/* ───────────────────────── Footer ───────────────────────── */

.footer {
  position: relative;
  z-index: 2;
  background: var(--ink-0);
  border-top: 1px solid var(--line);
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: 40px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 60px 40px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--line);
}
.footer h5 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper-3);
  margin-bottom: 24px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-col a {
  color: var(--paper-2);
  font-size: 14px;
  transition: color 220ms var(--ease);
}
.footer-col a:hover { color: var(--gold); }

.footer-claim {
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.15;
  color: var(--paper);
  max-width: 18ch;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.footer-meta {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--paper-3);
  letter-spacing: 0.04em;
}
.footer-meta a { color: var(--paper-3); }
.footer-meta a:hover { color: var(--gold); }

/* Big wordmark in footer */
.footer-wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(96px, 18vw, 260px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  text-align: center;
  padding-top: 60px;
  user-select: none;
}

/* ───────────────────────── Animaciones de entrada ───────────────────────── */

/* Reveal hooks — kept as no-ops for now; content always renders.
   (Markup keeps these classes so we can layer in animations later
   without touching every page.) */
.reveal { /* visible by default */ }
.reveal-delay-1, .reveal-delay-2, .reveal-delay-3, .reveal-delay-4 { /* no-op */ }

/* ───────────────────────── Placeholders de imagen ───────────────────────── */

.img-slot {
  position: relative;
  background: var(--ink-2);
  overflow: hidden;
  display: block;
}
.img-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 40%),
    linear-gradient(180deg, var(--ink-3) 0%, var(--ink-2) 100%);
}
.img-slot::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--paper-4);
}

/* When there's a real <img> inside, hide the label */
.img-slot.has-image::after { display: none; }
.img-slot img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Frames with subtle border */
.img-slot.framed {
  border: 1px solid var(--line);
}

/* ───────────────────────── Marquee ───────────────────────── */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  background: var(--ink-0);
}
.marquee-track {
  display: flex;
  gap: 80px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(32px, 4vw, 56px);
  color: var(--paper);
}
.marquee-track .dot { color: var(--gold); display: inline-block; padding: 0 8px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ───────────────────────── Util ───────────────────────── */

.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.stack-1 > * + * { margin-top: 16px; }
.stack-2 > * + * { margin-top: 32px; }
.stack-3 > * + * { margin-top: 48px; }

.mono-num {
  font-family: var(--sans);
  font-feature-settings: "tnum";
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--paper-3);
}

/* ───────────────────────── Responsive ───────────────────────── */

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; }

  /* Menú desplegable a pantalla completa de ancho */
  .nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    background: rgba(10, 9, 8, 0.97);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 320ms var(--ease), transform 320ms var(--ease), visibility 320ms;
  }
  .nav.open .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-menu .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav-menu .nav-link {
    display: block;
    padding: 18px 2px;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }
  .nav-menu .nav-link.active::after { display: none; }
  .nav-menu .nav-cta {
    margin-top: 22px;
    justify-content: center;
    text-align: center;
  }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { flex-direction: column; gap: 16px; align-items: flex-start; }
}
