body {
  margin: 0;
  overflow-x: hidden; /* evita el scroll horizontal si algo se escapa */
}

/* Wrapper general */
.empresa-wrapper {
  background-color: #f5f5f5;
  padding: 50px 0;
}

/* Contenedor principal */
.empresa-container {
  display: flex;
  max-width: 1242px;
  width: 100%;
  height: 394px;
  margin: 0 auto;
  padding: 0 32px;
  gap: 32px;
  border-radius: 8px;
  background-color: #f5f5f5;
  box-sizing: border-box;
}

/* Columna de texto */
.empresa-texto {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 9px;
  gap: 16px;
  text-align: left;
}

/* Título */
.empresa-titulo {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 40px;
  color: #172F58;
  margin: 0;
  max-width: 514px;
}

/* Descripción */
.empresa-descripcion {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  color: #172F58;
  margin: 0;
  max-width: 514px;
}

/* Columna de imagen */
.empresa-imagen {
  flex: 1;
  height: 394px;
  border-radius: 16px;
  background: linear-gradient(151.35deg, rgba(36, 12, 128, 0.1) -19.4%, #082152 94.09%),
              url("multimedia/BancodeImagenesWeb/pexels-visual-tag-mx-1321732-2566581.jpg") center/cover no-repeat;
}

/* Servicios wrapper */
.empresa-servicios-wrapper {
  max-width: 1356px;
  width: 100%;
  background: #FFFFFF;
  padding-top: 87px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

/* Servicios container */
.empresa-servicios-container {
  max-width: 1115px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Título servicios */
.empresa-servicios-titulo {
  font-family: 'Manrope', sans-serif;
  font-size: 52px;
  font-weight: 600;
  line-height: 48px;
  color: #172F58;
  margin: 0;
  max-width: 768px;
}

/* Cajas de servicios */
.empresa-servicios-cajas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

/* Caja individual */
.empresa-servicio-caja {
  width: calc(33.333% - 10.66px); /* 3 columnas con espacio */
  min-width: 300px;
  height: 344px;
  background: #FFFFFF;
  border: 1px solid #102851;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Contenido interno de caja */
.empresa-servicio-interno {
  width: 100%;
  max-width: 313px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* Ícono */
.empresa-servicio-icono,
.empresa-servicio-imagen img {
  width: 48px;
  height: 48px;
  font-size: 48px;
  color: #172F58;
  object-fit: contain;
  margin-bottom: 12px;
  display: block;
}

/* Texto del servicio */
.empresa-servicio-texto,
.empresa-servicio-texto-beneficio {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Nombre del servicio */
.empresa-servicio-nombre {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 40px;
  color: #172F58;
  margin: 0;
}

/* Descripción del servicio */
.empresa-servicio-descripcion {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #172F58;
  margin: 0;
}



@media screen and (max-width: 768px) {
  .empresa-container {
    flex-direction: column;
    height: auto;
    padding: 0 16px;
    gap: 24px;
  }

  .empresa-texto,
  .empresa-imagen {
    width: 100%;
    height: auto;
    align-items: center;
    text-align: center;
    padding: 0;
  }

  .empresa-titulo,
  .empresa-descripcion {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .empresa-titulo {
    font-size: 24px;
    line-height: 32px;
  }

  .empresa-descripcion {
    font-size: 16px;
    line-height: 24px;
  }

  .empresa-servicios-wrapper {
    padding-top: 50px;
  }

  .empresa-servicios-titulo {
    font-size: 28px;
    line-height: 36px;
    width: 100%;
    text-align: center;
  }

  .empresa-servicios-cajas {
    flex-direction: column;
    align-items: center;
  }

  .empresa-servicio-caja {
    width: 100%;
    max-width: 340px;
    height: auto;
  }

  .empresa-servicio-interno {
    width: 100%;
    height: auto;
    align-items: center;
    text-align: center;
  }

  .empresa-servicio-texto,
  .empresa-servicio-texto-beneficio {
    width: 100%;
    height: auto;
    gap: 16px;
  }

  .empresa-servicio-nombre {
    font-size: 20px;
    line-height: 28px;
    height: auto;
  }

  .empresa-servicio-descripcion {
    font-size: 14px;
    line-height: 20px;
  }
}



/* Estilos generales */
.contenedor-general {
  background-image: url("multimedia/FigurasPAS/A.1.png");
  background-size: cover;
  background-position: center;
  border-radius: 100px;
  font-family: 'Manrope', sans-serif;
  text-align: center;
  width: 100%;
  height: 100%;
  margin-top: 0;
  padding-top: 0;
}


/* Cajas individuales */
.caja {
  background-color: white;
  padding: 24px; /* Padding/Layout/s */
  gap: 8px; /* Padding/Button/xs */
  border-radius: 8px; /* Border/xs */
  border: 1px solid #102851; /* Stroke/Border Width */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}

/* Icono de cada caja */
.icono {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

/* Título de cada caja */
.caja h2 {
  width: 80%;
  height: 40px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 2rem;
  line-height: 40px;
  color: #172F58;
  margin: 0;
}

/* Texto */
.caja p {
  color: #172F58;
  line-height: 1.6;
  font-size: 1rem;
  padding-top: 30px;
}


.caja p.caja-p2 {
  color: #172F58;
  line-height: 1.6;
  font-size: 1rem;
  padding-top: 0px;
}

.boton-cotizar:hover {
  background-color: #001d3d;
}


/* Nuevo bloque contenedor general de todo */
.bloque-productos {
  text-align: center;
  margin-top: 100px;
}




.contenedor-productos {
  display: flex;
  justify-content: space-between; /* Separa las columnas */
  padding: 10px 0;
  margin: auto;
  max-width: 1200px;
  width: 99%;
}

.columna {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 32%;
}






.responsabilidad-civil {
  max-width: 330px;
  height: 363px;
}

.flota-vehiculos {
  max-width: 330px;
  height: 321px;
}

.art {
  max-width: 330px;
  height: 270px;
}

.transporte-mercaderia {
  max-width: 330px;
  height: 417px;
}

.todo-riesgo {
  max-width: 330px;
  height: 321px;
}

.cauciones {
  max-width: 330px;
  height: 365px;
}


/* Botón Cotizar dentro del fondo azul */
.boton-cotizar {
  padding: 15px 30px;
  font-size: 1.5rem;
  font-weight: 600;
  background-color: #24336F;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 977px;
  height: 34px;
  text-decoration: none;
  display: block;
  margin: 60px auto 80px auto; /* separación con cajas y fondo */
}

.titulo {
  font-size: 3rem;
  font-weight: 300;
  color: #172F58;

}
@media (min-width: 768px) and (max-width: 1024px) {
  .caja h2{
    font-size: 23px;
  }
  .icono{
    width: 36px;
    height: 36px;
  }

}
/* Adaptación responsive para pantallas menores a 768px */
@media (max-width: 768px) {
  .contenedor-productos {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 24px;
  }

  .columna {
    width: 100%;
    align-items: center;
  }

  .caja {
    width: 90%;
    max-width: 400px;
  }

  .boton-cotizar {
    width: 90%;
    max-width: 400px;
    font-size: 1.2rem;
    height: auto;
    padding: 12px 20px;
  }

  .titulo {
    font-size: 2rem;
    padding: 0 20px;
  }

  .caja h2 {
    width: 100%;
    font-size: 1.5rem;
    text-align: center;
  }

  .caja p, .caja p.caja-p2 {
    font-size: 1rem;
    text-align: center;
  }

  .icono {
    margin: 0 auto 16px auto;
  }

  .bloque-productos {
    margin-top: 0;
    padding-top: 40px;
  }
}
