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

:root {
  --bg-color: #030816;
  --bg-secondary: #050d24;
  --text-color: #ffffff;
  --text-muted: #a0aec0;
  --accent-color: #00e5ff;
  --accent-hover: #00b8cc;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 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 4px 15px rgba(0, 229, 255, 0.4);
}

.btn-outline-primary {
  background-color: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--accent-color);
  color: white;
}

.btn-outline-primary:hover {
  background-color: rgba(0, 229, 255, 0.2);
}

/* Hero Section */
.hero {
  position: relative;
  height: 25vh;
  min-height: 250px;
  padding-top: 60px; /* Espacio para el navbar */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.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(0,0,0,0.3) 0%, rgba(5,5,5,1) 95%);
  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;
  background: linear-gradient(to right, #ffffff, #a0aec0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.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 10px 20px rgba(0, 229, 255, 0.3);
}

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

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

#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: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.stat-card {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 16px;
  padding: 35px 25px;
  text-align: center;
  width: 240px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 229, 255, 0.25), inset 0 0 0 1px rgba(0, 229, 255, 0.3);
  border-color: rgba(0, 229, 255, 0.5);
}

/* Línea neón superior decorativa */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-color);
  box-shadow: 0 0 15px var(--accent-color);
}

.stat-value {
  font-size: 3.2rem;
  font-weight: 800;
  margin: 10px 0 5px;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.4;
}

/* Priority */
.priority-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.priority-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 12px;
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  transition: transform 0.3s;
}

.priority-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  background: rgba(0, 229, 255, 0.05);
}

.priority-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

/* Footer */
.footer {
  background-color: #000;
  padding: 30px 20px 20px;
  border-top: 2px solid var(--accent-color);
}

.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-title {
    font-size: 3rem;
  }
  .nav-links {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .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 5px 20px rgba(0, 229, 255, 0.4);
  z-index: 999;
  transition: transform 0.3s, box-shadow 0.3s;
}

.floating-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 229, 255, 0.6);
}

/* 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.9rem;
  color: #fff;
}

.input-group input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}
/* Services Tabs */
.services-tabs-wrapper {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.service-tab {
  background: #1a1a1a;
  color: var(--primary-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 25px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  
  /* Estados para animación de entrada en cascada */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.service-tab.in-view {
  opacity: 1;
  transform: translateY(0);
}

.service-tab:hover {
  background: #252525;
  color: #fff;
}

.service-tab.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

@media (max-width: 768px) {
  .services-tabs-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .service-tab {
    flex: 1 1 calc(50% - 12px);
    padding: 12px 10px;
    font-size: 0.85rem;
    white-space: normal;
    text-align: center;
    min-width: 140px;
  }
  .service-tab svg {
    width: 20px;
    height: 20px;
  }
}
