/* =========================================================
   BRAND IMPORTACIONES — Design System v2
   Modern, refined typography (Oswald display) + tight color usage
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* Core palette */
  --green-900: #0B2E22;
  --green-800: #0F3D2E;
  --green-700: #155A41;
  --green-500: #1F7A57;
  --green-300: #6FA88E;
  --yellow:    #F5C518;
  --yellow-soft:#F8D55C;
  --black:     #0A0A0A;
  --ink:       #161616;
  --white:     #FFFFFF;
  --cream:     #F5F2EA;
  --paper:     #FAF8F1;
  --line:      rgba(255,255,255,0.10);
  --line-dark: rgba(10,10,10,0.10);

  --display: 'Oswald', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;

  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  overflow-x: hidden;
  font-size: 15px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--gutter);
  background: rgba(11,46,34,0);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11,46,34,0.94);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.nav-brand img { height: 36px; filter: brightness(0) invert(1); }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav-brand-text strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.04em;
}
.nav-brand-text span {
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--yellow);
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 600;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 8px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  background: var(--yellow);
  color: var(--green-900);
  padding: 11px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 100px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(245,197,24,0.6);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--yellow); color: var(--green-900); }
.btn-primary:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(245,197,24,0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: var(--white); color: var(--green-900); border-color: var(--white); }
.btn-dark { background: var(--green-900); color: var(--white); }
.btn-dark:hover { background: var(--black); transform: translateY(-2px); }
.btn .arrow { width: 16px; height: 16px; transition: transform 0.3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ===== SECTION FOUNDATIONS ===== */
.section { padding: 120px var(--gutter); position: relative; }
.section-dark { background: var(--green-900); color: var(--white); }
.section-cream { background: var(--cream); color: var(--ink); }
.section-yellow { background: var(--yellow); color: var(--green-900); }
.section-black { background: var(--black); color: var(--white); }

/* New eyebrow style: subtle, no yellow brackets */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.dark { color: rgba(0,0,0,0.5); }
.section-tag {
  font-family: var(--display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  display: block;
}
.section-tag.dark { color: rgba(0,0,0,0.45); }

.h-display {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 100px);
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
}
.h-section {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.h-card {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.015em;
}

/* ===== REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2,0.8,0.2,1),
              transform 0.8s cubic-bezier(0.2,0.8,0.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }

/* ===== FOOTER ===== */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 80px var(--gutter) 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.footer-brand img { height: 44px; filter: brightness(0) invert(1); margin-bottom: 20px; }
.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}
.footer-col h5 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--yellow); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  padding-top: 24px;
}

/* ===== HAMBURGER + MOBILE NAV ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 101;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,46,34,0.98);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.2s ease;
}
.nav-mobile a:hover,
.nav-mobile a.active { color: var(--yellow); }
.nav-mobile .nav-mobile-cta {
  background: var(--yellow);
  color: var(--green-900) !important;
  padding: 14px 36px;
  border-radius: 100px;
  margin-top: 8px;
  font-size: 18px;
}
.nav-mobile-close {
  position: absolute;
  top: 20px;
  right: var(--gutter);
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 90px var(--gutter); }
}
@media (max-width: 480px) {
  .nav-cta { display: none; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
