/* ===========================
   BAZARIO – STYLE.CSS
   Tech · Industria · Innovación
=========================== */

:root {
  --orange: #FF6B00;
  --orange-light: #FF8C38;
  --orange-pale: #FFF2E8;
  --gray-900: #111111;
  --gray-800: #1E1E1E;
  --gray-700: #2D2D2D;
  --gray-500: #6B6B6B;
  --gray-300: #D0D0D0;
  --gray-100: #F5F5F5;
  --white: #FFFFFF;
  --green-term: #22C55E;
  --yellow-term: #F59E0B;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--gray-100);
  color: var(--gray-900);
  line-height: 1.7;
  overflow-x: hidden;
}
h1,h2 { font-family: 'Outfit', sans-serif; font-weight: 900; line-height: 1.05; }
h3,h4 { font-family: 'Outfit', sans-serif; font-weight: 700; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn--primary { background: var(--orange); color: white; }
.btn--primary:hover { background: var(--orange-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,0,0.3); }
.btn--ghost { background: transparent; border: 2px solid rgba(255,255,255,0.3); color: white; }
.btn--ghost:hover { border-color: white; background: rgba(255,255,255,0.1); }

.section-tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-tag::before { content: '// '; }

/* ======= HEADER ======= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(17,17,17,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.5); }
.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.baz-logo {
  display: flex;
  align-items: baseline;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1;
  cursor: default;
}
.baz-b { color: var(--orange); }
.baz-a { color: var(--orange); }
.baz-rio { color: white; }
.baz-dot { color: var(--gray-500); }
.baz-logo--sm { font-size: 1.3rem; }
.header__nav { display: flex; gap: 28px; margin-left: auto; }
.header__nav a { font-size: 0.88rem; font-weight: 500; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.header__nav a:hover { color: white; }
.header__cta { padding: 10px 22px; font-size: 0.88rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.hamburger span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; transition: all 0.3s; }

/* ======= HERO ======= */
.hero {
  padding-top: 80px;
  background: var(--gray-900);
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
}
.hero__pill {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--orange);
  border: 1px solid rgba(255,107,0,0.3);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 900;
  margin-bottom: 24px;
  line-height: 0.95;
}
.hero__title span { color: var(--orange); }
.hero__desc { font-size: 1rem; color: rgba(255,255,255,0.6); max-width: 440px; margin-bottom: 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__tags span {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 12px;
  border-radius: 4px;
}

/* Terminal */
.terminal {
  background: var(--gray-800);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 20px;
}
.terminal__bar {
  background: var(--gray-700);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tb { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.tb--r { background: #FF5F57; }
.tb--y { background: #FFBD2E; }
.tb--g { background: #28C840; }
.terminal__title { font-family: 'Space Mono', monospace; font-size: 0.72rem; color: rgba(255,255,255,0.4); margin-left: 8px; }
.terminal__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.tl { font-family: 'Space Mono', monospace; font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.tl-g { color: var(--green-term); margin-right: 8px; }
.tl-o { color: var(--orange); margin-right: 8px; }
.tl-w { color: white; }
.tl-blink { animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero__badges { display: flex; gap: 12px; flex-wrap: wrap; }
.hbadge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
}
.hbadge--orange { background: rgba(255,107,0,0.15); border-color: rgba(255,107,0,0.3); color: var(--orange-light); }

/* ======= NOSOTROS ======= */
.nosotros { padding: 80px 0; background: white; }
.nosotros__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.nosotros__left h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 20px; }
.nosotros__left p { color: var(--gray-500); margin-bottom: 16px; font-size: 0.95rem; }
.nosotros__right { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nos-stat {
  padding: 24px;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 3px solid var(--gray-300);
}
.nos-stat--orange { background: var(--orange-pale); border-top-color: var(--orange); }
.nos-stat--gray { background: var(--gray-800); border-top-color: var(--gray-700); }
.nos-stat--gray .nos-stat__num, .nos-stat--gray .nos-stat__label { color: white; }
.nos-stat--gray .nos-stat__label { color: rgba(255,255,255,0.5); }
.nos-stat__num { font-family: 'Outfit', sans-serif; font-size: 2.5rem; font-weight: 900; color: var(--gray-900); line-height: 1; }
.nos-stat--orange .nos-stat__num { color: var(--orange); }
.nos-stat__label { font-size: 0.78rem; color: var(--gray-500); font-weight: 500; }

/* ======= SERVICIOS ======= */
.servicios { padding: 80px 0; background: var(--gray-100); }
.section-header { margin-bottom: 48px; }
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.servicios__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-item {
  background: white;
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s;
  border-top: 3px solid transparent;
}
.svc-item:hover { border-top-color: var(--orange); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.svc-item--featured { background: var(--gray-900); color: white; }
.svc-item--featured p { color: rgba(255,255,255,0.6); }
.svc-item--featured:hover { border-top-color: var(--orange); }
.svc-item__icon { font-size: 2rem; margin-bottom: 16px; }
.svc-item h3 { font-size: 1.05rem; margin-bottom: 10px; }
.svc-item p { font-size: 0.88rem; color: var(--gray-500); margin-bottom: 16px; }
.svc-item__tags { display: flex; gap: 8px; }
.svc-item__tags span {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--orange-pale);
  color: var(--orange);
}
.svc-item--featured .svc-item__tags span { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }

/* ======= DIFERENCIADORES ======= */
.diferenciadores { padding: 80px 0; background: var(--gray-900); color: white; }
.diferenciadores .section-tag { color: var(--orange); }
.dif__header { margin-bottom: 48px; }
.dif__header h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.dif__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.dif__card {
  padding: 32px;
  background: var(--gray-800);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.dif__card:hover { background: var(--gray-700); }
.dif__card--orange { background: rgba(255,107,0,0.12); }
.dif__card--orange:hover { background: rgba(255,107,0,0.2); }
.dif__card__num {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--orange);
  margin-bottom: 16px;
}
.dif__icon { font-size: 1.8rem; margin-bottom: 12px; }
.dif__card h4 { font-size: 1rem; margin-bottom: 10px; color: white; }
.dif__card p { font-size: 0.85rem; color: rgba(255,255,255,0.55); }

/* ======= COBERTURA ======= */
.cobertura { padding: 80px 0; background: white; }
.cobertura__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.cobertura__text h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 16px; }
.cobertura__text p { color: var(--gray-500); margin-bottom: 32px; font-size: 0.95rem; }
.cov-data { display: flex; flex-direction: column; gap: 0; }
.cov-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}
.cov-item__label { font-size: 0.92rem; color: var(--gray-500); }
.cov-item__val { font-family: 'Space Mono', monospace; font-size: 0.88rem; font-weight: 700; color: var(--orange); }

/* Terminal de cobertura */
.cov-terminal {
  background: var(--gray-900);
  border-radius: var(--radius);
  padding: 24px;
  font-family: 'Space Mono', monospace;
  border: 1px solid rgba(255,107,0,0.2);
}
.ct-header { font-size: 0.7rem; color: var(--orange); letter-spacing: 0.15em; margin-bottom: 20px; }
.ct-row {
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ct-row:last-child { border: none; }
.ct-row--green { color: rgba(255,255,255,0.7); }
.ct-row--green span { color: var(--green-term); }
.ct-row--yellow { color: rgba(255,255,255,0.4); }
.ct-row--yellow span { color: var(--yellow-term); }

/* ======= REDES ======= */
.redes { padding: 64px 0; background: var(--orange); color: white; }
.redes__inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.redes__emoji { font-size: 3rem; flex-shrink: 0; }
.redes__text { flex: 1; min-width: 220px; }
.redes__text h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 8px; }
.redes__text p { font-size: 0.9rem; opacity: 0.85; }
.redes__links { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }
.red-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(0,0,0,0.2);
  color: white;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.25s;
  border: 1px solid rgba(255,255,255,0.2);
}
.red-link:hover { background: rgba(0,0,0,0.4); }

/* ======= CONTACTO ======= */
.contacto { padding: 80px 0; background: var(--gray-100); }
.contacto .section-tag { color: var(--orange); }
.contacto h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 48px; }
.contacto__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.c-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s;
}
.c-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); border-color: var(--orange); }
.c-card--orange { background: var(--orange); color: white; }
.c-card--orange h4, .c-card--orange a { color: white; }
.c-card__icon { font-size: 2.2rem; margin-bottom: 12px; }
.c-card h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray-500); margin-bottom: 8px; font-family: 'Space Mono', monospace; }
.c-card a { font-size: 0.92rem; font-weight: 700; color: var(--orange); }
.c-card a:hover { text-decoration: underline; }

/* ======= FOOTER ======= */
.footer { background: var(--gray-900); color: white; padding: 36px 0; border-top: 1px solid rgba(255,107,0,0.2); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer__copy { font-family: 'Space Mono', monospace; font-size: 0.7rem; color: rgba(255,255,255,0.3); }
.footer__links { display: flex; gap: 20px; }
.footer__links a { font-size: 0.82rem; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer__links a:hover { color: white; }

/* ======= RESPONSIVE ======= */
@media (max-width: 1024px) {
  .servicios__grid { grid-template-columns: repeat(2, 1fr); }
  .dif__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .nosotros__inner { grid-template-columns: 1fr; }
  .cobertura__grid { grid-template-columns: 1fr; }
  .redes__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__nav.open { display: flex; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: var(--gray-800); padding: 20px 24px; gap: 16px; z-index: 99; }
  .header__cta { display: none; }
  .hamburger { display: flex; }
  .servicios__grid { grid-template-columns: 1fr; }
  .dif__grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
}
