/* Tipografía principal */
body {
  font-family: 'Inter', sans-serif;
  color: #212529;
  font-size: 18px;
}

/* Ancho uniforme en secciones */
.fixed-width {
  max-width: 60vw;
  margin-inline: auto;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(rgb(255 255 255 / 85%), rgb(255 255 255 / 85%)),
              url('images/hero-bg.jpg') no-repeat center center / cover;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

section[id^=section-] {
  margin-top: 5rem;
  margin-bottom:5rem;
}

#section-1 {margin-bottom:0!important; padding-bottom: 0!important;}
#section-2 {margin-top:3rem!important; padding-top: 0!important;}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 60px);
  font-weight: 700;
}

.hero p.lead {
  font-size: 1.25rem;
  color: #333;
}

.hero .btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
}

.hero .btn-primary {
  background-color: #233195;
  border-color: #233195;
  color: #fff;
  box-shadow: inset 0 0 0 0 transparent;
  transition: all 0.15s ease-in-out;
}

.hero .btn-primary:hover,
.hero .btn-primary:focus {
  background-color: #1c287a;
  border-color: #1c287a;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.25);
  transform: translateY(1px);
}

.hero .btn-primary:active {
  background-color: #1a2366 !important;
  border-color: #1a2366 !important;
  box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.35) !important;
  transform: translateY(2px);
}

/* SECCIÓN SERVICIO */
.servicio h2 {
  font-size: 2rem;
  color: #212529;
}

.servicio .bg-primary {
  background-color: #233195 !important;
}

.servicio img {
  object-fit: cover;
  width: 100%;
  height: auto;
}

/* Igualar altura de imágenes */
.img-wrapper {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.img-wrapper img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .image-grid .row > div {
    height: 240px;
  }
}

/* LIGHTBOX OVERLAY */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #fff;
  color: #333;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25em 0.6em;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

/* Miniaturas y navegación */
.lightbox-thumbs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.lightbox-thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lightbox-thumbs .thumb {
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.lightbox-thumbs .thumb.active,
.lightbox-thumbs .thumb:hover {
  opacity: 1;
  border-color: #fff;
}
/* Ajuste de altura armónica y simetría visual */
#section-2.servicio .altura-img {
  height: 400px;
  object-fit: none;
  display: block;
  margin-inline: auto;
  width: auto;
  max-width: 100%;
}

#section-2.servicio .equal-height-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

#section-2 .bg-primary {
  height: 200px;
}

#section-2.servicio .order-2 .altura-img{
  object-fit: cover;
}

@media (max-width: 767px) {
  #section-2.servicio .altura-img {
    height: auto;
    object-fit: cover;
  }

  #section-2 .bg-primary {
    height: auto;
}
}

.seccion-suministros {
  background: linear-gradient(rgb(255 255 255 / 85%), rgb(255 255 255 / 85%)),
              url('images/hero-bg.jpg') no-repeat center center / cover;
  color: #212529;
}

.seccion-suministros .subtitulo {
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.seccion-suministros .descripcion {
  font-size: 1rem;
  margin-top: 0.25rem;
}

.seccion-suministros .row > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Sección de Climatización Especializada */
.climatizacion h2 {
  font-size: 2rem;
  color: #212529;
}

.flecha {
  position: relative;
  height: 72px;
  color: white;
  text-align: center;
  margin-bottom: 1rem;
  padding: 0;
}

.flecha svg {
  display: block;
  margin: 0 auto;
  height: 100%;
  z-index: 0;
}

.flecha .contenido {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.flecha .icono svg {
  width: 27px;
  height: 27px;
  fill: white;
}

.flecha-texto {
  text-align: center;
}

.flecha-texto h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  color: #212529;
}

.flecha-texto p {
  font-size: 0.95rem;
  color: #444;
}


/* Sección de Experiencia y Trayectoria */
.trayectoria h2 {
  font-size: 2rem;
  color: #212529;
}

.trayectoria img {
  border-radius:10px;
}

.timeline {
  position: relative;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-content: flex-start;
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 15px;
  padding-bottom: 15px;
}

.timeline-item:before {
  content: '';
  position: absolute;
  left: -18px;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: rgb(181, 194, 226);
  z-index: 0;
}

#section-5 .icono {
  position: absolute;
  left: -35px;
  top: 10px;
  background-color: rgb(207, 220, 252);
  border-radius: 25%;
  padding: 5px;
  z-index: 1;
  border: 1px solid rgb(181, 194, 226);
}

#section-5 .icono svg {
  width: 27px;
  height: 27px;
  fill: rgb(39, 37, 37);
}

.timeline-content {
  padding-left: 80px;
  z-index: -1000;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
}

.timeline-content:before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  width: 10%;
  height: 2px;
  background-color: rgb(181, 194, 226);
}

.timeline-content h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: #444;
  font-size: 1rem;
}

#section-5 .order-1 {
  text-align: center;
}

@media (max-width: 768px) {
  .timeline {
    padding-left: 0;
  }
  .timeline-item {
    margin-bottom: 20px;
  }
  .timeline-item:before {
    display: none;
  }
  .timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #section-5 .icono {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 15px;
  }
  .timeline-content {
    padding-left: 0;
    text-align: center;
  }
  .timeline-content:before {
    display: none;
  }
}

/* Sección de Contratos Públicos y Convenios Internacionales */
.contratos-publicos {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.titulo-seccion {
  font-size: 2.5rem;
  color: #212529;
  font-weight: bold;
  margin-bottom: 3rem;
}

.row-cols-1, .row-cols-md-2, .row-cols-lg-3 {
  display: flex;
  justify-content: space-between;
}


.contenedor-izquierdo, .contenedor-derecho {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    height: 300px;
}

.contenedor-derecho .texto{
  text-align: left;
}

.texto {
  margin-bottom: 1.5rem;
  text-align: right; /* Para contenedor izquierdo: texto alineado a la derecha */
}

.texto h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #212529;
}

.texto p {
  font-size: 1rem;
  color: #555;
}

.contenedor-grafico {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.cuadro {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.cuadro:hover {
  transform: translateY(-10px);
}


#section-6 .icono svg {
  width: 40px;
  height: 40px;
  fill: #fff;
}

.cuadro h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333;
}

.cuadro p {
  font-size: 1rem;
  color: #555;
}

/* Responsividad */
@media (max-width: 768px) {
  .row-cols-md-2 {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .cuadro {
    width: 100%;
    height: auto;
  }

  #section-6 .icono {
    width: 60px;
    height: 60px;
    padding: 15px;
  }

  #section-6 .icono svg {
    width: 30px;
    height: 30px;
  }

  .cuadro h3 {
    font-size: 1.2rem;
  }

  .cuadro p {
    font-size: 0.9rem;
  }
}



.grafico-flor {
  width: 300px;
  height: 300px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  column-gap: 5px;
  row-gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

.petalo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.petalo.manos {
  background-color: #FF0000;
  top: 0;
  left: 0;
  border-bottom-right-radius: 0;
}
.petalo.dinero {
  background-color: white;
  border: 1px solid #333;
  top: 0;
  right: 0;
  border-bottom-left-radius: 0;
}

.petalo.lupa {
  background-color: white;
  border: 1px solid #333;
  bottom: 0;
  left: 0;
  border-top-right-radius: 0;
}
.petalo.certificado {
  background-color: #0C3EC0;
  border: 1px solid #333;
  bottom: 0;
  right: 0;
  border-top-left-radius: 0;
}


.icono svg {
  width: 40px;
  height: 40px;
  fill: #fff;
}

.manos path, .certificado path{
  fill: #fff;
}

@media (max-width: 768px) {
  .grafico-flor {
    width: 245px;
    height: 245px;
    margin: 0 auto;
  }

  .petalo {
    width: 120px;
    height: 120px;
  }

  .icono svg {
    width: 30px;
    height: 30px;
  }

  .contratos-publicos .col-md-4{
    margin-top:1rem;
    margin-bottom:1rem;
  }
}


/* Sección de Tecnología y Precisión en Procesos Industriales */
.tecnologia {
  background: linear-gradient(rgb(255 255 255 / 50%), rgb(255 255 255 / 50%)),
              url('images/hero-bg.jpg') no-repeat center center / cover;
  padding: 5rem 0;
  color: #fff;
}

.tecnologia .container {
  position: relative;
  z-index: 1;
}

.tecnologia .container, .casos-exito .container {
  background-color: rgba(255, 255, 255); 
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tecnologia h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #212529;
  margin-bottom: 1.5rem;
}

.tecnologia p, .tecnologia h3 {
  font-size: 1.2rem;
  color: #333;
}

.tecnologia ul {
  font-size: 1rem;
  color: #333;
  margin-left: 20px;
}

.tecnologia .col-md-6 {
  align-items: center;
  display: flex;
  justify-content: center;
  align-content: center;
}

.tecnologia .imagen img {
  width: 100%;
  border-radius: 10px;
}

.tecnologia .texto{
  text-align: left;;
}

/* Diseño responsivo */
@media (max-width: 768px) {
  .tecnologia .container {
    padding: 2rem;
  }

  .tecnologia h2 {
    font-size: 2rem;
  }

  .tecnologia p, .tecnologia h3 {
    font-size: 1rem;
  }

  .tecnologia ul {
    font-size: 0.9rem;
  }

  .tecnologia .imagen img {
    width: 100%;
    height: auto;
  }
}

/* Sección Casos de Éxito */
.casos-exito {
  background-color: #f1f1f1; /* Fondo gris claro */
  padding: 5rem 0;
}

.casos-exito .container {
  position: relative;
}

.casos-exito h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #212529;
  margin-bottom: 2rem;
}

.logo .img{
  text-align: center;
  margin-bottom: 2rem;
  /*width: 200px;
  height: 200px;*/
}

.logo img {
  width: 100%;
  height:100%;
  transition: 0.3s ease-in-out;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.casos-exito .row {
  width: 100%;
  display: flex;
  justify-content: space-around;
}



.col-6.col-md-2.logo {
  display: flex
;
  flex-direction: column;
  align-items: center;
}

.logo p {
  font-weight: bold;
  text-align: center;
  font-size: 20px;
}

/* Responsividad: Disposición en una sola columna en pantallas pequeñas */
@media (max-width: 768px) {


  .logo {
    margin-bottom: 1.5rem;
  }

  .logo img {
    max-width: 100%;
    width: auto;
    height: auto;
  }
}

/* Sección de Contacto */
.contacto {
  background-color: #fff;
  padding: 3rem 0;
}

.contacto .titulo-seccion {
  font-size: 2.5rem;
  font-weight: bold;
  color: #212529;
  margin-bottom: 2rem;
}

.acordeon {
  margin-top: 2rem;
}

.pregunta {
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}

.boton-pregunta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background: none;
  border: none;
  width: 100%;
  padding: 1rem;
  text-align: left;
  font-size: 1.2rem;
  color: #212529;
  cursor: pointer;
}

.triangulo {
  margin-right: 1rem;
}

.triangulo svg {
  width: 18px;
  height: 18px;
  fill: #212529; /* Color del triángulo */
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

.flecha {
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.respuesta {
  display: none;
  padding: 0 1rem;
  font-size: 1rem;
  color: #444;
}



/* Efecto de rotación de la flecha */
.boton-pregunta[aria-expanded="true"] .flecha {
  transform: rotate(180deg);
}

/* Estilo cuando se muestra la respuesta */
.boton-pregunta[aria-expanded="true"] + .respuesta {
  display: block;
}

@media (max-width: 768px) {
  .fixed-width {
    max-width: 95vw;
    margin-inline: auto;
  }
  .boton-pregunta {
    font-size: 1rem;
  }

  .flecha {
    height: auto;
  }

  .flecha svg {
    height: 72px;
  }

  section h2 {
    text-align: center;
}


#section-6 .texto {
  text-align: left;
}

.contenedor-izquierdo, .contenedor-derecho {
  display: block;
  height: auto;
}
section[id^=section-] {
  margin-top: 1.5rem;
  margin-bottom:1.5rem;
}
}
