/* ═══════════════════════════════════════
   BARAZZA ARGENTINA — Hoja de estilos global
   Tipografía y paleta según Brand Book 2023
   ═══════════════════════════════════════ */

:root {
  /* Paleta oficial: Pantone Black + Pantone White (RGB 225) */
  --black:      #000000;
  --black-soft: #0D0D0D;
  --black-alt:  #141414;
  --brand-white:#E1E1E1;
  --white:      #FFFFFF;
  --page:       #F2F2F2;
  --gray:       #8A8A8A;
  --gray-dark:  #4A4A4A;
  --line:       rgba(0,0,0,.12);
  --line-light: rgba(255,255,255,.12);

  /* Web lettering autorizado por el Brand Book (p. 41) */
  --font-body: 'Source Sans 3', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --nav-h: 76px;
  --max:   1320px;
  --pad:   clamp(1.5rem, 5vw, 4.5rem);
}


/* ─── Alias de compatibilidad (paleta antigua → paleta de marca) ─── */
:root {
  --accent:    #8A8A8A;
  --mid:       #8A8A8A;
  --steel:     #E1E1E1;
  --off-white: #F2F2F2;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--page);
  color: var(--black);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─────────── NAV ─────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  background: rgba(0,0,0,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-light);
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo img { height: 26px; width: auto; }
.nav-logo .region {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gray); padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,.2);
  line-height: 1;
}
.nav-links { display: flex; gap: 2.2rem; align-items: center; }
.nav-links a {
  font-size: 11px; font-weight: 400; letter-spacing: .17em;
  text-transform: uppercase; color: rgba(255,255,255,.6);
  transition: color .2s; position: relative; padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--brand-white);
}
.nav-cta {
  border: 1px solid rgba(255,255,255,.3);
  padding: 9px 22px; color: var(--white) !important;
  transition: background .2s, border-color .2s;
}
.nav-cta:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.65); }
.nav-cta::after { display: none !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.hamburger span { width: 24px; height: 1px; background: var(--white); transition: .3s; }

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: var(--black);
  flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.3rem; font-weight: 300; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.75);
}
.mobile-menu a:hover { color: var(--white); }

/* ─────────── BOTONES ─────────── */
.btn {
  display: inline-block; font-family: var(--font-body);
  font-size: 11px; font-weight: 600; letter-spacing: .17em;
  text-transform: uppercase; padding: 14px 32px;
  transition: all .2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: var(--black-alt); }
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: var(--brand-white); }
.btn-outline { border: 1px solid var(--black); color: var(--black); background: transparent; }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-outline-light { border: 1px solid rgba(255,255,255,.42); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.75); }

/* ─────────── TIPOGRAFÍA DE SECCIÓN ─────────── */
/* Brand Book: los titulares van siempre en mayúscula */
.section-label {
  font-size: 10px; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--gray); margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  font-weight: 300; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .01em;
}
.section-title em { font-style: italic; font-weight: 300; }
.section-title.light { color: var(--white); }
.divider { width: 44px; height: 2px; background: var(--black); margin: 1.4rem 0; }
.light .divider, .divider.light { background: var(--white); }
.section-body {
  font-size: 14.5px; line-height: 1.85; color: var(--gray-dark); max-width: 580px;
}
.section-body.light { color: rgba(255,255,255,.6); }

section { padding: clamp(4rem, 10vh, 8rem) var(--pad); }

/* ─────────── PAGE HEADER ─────────── */
.page-header {
  padding: calc(var(--nav-h) + clamp(3rem,8vh,6rem)) var(--pad) clamp(2.5rem,6vh,4rem);
  background: var(--black); color: var(--white);
  position: relative; overflow: hidden;
}
.page-header.with-img::before {
  content: ''; position: absolute; inset: 0;
  background-size: cover; background-position: center; opacity: .3;
}
.page-header-inner { position: relative; z-index: 2; max-width: var(--max); }
.page-header h1 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 300; line-height: 1.12; color: var(--white);
  text-transform: uppercase; letter-spacing: .01em;
}
.page-header h1 em { font-style: italic; color: var(--brand-white); }
.page-header p {
  margin-top: 1.3rem; font-size: 14.5px; line-height: 1.8;
  color: rgba(255,255,255,.55); max-width: 540px;
}
.breadcrumb {
  font-size: 10px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gray); margin-bottom: 1.2rem;
}

/* ─────────── FOOTER ─────────── */
footer {
  background: var(--black); padding: 3.5rem var(--pad) 2rem;
  border-top: 1px solid var(--line-light);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem; max-width: var(--max); margin: 0 auto 2.5rem;
}
.footer-brand img { height: 24px; width: auto; margin-bottom: 1.1rem; }
.footer-brand p {
  font-size: 12.5px; color: rgba(255,255,255,.38);
  line-height: 1.85; max-width: 290px;
}
.footer-col h4 {
  font-size: 10px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--brand-white); margin-bottom: 1rem;
}
.footer-col a, .footer-col span {
  display: block; font-size: 12.5px; color: rgba(255,255,255,.42);
  margin-bottom: .6rem; transition: color .2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max); margin: 0 auto;
  padding-top: 1.5rem; border-top: 1px solid var(--line-light);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 11px; color: rgba(255,255,255,.25); letter-spacing: .04em;
}

/* ─────────── ANIMACIONES ─────────── */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
  .fade-up.visible { opacity: 1; transform: none; }
}

/* ─────────── RESPONSIVE ─────────── */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-logo img { height: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-logo .region { display: none; }
}

/* ─────────── ROBUSTEZ DE IMÁGENES ─────────── */
/* Fondo neutro mientras carga o si la imagen externa falla */
img { background-color: #1A1A1A; }
.footer-brand img, .nav-logo img { background-color: transparent; }

/* En pantallas chicas las animaciones de scroll pueden dejar
   bloques invisibles si el observer no dispara: se muestran siempre */
@media (max-width: 940px) {
  .fade-up { opacity: 1 !important; transform: none !important; }
}
