/* ═══════════════════════════════════════════════════
   TRIVIUM ENERGÍA · styles.css v9
   Estilo editorial premium — crema + dorado + Cormorant
═══════════════════════════════════════════════════ */

/* ─── Reset & tokens ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Paleta Manual de Marca */
  --verde-profundo:  #234D20;
  --verde-trivium:   #36802D;
  --verde-campo:     #77AB59;
  --verde-brote:     #C9DF8A;
  --verde-papel:     #F0F7DA;

  /* Estilo visual premium */
  --cream:           #F4F0E8;
  --cream-light:     #FAF8F4;
  --white:           #FFFFFF;
  --green:           #234D20;
  --green-dark:      #1a3318;   /* solo texto oscuro, NO fondos */
  --green-deep:      #234D20;
  --green-light:     #C9DF8A;
  --gold:            #C9973A;
  --gold-hover:      #b07e25;
  --text-main:       #1a2e18;
  --text-muted:      #5a6e52;
  --radius:          10px;
  --shadow:          0 4px 28px rgba(35,77,32,.10);
  --shadow-hover:    0 10px 40px rgba(35,77,32,.18);
  --transition:      .3s cubic-bezier(.4,0,.2,1);
  --max-w:           1200px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background: var(--cream-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography ─────────────────────────────────── */
.display,
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.12;
  font-weight: 600;
}

/* ─── Layout ─────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header ─────────────────────────────────────── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(35,77,32,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,223,138,.12);
  transition: background var(--transition);
}

#header .container {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}
.logo-wordmark {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.logo-name {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: .08em;
  line-height: 1.1;
  text-transform: uppercase;
}
.logo-sub {
  font-size: .6rem;
  color: var(--verde-brote);
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1;
}

nav { display: flex; align-items: center; gap: 8px; }

.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}
.nav-list a {
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: .02em;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-list a:hover,
.nav-list a.active { color: var(--white); background: rgba(201,223,138,.12); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 6px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: .02em;
  font-size: .875rem;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover { background: var(--gold-hover) !important; transform: translateY(-1px); }

/* ─── Hamburger ──────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background var(--transition);
}
.hamburger:hover { background: rgba(201,223,138,.12); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,.8);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .02em;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,151,58,.35);
}
.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid rgba(26,46,24,.25);
}
.btn-outline:hover {
  border-color: var(--verde-trivium);
  background: rgba(35,77,32,.05);
  transform: translateY(-1px);
}
.section-cta .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.section-cta .btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* ─── Section labels ─────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--text-main);
  line-height: 1.12;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ─── Animations ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  opacity: 0;
  animation: fadeUp .7s cubic-bezier(.4,0,.2,1) forwards;
}
.fade-in-up.delay-1 { animation-delay: .15s; }
.fade-in-up.delay-2 { animation-delay: .30s; }
.fade-in-up.delay-3 { animation-delay: .45s; }
.fade-in-up.delay-4 { animation-delay: .60s; }

@media (prefers-reduced-motion: reduce) {
  .fade-in-up { animation: none; opacity: 1; }
}

/* ─── Footer ─────────────────────────────────────── */
footer {
  background: #234D20;
  color: var(--verde-brote);
  padding: 60px 0 32px;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(201,223,138,.15);
}
footer h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: .02em;
  color: var(--white);
  margin-bottom: 16px;
}
footer p, footer a {
  font-size: .875rem;
  line-height: 1.8;
  color: rgba(201,223,138,.7);
  text-decoration: none;
}
footer a:hover { color: var(--white); }
footer ul { list-style: none; }
footer ul li { margin-bottom: 6px; }
footer .footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(201,223,138,.4);
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav .nav-list {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--verde-profundo);
    padding: 16px 0 24px;
    border-bottom: 1px solid rgba(201,223,138,.12);
    gap: 2px;
  }
  nav.open .nav-list { display: flex; }
  .nav-list a {
    width: 100%;
    padding: 12px 24px;
    border-radius: 0;
  }
  .nav-cta {
    margin: 8px 16px 0;
    width: calc(100% - 32px);
    justify-content: center;
  }
  footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  footer .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
}
