@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:wght@300;400;600&display=swap');

:root {
  --accent: #adcc57;
  --black: #0a0a0a;
  --white: #f5f5f0;
  --gray: #1c1c1c;
  --gray2: #2e2e2e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #222;
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem; letter-spacing: 3px;
  color: var(--accent);
  text-decoration: none;
}
.nav-logo span { color: var(--white); }
.nav-logo-img {
  display: flex; align-items: center;
  text-decoration: none;
}
.nav-logo-img img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.2s;
}
.nav-logo-img:hover img { opacity: 0.85; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--white);
  font-size: 0.85rem; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 600;
  transition: color 0.2s;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: all 0.3s; }
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: #0f0f0f; padding: 1.5rem 2rem;
  flex-direction: column; gap: 1.2rem;
  border-bottom: 1px solid #222; z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none; color: var(--white);
  font-size: 1rem; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 600;
  transition: color 0.2s;
}
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--accent); }

/* ── SECTION BASE ── */
section { padding: 6rem 3rem; }
.section-tag {
  font-size: 0.75rem; letter-spacing: 5px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1; margin-bottom: 1.5rem;
}
.section-divider { width: 60px; height: 3px; background: var(--accent); margin-bottom: 3rem; }

/* ── BUTTONS ── */
.btn {
  padding: 0.9rem 2.2rem;
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: all 0.2s; border: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary { background: var(--accent); color: var(--black); }
.btn-primary:hover { background: #c4e060; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid #444; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  background: #050505;
  padding: 2.5rem 3rem;
  display: flex; align-items: center;
  justify-content: space-between;
  border-top: 1px solid #1a1a1a;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem; letter-spacing: 3px; color: var(--accent);
}
.footer-copy { font-size: 0.8rem; color: #444; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-size: 0.75rem; letter-spacing: 2px;
  text-transform: uppercase; color: #555;
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 56px; height: 56px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; z-index: 200;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.6); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  /* Nav */
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Sections */
  section { padding: 4rem 1.5rem; }

  /* Footer */
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.2rem;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
  }
  .footer-links a { font-size: 0.7rem; }

  /* Fix overflow */
  html, body { overflow-x: hidden; max-width: 100vw; }

  /* Hero video fix */
  .hero-videos { width: 100%; left: 0; right: 0; }
  .hero-videos video { width: 100%; height: 100%; object-fit: cover; }

  /* Buttons full width on mobile */
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* Stats spacing */
  .hero-stats { gap: 1.5rem; margin-top: 3rem; }
  .stat-num { font-size: 2.2rem; }

  /* Section marcas */
  #marcas {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    padding: 4rem 1.5rem !important;
  }
  #marcas > div:first-child { min-height: 220px; }

  /* Sobre section */
  #sobre { grid-template-columns: 1fr !important; gap: 2.5rem; padding: 4rem 1.5rem; }
  .sobre-visual { min-height: 220px; }

  /* Page hero */
  .page-hero { padding: 7rem 1.5rem 3rem; }
  .page-hero h1 { font-size: clamp(2.5rem, 10vw, 4rem); }

  /* Contact layout */
  .contact-layout { grid-template-columns: 1fr !important; gap: 3rem; }
  .form-row { grid-template-columns: 1fr !important; }

  /* Nosotros grids */
  #quienes { grid-template-columns: 1fr !important; gap: 2.5rem; }
  .quienes-img { min-height: 260px; }
  .compromiso-layout { grid-template-columns: 1fr !important; gap: 2.5rem; }
  .stats-grid { grid-template-columns: 1fr 1fr !important; }

  /* Services grid */
  .services-grid { grid-template-columns: 1fr !important; }
  .process-steps { grid-template-columns: 1fr 1fr !important; }

  /* WhatsApp button */
  .whatsapp-float { bottom: 1.2rem; right: 1.2rem; width: 50px; height: 50px; }
}

/* ── PERFORMANCE & ACCESSIBILITY ── */
img { max-width: 100%; height: auto; }
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}