@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
  --bg-color: #f8fafc;
  --bg-secondary: #ffffff;
  --text-color: #0f172a;
  --text-muted: #475569;
  --accent-color: #0ea5e9;
  --accent-hover: #0284c7;
  --card-bg: #0f172a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  height: 40px;
  border-radius: 8px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Buttons */
.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #000;
  border: none;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.6), 0 15px 15px rgba(14, 165, 233, 0.5);
}

.btn-outline-primary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px; /* Forma de píldora elegante */
  color: #e2e8f0;
  backdrop-filter: blur(10px);
  padding: 12px 24px;
}

.btn-outline-primary:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.4);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.4), 0 10px 10px rgba(14, 165, 233, 0.3);
}

/* Hero Section / Fixed Header */
.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  min-height: 120px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  z-index: 1000; /* Mantiene la barra siempre AL FRENTE de todo */
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-bg canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15,23,42,0.1) 0%, rgba(15,23,42,0.8) 80%, #f8fafc 100%);
  z-index: -1;
}

.hero-content {
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
  animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0;
  color: #cbd5e1;
}

.hero-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.pill-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  height: 65px;
  border-radius: 100px;
  border: 2px solid var(--accent-color);
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  overflow: hidden;
}

.pill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-color);
  transition: left 0.4s ease;
  z-index: -1;
}

.pill-card:hover::before {
  left: 0;
}

.pill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.3), 0 10px 10px rgba(14, 165, 233, 0.22);
}

/* General Sections */
.section {
  padding: 40px 20px;
}

.dark-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

#soluciones {
  padding: 30px 20px;
}

#soluciones .section-desc {
  margin-bottom: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 800;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 40px;
}

/* Stats Section */
.stats-section {
  background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="%23222"/></svg>');
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 16px;
  padding: 25px 15px;
  text-align: center;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-card::after {
  display: none;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: #00e5ff;
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.08);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 10px 0 8px;
  background: linear-gradient(135deg, #ffffff 0%, #00e5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.5;
}

/* Priority / Trust Panel */
.trust-panel {
  display: flex;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.12), 0 10px 10px rgba(14, 165, 233, 0.08);
  margin-bottom: 20px;
}

.trust-badge {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.badge-icon-container {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(14, 165, 233, 0.2);
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.15), 0 10px 10px rgba(14, 165, 233, 0.1);
  position: relative;
}

.badge-icon-container::before {
  content: '';
  position: absolute;
  top: 10px; left: 10px; right: 10px; bottom: 10px;
  border: 3px solid var(--accent-color);
  border-radius: 50%;
  opacity: 0.6;
}

.badge-icon-container svg {
  width: 45px;
  height: 45px;
  color: #334155;
  z-index: 2;
}

.badge-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

.trust-footer {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  font-size: 1rem;
  color: #475569;
  font-weight: 500;
}

/* Footer */
.footer {
  background-color: #030816;
  padding: 60px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.3), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  text-align: left;
  margin-bottom: 15px;
}

.footer-logo {
  height: 50px;
  margin-bottom: 20px;
}

.footer-text {
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: white;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #222;
  color: #666;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: 150px;
    padding-bottom: 50px;
  }
  .hero-title {
    font-size: 1.8rem !important; /* Ajuste para móvil */
    margin-top: 10px;
  }
  .hero-subtitle {
    font-size: 0.95rem !important;
  }
  .nav-links {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr; /* 2 columnas en móvil */
  }
  .stat-circle {
    width: 200px;
    height: 200px;
  }
  .stat-value {
    font-size: 2.5rem;
  }
}

/* Map City Labels */
.city-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.city-label::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  background-color: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--accent-color), 0 0 5px white;
}

.city-label span {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.8);
  white-space: nowrap;
}

/* Floating Button */
.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--accent-color);
  color: #000;
  border: none;
  border-radius: 50px;
  padding: 15px 25px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.4), 0 10px 10px rgba(14, 165, 233, 0.3);
  z-index: 999;
  transition: transform 0.3s, box-shadow 0.3s;
}

.floating-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.6), 0 15px 15px rgba(14, 165, 233, 0.5);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Content */
.modal-content {
  background: var(--bg-secondary);
  padding: 40px;
  border-radius: 15px;
  width: 90%;
  max-width: 450px;
  border: 1px solid var(--accent-color);
  box-shadow: 0 10px 40px rgba(0, 229, 255, 0.2);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--accent-color);
}

/* Form Elements */
.input-group {
  margin-bottom: 20px;
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-color);
}

.input-group input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: var(--text-color);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input::placeholder {
  color: #94a3b8;
}

.input-group input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}
/* Bento Grid Soluciones */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 140px; gap: 20px; max-width: 1200px; margin: 0 auto; }
.bento-item { background: #ffffff; border-radius: 16px; padding: 20px; position: relative; overflow: hidden; border: 1px solid #e2e8f0; text-align: left; display: flex; flex-direction: column; justify-content: space-between; 
  opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, box-shadow 0.3s ease; 
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.12), 0 10px 10px rgba(14, 165, 233, 0.08);
}
.bento-item.in-view { opacity: 1; transform: translateY(0); }
.bento-item.in-view:hover { border-color: var(--accent-color); box-shadow: 0 20px 40px rgba(14, 165, 233, 0.35), 0 15px 15px rgba(14, 165, 233, 0.25); transform: translateY(-5px); z-index: 10; }
.bento-item h3 { margin: 0 0 10px 0; font-size: 1.4rem; color: #0f172a; }
.bento-item p { color: #475569; margin: 0; font-size: 0.95rem; line-height: 1.5; }
.bento-icon { width: 40px; height: 40px; margin-bottom: 15px; }

/* Estilo Minimalista Gradiente para todos los iconos principales */
.bento-icon, 
.badge-icon-container svg, 
.hero ul li svg {
  stroke: url(#nodox-gradient) !important;
  stroke-width: 1.5 !important;
}

.center-item { justify-content: center; align-items: center; text-align: center; }
.center-item h3 { margin: 0; font-size: 1.1rem; color: #1e293b; }
.center-item .bento-icon { margin-bottom: 10px; width: 35px; height: 35px; }

.bento-large { grid-column: span 2; grid-row: span 2; background: linear-gradient(135deg, #f8fafc, #ffffff); }
.bento-large h3 { font-size: 2rem; color: #0f172a; }
.bento-large .bento-icon { width: 50px; height: 50px; }
.bento-span-2 { grid-column: span 2; }
.bento-span-3 { grid-column: span 3; }

/* --- GRID DEL MAPA --- */
.map-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: center; }

@media (max-width: 768px) {
  .map-grid { grid-template-columns: 1fr; gap: 20px; }
  .bento-grid { display: flex; flex-direction: column; }
  .bento-item { min-height: 160px; }
  .trust-panel { flex-direction: column; align-items: stretch; gap: 15px; }
  .section-title { font-size: 1.8rem !important; }
  .map-container { height: 300px !important; }
  .trust-badge { width: 100%; text-align: left; justify-content: flex-start; }
}
