/* Estilos Generales y Paleta Moderna Tech */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #0b1320;
  color: #e2e8f0;
  scroll-behavior: smooth;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color: rgba(11, 19, 32, 0.95);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

header img {
  width: 150px;
}

nav {
  display: flex;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: #cbd5e1;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #00f0ff;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* Sección Hero Interactiva */
.hero {
  background: linear-gradient(rgba(11, 19, 32, 0.7), rgba(11, 19, 32, 0.85)), url('hero-image.jpg') center/cover no-repeat;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-top: 10px;
  margin-bottom: 25px;
}

.floating-text {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  animation: float 3s ease-in-out infinite;
  position: relative;
  cursor: pointer;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.6), 0 0 30px rgba(0, 240, 255, 0.3);
  transition: color 0.3s;
}

.floating-text:hover {
  color: #00f0ff;
  text-shadow: 0 0 10px #00f0ff, 0 0 25px #00f0ff, 0 0 50px #00f0ff;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.hero button, .submit-btn {
  background: linear-gradient(135deg, #f4c542, #e0b034);
  color: #0b1320;
  border: none;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(244, 197, 66, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero button:hover, .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 197, 66, 0.5);
}

/* Asistente Interactivo de Servicios */
.interactive-assistant {
  background-color: #0d1726;
  padding: 50px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.assistant-options {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.option-btn {
  background-color: #182844;
  color: #e2e8f0;
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 12px 22px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-btn i {
  color: #00f0ff;
}

.option-btn:hover {
  background-color: #00f0ff;
  color: #0b1320;
  border-color: #00f0ff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
}

.option-btn:hover i {
  color: #0b1320;
}

.assistant-response {
  margin-top: 30px;
  background-color: #142238;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #00f0ff;
  animation: fadeIn 0.4s ease-in-out;
}

.assistant-response.hidden {
  display: none;
}

.whatsapp-btn-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #25d366;
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-btn-inline:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

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

/* Secciones Generales */
section {
  padding: 60px 20px;
  text-align: center;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.section-desc {
  color: #94a3b8;
  margin-bottom: 40px;
}

/* Servicios / Tarjetas Interactivas */
.services {
  background-color: #111d32;
}

.services .card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.services .card {
  background-color: #182844;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 25px;
  width: 30%;
  border-radius: 15px;
  min-width: 280px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.services .card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 240, 255, 0.15);
}

.services .card img {
  width: 100%;
  border-radius: 10px;
  height: 180px;
  object-fit: cover;
  margin-bottom: 15px;
}

.services .card h3 {
  color: #f4c542;
  margin-bottom: 10px;
}

.services .card p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Sección Proyectos y Filtros */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: #182844;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
  background-color: #00f0ff;
  color: #0b1320;
  border-color: #00f0ff;
}

.projects-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.project-card {
  background: #182844;
  width: 300px;
  height: 200px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(0, 240, 255, 0.3);
  transition: transform 0.3s, border-color 0.3s;
}

.project-card:hover {
  transform: scale(1.03);
  border-color: #00f0ff;
}

.project-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
}

.project-placeholder i {
  font-size: 2.5rem;
  color: #00f0ff;
}

/* Sección Testimonios */
.testimonials {
  background-color: #0d1726;
}

.testimonial-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  background-color: #142238;
  border: 1px solid rgba(0, 240, 255, 0.1);
  padding: 30px;
  width: 42%;
  border-radius: 15px;
  min-width: 280px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.testimonial-card .quote {
  font-style: italic;
  color: #cbd5e1;
  margin-bottom: 20px;
  line-height: 1.6;
}

.testimonial-card h4 {
  color: #f4c542;
  margin: 0;
}

.client-location {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Sección Sobre Nosotros */
.about {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #cbd5e1;
}

/* Contacto y Formulario */
.contact {
  background-color: #111d32;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 30px auto;
}

.contact form input,
.contact form textarea {
  padding: 14px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #182844;
  color: white;
  outline: none;
  transition: border-color 0.3s;
}

.contact form input:focus,
.contact form textarea:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.contact-info {
  margin: 20px 0;
  font-weight: 600;
  color: #f4c542;
}

/* Redes Sociales */
.social-icons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.social-icons a {
  color: white;
  font-size: 1.8rem;
  transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
  color: #00f0ff;
  transform: scale(1.2);
}

/* Botón Flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 100;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Footer */
footer {
  background-color: #070c14;
  padding: 25px;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive para Móviles */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  nav {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    height: 380px;
  }

  .floating-text {
    font-size: 2.3rem;
  }

  .services .card {
    width: 100%;
  }

  .projects-grid, .testimonial-container {
    flex-direction: column;
    align-items: center;
  }

  .testimonial-card {
    width: 90%;
  }
}
