/**
 * CAAB — tema visual ELECTRIC
 * Energía + electricidad + calma + seguridad.
 * Solo body.jkfw-theme-electric (landing básica).
 */

/* —— Body: atmósfera viva —— */
body.jkfw-theme-electric.jkfw-landing-basic-body {
  background:
    radial-gradient(ellipse 90% 55% at 12% -8%, rgba(34, 211, 238, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 45% at 92% 8%, rgba(251, 191, 36, 0.1), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(45, 212, 191, 0.08), transparent 55%),
    linear-gradient(180deg, #07111f 0%, #0b1a2e 45%, #091525 100%) !important;
  color: var(--jk-metal-light);
}

body.jkfw-theme-electric.jkfw-landing-basic-body::before {
  background-color: rgba(34, 211, 238, 0.14) !important;
  opacity: 1 !important;
  animation: jklp-electric-honey-breathe 9s ease-in-out infinite;
}

@keyframes jklp-electric-honey-breathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}

/* —— Shell: navbar / sidebar / footer —— */
body.jkfw-theme-electric #jkhive-sidebar-container,
body.jkfw-theme-electric .jkhive-navbar,
body.jkfw-theme-electric .jkhive-footer,
body.jkfw-theme-electric .jkhive-footer-crm,
body.jkfw-theme-electric .jkhive-crm-footer {
  background: linear-gradient(180deg, #07111f 0%, #0d1f35 100%) !important;
  border-color: var(--jk-elegant-shell-border) !important;
  box-shadow: none !important;
}

body.jkfw-theme-electric #jkhive-sidebar-container {
  border-right: 2px solid var(--jk-elegant-shell-border) !important;
}

body.jkfw-theme-electric .jkhive-navbar {
  border-bottom: 2px solid var(--jk-elegant-shell-border) !important;
}

body.jkfw-theme-electric .jkhive-footer,
body.jkfw-theme-electric .jkhive-footer-crm,
body.jkfw-theme-electric .jkhive-crm-footer {
  border-top: 2px solid var(--jk-elegant-shell-border) !important;
}

body.jkfw-theme-electric .jkhive-navbar-title,
body.jkfw-theme-electric .jkhive-navbar-breadcrumb,
body.jkfw-theme-electric .jkhive-navbar-breadcrumb span {
  color: var(--jk-metal-light) !important;
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.25);
}

/* Logo sidebar: PNG blanco limpio (sin filtro ni halo) */
body.jkfw-theme-electric .jkhive-brand-logo--sidebar {
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

/* Hero: blanco sólido limpio (sigue usando PNG oscuro + invert limpio) */
body.jkfw-theme-electric .jkhive-brand-logo--hero-landing {
  filter: brightness(0) invert(1) contrast(1.4) !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

/* —— Hero: imágenes que cambian + velo eléctrico —— */
body.jkfw-theme-electric.jkfw-landing-basic-body .jkfw-landing-basic-hero,
body.jkfw-theme-electric.jkfw-landing-basic-body .hero-section.jkfw-landing-basic-hero,
body.jkfw-theme-electric.jkfw-landing-basic-body .hero-section.jkfw-landing-basic-hero.jkhive-surface-panel-honeycomb-sm {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(165deg, rgba(7, 17, 31, 0.45) 0%, rgba(11, 26, 46, 0.28) 42%, rgba(7, 17, 31, 0.55) 100%) !important;
  border-bottom: 2px solid var(--jk-elegant-shell-border) !important;
  box-shadow:
    0 1px 0 rgba(125, 211, 252, 0.18) inset,
    0 24px 48px rgba(0, 0, 0, 0.28) !important;
  min-height: clamp(280px, 52vw, 420px);
}

body.jkfw-theme-electric .jklp-electric-hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

body.jkfw-theme-electric .jklp-electric-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 3.2s ease;
  filter: saturate(1.15) contrast(1.05);
  will-change: opacity, transform;
}

body.jkfw-theme-electric .jklp-electric-hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

body.jkfw-theme-electric .jklp-electric-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(7, 17, 31, 0.58) 0%, rgba(7, 17, 31, 0.28) 48%, rgba(7, 17, 31, 0.62) 100%),
    radial-gradient(ellipse 70% 60% at 70% 40%, rgba(34, 211, 238, 0.22), transparent 65%);
  animation: jklp-electric-veil-shift 12s ease-in-out infinite;
}

@keyframes jklp-electric-veil-shift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.88; }
}

body.jkfw-theme-electric .jkfw-landing-basic-hero::before {
  z-index: 2 !important;
  background-color: rgba(34, 211, 238, 0.16) !important;
  -webkit-mask-size: 28px 48px;
  mask-size: 28px 48px;
  opacity: 0.55;
  mix-blend-mode: screen;
}

body.jkfw-theme-electric .jkfw-landing-basic-hero > *:not(.jklp-electric-hero-stage):not(.jklp-electric-hero-veil) {
  position: relative;
  z-index: 3;
}

body.jkfw-theme-electric.jkfw-landing-basic-body .jkfw-landing-basic-hero-title {
  color: #f8fbff !important;
  text-shadow:
    0 0 28px rgba(34, 211, 238, 0.45),
    0 0 48px rgba(56, 189, 248, 0.2),
    0 2px 0 rgba(0, 0, 0, 0.35) !important;
  letter-spacing: 0.01em;
}

body.jkfw-theme-electric.jkfw-landing-basic-body .jkfw-landing-basic-hero-subtitle {
  color: rgba(232, 238, 247, 0.88) !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

/* —— Tipografía / secciones —— */
body.jkfw-theme-electric .jkhive-section-title,
body.jkfw-theme-electric .jklp-section-title,
body.jkfw-theme-electric h2.jkhive-section-title {
  color: #f0f7ff !important;
  text-shadow: 0 0 22px rgba(34, 211, 238, 0.28);
}

body.jkfw-theme-electric .jkhive-section-title::after,
body.jkfw-theme-electric .jklp-section-title::after {
  background: linear-gradient(90deg, transparent, #22d3ee 20%, #fbbf24 50%, #22d3ee 80%, transparent) !important;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.55);
  height: 3px !important;
  opacity: 1 !important;
}

body.jkfw-theme-electric .jkhive-lead-text,
body.jkfw-theme-electric .jkfw-landing-basic-prose,
body.jkfw-theme-electric .jkhive-lead-wrap p,
body.jkfw-theme-electric .jkfw-landing-basic-text {
  color: rgba(232, 238, 247, 0.9) !important;
}

body.jkfw-theme-electric .jkhive-link-inline,
body.jkfw-theme-electric a.jkhive-link-inline {
  color: var(--jk-elegant-link) !important;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.25);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

body.jkfw-theme-electric .jkhive-link-inline:hover {
  color: #fde68a !important;
  text-shadow: 0 0 16px rgba(251, 191, 36, 0.45);
}

/* —— Paneles / cards: profundidad, no “plano” —— */
body.jkfw-theme-electric .jkhive-surface-panel-honeycomb-sm,
body.jkfw-theme-electric .jkfw-landing-basic-section,
body.jkfw-theme-electric .jkhive-contact-card,
body.jkfw-theme-electric .jklp-about-panel,
body.jkfw-theme-electric .jklp-about-value-card {
  background:
    linear-gradient(165deg, rgba(19, 38, 63, 0.92) 0%, rgba(11, 26, 46, 0.88) 100%) !important;
  border: 1px solid rgba(34, 211, 238, 0.28) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 18px 40px rgba(0, 0, 0, 0.28),
    0 0 40px rgba(34, 211, 238, 0.06) !important;
  backdrop-filter: blur(8px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

body.jkfw-theme-electric .jkhive-contact-card:hover,
body.jkfw-theme-electric .jklp-about-value-card:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 191, 36, 0.45) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 22px 48px rgba(0, 0, 0, 0.32),
    0 0 36px rgba(34, 211, 238, 0.16) !important;
}

body.jkfw-theme-electric .jkhive-contact-card-title,
body.jkfw-theme-electric .jklp-about-value-card h3 {
  color: #fde68a !important;
  text-shadow: 0 0 16px rgba(251, 191, 36, 0.25);
}

body.jkfw-theme-electric .jkhive-contact-channel-body,
body.jkfw-theme-electric .jkhive-contact-channel-body p,
body.jkfw-theme-electric .form-control,
body.jkfw-theme-electric label {
  color: rgba(232, 238, 247, 0.92) !important;
}

body.jkfw-theme-electric .jkhive-contact-form .form-control {
  background: rgba(7, 17, 31, 0.72) !important;
  border: 1px solid rgba(34, 211, 238, 0.35) !important;
  color: #e8eef7 !important;
}

body.jkfw-theme-electric .jkhive-contact-form .form-control::placeholder {
  color: rgba(182, 195, 214, 0.65) !important;
}

body.jkfw-theme-electric .jkhive-contact-form .form-control:focus {
  border-color: #22d3ee !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25) !important;
}

/* —— Hex / interacción —— */
body.jkfw-theme-electric #jkhive-sidebar .jkhive-nav-item .jkhive-hex-svg-btn,
body.jkfw-theme-electric .jkhive-sidebar .jkhive-nav-item .jkhive-hex-svg-btn {
  --jkhive-hex-shell-color: #7dd3fc;
  --jkhive-hex-icon-color: #7dd3fc;
  --jkhive-bttn-hex-inner-bg: #0b1a2e;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.35));
  transition: filter 0.3s ease, transform 0.3s ease;
}

body.jkfw-theme-electric #jkhive-sidebar .jkhive-nav-item.active .jkhive-hex-svg-btn,
body.jkfw-theme-electric .jkhive-sidebar .jkhive-nav-item.active .jkhive-hex-svg-btn {
  --jkhive-hex-shell-color: #fbbf24;
  --jkhive-hex-icon-color: #fbbf24;
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.55));
}

body.jkfw-theme-electric #searchIcon:not(:hover) .jkhive-hex-svg-btn,
body.jkfw-theme-electric .jklp-mobile-nav-toggle .jkhive-hex-svg-btn--navbar {
  --jkhive-hex-shell-color: #fbbf24 !important;
  --jkhive-hex-icon-color: #fbbf24 !important;
  --jkhive-bttn-hex-inner-bg: #0b1a2e !important;
}

body.jkfw-theme-electric .jklp-mobile-nav-toggle__fa {
  color: #fbbf24 !important;
}

/* Galerías: brillo al hover */
body.jkfw-theme-electric .jkhive-itemgallery-med,
body.jkfw-theme-electric .jkhive-hex-item-med,
body.jkfw-theme-electric .jkhive-itemgallery-small {
  transition: transform 0.35s ease, filter 0.35s ease;
}

body.jkfw-theme-electric .jkhive-itemgallery-med:hover,
body.jkfw-theme-electric .jkhive-hex-item-med:hover,
body.jkfw-theme-electric .jkhive-itemgallery-small:hover {
  filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.35)) drop-shadow(0 0 28px rgba(251, 191, 36, 0.18));
}

/* CTA: pulso suave de energía */
body.jkfw-theme-electric #cta.cta-section-hex,
body.jkfw-theme-electric .jklp-cta-emphasis {
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(34, 211, 238, 0.16), transparent 65%),
    linear-gradient(165deg, rgba(19, 38, 63, 0.95) 0%, rgba(7, 17, 31, 0.92) 100%) !important;
  border: 1px solid rgba(34, 211, 238, 0.35) !important;
  box-shadow: 0 0 48px rgba(34, 211, 238, 0.12), inset 0 0 40px rgba(251, 191, 36, 0.04) !important;
  animation: jklp-electric-cta-glow 4.5s ease-in-out infinite;
}

@keyframes jklp-electric-cta-glow {
  0%, 100% { box-shadow: 0 0 36px rgba(34, 211, 238, 0.1), inset 0 0 30px rgba(251, 191, 36, 0.03); }
  50% { box-shadow: 0 0 56px rgba(34, 211, 238, 0.22), inset 0 0 40px rgba(251, 191, 36, 0.07); }
}

body.jkfw-theme-electric .jkhive-footer,
body.jkfw-theme-electric .jkhive-footer a,
body.jkfw-theme-electric .footer-corporate p {
  color: rgba(232, 238, 247, 0.85) !important;
}

/* Indicadores del slideshow hero */
body.jkfw-theme-electric .jklp-electric-hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  pointer-events: auto;
}

body.jkfw-theme-electric .jklp-electric-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.7);
  background: rgba(7, 17, 31, 0.45);
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

body.jkfw-theme-electric .jklp-electric-hero-dot.is-active {
  width: 22px;
  background: linear-gradient(90deg, #22d3ee, #fbbf24);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.55);
  border-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  body.jkfw-theme-electric.jkfw-landing-basic-body::before,
  body.jkfw-theme-electric .jklp-electric-hero-veil,
  body.jkfw-theme-electric #cta.cta-section-hex,
  body.jkfw-theme-electric .jklp-cta-emphasis {
    animation: none !important;
  }

  body.jkfw-theme-electric .jklp-electric-hero-slide {
    transition: opacity 0.4s ease;
    transform: none;
  }
}
