/* ===== JBB Technology — estilos ===== */

:root {
  --bg: #0a0a0f;
  --bg-soft: #101118;
  --bg-card: #14151d;
  --border: #23242f;
  --orange: #f39c12;
  --orange-dark: #d6870a;
  --white: #f7f7f9;
  --muted: #9a9ba8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --container: 1180px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--orange);
  color: #10100c;
}
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn--ghost {
  border-color: var(--border);
  color: var(--white);
}
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.btn--outline {
  border-color: var(--orange);
  color: var(--orange);
  padding: 9px 20px;
}
.btn--outline:hover { background: var(--orange); color: #10100c; }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}
.brand__logo { height: 40px; width: auto; }
.nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  margin-right: 32px;
}
.nav a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color var(--transition);
}
.nav a:hover { color: var(--white); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 190px 0 120px;
  overflow: hidden;
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 50% 0%, rgba(243, 156, 18, 0.16), transparent 70%),
    radial-gradient(500px 350px at 85% 20%, rgba(243, 156, 18, 0.08), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: 760px;
}
.hero__logo {
  height: 90px;
  width: auto;
  margin: 0 auto 32px;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero__subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 40px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Stats strip ---------- */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.stats__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 24px;
  text-align: center;
}
.stat__num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 6px;
}
.stat__label {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Secciones genéricas ---------- */
.section { padding: 110px 0; }

.section__head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow--light { color: #10100c; opacity: 0.75; }

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.section__lead { color: var(--muted); font-size: 1.05rem; }

/* ---------- Grid de servicios ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(243, 156, 18, 0.4);
  box-shadow: var(--shadow);
}
.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(243, 156, 18, 0.12);
  color: var(--orange);
  margin-bottom: 20px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Nosotros ---------- */
.about { padding: 110px 0; background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.about__text h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin: 14px 0 20px; }
.about__text p { color: var(--muted); margin-bottom: 16px; font-size: 1.02rem; }
.about__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
}
.about__logo { width: 100%; max-width: 260px; }

/* ---------- Contacto ---------- */
.contact {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #10100c;
  padding: 100px 0;
  text-align: center;
}
.contact h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  margin: 10px 0 12px;
}
.contact p { font-size: 1.05rem; opacity: 0.85; margin-bottom: 32px; }
.contact .btn--primary {
  background: #10100c;
  color: var(--white);
}
.contact .btn--primary:hover { background: #000; }

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__logo { height: 26px; width: auto; opacity: 0.8; }
.footer p { color: var(--muted); font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner { grid-template-columns: 1fr; }
  .about__visual { order: -1; padding: 32px; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav__toggle { display: flex; }
  .header__inner { flex-wrap: wrap; }
  .nav__cta { padding: 9px 18px; font-size: 0.85rem; }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 18px;
  }

  .hero { padding: 150px 0 90px; }
  .stats__inner { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
}
