:root {
  --primary: #0a1128;
  --secondary: #1c2541;
  --accent: #00c9ff;
  --accent-dark: #0099cc;
  --text-light: #f8f9fa;
  --text-gray: #adb5bd;
  --gradient: linear-gradient(135deg, #00c9ff 0%, #92fe9d 100%);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--primary);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: "Orbitron", sans-serif;
  font-weight: 600;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  background-color: rgba(10, 17, 40, 0.9);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 15px 0;
  box-shadow: var(--shadow);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

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

.logo h1 {
  font-size: 1.8rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo i {
  color: var(--accent);
  font-size: 1.8rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

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

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--gradient);
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}
.mobile-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.05"><polygon fill="%2300c9ff" points="0,0 1000,0 1000,1000 0,1000"/><path fill="%2300c9ff" d="M500,250 C650,250 750,350 750,500 C750,650 650,750 500,750 C350,750 250,650 250,500 C250,350 350,250 500,250 Z"/></svg>')
    center/cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-gray);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--gradient);
  color: var(--primary);
  border: none;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  font-family: "Orbitron", sans-serif;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 201, 255, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  margin-left: 15px;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--primary);
}

/* Particles Background */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Sections */
section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 3px;
  background: var(--gradient);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-title p {
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto;
}

/* About Section */
.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.about-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0.2;
  z-index: 1;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Services Section */
.services {
  background-color: var(--secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.service-card:hover::before {
  opacity: 0.1;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.service-card p {
  color: var(--text-gray);
  margin-bottom: 20px;
}

.pricing {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.price-option {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 8px 0;
}

.price-option:last-child {
  margin-bottom: 0;
}

.discount {
  color: #00ff9d;
  font-weight: 600;
}

/* Clients Section */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.client-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s;
}

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

.client-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--accent);
}

.testimonial {
  font-style: italic;
  color: var(--text-gray);
  margin-top: 15px;
}

/* Contact Section */
.contact {
  background-color: var(--secondary);
}

.contact-content {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-form {
  flex: 1;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: var(--primary);
  font-size: 1.2rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: var(--text-light);
  font-family: "Montserrat", sans-serif;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: #050a1a;
  padding: 70px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 2px;
  background: var(--gradient);
  bottom: 0;
  left: 0;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s;
}

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

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--gradient);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

.scroll-top {
  position: fixed;

  bottom: 30px;

  right: 30px;

  width: 50px;

  height: 50px;

  background: var(--gradient);

  border-radius: 50%;

  display: flex;

  justify-content: center;

  align-items: center;

  cursor: pointer;

  opacity: 0;

  visibility: hidden;

  transition: all 0.3s ease;

  z-index: 1000;
}

.scroll-top i {
  color: var(--primary);

  font-size: 1.2rem;
}

.scroll-top.show {
  opacity: 1;

  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-5px);
}

/* Asegura que todas las tarjetas tengan la misma altura y estructura */
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Obliga a que todas midan lo mismo en la fila */
    padding: 30px;
    /* background: #fff; */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* El párrafo de descripción ocupará todo el espacio disponible */
.service-card p {
    flex-grow: 1; 
    margin-bottom: 20px;
}

/* El bloque de precios siempre se quedará pegado al fondo */
.pricing {
    margin-top: auto; 
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Estilo para el Badge que agregamos antes */
.promo-badge {
    background: #e63946;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}
.promo-badge_2 {
    /* background: #e63946; */
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 18px;
}

/* Responsive */
@media (max-width: 992px) {
  .about-content,
  .contact-content {
    flex-direction: column;
  }

  .hero h2 {
    font-size: 2.8rem;
  }
}

/* --- MODO MOBILE (Pantallas menores a 768px) --- */
@media (max-width: 768px) {
    .header-content {
        position: relative; /* Para que el menú se posicione respecto al header */
    }

    .mobile-menu {
        display: block;
        cursor: pointer;
    }

    .nav-links {
        /* Posicionamiento en la parte superior */
        position: absolute;
        top: 100%; /* Se despliega justo debajo del header */
        left: 0;
        width: 100%;
        background-color: #0a1128; /* Color de fondo sólido */
        
        /* Flexbox para poner los items en columna */
        flex-direction: column;
        gap: 0;
        text-align: center;
        
        /* Efecto de ocultar/mostrar (hacia arriba) */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        z-index: 1000;
    }

    /* Cuando el menú está activo */
    .nav-links.nav-active {
        max-height: 500px; /* Un valor lo suficientemente alto para mostrar todo el menú */
        border-top: 1px solid #444; /* Opcional: una línea divisoria */
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 15px 0;
        width: 100%;
        color: white;
        text-decoration: none;
    }

    .nav-links li a:hover {
        background-color: #333;
    }
}

@media (max-width: 576px) {
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }

  .btn-outline {
    margin-left: 0;
  }

  .hero h2 {
    font-size: 1.8rem;
  }
}
