/* =========================================================
   BluNGrey — One Page
   ========================================================= */

/* =========================================================
   VARIABLES
   ========================================================= */

:root {
  --bng-blue: #4B86C5;
  --bng-blue-hover: #3F78B5;
  --bng-gray: #7D7F81;

  --bng-dark: #111827;
  --bng-dark-2: #1A2433;
  --bng-dark-3: #243244;

  --bng-white: #FFFFFF;
  --bng-light: #F7F8FA;
  --bng-light-2: #EEF1F5;

  --bng-text: #30343B;
  --bng-muted: #6B7280;

  --bng-border: rgba(125, 127, 129, 0.22);
  --bng-container: 1180px;
  --bng-radius: 10px;

  --bng-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   RESET & BASE
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  padding: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--bng-text);
  background: var(--bng-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, textarea, select {
  font: inherit;
}

/* =========================================================
   CONTAINER
   ========================================================= */

.bg-container {
  width: min(var(--bng-container), calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   HEADER & NAV
   ========================================================= */

.bg-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(17, 24, 39, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bg-nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bg-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.bg-logo img {
  display: block;
  height: 38px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.bg-nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.bg-nav-links a {
  position: relative;
  color: #E2E8F0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.bg-nav-links a:hover {
  color: var(--bng-blue);
}

.bg-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--bng-blue);
  transition: width 0.2s ease;
}

.bg-nav-links a:hover::after {
  width: 100%;
}

.bg-menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #FFFFFF;
  font-size: 24px;
  cursor: pointer;
}

/* =========================================================
   HERO
   ========================================================= */

.bg-hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bng-dark-2);
  color: var(--bng-white);
}

.bg-hero-image {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(26, 36, 51, 0.85) 45%, rgba(26, 36, 51, 0.35) 100%),
}

.bg-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 72px;
}

.bg-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--bng-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .15em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.bg-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}

.bg-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -.04em;
  font-weight: 700;
}

.bg-hero h1 span,
.bg-services-hero h2 span {
  color: var(--bng-blue);
}

.bg-hero p {
  max-width: 650px;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.bg-hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
}

.bg-button, .bg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.bg-button-primary, .bg-btn-primary {
  background: var(--bng-blue);
  color: var(--bng-white);
  box-shadow: 0 6px 20px rgba(75, 134, 197, 0.25);
}

.bg-button-primary:hover, .bg-btn-primary:hover {
  background: var(--bng-blue-hover);
  transform: translateY(-2px);
}

.bg-button-ghost, .bg-btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--bng-white);
}

.bg-button-ghost:hover, .bg-btn-outline:hover {
  border-color: var(--bng-white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* =========================================================
   SECTIONS GENERAL
   ========================================================= */

.bg-section {
  padding: 92px 0;
}

.bg-section-light { background: var(--bng-light); }
.bg-section-white { background: var(--bng-white); }
.bg-section-dark { background: var(--bng-dark); color: var(--bng-white); }

.bg-section h2, .bg-section-title {
  margin: 0 0 18px;
  font-size: clamp(34px, 4vw, 45px);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 600;
  color: var(--bng-dark);
}

.bg-section h2 span {
  color: var(--bng-blue);
}

/* =========================================================
   INTRO / WHAT WE DO (ABOUT)
   ========================================================= */

.bg-intro { background: var(--bng-white); }
.bg-intro-grid, .bg-who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.bg-large-copy {
  font-size: 20px;
  line-height: 1.65;
  color: var(--bng-dark-2);
  margin: 0 0 18px;
}

.bg-intro p:not(.bg-large-copy), .bg-intro-text p {
  color: var(--bng-muted);
  line-height: 1.7;
  margin: 0 0 20px;
  font-size: 16px;
}

/* =========================================================
   WHY US / FEATURES
   ========================================================= */

.bg-why { background: var(--bng-light); }
.bg-why h2 { margin-bottom: 45px; }

.bg-why-grid, .bg-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.bg-why-grid > div, .bg-feature {
  border-top: 3px solid var(--bng-blue);
  padding-top: 22px;
  background: var(--bng-white);
  padding: 24px;
  border-radius: 0 0 var(--bng-radius) var(--bng-radius);
  border-left: 1px solid var(--bng-border);
  border-right: 1px solid var(--bng-border);
  border-bottom: 1px solid var(--bng-border);
}

.bg-why-grid strong, .bg-feature h3 {
  display: block;
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--bng-dark);
}

.bg-why-grid p, .bg-feature p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--bng-muted);
  margin: 0;
}

/* =========================================================
   SERVICES
   ========================================================= */

.bg-services {
  background: var(--bng-white);
}

.bg-services-hero {
  min-height: 390px;
  display: flex;
  align-items: center;
  color: var(--bng-white);
  background: linear-gradient(90deg, rgba(17,24,39,0.96), rgba(26,36,51,0.85) 45%, rgba(26,36,51,0.4))
}

.bg-services-hero-content {
  padding: 70px 0;
}

.bg-services-hero h2 {
  margin: 0 0 20px;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 600;
}

.bg-services-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  line-height: 1.7;
}

.bg-services-grid-wrap {
  padding: 52px 0 32px;
}

.bg-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.bg-card,
.bg-service-card {
  border: 1px solid var(--bng-border);
  border-radius: var(--bng-radius);
  padding: 28px 22px 22px;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  background: var(--bng-white);
  box-shadow: var(--bng-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bg-card:hover,
.bg-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.bg-icon {
  font-size: 40px;
  line-height: 1;
  color: var(--bng-blue);
  margin-bottom: 18px;
}

.bg-card h3,
.bg-service-card h3 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 600;
  color: var(--bng-dark);
}

.bg-card-lead {
  min-height: 80px;
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--bng-muted);
}

.bg-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 12px;
  color: var(--bng-blue);
  font-size: 11px;
  letter-spacing: .12em;
  font-weight: 700;
  text-transform: uppercase;
}

.bg-card-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--bng-border);
}

.bg-card ul,
.bg-service-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.bg-card li,
.bg-service-list li {
  position: relative;
  padding-left: 22px;
  margin: 0 0 11px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--bng-text);
}

.bg-card li::before,
.bg-service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--bng-blue);
  font-weight: 700;
}

.bg-outcome {
  margin-top: auto;
  background: var(--bng-light);
  border: 1px solid var(--bng-border);
  border-radius: 8px;
  padding: 16px;
}

.bg-outcome strong {
  display: block;
  margin-bottom: 6px;
  color: var(--bng-blue);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bg-outcome p {
  margin: 0;
  color: var(--bng-text);
  font-size: 13px;
  line-height: 1.55;
}

/* =========================================================
   APPROACH / HOW WE WORK
   ========================================================= */

.bg-approach {
  padding: 60px 0;
  background: var(--bng-light);
  border-top: 1px solid var(--bng-border);
  border-bottom: 1px solid var(--bng-border);
}

.bg-approach-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 0;
}

.bg-approach-intro {
  padding-right: 34px;
}

.bg-approach-intro h2 {
  margin: 0 0 14px;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.bg-approach-intro p,
.bg-approach-item p {
  margin: 0;
  color: var(--bng-muted);
  font-size: 14px;
  line-height: 1.6;
}

.bg-approach-item {
  border-left: 1px solid var(--bng-border);
  padding: 0 24px;
}

.bg-approach-icon {
  color: var(--bng-blue);
  font-size: 28px;
  margin-bottom: 14px;
  font-weight: 700;
}

.bg-approach-item h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--bng-dark);
}

/* =========================================================
   WHO WE WORK WITH
   ========================================================= */

.bg-who { background: var(--bng-white); }
.bg-who-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--bng-border);
}

.bg-who-list div {
  padding: 18px 0;
  border-bottom: 1px solid var(--bng-border);
  font-size: 15px;
  line-height: 1.55;
  color: var(--bng-text);
}

.bg-who-list div::before {
  content: "→";
  color: var(--bng-blue);
  margin-right: 12px;
  font-weight: 700;
}

/* =========================================================
   CONTACT / CTA
   ========================================================= */

.bg-contact {
  padding: 105px 0;
  background: var(--bng-dark-2);
  color: var(--bng-white);
}

.bg-contact h2 {
  margin: 0 0 20px;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 600;
  color: var(--bng-white);
}

.bg-contact p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 30px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.bg-footer {
  background: var(--bng-dark);
  color: var(--bng-gray);
  padding: 36px 0;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bg-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.bg-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Ajustes del tamaño del logo en el footer */
.bg-footer .bg-logo.bg-footer-logo img {
  height: 32px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.bg-footer-brand span {
  color: var(--bng-muted);
  font-size: 12px;
}

/* Apilado vertical y espaciado compacto para Argentina / EE.UU. */
.bg-footer-locations {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bg-footer-location {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bg-location-title {
  color: #E2E8F0;
  font-weight: 500;
  font-size: 13px;
}

.bg-footer-location a {
  color: var(--bng-blue);
  font-size: 13px;
  transition: color 0.2s ease;
}

.bg-footer-location a:hover {
  color: var(--bng-white);
  text-decoration: underline;
}

/* =========================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================= */

@media (max-width: 1050px) {
  .bg-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bg-card-lead {
    min-height: auto;
  }
  .bg-approach-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 0;
  }
  .bg-approach-intro {
    grid-column: 1 / -1;
  }
  .bg-approach-item:nth-child(2),
  .bg-approach-item:nth-child(4) {
    border-left: 0;
  }
  .bg-why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 700px) {
  .bg-container {
    width: calc(100% - 32px);
  }

  /* Contenedor relativo para posicionar el desplegable */
  .bg-nav-inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Mostrar botón hamburguesa en móviles */
  .bg-menu-toggle {
    display: block;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    z-index: 1002;
  }

  /* Menú flotante desplegable */
  .bg-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bng-dark-2);
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 8px;
  }

  .bg-nav-links a {
    color: #FFFFFF;
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .bg-nav-links a:last-child {
    border-bottom: none;
  }

  /* Regla de apertura forzada mediante JS */
  .bg-nav-links.is-open {
    display: flex !important;
  }

  /* Ajustes generales de layout en celular */
  .bg-hero {
    min-height: 620px;
  }
  .bg-hero h1 {
    font-size: 42px;
  }
  .bg-hero p {
    font-size: 16px;
  }
  .bg-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .bg-intro-grid, .bg-who-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .bg-section {
    padding: 68px 0;
  }
  .bg-section h2, .bg-section-title {
    font-size: 34px;
  }
  .bg-why-grid {
    grid-template-columns: 1fr;
  }
  .bg-services-hero {
    min-height: 440px;
  }
  .bg-services-hero h2 {
    font-size: 40px;
  }
  .bg-services-grid {
    grid-template-columns: 1fr;
  }
  .bg-card, .bg-service-card {
    min-height: auto;
  }
  .bg-approach-grid {
    grid-template-columns: 1fr;
  }
  .bg-approach-item {
    border-left: 0;
    border-top: 1px solid var(--bng-border);
    padding: 24px 0;
  }
  .bg-approach-intro {
    padding: 0 0 28px;
  }
  .bg-contact h2 {
    font-size: 36px;
  }

  /* Footer en móvil */
  .bg-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .bg-footer-locations {
    gap: 16px;
  }
}