/* ============ JB Electromayorista — estilos ============ */

:root {
  --black: #0a0a0b;
  --black-soft: #141416;
  --black-card: #1b1b1e;
  --white: #ffffff;
  --off-white: #f6f7f6;
  --gray-100: #eef0ee;
  --gray-400: #8a8f8c;
  --gray-700: #4b504d;

  --green: #39ff14;
  --green-dark: #17c93a;
  --green-deep: #0f9c2c;

  --font-head: 'Poppins', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.35);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }
p { line-height: 1.6; margin: 0 0 1em; color: var(--gray-700); }

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

.text-green { color: var(--green); }
.text-white { color: var(--white) !important; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: var(--black);
  padding: 10px 16px;
  z-index: 999;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  padding: 13px 26px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary {
  background: var(--green);
  color: var(--black);
  box-shadow: 0 0 0 rgba(57,255,20,0);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(57, 255, 20, 0.35);
}
.btn--outline {
  background: transparent;
  border-color: var(--black);
  color: var(--black);
}
.btn--outline:hover { background: var(--black); color: var(--white); }
.btn--dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn--dark:hover { background: var(--black-soft); transform: translateY(-2px); }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(57, 255, 20, 0.18);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
}
.logo__badge {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 10px;
  padding: 4px 10px;
}
.logo__img {
  display: block;
  height: 42px;
  width: auto;
}
.logo--footer .logo__img { height: 46px; }

.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  color: var(--gray-100);
  font-weight: 500;
  font-size: 14.5px;
  position: relative;
  padding: 6px 0;
}
.nav a:hover { color: var(--green); }

.header__actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--black);
  overflow: hidden;
  padding: 100px 0 70px;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}
.hero__glow--1 {
  width: 480px; height: 480px;
  background: var(--green);
  top: -180px; right: -120px;
}
.hero__glow--2 {
  width: 360px; height: 360px;
  background: var(--green);
  bottom: -160px; left: -100px;
  opacity: 0.2;
}
.hero__inner { position: relative; z-index: 2; max-width: 780px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(57, 255, 20, 0.12);
  border: 1px solid rgba(57, 255, 20, 0.4);
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow svg { width: 15px; height: 15px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(34px, 5.4vw, 58px);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hero__lead {
  color: var(--gray-100);
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 32px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.hero .btn--outline { border-color: rgba(255,255,255,0.35); color: var(--white); }
.hero .btn--outline:hover { background: var(--white); color: var(--black); }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.hero__badges li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-100);
  font-size: 14px;
  font-weight: 500;
}
.hero__badges svg { width: 16px; height: 16px; color: var(--green); flex: none; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section--white { background: var(--white); }
.section--black { background: var(--black); }
.section--green { background: var(--green); }

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green-deep);
  background: rgba(15, 156, 44, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-tag--dark {
  color: var(--black);
  background: rgba(57, 255, 20, 0.16);
}
.section--green .section-tag--dark { background: rgba(0,0,0,0.12); }

.section h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  max-width: 620px;
}
.section-lead {
  font-size: 16.5px;
  max-width: 560px;
  margin-bottom: 44px;
}
.section-lead--dark { color: var(--gray-100); }

/* ---------- Grid & Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(57, 255, 20, 0.5);
}
.card__icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--black);
  color: var(--green);
  border-radius: 12px;
  margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14.5px; margin-bottom: 0; }

/* Category cards (dark section) */
.category-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  background: #202023;
}
.category-card__icon {
  width: 48px; height: 48px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(57, 255, 20, 0.12);
  color: var(--green);
  border-radius: 10px;
}
.category-card__icon svg { width: 24px; height: 24px; }
.category-card span { color: var(--white); font-weight: 600; font-size: 15px; }

.categorias__footnote {
  margin-top: 34px;
  color: var(--gray-400);
  font-size: 14.5px;
}
.categorias__footnote a { color: var(--green); font-weight: 600; }

/* Coverage cards */
.coverage-grid { margin-top: 8px; }
.coverage-card {
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 32px 26px;
  position: relative;
}
.coverage-card__icon {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: var(--black);
  color: var(--green);
  border-radius: 12px;
  margin-bottom: 18px;
}
.coverage-card__icon svg { width: 24px; height: 24px; }
.coverage-card h3 { font-size: 18px; }
.coverage-card p { font-size: 14.5px; margin-bottom: 0; }
.coverage-card--highlight {
  background: var(--black);
  border-color: var(--black);
}
.coverage-card--highlight h3, .coverage-card--highlight p { color: var(--white); }
.coverage-card--highlight .coverage-card__icon { background: rgba(57,255,20,.15); }
.coverage-card__badge {
  position: absolute;
  top: -12px; right: 22px;
  background: var(--green);
  color: var(--black);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
}

/* Zonas con envío gratis */
.zones {
  margin-top: 30px;
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 8px 26px;
}
.zones summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.zones summary::-webkit-details-marker { display: none; }
.zones summary::after {
  content: '+';
  font-size: 22px;
  color: var(--green-deep);
  font-weight: 700;
  margin-left: 12px;
}
.zones[open] summary::after { content: '\2212'; }
.zones__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  padding: 6px 0 24px;
  border-top: 1px solid var(--gray-100);
}
.zone-col h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  margin: 18px 0 10px;
  color: var(--black);
}
.zone-col h4 svg { width: 16px; height: 16px; color: var(--green-deep); flex: none; }
.zone-col__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--green-deep);
  margin: 12px 0 4px;
}
.zone-col ul { margin: 0; }
.zone-col li {
  font-size: 13.5px;
  color: var(--gray-700);
  padding: 3px 0;
}
.zones__footnote {
  font-size: 13.5px;
  color: var(--gray-400);
  padding-bottom: 20px;
  margin: 0;
}
.zones__footnote a { color: var(--green-deep); font-weight: 600; }

/* Why choose us (green section) */
.why-grid__text { max-width: 640px; }
.section--green h2 { color: var(--black); }
.section--green p { color: rgba(0,0,0,0.75); }
.why-list { margin-bottom: 30px; }
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  color: var(--black);
  padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
.why-list li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.why-list li:last-child { border-bottom: none; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-list { margin-top: 30px; display: flex; flex-direction: column; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 2px; }
.contact-list span { color: var(--gray-100); font-size: 15px; line-height: 1.6; }
.contact-list small { color: var(--gray-400); }

.social-links { display: flex; gap: 12px; margin-top: 26px; }
.social-links a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: var(--white);
  transition: background .2s ease, border-color .2s ease;
}
.social-links svg { width: 18px; height: 18px; }
.social-links a:hover { background: var(--green); border-color: var(--green); color: var(--black); }

.contact-form {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-form h3 { color: var(--white); font-size: 20px; margin-bottom: 20px; }
.contact-form label {
  display: block;
  color: var(--gray-100);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 16px;
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: var(--black);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(57,255,20,0.15);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--gray-400); }

/* ---------- Footer ---------- */
.footer { background: var(--black-soft); padding: 34px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.logo--footer { opacity: 0.9; }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__nav a { color: var(--gray-400); font-size: 14px; }
.footer__nav a:hover { color: var(--green); }
.footer__legal {
  width: 100%;
  order: 3;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 18px;
  padding-top: 18px;
}
.footer__legal p { color: var(--gray-400); font-size: 13px; margin: 0 0 4px; }
.footer__legal p:last-child { margin-bottom: 0; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px; height: 58px;
  background: var(--green);
  color: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(57, 255, 20, 0.45);
  z-index: 90;
  animation: pulse 2.4s infinite;
}
.whatsapp-float svg { width: 28px; height: 28px; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(57,255,20,0.45); }
  70% { box-shadow: 0 0 0 16px rgba(57,255,20,0); }
  100% { box-shadow: 0 0 0 0 rgba(57,255,20,0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .zones__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--black);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(57,255,20,0.18);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .header__actions .btn--sm { padding: 9px 14px; font-size: 0; gap: 0; }
  .header__actions .btn--sm svg { width: 20px; height: 20px; }
  .grid--4 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .hero { padding: 130px 0 60px; }
  .section { padding: 64px 0; }
  .footer__inner { justify-content: center; text-align: center; }
  .zones__grid { grid-template-columns: 1fr; }
  .zones { padding: 4px 18px; }
}

@media (max-width: 420px) {
  .hero__cta .btn { width: 100%; }
}
