* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Prompt', sans-serif;
    color: #fff;
    background-color: #0c2c56;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Anton', sans-serif;
    color: #fff !important;
    letter-spacing: 1px;
    margin-bottom: 0rem !important;
}

p, li {
    font-size: 17px;
    font-family: 'Prompt', sans-serif;
}

#slogan {
    font-style: italic;
}

#text-2-somos {
    margin-top: 40px;
}

#text-1 {
    margin-top: 30px;
}

.text {
    text-align: justify;
}

#section-about {
    padding: 0px 20px;
}

.row {
    --bs-gutter-x: 0rem !important;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.header {
    background: #b7b8b8;
    text-align: center;
    padding: 40px 20px;
}

.header .logo {
    width: 38%;
    margin-bottom: 15px;
}

.text-nrtec {
    color: #424241;
    background-color: white;
    padding: 3% 12%;
}

.subtitle {
    font-size: 20px;
    letter-spacing: 0.75px;
    font-weight: 500;
    margin-bottom: 0px;
}

.about .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.platform .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

hr {
    border-top: 5px solid #0b2a54 !important;
    opacity: 1 !important;
}

.about h2 span {
    font-size: 60px;
    color: #2a81c9;
}

.text-span {
    color: #f86d18;
    font-weight: 600;
}

.text-span-important {
    font-size: 20px;
    font-family: 'Anton', sans-serif;
    letter-spacing: 1px;
}

.text-span-blanco {
    font-weight: 600;
}

.about ul {
    list-style: none;
    margin-top: 10px;
}

.about ul li::before {
    content: "✔️ ";
    color: #f86d18;
}

.section-somos {
    background-color: white;
    color: black;
}

#div-image-nfc {
    width: 100%;
    height: 580px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 58px;
}

#nfc {
    padding: 0px;
    width: 85%;
}

.image img {
    width: 100%;
    padding: 50px;
}

#np {
    float: inline-end;
}

#sae {
    margin-top: 22%;
}

.sae-text {
    padding: 50px;
    color: white;
}

.platform {
    background-color: #424241;
    text-align: center;
}

.info {
    background-color: #ced3d5;
}

.cuadro-title {
    background-color: #545454;
    width: 340px;
    padding: 10px;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.cuadro-title-blanco-contacto {
    background-color: white;
    width: 340px;
    padding: 10px;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.cuadro-title-azul2 {
    background-color: #2d6aa2;
    width: 340px;
    padding: 10px;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.cuadro-title-blanco {
    background-color: white;
    width: 340px;
    padding: 10px;
    margin-bottom: -55px;
    float: inline-end;
}

.cuadro-title-naranja-izq {
    background-color: #f86d18;
    width: 340px;
    padding: 10px;
    margin: 50px 50px 30px 50px;
    float: inline-end;
}

.cuadro-title-naranja {
    background-color: #f86d18;
    width: 340px;
    padding: 10px;
    margin: 30px 0px;
}

#cuadro-title-blanco-servicios {
    background-color: #545454;
    width: 340px;
    padding: 10px;
    /* margin: 50px 50px 30px 50px; */
}

.text-color-azul {
    color: black !important;
}

.text-color-blanco {
  color: white;
}

.products {
    background-color: white;
    padding: 100px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    text-align: center;
}

.product img {
    width: 250px;
    margin-bottom: 10px;
}

.services {
    text-align: center;
}

.projects {
    background-color: #f86d18;
    text-align: center;
}

#container-somos {
    padding: 0 5%;
}

#container-project {
    padding: 3% 0;
}

.row-top{
  padding-top: 3%;
}

.row-bottom {
  padding-bottom: 3%;
}

#img-servicios {
    width: 30%;
}

.servicios {
    width: 80%;
}

.text-gris {
  color: #b7b8b8;
  padding: 7px;
}

.text-negro {
  font-size: 16px;
  margin-bottom: 15%;
}

#img-25 {
    width: 95%;
}

#mapa {
    width: 80%;
}

.text-nosotros {
  font-size: 21px;
}

.footer a {
    color: #8ce0f9;
    text-decoration: none;
}

#contacto1 {
    background-color: white;
    padding: 3% 5%;
}

#contacto2 {
    background-color: #424241;
    color: white;
    padding: 3% 5%;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.product {
  position: relative;
  height: 210px;
  cursor: pointer;
  z-index: 1;
}

.product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product:hover img {
  transform: scale(1.1);
}

#prepago {
    margin-top: 4%;
}

/* Tooltip */
.tooltip {
  position: absolute;
  bottom: 100%; 
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 10px 15px;
  border-radius: 10px;
  white-space: nowrap;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1000; 
  max-width: 475px;   /* ancho máximo */
  min-width: 405px;   /* ancho mínimo opcional */
  white-space: normal; /* permite que el texto haga salto de línea */
  word-wrap: break-word;
}

/* Flecha del tooltip */
.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

/* Mostrar tooltip al pasar el cursor */
.product:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}


/* Tablets (pantallas de hasta 1024px de ancho) */
@media (max-width: 1024px) {
  .header .logo {
    width: 50%;
  }

  p, li {
    font-size: 16px;
  }

  #img-servicios {
    width: 50%;
  }

  .text-span-important {
    font-size: 19px;
  }

  .image img {
    padding: 30px;
  }

  #div-image-nfc {
    margin-left: 0px !important;
  }

  .text-nosotros {
    font-size: 20px;
  }
}

/* Celulares (pantallas de hasta 768px de ancho) */
@media (max-width: 768px) {
  .header .logo {
    width: 70%;
  }

  #img-servicios {
    width: 70%;
  }

  p, li {
    font-size: 15px;
  }

  .text-span-important {
    font-size: 18px;
  }

  .product {
    width: 180px;
    height: 180px;
  }

  .image img {
    padding: 15px;
  }

  #div-image-nfc {
    margin-left: 0px !important;
  }

  .text-nosotros {
    font-size: 19px;
  }
}

/* Celulares pequeños (pantallas de hasta 480px de ancho) */
@media (max-width: 400px) {
  .header .logo {
    width: 90%;
  }

  #img-servicios {
    width: 90%;
  }

  p, li {
    font-size: 15px;
  }

  .text-span-important {
    font-size: 18px;
  }

  .image img {
    padding: 8px;
  }

  #div-image-nfc {
    margin-left: 0px !important;
  }

  .text-nosotros {
    font-size: 18px;
  }
}