:root {
  --primary: #1f2937;
  --secondary: #111827;
  --accent: #10b981;
  --text-light: #f9fafb;
  --text-dark: #d1d5db;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
} 

html {
  scroll-behavior: smooth;
}

body {
  padding-top: 140px; /* Ajusta este valor según la altura de tu header */
  font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
  background-color: var(--secondary);
  color: var(--text-light);
  line-height: 1.5;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--primary);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease-in-out;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  
}

.logo img {
  height: 100px;
  transition: height 0.3s;
}

/* Cuando se hace scroll */
header.shrink .logo img {
  height: 60px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex: 5;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  padding: 0.5rem 5rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}


nav {
  display: flex;
  gap: 2rem;
  justify-content: center; /* Centra los enlaces de navegación */
  flex-grow: 1; /* Asegura que los enlaces ocupen el espacio disponible */
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 10%;
  width: 80%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(to right, #111827, #1f2937);
  animation: fadeIn 2s ease-in-out;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.services {
  background-color: #0f172a;
  padding: 4rem 2rem;
  color: #f1f5f9;
  text-align: center;
}

.services-title {
  font-size: 2.5rem;
  color: #38bdf8;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.card {
  background-color: #1e293b;
  padding: 2rem;
  border-radius: 1rem;
  text-align: left;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.card h3 {
  color: #38bdf8;
  margin-bottom: 1rem;
}

.card p, .card ul {
  font-size: 1rem;
  line-height: 1.6;
}

.card ul {
  padding-left: 1.2rem;
  list-style-type: none;
}

.card ul li::before {
  content: "✅ ";
  color: #22c55e;
}
.contact {
  background: var(--primary);
  padding: 3rem 2rem;
  text-align: center;
  animation: fadeInUp 2s ease-in-out;
}

.contact h2 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #1e293b;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.contact input,
.contact textarea {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  background-color: #f1f5f9;
  color: #000000;
}

.contact button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 1rem;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact button:hover {
  background: #0ea472;
}

.contact p {
  margin-top: 1rem;
  color: var(--text-light);
}

.contact a {
  color: var(--accent);
}

@media (max-width: 600px) {
  .contact form {
    padding: 1.5rem;
  }

  .contact input,
  .contact textarea {
    font-size: 1rem;
  }
}


/* Carousel */
.carousel {
  position: relative;
  max-width: 800px;
  margin: 2rem auto 0;
  overflow: hidden;
  border-radius: 10px;
}

.carousel-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
  scroll-behavior: smooth;
}

.carousel-item {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  padding: 0 5px;
}

.carousel-item img {
  width: 100%;
  display: block;
}

.caption {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-item:hover .caption {
  opacity: 1;
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem;
  cursor: pointer;
}

.carousel .prev {
  left: 10px;
}

.carousel .next {
  right: 10px;
}
nav a.active {
  color: var(--accent);
  font-weight: bold;
}
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(to right, #111827, #1f2937);
  animation: fadeIn 2s ease-in-out;
}

.demo-button {
  background-color: var(--accent);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  margin-top: 1px; /* Añadido espacio superior */
}

.demo-button:hover {
  background-color: #0ea472;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.demo-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.final-cta {
  background: linear-gradient(135deg, #1f2937, #0f172a);
  padding: 1rem 2rem;
  text-align: center;
  color: var(--text-light);
  max-width: 900px;
  margin: 3rem auto;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);

}

.final-cta h2, .final-cta h3 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.final-cta p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.final-cta ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.final-cta ul li {
  margin-bottom: 0.5rem;
  text-align: left;
  position: relative;
  padding-left: 1.5rem;
}

.final-cta ul li::before {
  content: "✔️";
  position: absolute;
  left: 0;
}

/* Animación al aparecer */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 2s ease, transform 1s ease;
}

.fade-in-section.visible {
  opacity: 1;
  transform: none;
}
.mision {
  background-color: #0f172a;
  padding: 4rem 2rem;
  color: #f1f5f9;
  text-align: center;
}

.services-titled {
  font-size: 2rem;
  color: #38bdf8;
  margin-bottom: 2rem;
}

.mision .card {
  background-color: #1e293b;
  margin: 1rem auto;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 800px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mision .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.mision h3 {
  color: #38bdf8;
  margin-bottom: 1rem;
}

.mision p {
  line-height: 1.6;
  font-size: 1.05rem;
}
/* Fade-in desde abajo */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.crm-feature {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.crm-feature.visible {
  opacity: 1;
  transform: translateY(0);
  animation: fadeUp 0.6s ease forwards;
}

.crm-feature i {
  transition: transform 0.3s ease;
}

.crm-feature:hover i {
  transform: scale(1.2) rotate(5deg);
}
.btn-whatsapp {
  background-color: #25D366;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s ease;
}

.btn-whatsapp:hover {
  background-color: #000000;
}

#crm .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card-icon {
  font-size: 2rem;
  color: #007bff;
  margin-bottom: 0.5rem;
}
.services-grid .card {
  background: #131c31;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-grid .card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card-icon,
.service-img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.services-grid .card:hover .card-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px #2aa7ff);
  color: #2aa7ff;
}

.services-grid .card:hover .service-img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.service-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 15px;
}
/* Responsive para móviles pequeños */
@media (max-width: 600px) {
  body {
    padding-top: 100px; /* header más pequeño en móviles */
  }

  .header-top {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  .logo img {
    height: 60px;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  nav {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  nav a {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .carousel {
    max-width: 100%;
    border-radius: 0;
  }

  .carousel .caption {
    font-size: 0.9rem;
    left: 10px;
    bottom: 10px;
    padding: 4px 8px;
  }

  .contact form {
    padding: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-title {
    font-size: 2rem;
  }

  .card {
    padding: 1.5rem;
  }

  .final-cta h2, .final-cta h3 {
    font-size: 1.5rem;
  }

  .final-cta p {
    font-size: 1rem;
  }

  .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }

  .demo-button {
    width: 100%;
  }
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--primary);
  position: relative;
  z-index: 1000;
}

.logo img {
  height: 50px;
}

.nav-wrapper {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
}

.btn-whatsapp {
  background-color: #25d366;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-light);
  z-index: 1100;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  #mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--primary);
    width: 100%;
    padding: 1rem 0;
    position: absolute;
    top: 100%;
    left: 0;
  }

  #mobile-menu.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  nav a {
    padding: 1rem;
    font-size: 1.2rem;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background-color: #7c7979;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  text-align: center;
}

.modal-content h2 {
  margin-bottom: 15px;
}

.modal-content p {
  margin-bottom: 20px;
}

.modal button {
  padding: 10px 20px;
  background-color: #38f88e;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.modal button:hover {
  background-color: #0ea472;
} 
.card1-container {
  display: flex;
  gap: 20px; /* Espacio entre tarjetas */
  justify-content: center; /* Centra las tarjetas */
  flex-wrap: wrap; /* Para que se acomoden en móvil */
  margin-top: 20px;
}

.card2 {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  width: 3200px; /* Ancho fijo de cada tarjeta */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.card2:hover {
  transform: translateY(-5px); /* Efecto al pasar el mouse */
}
/* ventana de promo*/
@keyframes popupFadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes popupFadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.8); }
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup.show {
  visibility: visible;
  opacity: 1;
  animation: popupFadeIn 0.5s forwards;
}

.popup.hide {
  animation: popupFadeOut 0.5s forwards;
}

.popup-content {
  position: relative;
  background: #0f172a;/*aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa*/
  padding: 20px;
  border-radius: 12px;
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  text-align: center;
}

.popup-image {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  font-weight: bold;
  color: #c4bfbf;
  cursor: pointer;
}
.popup-text {
  margin-bottom: 20px;
}

.popup-text h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #d3d3d3;/*bienvenido*/
}

.popup-text p {
  font-size: 1.2rem;
  color: #dbdbdb;/*descubre*/
}

.popup-image {
  width: 100%;
  max-width: 300px;
  margin: 20px auto;
  display: block;
}

.popup-button-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.popup-whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  background-color: #25D366;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.popup-whatsapp-button i {
  font-size: 1.5rem;
}

.popup-whatsapp-button:hover {
  background-color: #1ebe5b;
}
