/* Reset y fuentes */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #222;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

/* Contenedor genérico */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/*Barra Social*/
.social-bar {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 0.7rem 0.5rem;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  gap: 1.2rem;
  z-index: 1000;
}

.social-bar a {
  color: #333;
  font-size: 20px;
  transition: color 0.3s, transform 0.3s;
}

.social-bar a:hover {
  color: #0077b5;
  transform: scale(1.2);
}


/* NAVBAR */
.navbar {
  background: #0a0a23;
  color: #fff;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  z-index: 100;
  top: 0;
  left: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 80px;
  /* Ajusta según tamaño del logo */
  width: auto;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-grow: 1;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links li a {
  position: relative;
  color: #fff;
  text-decoration: none;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: 0;
  background-color: #00bcd4;
  transition: width 0.3s ease;
}

.nav-links li a:hover {
  color: #00bcd4;
}

.nav-links li a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.whatsapp-btn {
  display: inline-block;
  background-color: #25d366;
  color: white;
  padding: 10px 16px;
  border-radius: 30px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-left: auto;
}

.whatsapp-btn i {
  margin-right: 8px;
}

.whatsapp-btn:hover {
  background-color: #1ebc59;
}

@media screen and (max-width: 768px) {
  .whatsapp-btn {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .social-bar {
    display: none;
  }
}

/* HERO */

#particles-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero {
  height: 100vh;
  background: linear-gradient(to bottom right, #00bcd4, #0a0a23);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  z-index: 2;
}

.hero-content {
  animation: fadeIn 1s ease-out;
  z-index: 2;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.hero-title::after {
  content: "|";
  animation: blink 0.7s infinite;
  color: #00bcd4;
}

.hero-image {
  flex: 1 1 400px;
  text-align: center;
  animation: fadeIn 1s ease-out;
  z-index: 2;
}

.hero-image img {
  max-width: 70%;
  height: auto;
  display: flex;
}


@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-subtitle {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.hero-button {
  padding: 0.8rem 2rem;
  background: #fff;
  color: #0a0a23;
  border: none;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s;
}

.hero-button:hover {
  background: #00bcd4;
  color: #fff;
}

/* Animación */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #0a0a23;
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 1rem;
    border-radius: 5px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-toggle {
    display: block;
    z-index: 999;
  }

  .wave-divider {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding-top: 0;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 2rem 1rem;
  }

  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-button {
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
  }

  .hero-image {
    display: none;
  }
}
.wave-divider {
  position: absolute;
  bottom: 0;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  z-index: 1;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 220px;
  transform: scaleY(-1);
  /* para que apunte hacia arriba */
}

.wave-fill {
  fill: #f9f9f9;
  /* o el color que quieras usar como fondo del siguiente bloque */
}



/*SERVICIOS*/
.services {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #111;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
}

.service-card img {
  width: 60%;
  height: auto;
  object-fit: cover;
  margin-top: 15px;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #333;
}

.card-content p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 20px;
}

.card-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #007bff;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.card-btn:hover {
  background: #0056b3;
}

/* Carrusel */
.carousel-section {
  background: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #222;
}

/* Contenedor centrado */
.carousel-wrapper {
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
  position: relative;
  padding: 0 20px;
  box-sizing: border-box;
  margin: 0 auto;
  background-color: #f9f9f9;
}

.carousel-track {
  display: flex;
  gap: 20px;
  animation: scrollInfinite 30s linear infinite;
  width: max-content;
}

.carousel-card {
  background: white;
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  min-width: 250px;
  max-width: 300px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  text-align: center;
}

.icon-box {
  font-size: 2.5rem;
  color: #007bff;
  margin-bottom: 15px;
}

.carousel-card h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #333;
}

.carousel-card p {
  font-size: 0.95rem;
  color: #555;
}

@keyframes scrollInfinite {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .carousel-card {
    min-width: 220px;
  }
}


/*BOTON WS CELULAR*/
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: none;
  /* Oculto por defecto */
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  text-decoration: none;
  font-size: 28px;
  transition: background-color 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #1ebc59;
}

/* Mostrar solo en móvil */
@media screen and (max-width: 768px) {
  .whatsapp-float {
    display: flex;
  }
}


/*Procesos*/
.process-section {
  padding: 60px 20px;
  background: #f4f8ff;
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1d1d1d;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 40px;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.step-card {
  background: white;
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 420px;
}

.step-card:hover {
  transform: translateY(-6px);
}

.step-icon {
  width: 50px;
  height: 50px;
  background-color: #007bff;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.step-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 10px;
}

.step-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #222;
  text-align: center;
}

.step-card p {
  font-size: 0.95rem;
  color: #555;
  text-align: center;
}


@media (max-width: 768px) {
  .process-step {
    flex-direction: column;
    text-align: center;
  }

  .step-content,
  .step-image {
    max-width: 100%;
  }

  .step-content {
    text-align: center;
  }
}


/*COMPARATIVA*/
.before-after-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #f9fbff;
}

.ba-title {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: px;
  color: #1c1c1c;

}

.ba-subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 50px;
  max-width: 750px;
  margin: auto;
}

.ba-comparisons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-bottom: 60px;
}

.ba-box {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  max-width: 520px;
  width: 100%;
}

.ba-img-full {
  width: 90%;
  height: auto;
}

.ba-cta {
  background: #007bff;
  color: white;
  padding: 40px 20px;
  border-radius: 15px;
  max-width: 700px;
  margin: 0 auto;
}

.ba-cta h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.ba-cta p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.ba-button {
  background: white;
  color: #007bff;
  padding: 12px 24px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}

.ba-button:hover {
  background: #e2e8f0;
}

/*PORTAFOLIO*/
.portafolio {
  padding: 80px 20px;
  background-color: #f8f9fa;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}

.portafolio h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #041740;
}

.portafolio .subtitulo {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
}

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: auto;
}

.proyecto {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.proyecto:hover {
  transform: scale(1.03);
}

.proyecto img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: 0.3s ease;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 23, 64, 0.8);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 20px;
  text-align: center;
}

.proyecto:hover .overlay {
  opacity: 1;
}

.overlay h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.overlay p {
  font-size: 1rem;
}

.proyecto_link {
  text-decoration: none;
}

/*CLIENTES*/

.clientes {
  clip-path: ellipse(150% 100% at 50% 100%);
  position: relative;
  background: linear-gradient(to bottom right, #00bcd4, #0a0a23);
  padding: 80px 20px 120px;
  text-align: center;
  overflow: hidden;
}

.contenido-clientes {
  max-width: 1200px;
  margin: auto;
  z-index: 2;
  position: relative;
}

.contenido-clientes h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 10px;
}

.contenido-clientes p {
  font-size: 1.1rem;
  color: #b1b1b1;
  margin-bottom: 50px;
}

.logos-clientes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.logo-box {
  width: 150px;
  height: 100px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.logo-box img {
  max-width: 80%;
  max-height: 60px;
  object-fit: contain;
}

.logo-box:hover {
  transform: translateY(-5px);
}

/*FOOTER*/
.footer-empresa {
  background-color: #041740;
  color: #fff;
  padding: 60px 30px;
  font-family: 'Segoe UI', sans-serif;
}

.footer-contenido {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1300px;
  margin: auto;
}

.footer-col {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer-logo {
  width: 150px;
  margin-bottom: 10px;
}

.footer-col h4 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: #00aaff;
}

.footer-col p {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #bbb;
}

.contacto .btn-azul,
.contacto .btn-whatsapp {
  display: block;
  text-align: center;
  padding: 10px;
  margin-top: 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn-azul {
  background-color: #007bff;
  color: white;
}

.btn-azul:hover {
  background-color: #005fc1;
}

.btn-whatsapp {
  background-color: #0e3a6c;
  color: #25d366;
}

.btn-whatsapp:hover {
  background-color: #1a4c88;
}

.footer-col i {
  margin-right: 8px;
  color: #00aaff;
}