@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --primary: #37517e;
  --primary-hover: #2c4268;
  --secondary: #0055c9;
  --highlight: #0d6efd;
  --deep-accent: #1c3487;
  --surface: #f8f9fa;
  --surface-dark: #191c1d;
  --surface-card: #ffffff;
  --orange: #ff7a00;
  --orange-light: #fff2e5;
  --text-main: #1a1a1a;
  --text-muted: #6c757d;
  --border-color: #e5e7eb;
  --font-headline: 'IBM Plex Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: var(--highlight);
  transition: all 0.2s ease;
}

/* Header & Navigation */
.header-sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.brand-logo img {
  height: 40px;
}

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

.nav-link {
  color: #44474f;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
}

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

.btn-consultor {
  background-color: var(--primary);
  color: #ffffff !important;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(55, 81, 126, 0.15);
}

.btn-consultor:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-section {
    flex-direction: row;
    align-items: center;
  }
  .hero-content {
    width: 55%;
  }
  .hero-image {
    width: 45%;
  }
}

.hero-blob {
  position: absolute;
  right: -100px;
  top: -100px;
  width: 600px;
  height: 600px;
  background-color: var(--orange-light);
  border-radius: 50%;
  z-index: -1;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.25rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #4a5568;
  margin-bottom: 2rem;
}

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

.btn-primary-hero {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  box-shadow: 0 10px 20px rgba(55, 81, 126, 0.2);
}

.btn-primary-hero:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-secondary-hero {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
}

.btn-secondary-hero:hover {
  background-color: var(--surface);
  color: var(--primary-hover);
}

/* Logos Carrusel */
.logos-section {
  background-color: var(--surface);
  padding: 3rem 1.5rem;
  border-y: 1px solid var(--border-color);
  overflow: hidden;
}

.logos-container {
  max-width: 1280px;
  margin: 0 auto;
}

.logos-track {
  display: flex;
  gap: 3rem;
  align-items: center;
  animation: scrollLogos 30s linear infinite;
}

.logo-item img {
  height: 50px;
  object-fit: contain;
  filter: grayscale(30%);
  transition: all 0.3s ease;
}

.logo-item img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

@keyframes scrollLogos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Pilares Tecnologicos */
.pilares-section {
  max-width: 1280px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.pilares-box {
  background-color: var(--orange-light);
  border-radius: 1.5rem;
  padding: 2.5rem;
}

.pilares-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #2d3748;
}

.pilares-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .pilares-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pilar-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.pilar-icon {
  width: 50px;
  height: 50px;
  background-color: #ffffff;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  color: var(--primary);
}

.pilar-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.pilar-card p {
  font-size: 0.95rem;
  color: #4a5568;
}

/* Tabla Comparativa */
.compare-section {
  max-width: 1280px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.25rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.compare-card {
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.compare-header-row {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--surface);
}

@media (min-width: 768px) {
  .compare-header-row {
    flex-direction: row;
  }
}

.compare-col-feature {
  padding: 2rem;
  width: 100%;
}

.compare-col-base, .compare-col-adv {
  padding: 2rem;
  width: 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .compare-col-feature { width: 40%; border-right: 1px solid var(--border-color); }
  .compare-col-base { width: 30%; border-right: 1px solid var(--border-color); background-color: #ffffff; }
  .compare-col-adv { width: 30%; background-color: #fff9f5; }
}

.compare-row-item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .compare-row-item { flex-direction: row; }
}

.compare-row-item:last-child {
  border-bottom: none;
}

.check-icon {
  color: #10b981;
  font-weight: bold;
  font-size: 1.25rem;
}

.cross-icon {
  color: #ef4444;
  font-size: 1.25rem;
}

/* Portfolio Pantallas */
.portfolio-section {
  background-color: var(--surface);
  padding: 5rem 1.5rem;
}

.portfolio-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

.portfolio-card {
  background-color: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-5px);
}

.portfolio-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.portfolio-info {
  padding: 1.25rem;
}

.portfolio-info h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.portfolio-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-section {
  max-width: 900px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

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

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

}

.faq-question:hover {
  background-color: var(--surface);
}

.faq-answer {
  padding: 1.25rem 1.5rem;
  background-color: var(--surface);
  border-top: 1px solid var(--border-color);
  display: none;
  color: #4a5568;
}

.faq-answer.show {
  display: block;
}

/* Mapa Interactivo Mejorado */
.map-section {
  max-width: 1280px;
  margin: 5rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.map-container-wrapper {
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  border-radius: 1.75rem;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  margin-top: 2rem;
}

.map-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .map-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .svg-map-box {
    width: 65%;
  }
  .map-sidebar-info {
    width: 35%;
  }
}

.svg-map-box {
  width: 100%;
  position: relative;
}

.svg-map-box svg {
  width: 100%;
  height: auto;
  max-height: 540px;
  filter: drop-shadow(0px 8px 16px rgba(55, 81, 126, 0.12));
}

.svg-map-box path {
  fill: #cbd5e1;
  stroke: #ffffff;
  stroke-width: 1.5;
  stroke-linejoin: round;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.svg-map-box path:hover {
  fill: var(--highlight);
  transform: translateY(-2px);
  filter: drop-shadow(0px 6px 12px rgba(13, 110, 253, 0.35));
}

.svg-map-box path.has-distributor {
  fill: var(--primary);
}

.svg-map-box path.has-distributor:hover {
  fill: var(--secondary);
}

.map-sidebar-info {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  width: 100%;
  text-align: left;
}

.state-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background-color: var(--orange-light);
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

/* Modales */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background-color: #ffffff;
  border-radius: 1rem;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #a0aec0;
}

/* Footer */
.footer-dark {
  background-color: var(--surface-dark);
  color: #ffffff;
  padding: 5rem 1.5rem 2rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid #2d3748;
  margin-top: 4rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  font-size: 0.9rem;
  color: #a0aec0;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* SVG Venezuela Map Interactive Styles */
#mapa svg path {
  fill: #37517e;
  stroke: #ffffff;
  stroke-width: 1.5;
  transition: all 0.25s ease;
  cursor: pointer;
}
#mapa svg path:hover {
  fill: #0055c9;
  filter: drop-shadow(0 4px 10px rgba(0,85,201,0.4));
}


