/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');

/*=============== VARIABLES ===============*/
:root {
  --accent-color: #a876aa;
  --main-transition: all 0.3s ease-in-out;
}

/*=============== RESET Y ESTILOS GENERALES ===============*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  /* Evita desplazamiento horizontal */
  font-family: "Montserrat", sans-serif;
  color: #222;
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/*=============== NAVBAR ===============*/
.nav {
  position: fixed;
  background-color: rgba(20, 20, 20, 0.8);
  top: 0;
  left: 0;
  right: 0;
  transition: var(--main-transition);
  text-transform: uppercase;
  z-index: 1000;
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.nav ul {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  font-weight: 300;
  transition: var(--main-transition);
}

.nav a:hover {
  color: #a29bfe !important;
}

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

.logo {
  margin: 0;
  padding: 0;
  z-index: 1001;
}

.logo a {
  display: block;
  width: 180px;
  /* Ajusta según tu logo */
  height: 50px;
  /* Ajusta según tu logo */
  position: relative;
  transition: var(--main-transition);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/*=============== HOME SECTION ===============*/
.home {
  background-image: url('/static/images/main/imgProgram.jpg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.home h1 {
  font-size: 46px;
  margin: -20px 0 20px;
}

.home p {
  font-size: 16px;
  letter-spacing: 0.2rem;
  font-weight: 200;
}

/*=============== CONTENT SECTIONS ===============*/
.content {
  padding: 100px 0;
}

.content h2 {
  font-size: 24px;
  margin: 20px 0;
}

.content p {
  color: #555;
  line-height: 30px;
  letter-spacing: 1.2px;
}

/*=============== SERVICES SECTION ===============*/
#services {
  padding: 100px 0;
}

#services h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin-bottom: 60px;
  position: relative;
}

#services h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  /* Espacio entre tarjetas */
}

.service {
  flex: 1 1 calc(25% - 30px);
  /* 4 columnas en pantallas grandes */
  max-width: calc(25% - 30px);
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.service:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.service-card {
  padding: 40px 20px;
  text-align: center;
  position: relative;
}

.service-card i {
  font-size: 48px;
  color: var(--accent-color);
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.service-card h3 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.service-card p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service:hover .service-card::before {
  transform: scaleX(1);
}


/*=============== SERVICES SECTION ===============*/
#about h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin-bottom: 60px;
  position: relative;
}

#about h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 10px auto 0;
  border-radius: 2px;
}



/*=============== ABOUT SECTION ===============*/
#about {
  padding: 100px 0;
}

#about h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin-bottom: 60px;
  position: relative;
}

#about h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.about-card {
  background: #fff;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 30px;
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.about-card i {
  color: var(--accent-color);
  transition: color 0.3s ease;
}

.about-card h3 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.about-card p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

/* Descripción Breve del Equipo */
#about p {
  font-size: 18px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}

#about .btn-primary {
  background-color: var(--accent-color);
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

#about .btn-primary:hover {
  background-color: #6c5ce7;
}



/*=============== CLIENTS SECTION ===============*/
#clients {
  background-color: #fff;
  /* Fondo blanco para resaltar */
  padding: 100px 0;
}

#clients h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin-bottom: 60px;
  position: relative;
}

#clients h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.client {
  flex: 1 1 calc(25% - 30px);
  /* 4 columnas en pantallas grandes */
  max-width: calc(25% - 30px);
  margin-bottom: 30px;
}

.client-card {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.client-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.client-logo {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.client-card:hover .client-logo {
  transform: scale(1.1);
  /* Efecto de zoom al hacer hover */
}


/*=============== TOOLS SECTION ===============*/
#tools {
  /* Fondo claro para resaltar */
  padding: 100px 0;
}

#tools h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin-bottom: 60px;
  position: relative;
}

#tools h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.tools-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tool-logo {
  height: 100px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.tool-logo:hover {
  transform: scale(1.1);
  /* Efecto de zoom al hacer hover */
}



/*ANIMACIONES TOOLS*/
@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.tool-logo {
  height: 100px;
  object-fit: contain;
  transition: transform 0.3s ease;
  opacity: 0;
  /* Inicialmente oculto */
  transform: translateX(-100%);
  /* Fuera de pantalla */
}

/* Mantener el hover original */
.tool-logo:hover {
  transform: scale(1.1);
}





/*=============== CONTACT FORM ===============*/
.form-group {
  margin-bottom: 15px;
}

.form-control {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.btn-primary:hover {
  background-color: #6c5ce7;
}

/*=============== FOOTER ===============*/
footer {
  background-color: #212529;
  color: #ffffff;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}

footer .social-icons {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

footer .social-icons a {
  color: #ffffff;
  margin: 0 10px;
  font-size: 24px;
  transition: color 0.3s ease;
}

footer .social-icons a:hover {
  color: #a876aa;
}

footer p {
  color: #cccccc;
  margin: 0;
}


/*=============== WHATSAPP BUTTON ===============*/
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9999;
  transition: all 0.3s ease;
}

.whatsapp-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.whatsapp-btn:hover .whatsapp-img {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Animación de pulso */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 181, 67, 0.5);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(74, 181, 67, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(74, 181, 67, 0);
  }
}

.whatsapp-img {
  animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
  .whatsapp-btn {
    bottom: 30px;
    left: 20px;
  }

  .whatsapp-img {
    width: 50px;
    height: 50px;
  }
}


/*=============== RESPONSIVE DESIGN ===============*/
/* Pantallas medianas (hasta 992px) */
@media (max-width: 992px) {
  .nav .container {
    flex-direction: row;
    justify-content: space-between;
    /* Separa logo y hamburguesa */
    align-items: center;
    padding: 15px 20px;
  }

  /* Posicionamiento del menú desplegable */
  .navbar-collapse {
    position: absolute;
    top: 100%;
    /* Coloca el menú justo debajo del header */
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    /* Mismo color que el nav */
    padding: 15px 20px;
    z-index: 999;
    text-align: left;
    /* Alinea el texto a la izquierda */
  }

  /* Ajustes para los elementos del menú */
  .navbar-nav {
    width: 100%;
    padding-left: 15px;
  }

  .nav-item {
    margin: 10px 0;
  }

  .nav ul {
    flex-direction: column;
  }

  .nav a {
    padding: 10px 0;
  }

  /* Asegurar que el botón hamburguesa esté alineado a la derecha */
  .navbar-toggler {
    order: 1;
    /* Empuja el botón al final del flex container */
  }

  .home h1 {
    font-size: 36px;
  }

  .home p {
    font-size: 14px;
  }

  .content {
    padding: 50px 0;
  }

  .content h2 {
    font-size: 22px;
  }

  .row {
    flex-direction: column;
  }

  .service {
    flex: 1 1 calc(50% - 30px);
    /* 2 columnas en pantallas medianas */
    max-width: calc(50% - 30px);
  }


  .service-card {
    padding: 20px;
  }

  .client {
    flex: 1 1 calc(50% - 30px);
    /* 2 columnas en pantallas medianas */
    max-width: calc(50% - 30px);
  }

  .client-logo {
    max-width: 80%;
    /* Reducir tamaño de las imágenes en pantallas medianas */
  }

  .tool-logo {
    height: 80px;
    /* Reducir tamaño en pantallas medianas */
  }
}

/* Pantallas pequeñas (menos de 768px) */
@media (max-width: 768px) {
  .home h1 {
    font-size: 28px;
  }

  .home p {
    font-size: 12px;
  }

  .service {
    flex: 1 1 100%;
    /* 1 columna en pantallas pequeñas */
    max-width: 100%;
  }

  #services h2 {
    font-size: 28px;
  }

  .service-card h3 {
    font-size: 22px;
  }

  .service-card p {
    font-size: 14px;
  }

  .client {
    flex: 1 1 100%;
    /* 1 columna en pantallas pequeñas */
    max-width: 100%;
  }

  #clients h2 {
    font-size: 28px;
    /* Tamaño de fuente más pequeño en móviles */
  }

  .client-logo {
    max-width: 60%;
    /* Reducir tamaño de las imágenes en pantallas pequeñas */
  }

  .content h2 {
    font-size: 20px;
  }

  #tools h2 {
    font-size: 28px;
    /* Tamaño de fuente más pequeño en móviles */
  }

  .tool-logo {
    height: 60px;
    /* Reducir tamaño en pantallas pequeñas */
  }

  .tools-container {
    gap: 15px;
    /* Reducir espacio entre logos en móviles */
  }

  .btn-primary {
    font-size: 16px;
    padding: 10px 15px;
  }

  footer p {
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .tool-logo {
    height: 50px;
    /* Tamaño más pequeño para pantallas muy pequeñas */
  }

  .tools-container {
    gap: 10px;
    /* Espacio mínimo entre logos */
  }

  .client-logo {
    max-width: 50%;
    /* Tamaño más pequeño para pantallas muy pequeñas */
  }
}

/*=============== TERMINO DE CONDICIONES ===============*/

/* SE APLICO PARA TERMINOS Y POLITICAS DE PRIVACIDAD */
.tbr1 {
  padding-top: 105px;
}

/*=============== POLITICAS DE PRIVACIDAD ===============*/
.custom-list {
  list-style-type: disc;
  /* Viñetas redondas */
  padding-left: 20px;
  /* Espaciado a la izquierda */
  margin-bottom: 1rem;
  /* Margen inferior */
}

.custom-list li {
  margin-bottom: 0.5rem;
  /* Espaciado entre elementos */
  color: #333;
  /* Color del texto */
}



/* --- Animación líneas banner ------------------------------------ */
.hero-title {
  /* 3 rem en desktop ↓ hasta 1.8 rem en pantallas muy pequeñas */
  font-size: clamp(1.8rem, 5.5vw, 3rem);
  line-height: 1.25;
}

.hero-title .line {
  display:inline-block;
  opacity:0;
  transform:translateX(-1em);   /* -1 em se escala con el font-size */
}

@keyframes slideIn {
  to {
    opacity:1;
    transform:translateX(0);
  }
}

/* ---- separador |  (desktop vs. mobile) ------------------------- */
.sep{                     /* escritorio / tablet */
  display:inline;
}

@media (max-width:768px){ /* móvil */
  .sep{
    display:block;        /* ocupa la fila completa → salto de línea   */
    width:100%;
    height:0;             /* no añade espacio vertical extra           */
    font-size:0;          /* oculta el carácter |                      */
    line-height:0;        /* asegura que no deje hueco                 */
  }
}