/* ============================================================
   GESI – Grupo Empresarial Soluciones Inmediatas S.A.S
   styles.css — Versión 4
   ============================================================ */

:root {
  --black: #0D0D0D;
  --black-soft: #181818;
  --gold: #F5A623;
  --gold-light: #FFB940;
  --gold-dark: #D48A0C;
  --white: #FFFFFF;
  --gray: #8A8A8A;
  --gray-light: #F2F2F2;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-cond: 'Barlow Condensed', sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.35s var(--ease);
  --shadow: 0 8px 40px rgba(0,0,0,0.18);
  --container: 1180px;
  --radius: 3px;

  /* Navbar heights for offset */
  --topbar-h: 36px;
  --navbar-h: 76px;
  --nav-total: calc(var(--topbar-h) + var(--navbar-h));
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: #fff; color: var(--black); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold); }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
  z-index: 0;
}
.btn-primary:hover::after { transform: scaleX(1); transform-origin: left; }
.btn-primary:hover { color: var(--gold); }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary.large { padding: 1.1rem 2.6rem; font-size: 1.05rem; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* ---- REVEAL ANIMATIONS ---- */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2,0.8,0.3,1);
}
.reveal         { transform: translateY(36px); }
.reveal-left    { transform: translateX(-48px); }
.reveal-right   { transform: translateX(48px); }
.revealed       { opacity: 1 !important; transform: translate(0,0) !important; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }

/* ---- SECTION LABELS & TITLES ---- */
.section-label {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
  display: block;
}
.section-label.light { color: rgba(255,255,255,0.45); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  margin-bottom: 1.4rem;
}
.section-title.white { color: var(--white); }
.highlight { color: var(--gold); }
.section-body {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #474747;
  margin-bottom: 1.25rem;
}
.section-body.light-body { color: rgba(255,255,255,0.6); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-intro {
  font-size: 1.05rem;
  color: #666;
  max-width: 560px;
  margin: 0.8rem auto 0;
  line-height: 1.75;
}

/* ============================================================
   NAVBAR — Topbar + Main bar
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--transition);
}

/* ---- Topbar ---- */
.nav-topbar {
  background: var(--black);
  border-bottom: 1px solid rgba(245,166,35,0.15);
  height: var(--topbar-h);
  overflow: hidden;
  transition: height 0.35s ease, opacity 0.35s ease;
}
.navbar.scrolled .nav-topbar { height: 0; opacity: 0; }

.nav-top-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-top-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-cond);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
}
.nav-top-item svg { flex-shrink: 0; color: var(--gold); }
.nav-top-item a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.nav-top-item a:hover { color: var(--gold); }
.nav-top-hours { margin-left: auto; }

/* ---- Main bar ---- */
.nav-main {
  background: rgba(13,13,13,0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(245,166,35,0.1);
  transition: var(--transition);
}
.navbar.scrolled .nav-main {
  background: rgba(13,13,13,0.98);
  border-bottom-color: rgba(245,166,35,0.2);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  height: 76px;
  transition: height var(--transition);
}
.navbar.scrolled .nav-container { height: 62px; }

/* ---- LOGO ---- */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: transparent;
  padding: 0;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.85; }
.logo-img {
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
.navbar.scrolled .logo-img { height: 42px; }

/* ---- Links ---- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-left: auto;
  list-style: none;
}
.nav-links-left { display: none; }
.nav-links-right { display: none; }
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0.85rem; right: 0.85rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold); }

/* ---- CTA Button ---- */
.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.58rem 1.25rem;
  border-radius: var(--radius);
  flex-shrink: 0;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,166,35,0.35); }

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: var(--transition);
}

/* ============================================================
   HERO — offset for double navbar
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 14s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(13,13,13,0.88) 0%, rgba(13,13,13,0.70) 50%, rgba(13,13,13,0.45) 100%);
}

.hero-content {
  position: relative; z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--nav-total) + 3rem) 2rem 5rem;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.35);
  color: var(--gold);
  font-family: var(--font-cond);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 2px;
  margin-bottom: 1.6rem;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: blink 2s ease infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 9vw, 8.5rem);
  line-height: 0.94;
  color: var(--white);
  margin-bottom: 1.6rem;
  max-width: 760px;
}
.accent-text { color: var(--gold); }

.hero-subtitle {
  font-size: clamp(0.98rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  max-width: 510px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }

.hero-stats { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-family: var(--font-display); font-size: 2.6rem; color: var(--gold); line-height: 1; display: inline; }
.stat-plus { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.2rem; }
.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.14); }

.hero-scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.38);
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  animation: scrollBounce 2s ease infinite;
}
.scroll-arrow { width: 18px; height: 18px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); }
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker-wrapper { background: var(--gold); overflow: hidden; padding: 0.7rem 0; }
.ticker-track {
  display: flex; gap: 2rem; white-space: nowrap;
  animation: ticker 36s linear infinite;
}
.ticker-track span {
  font-family: var(--font-cond); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--black); flex-shrink: 0;
}
.ticker-sep { opacity: 0.45; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   NOSOTROS
   ============================================================ */
.nosotros { padding: 7rem 0; background: #fff; }
.nosotros-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 5rem; align-items: start; }

.nosotros-visual { position: relative; height: 480px; }
.img-main {
  position: absolute; top: 0; left: 0; width: 72%; height: 68%;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.img-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.img-main:hover img { transform: scale(1.04); }

.img-secondary {
  position: absolute; bottom: 0; right: 0; width: 56%; height: 52%;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 4px solid #fff;
}
.img-secondary img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.img-secondary:hover img { transform: scale(1.04); }

.img-badge {
  position: absolute; bottom: 0; left: 0;
  background: var(--gold); color: var(--black);
  padding: 0.9rem 1.1rem; display: flex; flex-direction: column;
}
.badge-num { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; }
.badge-label { font-family: var(--font-cond); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.value-card { background: var(--gray-light); padding: 1.5rem; border-radius: var(--radius); border-left: 3px solid var(--gold); transition: var(--transition); }
.value-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.07); }
.value-title { font-family: var(--font-cond); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 0.5rem; }
.value-card p { font-size: 0.9rem; color: #555; line-height: 1.65; }

.certificaciones-bloque { background: var(--black); border-radius: var(--radius); padding: 1.8rem; margin-bottom: 1.5rem; }
.cert-titulo { font-family: var(--font-cond); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.cert-item { display: flex; flex-direction: column; gap: 0.3rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.cert-item:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
.cert-sigla { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); line-height: 1; }
.cert-desc { font-size: 0.76rem; color: rgba(255,255,255,0.42); line-height: 1.55; }

.normas { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.norma-tag { background: var(--black); color: var(--gold); font-family: var(--font-cond); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; padding: 0.32rem 0.8rem; border-radius: 2px; }

/* ============================================================
   QUÉ HACEMOS
   ============================================================ */
.quehacemos { background: var(--black); padding: 7rem 0; position: relative; overflow: hidden; }
.quehacemos::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.quehacemos::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.quehacemos-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.quehacemos-img { position: relative; border-radius: var(--radius); overflow: hidden; height: 420px; box-shadow: 0 16px 50px rgba(0,0,0,0.4); }
.quehacemos-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.quehacemos-img:hover img { transform: scale(1.04); }
.img-overlay-tag { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(13,13,13,0.9), transparent); color: rgba(255,255,255,0.7); font-family: var(--font-cond); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; padding: 2rem 1.5rem 1.2rem; }

/* ============================================================
   PRODUCTOS — Accordion
   ============================================================ */
.productos {
  padding: 7rem 0;
  background: var(--gray-light);
  position: relative;
}
.productos::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
}

.productos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
}

.producto-categoria {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow var(--transition);
}
.producto-categoria:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.1); }
.producto-categoria.is-open { border-color: var(--gold); }

.cat-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
  gap: 1rem;
}
.cat-header:hover { background: rgba(245,166,35,0.04); }
.producto-categoria.is-open .cat-header { background: var(--black); }

.cat-header-left {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
}
.cat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: rgba(245,166,35,0.25);
  line-height: 1;
  flex-shrink: 0;
  transition: color var(--transition);
}
.producto-categoria.is-open .cat-num { color: var(--gold); }

.cat-name {
  display: block;
  font-family: var(--font-cond);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  transition: color var(--transition);
  line-height: 1.2;
}
.producto-categoria.is-open .cat-name { color: var(--white); }

.cat-count {
  display: block;
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
  transition: color var(--transition);
}
.producto-categoria.is-open .cat-count { color: rgba(255,255,255,0.45); }

.cat-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(245,166,35,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  transition: transform 0.4s var(--ease), background var(--transition);
}
.producto-categoria.is-open .cat-arrow { transform: rotate(180deg); background: rgba(245,166,35,0.2); }

/* Accordion body with CSS grid animation */
.cat-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.4,0,0.2,1);
}
.producto-categoria.is-open .cat-body { grid-template-rows: 1fr; }

.cat-body > .cat-items {
  overflow: hidden;
}
.cat-items {
  padding: 0 1.6rem;
  border-top: 0px solid rgba(245,166,35,0);
  transition: padding 0.4s var(--ease), border-color 0.4s ease;
}
.producto-categoria.is-open .cat-items {
  padding: 1.2rem 1.6rem 1.4rem;
  border-top: 1px solid rgba(245,166,35,0.2);
}

.cat-items li {
  font-size: 0.92rem;
  color: #444;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: color var(--transition), padding-left var(--transition);
}
.cat-items li:last-child { border-bottom: none; }
.cat-items li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.cat-items li:hover { color: var(--black); padding-left: 4px; }

/* CTA debajo del grid */
.productos-cta {
  background: var(--black);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  border-left: 4px solid var(--gold);
}
.productos-cta p { font-size: 1.05rem; color: rgba(255,255,255,0.7); max-width: 500px; }

/* ============================================================
   SERVICIOS
   ============================================================ */
.servicios { padding: 7rem 0; background: #fff; }

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: #e5e5e5;
  border: 1.5px solid #e5e5e5;
  border-radius: var(--radius);
  overflow: hidden;
}
.servicio-card { background: #fff; display: flex; flex-direction: column; transition: var(--transition); position: relative; }
.servicio-card:hover { z-index: 2; }

.servicio-img { width: 100%; height: 200px; overflow: hidden; }
.servicio-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; filter: grayscale(20%); }
.servicio-card:hover .servicio-img img { transform: scale(1.06); filter: grayscale(0%); }

.servicio-body { padding: 1.8rem; flex: 1; display: flex; flex-direction: column; border-bottom: 3px solid transparent; transition: border-color 0.3s ease; }
.servicio-card:hover .servicio-body { border-color: var(--gold); }

.servicio-num { font-family: var(--font-display); font-size: 2.2rem; color: rgba(245,166,35,0.18); line-height: 1; margin-bottom: 0.3rem; transition: color 0.3s; }
.servicio-card:hover .servicio-num { color: rgba(245,166,35,0.4); }
.servicio-body h3 { font-family: var(--font-cond); font-size: 1.15rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--black); margin-bottom: 0.7rem; }
.servicio-body p { font-size: 0.9rem; color: #666; line-height: 1.65; }

.servicio-cta-card { background: var(--gold) !important; }
.cta-card-inner { padding: 2.5rem 1.8rem; display: flex; flex-direction: column; gap: 0.75rem; height: 100%; justify-content: center; }
.cta-card-title { font-family: var(--font-display); font-size: 1.7rem; color: var(--black); line-height: 1.1; }
.cta-card-sub { font-size: 0.9rem; color: rgba(0,0,0,0.6); margin-bottom: 0.5rem; }
.servicio-cta-card .btn-primary { background: var(--black); border-color: var(--black); color: var(--gold); }
.servicio-cta-card .btn-primary:hover { color: var(--black); }

/* ============================================================
   POR QUÉ ELEGIRNOS
   ============================================================ */
.porque { padding: 7rem 0; background: var(--gray-light); }
.porque-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 5rem; align-items: center; }

.porque-list { display: flex; flex-direction: column; gap: 1.3rem; margin-top: 1.5rem; }
.porque-list li { display: flex; gap: 1rem; align-items: flex-start; }
.list-check { width: 26px; height: 26px; background: var(--gold); color: var(--black); display: flex; align-items: center; justify-content: center; border-radius: 2px; flex-shrink: 0; margin-top: 3px; }
.porque-list strong { display: block; font-weight: 700; font-size: 0.97rem; margin-bottom: 0.2rem; }
.porque-list span { font-size: 0.88rem; color: #666; }

.porque-imgs { position: relative; height: 480px; }
.pimg-main { position: absolute; top: 0; right: 0; width: 82%; height: 68%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pimg-main img { width: 100%; height: 100%; object-fit: cover; }
.pimg-accent { position: absolute; bottom: 0; left: 0; width: 55%; height: 44%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 4px solid var(--gray-light); }
.pimg-accent img { width: 100%; height: 100%; object-fit: cover; }
.pimg-stat { position: absolute; bottom: 24px; right: 0; background: var(--gold); color: var(--black); padding: 1rem 1.3rem; border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; box-shadow: var(--shadow); }
.pimg-stat-num { font-family: var(--font-display); font-size: 2.8rem; line-height: 1; display: inline; }
.pimg-stat-plus { font-family: var(--font-display); font-size: 1.8rem; }
.pimg-stat-label { font-family: var(--font-cond); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.2rem; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner { position: relative; padding: 7rem 0; overflow: hidden; text-align: center; }
.cta-banner-bg { position: absolute; inset: 0; }
.cta-banner-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.cta-banner-overlay { position: absolute; inset: 0; background: rgba(13,13,13,0.82); }
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 4rem); color: var(--white); margin-bottom: 1rem; }
.cta-content p { font-size: 1.1rem; color: rgba(255,255,255,0.6); margin-bottom: 2.2rem; max-width: 540px; margin-left: auto; margin-right: auto; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto { padding: 7rem 0; background: #fff; }
.contacto-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; margin-top: 3rem; }

.contacto-info { display: flex; flex-direction: column; gap: 1.1rem; }
.info-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.4rem; background: var(--gray-light); border-radius: var(--radius); border-left: 3px solid var(--gold); transition: transform var(--transition); }
.info-card:hover { transform: translateX(4px); }
.info-icon-wrap { width: 40px; height: 40px; background: var(--gold); color: var(--black); display: flex; align-items: center; justify-content: center; border-radius: 2px; flex-shrink: 0; }
.info-card h4 { font-family: var(--font-cond); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); margin-bottom: 0.22rem; }
.info-card p { font-size: 0.93rem; color: var(--black); line-height: 1.55; }
.info-card a { color: var(--gold-dark); font-weight: 600; transition: color var(--transition); }
.info-card a:hover { color: var(--gold); }

.social-links { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.4rem; font-family: var(--font-cond); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); }
.social-btn { width: 38px; height: 38px; background: var(--black); color: var(--white); border-radius: 2px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.social-btn:hover { background: var(--gold); color: var(--black); transform: translateY(-2px); }

.mapa-container { position: relative; }
.mapa-wrapper { width: 100%; height: 440px; border-radius: var(--radius); overflow: hidden; border: 3px solid var(--gold); box-shadow: var(--shadow); }
.mapa-label { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--gold); color: var(--black); font-family: var(--font-cond); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.45rem 1rem; margin-top: 0.6rem; border-radius: 2px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--black); padding: 5rem 0 0; border-top: 1px solid rgba(245,166,35,0.18); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 3rem; padding-bottom: 3.5rem; }

.footer-logo { height: 64px; width: auto; max-width: 240px; object-fit: contain; filter: none; background: transparent; margin-bottom: 1.2rem; display: block; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.45); line-height: 1.55; }
.footer-nit { font-size: 0.78rem !important; color: rgba(255,255,255,0.22) !important; margin-top: 0.5rem; }

.footer-col h5 { font-family: var(--font-cond); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.3rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { font-size: 0.88rem; color: rgba(255,255,255,0.45); transition: var(--transition); }
.footer-col a:hover { color: var(--gold); padding-left: 4px; }

.footer-wa { display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; font-weight: 600; color: #25D366; margin-bottom: 0.65rem; transition: var(--transition); }
.footer-email { font-size: 0.85rem; color: rgba(255,255,255,0.4); display: block; margin-bottom: 0.5rem; transition: var(--transition); }
.footer-addr { font-size: 0.82rem; color: rgba(255,255,255,0.28); }
.footer-wa:hover, .footer-email:hover { color: var(--gold); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding: 1.4rem 0; text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.2); }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float { position: fixed; bottom: 2rem; right: 2rem; z-index: 999; width: 58px; height: 58px; background: #25D366; color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.45); transition: var(--transition); animation: waPulse 3.5s ease infinite; }
.wa-float:hover { transform: scale(1.1); }
@keyframes waPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50%      { box-shadow: 0 4px 30px rgba(37,211,102,0.7), 0 0 0 10px rgba(37,211,102,0.08); }
}
.wa-tooltip { position: absolute; right: 68px; background: var(--black); color: var(--white); font-family: var(--font-cond); font-size: 0.82rem; font-weight: 600; padding: 0.38rem 0.8rem; border-radius: 2px; white-space: nowrap; opacity: 0; transform: translateX(6px); transition: var(--transition); pointer-events: none; }
.wa-tooltip::after { content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); border: 5px solid transparent; border-left-color: var(--black); border-right: 0; }
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nosotros-grid      { grid-template-columns: 1fr; gap: 3rem; }
  .nosotros-visual    { height: 320px; }
  .quehacemos-inner   { grid-template-columns: 1fr; gap: 3rem; }
  .quehacemos-img     { height: 300px; }
  .porque-grid        { grid-template-columns: 1fr; gap: 3rem; }
  .porque-imgs        { height: 320px; }
  .contacto-grid      { grid-template-columns: 1fr; }
  .footer-grid        { grid-template-columns: 1fr 1fr; }
  .servicios-grid     { grid-template-columns: 1fr 1fr; }
  .cert-grid          { grid-template-columns: 1fr 1fr; }
  .nav-top-hours      { display: none; }
}

@media (max-width: 768px) {
  .nav-topbar { display: none; }
  .nav-links, .btn-nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13,13,13,0.98);
    align-items: center; justify-content: center; gap: 2.5rem; z-index: 999;
  }
  .nav-links.open a { font-size: 1.4rem; color: var(--white); }

  .hero-title { font-size: clamp(3rem, 13vw, 5rem); }
  .productos-grid { grid-template-columns: 1fr; }
  .servicios-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .mapa-wrapper { height: 300px; }
  .pimg-accent { display: none; }
  .productos-cta { flex-direction: column; text-align: center; }
}

@media (max-width: 500px) {
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .stat-divider { display: none; }
  .hero-stats { flex-direction: column; gap: 0.8rem; align-items: flex-start; }
  .nosotros-visual { height: 260px; }
  .img-secondary { width: 50%; height: 46%; }
}

/* ============================================================
   GALERÍA DE PROYECTOS
   ============================================================ */
.galeria {
  padding: 7rem 0;
  background: var(--black);
  position: relative;
}
.galeria::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.galeria .section-title { color: var(--white); }
.galeria .section-intro { color: rgba(255,255,255,0.5); }
.galeria .section-label { color: var(--gold); }

/* Grid tipo masonry con CSS columns */
.galeria-grid {
  columns: 4;
  column-gap: 10px;
  margin-top: 1rem;
}

.gal-item {
  break-inside: avoid;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  display: block;
}

.gal-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.4s ease;
  filter: brightness(0.92);
}

.gal-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.65);
}

/* Overlay con ícono de lupa */
.gal-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gal-overlay svg {
  color: var(--white);
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  transform: scale(0.7);
  transition: transform 0.35s var(--ease);
}
.gal-item:hover .gal-overlay { opacity: 1; }
.gal-item:hover .gal-overlay svg { transform: scale(1); }

/* Borde dorado al hover */
.gal-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 0px solid var(--gold);
  border-radius: 3px;
  transition: border-width 0.3s ease;
  pointer-events: none;
}
.gal-item:hover::after { border-width: 3px; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lb-img-wrap {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img {
  max-width: 90vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.7);
  transition: opacity 0.25s ease;
}
.lb-img.loading { opacity: 0; }

.lb-close, .lb-prev, .lb-next {
  position: fixed;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  backdrop-filter: blur(6px);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: var(--gold);
  color: var(--black);
}
.lb-close { top: 1.5rem; right: 1.5rem; }
.lb-prev  { left: 1.5rem;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.1); }
.lb-next:hover { transform: translateY(-50%) scale(1.1); }

.lb-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-cond);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.4);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  backdrop-filter: blur(6px);
}

/* Responsive galería */
@media (max-width: 1024px) { .galeria-grid { columns: 3; } }
@media (max-width: 640px)  { .galeria-grid { columns: 2; } }
@media (max-width: 400px)  { .galeria-grid { columns: 1; } }

/* ============================================================
   IMÁGENES LOCALES — object-fit para cualquier proporción
   Garantiza que ninguna imagen deje espacios en blanco
   ni se vea estirada o pixelada
   ============================================================ */

/* HERO — cubre toda la pantalla siempre */
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* NOSOTROS — contenedores de altura fija, la imagen se recorta limpiamente */
.img-main {
  height: 320px;
}
.img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.img-secondary {
  height: 240px;
}
.img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* QUÉ HACEMOS */
.quehacemos-img {
  height: 420px;
}
.quehacemos-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* SERVICIOS — altura fija para todas las cards */
.servicio-img {
  height: 220px;
  overflow: hidden;
}
.servicio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease, filter 0.4s ease;
}

/* POR QUÉ ELEGIRNOS */
.pimg-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.pimg-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* CTA BANNER */
.cta-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
