@import url("https://fonts.googleapis.com/css2?family=Alata&display=swap");

:root {
  --color_primario: #6495ed;
  --color_primario_suave: #add8e6;
  --color_blanco: #fff;
  --altura_header: 80px;
  --padding_left_rigth: 2rem;
  --ancho_maximo: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #fff;
  font-family: "Alata", sans-serif;
}

/*============ AUTOMATIZACIÓN ============*/
.automatizacion {
  text-align: justify;
  position: relative;
  padding: 20px;
  background: url("/img/domotica.webp") no-repeat center center;
  background-size: cover;
}

.automatizacion::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}
.automatizacion h3 {
  text-align: center;
  font-size: 25px;
}
.automatizacion p {
  font-size: 20px;
}

.automatizacion .container {
  position: relative;
  z-index: 1; /* Asegura que el contenido esté por encima del fondo */
  width: 90%;
  margin: 10px auto;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 10px;
  border-radius: 10px;
}

.automatizacion .title h1 {
  text-align: center;
  font-size: 56px;
  color: #ffffff;
  font-weight: bold;
  user-select: none; /* Hace que el texto no sea seleccionable */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Sombra con desplazamiento horizontal de 2px, desplazamiento vertical de 2px, desenfoque de 4px y color RGBA (negro con transparencia) */
}

.automatizacion .image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.automatizacion .image-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer; /* Cambiamos el cursor a pointer para indicar que es clickeable */
}

.automatizacion .image-item img {
  width: 100%;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.automatizacion .image-item:hover img {
  transform: scale(1.1);
}

.automatizacion .image-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 10px;
  transition: opacity 0.3s ease;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.automatizacion .image-text p {
  margin: 20px;
}

.automatizacion .image-item.clicked .image-text {
  opacity: 1;
}

.more-info-btn {
  display: block; /* Aseguramos que el botón esté visible en todas las pantallas */
  font-size: 24px;
  padding: 5px 10px;
  border: none;
  border-radius: 10px;
  max-width: 200px;
  margin: 10px auto; /* Centramos el botón */
  background-color: #6495ed;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.more-info-btn:hover {
  background-color: #add8e6; /* Cambio de color de fondo en hover */
}

/* Media queries para ajustar el diseño en dispositivos móviles */
@media (max-width: 900px) {
  .automatizacion .image-grid {
    grid-template-columns: 1fr;
  }
  .automatizacion h2 {
    display: none;
  }
  .automatizacion .image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }

  .automatizacion .image-item img {
    width: 100%;
  }

  .automatizacion .image-text {
    position: static;
    opacity: 1;
    background-color: var(--color_primario_suave);
    color: black;
    padding: 10px;
    margin-top: 10px;
    width: 100%;
  }

  .more-info-btn {
    display: block;
    margin: 10px auto;
  }
  .automatizacion .title h1 {
    font-size: 2em;
  }
}

/*========= ENLACE CATALOGO =========*/
.catalog {
  background-color: var(--color_primario);
  text-align: center;
  margin: 0;
  padding: 20px;
}
.catalog h2 {
  font-size: 30px;
  color: #fff;
}
.catalog a {
  text-decoration: none;
}
.catalog button {
  font-family: "Alata", sans-serif;
  display: block;
  font-size: 24px;
  font-weight: bold;
  padding: 5px 5px;
  border: none;
  border-radius: 10px;
  max-width: 200px;
  margin: 10px auto; /* Centramos el botón */
  background-color: #ffffff;
  color: #000000;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}
.catalog button:hover {
  background-color: #e0e0e0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.917);
}

/*========= MANTENIMIENTO DE EQUIPOS =========*/
.titlemantenimiento h1 {
  background-color: #6495ed;
  color: #fff;
  text-align: center;
  padding: 50px;
  font-size: 2.5em;
}
.mantenimiento {
  background: linear-gradient(
      to top,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0.8)
    ),
    url("/img/mantenimiento_de_computadores.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: auto;
  color: #000000;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 20px;
  user-select: none;
}

.card {
  width: 400px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}
.card:hover {
  background-color: #e0e0e0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.917);
  cursor: pointer;
}
.card img {
  width: 200px;
  height: 200px; /* Utiliza la propiedad 'auto' para mantener la proporción */
  border-radius: 50%;
  margin-top: 20px;
}

.card h2 {
  color: #333;
  margin-top: 10px; /* Agrega un pequeño margen superior */
}

.card p {
  color: #666;
  font-size: 1.3em;
  padding: 20px 20px;
  text-align: justify;
}

.mantenimiento button {
  margin-bottom: 100px;
}
@media (max-width: 900px) {
  .titlemantenimiento h1 {
    background-color: #6495ed;
    color: #fff;
    text-align: center;
    padding: 50px;
    font-size: 1.8em;
  }
  .mantenimiento button {
    margin-bottom: 120px;
  }
}

/*========= contactanos ===========*/

.contacto {
  background-color: #333;
  width: 100%;
  padding: 20px 0; /* Añade padding para un poco de espacio vertical */
  box-sizing: border-box;
}

.contacto-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contacto a {
  font-size: 2.5rem;
  color: var(--color_primario);
  text-decoration: none;
  text-align: center;
  margin: 0; /* Elimina márgenes exteriores */
  padding: 10px 20px; /* Añade padding para espacio interno */
  transition: transform 0.3s, color 0.3s; /* Agrega transiciones para suavizar los cambios */
}

.contacto a:hover {
  color: var(
    --color_primario_suave
  ); /* Cambia el color al color primario suave al pasar el mouse */
  transform: scale(1.1); /* Aplica un ligero zoom al pasar el mouse */
}

.contacto i {
  margin-right: 10px; /* Añade un margen a la derecha del icono */
}

/* Estilos para pantallas pequeñas */
@media (max-width: 600px) {
  .contacto a {
    font-size: 2rem; /* Ajusta el tamaño de fuente para pantallas más pequeñas */
    padding: 8px 16px; /* Ajusta el padding para pantallas más pequeñas */
  }

  .contacto i {
    margin-right: 5px; /* Ajusta el margen para el icono en pantallas más pequeñas */
  }
}

/*========= CAMARAS DE SEGURIDAD ===========*/

.camaras-header header {
  text-align: center;
  background-color: #333;
  color: white;
  padding: 1rem 0;
}
.camaras-header header h1 {
  font-size: 40px;
}
.camaras-header header p {
  font-size: 25px;
}

.camaras-de-seguridad {
  background: linear-gradient(
      to top,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0.8)
    ),
    url("/img/camaras-de-seguridad-bogota-2.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: auto;
  color: #000000;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 20px; /* Ajuste de padding para proporcionar espacio interior */
  box-sizing: border-box;
  text-align: center; /* Asegura que el texto esté centrado */
}

.camaras-de-seguridad h2 {
  font-size: 35px;
  margin: 50px;
}
.camaras-de-seguridad p {
  font-size: 25px;
  margin: 50px;
  text-align: justify;
}
.camaras-container {
  max-width: 800px;
  margin: 20px auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Añade una sombra */
}
h2 {
  text-align: center;
  margin-bottom: 20px;
}
table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #ddd;
}
th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
th {
  background-color: #f2f2f2;
}
@media (max-width: 728px) {
  .camaras-de-seguridad h2,
  .camaras-de-seguridad p {
    font-size: 20px;
    margin: 20px;
  }

  .camaras-container {
    width: 100%;
    padding: 10px;
  }

  table,
  th,
  td {
    font-size: 14px;
  }
}

@media (max-width: 300px) {
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead tr {
    display: none;
  }

  tr {
    margin-bottom: 15px;
  }

  td {
    text-align: right;
    padding-left: 50%;
    position: relative;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
  }
}

/*========= ALARMAS DE SEGURIDAD ===========*/

.alarmas-header header {
  text-align: center;
  background-color: #333;
  color: white;
  padding: 1rem 0;
}
.alarmas-header header h1 {
  font-size: 40px;
}
.alarmas-header header p {
  font-size: 25px;
}

.alarmas-de-seguridad {
  background: linear-gradient(
      to top,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0.8)
    ),
    url("/img/alarma.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: auto;
  color: #000000;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}

.alarmas-de-seguridad h2 {
  font-size: 35px;
  margin: 50px;
}
.alarmas-de-seguridad p {
  font-size: 25px;
  margin: 50px;
  text-align: justify;
}
.alarmas-container {
  max-width: 800px;
  margin: 20px auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Añade una sombra */
}
h2 {
  text-align: center;
  margin-bottom: 20px;
}
table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #ddd;
}
th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
th {
  background-color: #f2f2f2;
}
@media (max-width: 728px) {
  .alarmas-de-seguridad h2,
  .alarmas-de-seguridad p {
    font-size: 20px;
    margin: 20px;
  }

  .alarmas-container {
    width: 100%;
    padding: 10px;
  }

  table,
  th,
  td {
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead tr {
    display: none;
  }

  tr {
    margin-bottom: 15px;
  }

  td {
    text-align: right;
    padding-left: 50%;
    position: relative;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
  }
}

/*========= CABLEADO ===========*/

.cable-header header {
  text-align: center;
  background-color: #333;
  color: white;
  padding: 1rem 0;
}
.cable-header header h1 {
  font-size: 40px;
}
.cable-header header p {
  font-size: 25px;
}

.cable-de-seguridad {
  background: linear-gradient(
      to top,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0.8)
    ),
    url("/img/cableado-estructurado.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: auto;
  color: #000000;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}

.cable-de-seguridad h2 {
  font-size: 35px;
  margin: 50px;
}
.cable-de-seguridad h4 {
  font-size: 30px;
  margin: 50px;
}

.cable-de-seguridad p {
  font-size: 25px;
  margin: 50px;
  text-align: justify;
}
@media (max-width: 728px) {
  .cable-de-seguridad img {
    width: 80%;
    border-radius: 10px;
  }
  .cable-de-seguridad p {
    margin: 10px;
  }
}

/*========= DATACENTER ===========*/

.data-header header {
  text-align: center;
  background-color: #333;
  color: white;
  padding: 1rem 0;
}
.data-header header h1 {
  font-size: 40px;
}
.data-header header p {
  font-size: 25px;
}

.data-de-seguridad {
  background: linear-gradient(
      to top,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0.8)
    ),
    url("/img/datacenter.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: auto;
  color: #000000;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}

.data-de-seguridad h2 {
  font-size: 35px;
  margin: 50px;
}
.data-de-seguridad h3 {
  font-size: 30px;
  margin: 50px;
}

.data-de-seguridad p {
  font-size: 25px;
  margin: 50px;
  text-align: justify;
}
.data-de-seguridad img {
  border-radius: 20px;
}
@media (max-width: 728px) {
  .data-de-seguridad img {
    width: 80%;
    border-radius: 10px;
  }
  .data-de-seguridad p {
    margin: 10px;
  }
}

/*========= INTEGRACIÓN COMERCIAL =========*/

.presentacion {
  background-color: #333;
  color: #fff;
  padding: 20px 50px;
}
.presentacion p {
  font-size: 25px;
}
.presentacion p strong {
  font-size: 30px;
}
.titleintegra h1 {
  background-color: #6495ed;
  color: #fff;
  text-align: center;
  padding: 50px;
  font-size: 2.5em;
}
.integra {
  background: linear-gradient(
      to top,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0.8)
    ),
    url("/img/seguridad-comercial.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: auto;
  color: #000000;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 20px;
  user-select: none;
}

.card {
  width: 400px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}
.card:hover {
  background-color: #e0e0e0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.917);
  cursor: pointer;
}
.card img {
  width: 300px;
  height: 200px; /* Utiliza la propiedad 'auto' para mantener la proporción */
  border-radius: 20px;
  margin-top: 20px;
}

.card h2 {
  color: #333;
  margin-top: 10px; /* Agrega un pequeño margen superior */
}

.card p {
  color: #666;
  font-size: 1.3em;
  padding: 20px 20px;
  text-align: justify;
}

.integra button {
  margin-bottom: 100px;
}
@media (max-width: 900px) {
  .titleintegra h1 {
    background-color: #6495ed;
    color: #fff;
    text-align: center;
    padding: 50px;
    font-size: 1.8em;
  }
  .integra button {
    margin-bottom: 120px;
  }
  .presentacion {
    text-align: justify;
    padding: 10px 20px;
  }
}
