
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
  }
  
  body {
    font-family: Arial, sans-serif;
  }
  
  
  /* ================================
     Header y navegación
  ================================= */
  header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .barradenavegacion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem;
  }
  
  .logo {
    height: 60px;
  }
  
  .barradenavegacion ul {
    list-style: none;
    display: flex;
    gap: 2rem;
  }
  
  .barradenavegacion ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
  }
  
  .barradenavegacion ul li a:hover {
    color: #007BFF;
  }
  
  
  .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
  }
  
  .popup-content {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
    text-align: center;
  }
  
  .popup-content h3 {
    margin-top: 0;
    color: #002e5b;
  }
  
  .popup-content p {
    margin-top: 1rem;
    color: #1e1e1e;
  }
  
  .popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
  }
  
  
  /* ================================
     Sección Hero principal
  ================================= */
  .hero-kensa {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 0 4rem 5%;
    background-color: #e9f6fe;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .hero-texto {
    flex: 1;
    min-width: 300px;
    margin-top: -8rem;     /* Eleva el bloque de texto */
    margin-right: 2rem;    /* Separa el texto de la imagen */
  }
  
  .hero-texto h2 {
    font-size: 3rem;
    color: #002e5b;
    font-weight: 800;
    margin-bottom: 1rem;
  }
  
  .hero-texto p {
    font-size: 1.1rem;
    color: #1e1e1e;
    margin-bottom: 2rem;
  }
  
  .hero-imagenes {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  
  .hero-imagenes img {
    width:75%;
    max-width: none;
    height: auto;
    display: block;
    object-fit: cover;
    border: none;
  }
  
  /* Popup base */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-content {
  background-color: white;
  padding: 2rem;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  position: relative;
}

.popup-content h3 {
  margin-top: 0;
  color: #002e5b;
  font-size: 1.5rem;
  text-align: center;
  padding: 2rem;
}

.popup-content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.popup-content label {
  font-weight: bold;
  color: #333;
}

.popup-content input {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.popup-content button {
  padding: 0.7rem;
  background-color: #00aaff;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
}

.popup-content button:hover {
  background-color: #008fcc;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

  /* ================================
     Botones de llamada
  ================================= */
  .boton-llamada {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border: 2px solid #00aaff;
    color: #00aaff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
  }
  
  .boton-llamada:hover {
    background: #00aaff;
    color: white;
  }
  
  .boton-superior-derecha {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 0 1rem;
    margin: -2rem;
    position: relative;
    z-index: 10;
  }
  
  .boton-superior-derecha .boton-llamada {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
  }
  .mision-kensa {
    text-align: center;
    background-color: #ffffff;
    padding: 4rem 2rem;
  }
  
  .mision-kensa h2 {
    font-size: 2.5rem;
    color: #002e5b;
    font-weight: 800;
    margin-bottom: 3rem;
  }
  
  .contenedor-pilares {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }
  
  .pilar {
    flex: 1 1 220px;
    max-width: 250px;
    height: 300px;
    border: 3px solid #00aaff;
    border-radius: 15px;
    overflow: hidden;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .pilar h3 {
    color: #002e5b;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1.5rem 1rem 0.5rem 1rem;
  }
  
  .pilar p {
    font-size: 0.95rem;
    color: #1e1e1e;
    padding: 0 1rem 1rem 1rem;
  }
  
  .pilar-footer {
    background-color: #003e6b;
    color: white;
    padding: 2rem;
    font-weight: bold;
    text-align: center;
    font-size: 1,5rem;
  }
  
/* Sección clientes y servicios */
.clientes-servicios {
  background: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.titulo-principal {
  font-size: 2.3rem;
  background: #F7F6F6;
  color: #00aaff;
  margin-bottom: 2rem;
  box-sizing: border-box;
}

.subtitulo {
  font-size: 2rem;
  color: #002e5b;
  margin: 3rem 0 1rem;
}

/* Carrusel */
.carrusel-contenedor {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Carrusel infinito */
.carrusel-logos {
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 0.1rem;
}

.carrusel-track {
  display: inline-block;
  animation: scroll-logos 100s linear infinite;
}

.carrusel-track img {
  height: 40px;
  margin: 0 2rem;
  vertical-align: middle;
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* Carrusel inverso */
.carrusel-logos.inverso {
  margin-top: 0.1rem;
}

.carrusel-track-reverse {
  display: inline-block;
  animation: scroll-logos-reverse 100s linear infinite;
  white-space: nowrap;
}

.carrusel-track-reverse img {
  height: 40px;
  margin: 0 2rem;
  vertical-align: middle;
}

@keyframes scroll-logos-reverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Tarjetas de servicio */
.servicios-cajas {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.caja-servicio {
  background: #00b5ff;
  color: white;
  padding: 1.5rem;
  margin-top: 2rem;
  border-radius: 20px;
  max-width: 300px;
  font-size: 1rem;
  font-weight: normal;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.caja-servicio p:first-of-type {
  margin-bottom: 0.75rem; /* o ajusta según lo que visualmente te guste */
}
/* Ciberseguridad */
.caja-ciberseguridad {
  border: 2px solid #00aaff;
  border-radius: 20px;
  margin-top: 3rem;
  padding: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  background: white;
  box-shadow: 0 8px 0 #003e6b;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.ciber-texto {
  flex: 1;
  min-width: 280px;
}

.ciber-texto h3 {
  color: #00aaff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.ciber-texto p {
  font-size: 1rem;
  color: #1e1e1e;
}

.ciber-icono img {
  max-width: 100px;
}
/* ================================
   Sección ¿Quiénes somos?
================================= */
.quienes-somos {
  padding: 4rem 2rem;
  text-align: center;
  background-color: #fff;
}

.quienes-somos h2 {
  color: #002e5b;
  font-size: 3rem;
  margin-bottom: 2rem;
}
/* ================================
   Logo Kensay cuadra azul
================================= */
.contenido-quienes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  padding: 2rem 1rem;
}

/* Logo con borde azul y esquinas redondeadas */
.logo-kensa {
  border: 2px solid #00aaff;
  border-radius: 20px;
  padding: 2rem;
}

.logo-kensa img {
  max-width: 220px;
  height: auto;
  display: block;
}

/* Texto en cuadro azul oscuro con esquinas redondeadas */
.texto-quienes {
  background-color: #00325e; /* Azul oscuro */
  color: white;
  border-radius: 25px;
  padding: 2rem;
  max-width: 700px;
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 400;
}

.texto-quienes ul {
  padding-left: 1.2rem;
  margin: 0;
}

.texto-quienes li {
  margin-bottom: 0.75rem;
  list-style-type: disc;
}

/* ================================
   RRSS
================================= */

.redes-sociales {
  margin-top: 2rem;
}

.redes-sociales a img {
  height: 50px;
  margin: 0 10px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.redes-sociales a:hover img {
  filter: grayscale(0%);
}

/* ================================
   Footer
================================= */
.pie-pagina {
  background-color: #006699;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.pie-pagina .icono-telefono {
  vertical-align: middle;
  height: 25px;
  margin-right: 5px;
}

.pie-pagina hr {
  border: none;
  border-top: 2px solid white;
  margin: 1rem 0;
}
  
/* ================================
   Lideres
================================= */
.tarjetas-contacto {
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  gap: 2rem; /* Espacio entre las tarjetas */
  flex-wrap: wrap; /* Asegura que en pantallas pequeñas se apilen */
  margin-top: 2rem;
}

.tarjeta-persona {
  border: 2px solid #00aaff;
  border-radius: 15px;
  padding: 1rem;
  width: 200px;
  text-align: center;
  background-color: white;
}

.foto-img {
  width: 90%;
  height: 190px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #00aaff;
  margin-bottom: 1rem;
}

/* ================================
   Responsive para tablets y móviles
================================= */

/* 1) Tablets y pantallas medianas */
@media (max-width: 768px) {
  /* Header: nav más compacto */
  .barradenavegacion {
    flex-wrap: wrap;
    padding: 0.5rem 0.1rem;
  }
  .barradenavegacion ul {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    gap: 1rem;
  }

  /* Hero: columna en lugar de fila */
  .hero-kensa {
    flex-direction: column;
    padding: 1rem 1rem;
  }
  .hero-texto {
    margin-top: 1rem;
    margin-right: 0;
    text-align: center;
  }
  .hero-texto h2 {
    font-size: 2rem;
  }
  .hero-texto p {
    font-size: 1rem;
  }
  .hero-imagenes {
    justify-content: center;
    margin-top: 2rem;
  }
  .hero-imagenes img {
    width: 80%;
  }

  /* Botón superior: recorta margen negativo */
  .boton-superior-derecha {
    margin: -1rem 0 1rem;
  }
}

/* 2) Móviles pequeños */
@media (max-width: 480px) {
  /* Hero: título más pequeño */
  .hero-texto h2 {
    font-size: 1.6rem;
  }
  /* Menú: reduce gap */
  .barradenavegacion ul {
    gap: 0.5rem;
  }
  /* Pilares: apilar uno arriba de otro */
  .contenedor-pilares {
    flex-direction: column;
    padding: 0.5rem 2.5rem;
  }
  /* Servicios: apilar en columna */
  .servicios-cajas {
    flex-direction: column;
    padding: 0 1rem;
  }
  /* Quiénes somos: apilar logo y texto */
  .contenido-quienes {
    flex-direction: column;
    padding: 1rem 0;
  }
}
/* Separadores verticales entre ítems del menú */
.barradenavegacion ul li {
  position: relative;           /* Para posicionar el separador */
  padding: 0 1rem;              /* Espacio a izquierda/derecha */
}

.barradenavegacion ul li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 1px;                   /* Grosor de la línea */
  height: 2.5rem;               /* Altura de la línea */
  background-color: #00aaff;    /* Celeste */
}
/* ================================
   Responsive ajustes adicionales
================================= */
/* Para tabletas y móviles */
@media (max-width: 768px) {
  /* Oculta el botón “Agenda una llamada” superior */
  .boton-superior-derecha {
    display: none;
  }

  /* Alinea la imagen de la plataforma a la izquierda */
  .hero-imagenes {
    justify-content: flex-start;
    padding: -2rem;
    margin: 1rem;
  }
  .hero-imagenes img {
    margin-left: 30%;/* opcional: corrige si aún hay un poco de padding residual */
  }
}

/* Si quieres que sólo desaparezca en móviles más pequeños */
@media (max-width: 480px) {
  .boton-superior-derecha {
    display: none;
  }
  .hero-imagenes {
    justify-content: flex-start;
    margin-left: 0;
  }
}
@media (max-width: 768px) {
  .logo {
    margin-left: 1rem;
  }
}


