/* BLG-Electric - High-Performance Design System CSS */

:root {
  --bg-main: #0b0f19;
  --bg-surface: #111827;
  --bg-card: #1f2937;
  --bg-card-hover: #374151;
  --border-color: rgba(255, 255, 255, 0.08);

  --primary-cyan: #0ea5e9;
  --primary-cyan-glow: rgba(14, 165, 233, 0.3);
  --secondary-green: #10b981;
  --secondary-green-glow: rgba(16, 185, 129, 0.2);
  --amber-warning: #f59e0b;

  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --font-heading: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Floating WhatsApp Button & Tooltip */
.whatsapp-float-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background: #111827;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
  pointer-events: none;
}

.whatsapp-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.whatsapp-float {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  background: transparent;
  pointer-events: auto;
  flex-shrink: 0;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Grid & Utilities */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.col-md-6,
.col-lg-5,
.col-lg-7 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  width: 100%;
}

@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 992px) {
  .col-lg-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }
  .col-lg-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }
}

.mt-4 {
  margin-top: 10px !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.underline {
  width: 60px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-cyan),
    var(--secondary-green)
  );
  margin: 0.75rem auto 1.5rem auto;
  border-radius: 2px;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    var(--primary-cyan) 60%,
    var(--secondary-green) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-cyan) 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--primary-cyan-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-cyan-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-cyan);
  color: #ffffff;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.brand-badge {
  background: rgba(14, 165, 233, 0.15);
  color: var(--primary-cyan);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--primary-cyan-glow);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-cyan);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 280px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  box-shadow: var(--shadow-soft);
  display: none;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-item {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary-cyan);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.75rem;
  cursor: pointer;
}

/* Breadcrumbs */
.breadcrumbs-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0.875rem 0;
  font-size: 0.875rem;
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  color: var(--text-muted);
}

.breadcrumbs-item a:hover {
  color: var(--primary-cyan);
}

.breadcrumbs-separator {
  color: var(--text-dim);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    circle at 80% 20%,
    rgba(14, 165, 233, 0.12) 0%,
    transparent 50%
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--secondary-green);
  border: 1px solid var(--secondary-green-glow);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-glow);
}

.hero-image-wrapper img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover img {
  transform: scale(1.03);
}

/* Section Styling */
.section {
  padding: 5rem 0;
}

.section-title-wrapper,
.section-title {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem auto;
}

.section-subtitle {
  color: var(--primary-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.section-title h2 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2.5rem;
}

/* Feature & Service Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-cyan),
    var(--secondary-green)
  );
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: var(--shadow-soft);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 52px;
  height: 52px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary-cyan);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary-cyan);
  font-size: 0.95rem;
}

.card-link:hover {
  gap: 0.75rem;
}

/* CTA Banner Section */
.cta-section {
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.15) 0%,
    rgba(16, 185, 129, 0.1) 100%
  );
  border: 1px solid var(--primary-cyan);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  margin: 4rem auto;
  max-width: 1100px;
  box-shadow: var(--shadow-glow);
}

.cta-section h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem;
  background: linear-gradient(135deg, var(--primary-cyan) 0%, #0284c7 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px var(--primary-cyan-glow);
  transition: var(--transition);
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--primary-cyan-glow);
}

/* Contact Section & Form */
.contact {
  padding: 4rem 0;
}

.contact-info {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-item i {
  font-size: 1.6rem;
  color: var(--primary-cyan);
  width: 32px;
  margin-top: 0.2rem;
}

.contact-item-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.contact-item-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-item-content a {
  color: var(--primary-cyan);
  font-weight: 500;
}

.contact-item-content a:hover {
  text-decoration: underline;
}

.contact-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem;
}

.form-control,
.form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230ea5e9' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 12px;
}

.form-select option {
  background: var(--bg-surface);
  color: #ffffff;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 10px var(--primary-cyan-glow);
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary-cyan) 0%, #0284c7 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 20px var(--primary-cyan-glow);
  transition: var(--transition);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-cyan-glow);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* FAQ Accordion */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-muted);
  display: none;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

/* Blog Article Layout */
.blog-article {
  padding: 4rem 0;
  max-width: 860px;
  margin: 0 auto;
}

.blog-header {
  margin-bottom: 2.5rem;
}

.blog-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.blog-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.blog-content {
  font-size: 1.1rem;
  color: #d1d5db;
  line-height: 1.8;
}

.blog-content p {
  margin-bottom: 1.5rem;
}

.blog-content h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem 0;
  color: var(--primary-cyan);
}

/* Callout Transaccional Box in Blog */
.cta-box-transactional {
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.1) 0%,
    rgba(16, 185, 129, 0.08) 100%
  );
  border: 1px solid var(--primary-cyan);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin: 2.5rem 0;
  position: relative;
}

.cta-box-title {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.cta-box-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

/* Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 0.95rem;
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .whatsapp-float-wrapper {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-tooltip {
    right: 65px;
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
