/* ============================================
   AB GANADERA INTERNACIONAL — Global Styles
   ============================================ */

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

:root {
  --gold:   #C9A84C;
  --gold2:  #E8C97A;
  --gold3:  #8B6914;
  --gold4:  #f5e4b0;
  --black:  #0a0a0a;
  --black2: #111111;
  --black3: #1a1a1a;
  --black4: #222222;
  --white:  #f5f0e8;
  --white2: #ebe4d4;
  --white3: #d4cfc4;
  --serif:  'Cormorant Garamond', serif;
  --sans:   'Montserrat', sans-serif;
  --whatsapp: #25D366;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
}
.section-title em { font-style: italic; color: var(--gold); }
.section-sub {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(245,240,232,0.55);
  line-height: 1.75;
}
.divider {
  width: 50px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
  margin: 1.5rem 0;
}

/* ── BUTTONS ── */
.btn-gold {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--black);
  padding: 13px 30px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-gold:hover { background: var(--gold2); transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: transparent;
  color: var(--white);
  padding: 13px 30px;
  border: 1px solid rgba(245,240,232,0.35);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 3rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 100%);
  transition: background var(--transition), padding var(--transition);
}
nav.scrolled {
  background: rgba(8,8,8,0.97);
  border-bottom: 0.5px solid rgba(201,168,76,0.2);
  padding: 1rem 3rem;
}
.nav-logo img { height: 52px; object-fit: contain; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.65);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 9px 22px;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--gold2); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--white); transition: all 0.3s; }

/* Mobile nav */
.mobile-menu {
  display: none;
  position: fixed; top: 70px; left: 0; right: 0; z-index: 99;
  background: rgba(8,8,8,0.99);
  border-bottom: 0.5px solid rgba(201,168,76,0.2);
  padding: 2rem 3rem;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.7);
  transition: color var(--transition);
  padding: 0.5rem 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
}
.mobile-menu a:hover { color: var(--gold); }

/* ── WHATSAPP FLOATING BUTTON ── */
.wa-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 200;
  width: 58px; height: 58px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-tooltip {
  position: absolute;
  right: 70px;
  background: var(--black2);
  border: 0.5px solid rgba(201,168,76,0.3);
  color: var(--white);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 8px 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.wa-float:hover .wa-tooltip { opacity: 1; }

/* ── FOOTER ── */
footer {
  background: var(--black2);
  border-top: 0.5px solid rgba(201,168,76,0.12);
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 0.5px solid rgba(201,168,76,0.1);
}
.footer-brand img { height: 56px; margin-bottom: 1.25rem; opacity: 0.85; }
.footer-brand p {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(245,240,232,0.4);
  line-height: 1.7;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col ul a {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(245,240,232,0.45);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 12px; margin-top: 0.5rem; }
.social-btn {
  width: 38px; height: 38px;
  border: 0.5px solid rgba(201,168,76,0.25);
  display: flex; align-items: center; justify-content: center;
  color: rgba(245,240,232,0.45);
  transition: all var(--transition);
  cursor: pointer;
}
.social-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.06);
}
.social-btn svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(245,240,232,0.2);
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── PAGE HERO (interior pages) ── */
.page-hero {
  min-height: 45vh;
  display: flex; align-items: flex-end;
  position: relative; overflow: hidden;
  padding: 6rem 2rem 4rem;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 100%), var(--bg-img, none) center/cover;
}
.page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--black) 100%);
}
.page-hero-content {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto; width: 100%;
}

/* ── SECTION BASE ── */
.section { padding: 6rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { margin-bottom: 3.5rem; }

/* ── STATS BAR ── */
.stats-bar { background: var(--gold); padding: 3rem 2rem; }
.stats-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--serif);
  font-size: 3.5rem; font-weight: 700;
  color: var(--black); line-height: 1;
}
.stat-label {
  font-family: var(--sans);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(10,10,10,0.55); margin-top: 6px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav { padding: 1rem 2rem; }
  nav.scrolled { padding: 0.85rem 2rem; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 4rem 1.25rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
