/* =========================================================
   CAPITAL ELECTRIC — Stylesheet
   Industrial · venezolano · mobile-first
   ========================================================= */

:root {
  --orange: #E8550A;
  --orange-light: #FF7A3D;
  --orange-glow: rgba(232, 85, 10, 0.35);
  --black: #0A0A0A;
  --black-soft: #141414;
  --black-line: #1f1f1f;
  --white: #FFFFFF;
  --gray-50: #F5F5F5;
  --gray-100: #ECECEC;
  --gray-300: #BFBFBF;
  --gray-500: #6E6E6E;
  --gray-700: #2A2A2A;
  --wa-green: #25D366;

  --f-display: "Barlow Condensed", "Oswald", "Bebas Neue", Impact, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --pad-x: clamp(20px, 5vw, 56px);
  --radius: 4px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.nav__logo { width: 36px; height: 36px; flex: none; }
.nav__wordmark { display: flex; flex-direction: column; line-height: 1; }
.nav__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.nav__sub {
  font-size: 10px;
  color: var(--gray-300);
  letter-spacing: 0.18em;
  margin-top: 3px;
  text-transform: uppercase;
}
.nav__links {
  display: none;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  color: var(--gray-300);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--white); }
.nav__cta {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav__cta:hover {
  background: var(--orange-light);
  transform: translateY(-1px);
}

.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
}
.nav__burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  margin: 0 auto;
  transition: transform 0.25s, opacity 0.25s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu open */
.nav__links.is-open {
  display: flex;
  position: fixed;
  top: 66px; left: 0; right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 20px var(--pad-x) 32px;
  background: var(--black);
  border-bottom: 1px solid var(--black-line);
  max-height: calc(100vh - 66px);
  overflow-y: auto;
}
.nav__links.is-open a {
  padding: 18px 4px;
  font-size: 18px;
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--black-line);
  color: var(--white);
}
.nav__links.is-open .nav__cta {
  margin-top: 16px;
  justify-content: center;
  padding: 16px;
  border-bottom: none;
  font-size: 14px !important;
}

@media (min-width: 880px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
  .nav__inner { padding-block: 18px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--black);
  color: var(--white);
  padding: 120px var(--pad-x) 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vmax;
  height: 60vmax;
  background: radial-gradient(circle at center, var(--orange-glow), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  z-index: 1;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gray-300);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero__eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(232,85,10,0.2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(232,85,10,0.2); }
  50% { box-shadow: 0 0 0 8px rgba(232,85,10,0.05); }
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(48px, 9vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero__title-accent {
  color: var(--orange);
  font-style: italic;
  position: relative;
  display: inline-block;
}
.hero__title-accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.08em;
  height: 0.08em;
  background: var(--orange);
  opacity: 0.3;
}

.hero__sub {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--gray-300);
  max-width: 540px;
  margin: 0 0 40px;
  line-height: 1.6;
}
.hero__sub strong { color: var(--white); font-weight: 600; }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 64px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 600px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero__stat-num {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  letter-spacing: 0.01em;
}
.hero__stat-num span { font-size: 0.55em; color: var(--gray-300); }
.hero__stat-lbl {
  font-size: 11px;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
  line-height: 1.4;
}

.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gray-500);
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  animation: scroll-down 2.4s ease-in-out infinite;
}
@keyframes scroll-down {
  0% { top: -100%; }
  100% { top: 100%; }
}
@media (min-width: 880px) {
  .hero__scroll { display: flex; }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 24px -8px rgba(232,85,10,0.6);
}
.btn--primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px -8px rgba(232,85,10,0.8);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}
.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}
.btn--xl {
  padding: 22px 40px;
  font-size: 17px;
  border-radius: 6px;
}

/* =========================================================
   SECTIONS — shared
   ========================================================= */
.section {
  padding: clamp(72px, 10vw, 140px) 0;
  position: relative;
}
.section--light { background: var(--white); color: var(--black); }
.section--dark { background: var(--black); color: var(--white); }
.section--cta {
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
}
.section--cta::before {
  content: "";
  position: absolute;
  top: -10%; right: -10%;
  width: 50vmax; height: 50vmax;
  background: radial-gradient(circle, rgba(232,85,10,0.08), transparent 70%);
  pointer-events: none;
}

.section__head {
  max-width: 760px;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.section__kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section__kicker span {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}
.section__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.section__title--light { color: var(--white); }
.section__lead {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--gray-500);
  max-width: 560px;
  margin: 0;
}
.section--dark .section__lead { color: var(--gray-300); }

/* =========================================================
   NOSOTROS
   ========================================================= */
.nosotros__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.nosotros__text .lead {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
  font-weight: 400;
  margin: 0 0 16px;
  color: var(--black);
}
.nosotros__text p {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.7;
  margin: 0;
}
.nosotros__points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.point {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--gray-50);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: transform 0.25s ease, background 0.25s ease;
}
.point:hover { transform: translateX(4px); background: var(--gray-100); }
.point__ico {
  width: 48px; height: 48px;
  flex: none;
  display: grid; place-items: center;
  background: var(--black);
  color: var(--orange);
  border-radius: var(--radius);
}
.point__ico svg { width: 24px; height: 24px; }
.point__title {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  margin-bottom: 4px;
}
.point__desc { font-size: 14px; color: var(--gray-500); }

@media (min-width: 880px) {
  .nosotros__grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
  }
}

/* =========================================================
   CATEGORÍAS
   ========================================================= */
.cats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--black-line);
  border: 1px solid var(--black-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 640px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cats { grid-template-columns: repeat(3, 1fr); } }

.cat {
  position: relative;
  padding: 40px 32px 32px;
  background: var(--black-soft);
  transition: background 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
}
.cat:hover {
  background: #181818;
}
.cat:hover .cat__ico {
  color: var(--orange);
  border-color: var(--orange);
  transform: scale(1.05);
}
.cat:hover .cat__num { opacity: 0.7; }
.cat:hover .cat__link { gap: 12px; color: var(--orange-light); }

.cat__ico {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  color: var(--white);
  transition: all 0.3s ease;
}
.cat__ico svg { width: 28px; height: 28px; }
.cat__num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--f-display);
  font-size: 14px;
  color: var(--gray-500);
  letter-spacing: 0.1em;
  font-weight: 700;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.cat__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
  color: var(--white);
}
.cat__desc {
  margin: 0;
  font-size: 14px;
  color: var(--gray-300);
  line-height: 1.6;
  flex: 1;
}
.cat__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  transition: gap 0.25s ease, color 0.25s ease;
  margin-top: auto;
}

/* =========================================================
   POR QUÉ ELEGIRNOS
   ========================================================= */
.why {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .why { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

.why__item {
  position: relative;
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-top: 3px solid var(--black);
  border-radius: 0 0 var(--radius) var(--radius);
  transition: border-top-color 0.3s ease, transform 0.3s ease;
}
.why__item:hover {
  border-top-color: var(--orange);
  transform: translateY(-4px);
}
.why__num {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-300);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}
.why__ico {
  width: 48px; height: 48px;
  color: var(--orange);
  margin-bottom: 20px;
}
.why__ico svg { width: 100%; height: 100%; }
.why__title {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
  line-height: 1.05;
  text-transform: uppercase;
}
.why__desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0;
}

/* =========================================================
   CONTACTO
   ========================================================= */
.cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: stretch;
  position: relative;
}
@media (min-width: 880px) {
  .cta { grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
}

.cta__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.cta__title-accent { color: var(--orange); font-style: italic; }
.cta__sub {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--gray-500);
  margin: 0 0 36px;
  line-height: 1.6;
}

.cta__info {
  list-style: none;
  padding: 32px;
  margin: 0;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 20px;
}
.cta__info li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--black-line);
}
.cta__info li:last-child { border-bottom: none; padding-bottom: 0; }
.cta__info-lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}
.cta__info a {
  color: var(--white);
  font-weight: 500;
  font-size: 16px;
  transition: color 0.2s ease;
  word-break: break-word;
}
.cta__info a:hover { color: var(--orange-light); }
.cta__info span:not(.cta__info-lbl) {
  font-size: 16px;
  color: var(--gray-300);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 64px 0 32px;
  border-top: 1px solid var(--black-line);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 880px) {
  .footer__inner {
    grid-template-columns: 1.4fr 1fr auto;
    gap: 48px;
    align-items: center;
  }
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 4px;
}
.footer__tag {
  font-size: 12px;
  color: var(--gray-300);
  letter-spacing: 0.02em;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__nav a {
  font-size: 13px;
  color: var(--gray-300);
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}
.footer__nav a:hover { color: var(--orange); }
.footer__social {
  display: flex;
  gap: 12px;
}
.footer__social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--black-line);
  border-radius: var(--radius);
  color: var(--gray-300);
  transition: all 0.2s ease;
}
.footer__social a:hover {
  color: var(--white);
  border-color: var(--orange);
  background: var(--orange);
}
.footer__copy {
  grid-column: 1 / -1;
  padding-top: 32px;
  margin-top: 0;
  border-top: 1px solid var(--black-line);
  font-size: 12px;
  color: var(--gray-500);
  letter-spacing: 0.02em;
  text-align: center;
}
@media (min-width: 880px) {
  .footer__copy { text-align: left; }
}

/* =========================================================
   FLOATING WHATSAPP
   ========================================================= */
.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 16px;
  background: var(--wa-green);
  color: var(--white);
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.6), 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 36px -8px rgba(37, 211, 102, 0.8), 0 6px 16px rgba(0,0,0,0.25);
}
.wa-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: var(--wa-green);
  animation: wa-pulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}
.wa-float__txt {
  display: none;
}
@media (min-width: 640px) {
  .wa-float { bottom: 28px; right: 28px; }
  .wa-float__txt { display: inline; }
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__eyebrow .dot { animation: none; }
  .wa-float__pulse { animation: none; }
  .hero__scroll-line::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   SELECTION
   ========================================================= */
::selection { background: var(--orange); color: var(--white); }
