@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

/* Escribir — Design System
   Editorial Luxury × Corporate B2B
   Charcoal / Ivory / Copper
*/

:root {
  --ink: #111111;
  --ink-2: #333333;
  --ink-3: #555555;
  --bone: #ffffff;
  --bone-2: #f6f6f6;
  --bone-3: #ececec;
  --copper: #e10600;
  --copper-deep: #e10600;
  --copper-soft: #e10600;
  --copper-hover: #b80500;
  --rule: rgba(17,17,17,0.12);
  --rule-strong: rgba(225,6,0,0.28);
  --muted: #666666;
  --white: #ffffff;

  --serif: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --gold: #C9A227;
  --gold-bright: #E0C15A;
  --gold-deep: #9A7518;
  --nav: 'Outfit', 'Manrope', -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --container: 1440px;
  --gutter: 32px;
}

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

html { scroll-behavior: smooth; }

.announce {
  background: #e10600;
  color: #fff;
  padding: 10px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}
.announce span { color: #fff; margin: 0 12px; }
.announce a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}
.announce a:hover { text-decoration: underline; opacity: 0.92; }

body {
  font-family: var(--sans);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* ============ TYPOGRAPHY ============ */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--copper);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 7vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 1.8vw, 30px);
  line-height: 1.2;
}

.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

.italic { font-style: italic; }

/* ============ LAYOUT ============ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(80px, 10vw, 140px) 0;
}
.section--tight { padding: clamp(60px, 7vw, 96px) 0; }
.section--ink { background: var(--ink); color: var(--bone); }
.section--bone-2 { background: var(--bone-2); }

.grid { display: grid; gap: var(--gutter); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* Hairlines */
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule--strong { background: var(--rule-strong); }

/* ============ NAV ============ */

.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid rgba(225, 6, 0, 0.18);
}
.nav.is-open {
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}
body.nav-open {
  overflow: hidden;
}
.nav__row {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}
.nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  width: auto;
  max-width: none;
  padding: 0;
  line-height: 0;
}
.nav__logo {
  display: block;
  height: 114px !important;
  width: auto !important;
  max-width: 420px !important;
  max-height: 114px !important;
  object-fit: contain;
  object-position: left center;
}
.nav__links {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: nowrap;
  min-width: 0;
  font-family: var(--nav);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav__links a {
  position: relative;
  color: #111;
  padding: 10px 0;
  white-space: nowrap;
  font-weight: 600;
  transition: color 0.2s;
}
.nav__links a:hover { color: #e10600; }
.nav__links a.active {
  color: #e10600;
}
.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: #e10600;
}
.nav__right {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: flex-end;
  flex-shrink: 0;
  margin-left: auto;
}
.nav__right .small {
  display: none;
  font-family: var(--nav);
  color: #e10600;
}
.nav__right .btn {
  padding: 16px 24px;
  white-space: nowrap;
  font-family: var(--nav);
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}
.btn--primary {
  background: #e10600;
  color: #fff;
  border-color: #e10600;
}
.btn--primary:hover {
  background: var(--copper-hover);
}
.btn--primary .btn__arrow { color: #fff; }
.btn--secondary {
  background: transparent;
  color: #e10600;
  border-color: #e10600;
}
.btn--secondary:hover {
  background: #e10600;
  color: #fff;
}
.btn--ghost {
  padding: 10px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--ink);
}
.btn__arrow {
  width: 14px; height: 14px;
  display: inline-block;
  position: relative;
}
.btn__arrow::before {
  content: '→';
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
}
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn__arrow { transition: transform 0.25s ease; }

/* ============ PRODUCT CARD ============ */

.product-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--rule);
  transition: all 0.3s ease;
  overflow: hidden;
}
.product-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.product-card__media {
  aspect-ratio: 4 / 3;
  background: var(--bone-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  position: relative;
}
.product-card__media--portrait {
  padding: 16px 20px;
}
.product-card__media img {
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  transition: transform 0.5s ease;
}
.product-card__media--portrait img {
  max-width: 100%;
  max-height: 100%;
}
/* Tall product shots (Oakley pastel pens) — show full pens, never crop */
.product-card:hover .product-card__media img {
  transform: scale(1.04);
}
.product-card__media--portrait:hover img {
  transform: scale(1.02);
}
.product-card__body {
  padding: 20px 22px 24px;
  border-top: 1px solid var(--rule);
}
.product-card__code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.product-card__name {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.15;
  margin-top: 6px;
  color: var(--ink);
}
.product-card__name sup {
  font-size: 0.58em;
  line-height: 0;
  vertical-align: super;
  letter-spacing: 0;
}
.product-card__meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.product-card__meta .arrow {
  color: var(--copper);
  transition: transform 0.25s ease;
}
.product-card:hover .arrow { transform: translateX(4px); }

/* ============ FOOTER ============ */

.footer {
  background: #fff;
  color: #111;
  padding: 80px 0 40px;
  border-top: 1px solid var(--rule);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--rule);
}
.footer__brand {
  display: inline-block;
  line-height: 0;
}
.footer__logo {
  display: block;
  height: 114px;
  width: auto;
  max-width: 390px;
  object-fit: contain;
  object-position: left center;
}
.footer__tag {
  margin-top: 20px;
  font-size: 14px;
  color: #555;
  max-width: 32ch;
  line-height: 1.6;
}
.footer__whatsapp {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  transition: color 0.2s;
}
.footer__whatsapp:hover { color: #e10600; }
.footer__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e10600;
  margin-bottom: 20px;
}
.footer__col a, .footer__col li {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: #333;
  list-style: none;
  transition: color 0.2s;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}
.footer__col a:hover { color: #e10600; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: 12px;
  color: #666;
  font-family: var(--mono);
  letter-spacing: 0.08em;
}

/* ============ UTILITY ============ */

.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.copper { color: var(--copper); }
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--rule-strong);
  color: var(--ink-2);
}
.tag--copper { color: var(--copper-deep); border-color: var(--copper); }

/* Marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  background: var(--bone-2);
}
.marquee__track {
  display: flex;
  gap: 64px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee__item {
  font-family: var(--serif);
  font-size: 40px;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 64px;
  font-style: italic;
}
.marquee__item::after {
  content: '✦';
  color: var(--copper);
  font-size: 16px;
  font-style: normal;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Chip */
a.chip { text-decoration: none; cursor: pointer; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 100px;
  font-size: 12px;
  color: var(--ink-2);
  background: var(--white);
  transition: all 0.2s;
  cursor: pointer;
}
.chip:hover, .chip.active { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.chip__count { color: var(--muted); font-family: var(--mono); font-size: 10px; }
.chip.active .chip__count { color: #fff; }

/* Fade-in on load */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeUp 0.8s cubic-bezier(.2,.7,.2,1) both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(225, 6, 0, 0.22);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s, background 0.2s;
}
.nav__toggle:hover {
  border-color: #e10600;
  background: #fff5f5;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #111;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.25s ease;
  transform-origin: center;
}
.nav.is-open .nav__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.is-open .nav__toggle span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav.is-open .nav__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  background: rgba(17, 17, 17, 0.45);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.nav.is-open .nav__backdrop {
  opacity: 1;
  pointer-events: auto;
}

.nav__drawer-foot {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding-top: 20px;
  margin-top: 8px;
  border-top: 1px solid var(--rule);
}
.nav__right .small,
.nav__wa {
  letter-spacing: 0.14em;
  color: inherit;
  text-decoration: none;
}
.nav__wa:hover { color: #e10600; }
.nav__drawer-wa {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #e10600;
  text-decoration: none;
}
.nav__drawer-wa:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 1280px) {
  .nav__links { gap: 20px; font-size: 14px; }
  .nav__row { gap: 20px; }
}
@media (max-width: 1100px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .nav__toggle { display: flex; }
  .nav__backdrop { display: block; }
  .nav__row {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 10px 24px;
  }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid rgba(225, 6, 0, 0.18);
    padding: 12px 24px 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    z-index: 160;
    font-size: 16px;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a {
    padding: 16px 8px;
    border-bottom: 1px solid var(--rule);
    font-size: 16px;
    white-space: normal;
  }
  .nav__links a.active::after { display: none; }
  .nav__links a.active {
    color: #e10600;
    font-weight: 700;
  }
  .nav__drawer-foot {
    display: flex;
    padding: 20px 8px 4px;
    margin-top: 4px;
  }
  .nav__right .btn { display: none; }
  .nav__drawer-foot .btn { width: 100%; justify-content: center; }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .announce { font-size: 10px; padding: 8px 12px; line-height: 1.4; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__logo { height: 96px; max-width: 330px; }
  .btn { justify-content: center; }
  .nav__row { padding: 10px 20px; }
  .nav__links { padding: 12px 20px 28px; }
  .nav__links a { padding: 16px 6px; }
  .nav__drawer-foot { padding: 20px 6px 4px; }
}
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__logo { height: 84px; max-width: 300px; }
  .nav__brand { max-width: none; }
  .nav__logo { height: 96px !important; max-height: 96px !important; max-width: 340px !important; }
  .nav__toggle { width: 40px; height: 40px; }
  .nav__row { padding: 8px 18px; }
  .nav__links { padding: 10px 18px 24px; }
  .nav__links a { padding: 15px 4px; }
  .nav__drawer-foot { padding: 18px 4px 2px; }
}
