/* Variables CSS */
:root {
  --primary-color: #d51616;
  --secondary-color: #bf5a5a;
  --accent-color: #f49f1c;
  --light-gray: lightgray;
  --white: #fff;
  --black: #000;
  --footer-bg: #d51616;
  --footer-text: white;
  --rubro-bg-1: #d4131e;
  --rubro-bg-2: #ff9100;
  --rubro-bg-3: #fc4783;
  --rubro-bg-4: #59087a;
  --rubro-bg-5: #005dd1;
  --rubro-bg-6: #009b0b;
  --card-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  --btn-padding: 10px 20px;
  --border-radius: 10px;
  --default-margin: 20px;
  --default-padding: 20px;
  --card-flex-basis: 300px;
  
}


body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  overflow-x: hidden;
}


/* Uniformidad en márgenes y paddings */
.container {
  display: flex;
  /* flex-wrap: wrap; */
  gap: var(--default-margin);
  margin: var(--default-margin) auto;
  /* padding: var(--default-padding); */
  max-width: 1600px;
  /* background-color: var(--white); */
}

/* Estilos para la barra de navegación */
.navbar .social-icons img {
  margin-left: 10px;
}

.navbar-nav .nav-item {
  margin: 0 15px;
}

.navbar .social-icons {
  display: flex;
  gap: 15px;
  margin-left: 20px;
  justify-content: center;
}

.navbar .service-btn {
  margin-left: 30px;
}

@media (max-width: 768px) {
  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-item {
    margin: 10px 0;
  }

  .social-icons {
    margin-top: 10px;
  }

  .service-btn {
    margin-top: 15px;
  }
}

header {
  background-color: #ffffff;
  padding: 20px;
  border-bottom: 1px solid #ddd;
}

.social-icons {
  font-size: x-large;
}

/* Botones */
.service-btn {
  background-color: var(--primary-color);
  border: none;
  padding: var(--btn-padding);
  color: var(--white);
  border-radius: var(--border-radius);
}

.service-btn:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* Secciones */
.info-box {
  height: 150px;
  background-color: var(--light-gray);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--default-margin);
  border-radius: var(--border-radius);
}

.full-width-section {
  background-color: var(--accent-color);
  color: var(--black);
  height: 400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--default-padding);
}

/* Modificación del rectángulo amarillo */
.ingco-text{
  font-size: 40px;
}

.yellow-box {
  background: url('../Utilities/landing_ingco_1920.jpg') no-repeat center center;
  background-size: cover;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--default-margin);
  margin-top: 50px;
}

.yellow-box .overlay-image {
  position: absolute;
  top: -20px; /* Ajusta según sea necesario */
  left: 0;
  max-width: 100px; /* Ajusta el tamaño máximo del logo */
  height: auto;
  z-index: 1; /* Asegura que el logo esté sobre el texto */

}

.yellow-box .text-container {
  position: relative; /* Necesario para que el logo se posicione relativo a este contenedor */
  font-size: 2rem;
  flex: 1;
  margin-right: 20px;
  color: var(--black);
  z-index: 0; /* El texto queda debajo del logo */
  flex-direction: column;
  padding: 120px;
}


.ingco-logo-container{
  width: 200px;
}

.ingco-logo{
  width: 100%;
  margin-bottom: 20px;
}

.image-container {
  width: 600px;
}

@media only screen and (max-width: 768px) {
  .full-width-section {
    height: auto;
    padding: var(--default-padding-sm);
    flex-direction: column;
    text-align: center;
  }

  .yellow-box {
    padding: 15px;
    flex-direction: column;
  }

  .yellow-box .text-container {
    font-size: 1.5rem;
    margin-right: 0;
    margin-bottom: 15px;
    position: relative;
  }

  .yellow-box .overlay-image {
    position: absolute;
    top: -20px; /* Ajusta según sea necesario */
    left: 0;
    max-width: 50%;
    height: auto;
  }

  .image-container {
    width: 100%;
  }

  .fix-info-text h1 {
    font-size: 48px;
    text-align: center;
    font-weight: 700;
  }

  .fix-info-text p {
    font-size: 24px;
    text-align: center;
    font-weight: 400;
  }

  .ingco-logo-container{
    display: flex;
    margin: auto;
  }
}

@media only screen and (max-width: 768px) {
  .container {
    gap: var(--default-margin-sm);
    padding: var(--default-padding-sm);
  }

  .yellow-box {
    margin-bottom: var(--default-margin-sm);
  }
}

@media only screen and (max-width: 768px) {
  .yellow-box {
    flex-direction: column;
    align-items: center;
  }

  .yellow-box .image {
    margin-top: 15px;
  }
}

/* Formulario */
form {
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 5px;
  background-color: var(--white);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-image {
  height: 100%;
  width: auto;
  max-height: 600px;
  border-radius: 5px;
}

form .btn-block {
  width: 100%;
}

.form-control-msg{
  width: 100% !important;
}

form .form-control{
  width: 90%;
}

.form-size{
  height: 100%;
}

@media only screen and (max-width: 768px) {
  .form-control{
    width: 100%;
  }

}

/* Footer */
.footer {
  background-color: var(--footer-bg) !important;
  color: var(--footer-text);
  padding: 40px 20px;
}

.footer-logo {
  width: 30px;
  height: 30px;
}

.footer-social-icons a {
  margin-right: 10px;
  font-size: 1.5em;
}

.footer p {
  margin: 0;
}

@media (max-width: 767.98px) {
  .footer .col-md-4 {
    text-align: center;
    margin-bottom: 20px;
  }
}

/* Text and Background Customization */
.text-lg {
  font-size: 48px;

  justify-content: center;
  display: flex;

}

.text-md-fix{
  font-size: 24px;
  justify-content: center;
  display: flex;
  text-align: center;

}

.bg-custom {
  background-color: #fe6000;
}

/* Carousel */
.carousel-inner {
  max-height: 300px;
}

.carousel-inner img {
  height: 100%;
  width: auto;
  object-fit: cover;
}

/* Rubro Cards */
.rubro-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: var(--default-margin);
}

.rubro {
  width: 14%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: bold;
  text-align: center;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.rubro-1 {
  background-color: var(--rubro-bg-1);
}

.rubro-2 {
  background-color: var(--rubro-bg-2);
}

.rubro-3 {
  background-color: var(--rubro-bg-3);
}

.rubro-4 {
  background-color: var(--rubro-bg-4);
}

.rubro-5 {
  background-color: var(--rubro-bg-5);
}

.rubro-6 {
  background-color: var(--rubro-bg-6);
}

.rubro-1-overlay-background {
  background-color: var(--rubro-bg-1);
}

.rubro-2-overlay-background {
  background-color: var(--rubro-bg-2);
}

.rubro-3-overlay-background {
  background-color: var(--rubro-bg-3);
}

.rubro-4-overlay-background {
  background-color: var(--rubro-bg-4);
}

.rubro-5-overlay-background {
  background-color: var(--rubro-bg-5);
}

.rubro-6-overlay-background {
  background-color: var(--rubro-bg-6);
}

/* Card Styles */
.card {
  flex: 1 1 30%; /* Ocupa un 30% del contenedor en pantallas grandes */
  margin: 10px;
  padding: 20px;
  text-align: center;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}


.card .circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--primary-color);
  margin: var(--default-margin) auto;
}

.card h3 {
  margin-top: 0;
}

@media (max-width: 768px) {
  /* Botones y tarjetas ocupan 100% en pantallas pequeñas */
  .container {
      flex-direction: column; /* Cambia la dirección del flex a columna */
      align-items: stretch; /* Asegura que se estiren al 100% */
  }

  .rubro, .card {
      flex: 1 1 100%; /* Ocupa el 100% del ancho */
      margin: 10px 0; /* Agrega margen solo arriba y abajo */
  }
}

/* Footer Section */
footer {
  background-color: #D51616;
  padding: 40px 0;
  color: #fff;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
}


.footer-section {
  text-align: left;
  margin-bottom: 20px;
  flex: 1; /* Permite que cada sección ocupe el mismo espacio disponible */
  max-width: 30%; /* Limita el ancho máximo en pantallas grandes */
}

.footer-section h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-section li {
  margin-bottom: 5px;
}

.footer-section a {
  text-decoration: none;
  color: #fff;
}

.footer-social {
  text-align: right;
  /* flex: 1; */
  /* max-width: 20%; */
  display: flex;
}

.footer-social a {
  color: #fff;
  font-size: 20px;
  margin-left: 15px;
  display: inline-flex;
  align-items: center;
}

.footer-social i {
  margin-right: 8px; /* Espacio entre el ícono y el texto */
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    width: 100%; /* Ocupa todo el ancho en pantallas pequeñas */
    text-align: center;
  }

  .footer-social {
    text-align: center;
    width: 100%;
    margin-top: 20px;
    justify-content: center;
  }

  .footer-social a {
    margin-left: 0;
    margin-bottom: 10px; /* Espacio entre los enlaces */
  }
}

.icon-brand {
  width: 250px;
  margin-bottom: 20px;
}

.text-fix{
  font-size: larger;
}

.fix-info-text{
  flex-direction: column;
}

.service-icon-size{
  font-size:xxx-large;
  color: #D51616;
}

.rubro-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  justify-content: center;
  margin: var(--default-margin);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px; /* Compensa el padding */
  margin-left: -15px; /* Compensa el padding */
}

.col {
  flex: 1;
  padding-right: 15px; /* Añade padding a los lados de la columna */
  padding-left: 15px;
  max-width: 100%;
}

.col-4 {
  flex: 0 0 33.3333%; /* Toma un tercio del ancho disponible */
  max-width: 33.3333%;
  margin-bottom: 10px;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

.rubro-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  width: 100%;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.rubro-image-container {
  flex-grow: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rubro-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.color-overlay {
  width: 100%;
  height: 30%;
  position: absolute;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
}

.rubro-text {
  color: white;
  font-weight: bold;
  font-size: larger;
}

@media (max-width: 768px) {
  .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Media Query para pantallas móviles */
@media (max-width: 768px) {
  .rubro-container {
      grid-template-columns: 1fr; /* Una columna por fila */
  }
}

.info-card{
  padding: 5px;
}

/*Alto del carrusel*/

.carousel-ht{
  max-height: 500px !important;
}

.compras-email{
  display: contents;
}

@media (max-width: 768px) { /* Para pantallas más pequeñas */
  .compras-email {
    display: inline-block;
    max-width: 250px; /* Ajusta el ancho según necesites */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.fc-icon-margin{
  margin-right: 10px;
}


@media (max-width: 768px) { /* Para pantallas más pequeñas */
  .rrhh-email {
    display: inline-block;
    max-width: 250px; /* Ajusta el ancho según necesites */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 768px) { /* Para pantallas más pequeñas */
  .compras-email {
    display: inline-block;
    max-width: 250px; /* Ajusta el ancho según necesites */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.fc-icon-margin{
  margin-right: 10px;
}


@media (max-width: 768px) { /* Para pantallas más pequeñas */
  .rrhh-email {
    display: inline-block;
    max-width: 250px; /* Ajusta el ancho según necesites */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 15px;
    margin: 15px auto;
  }
  
  /* Mejora en los emails para mobile */
  .compras-email, .rrhh-email {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-all;
  }
}

@media (max-width: 768px) {
  .contact-container {
    padding: 40px 20px;
  }
  
  .contact-content {
    padding: 20px;
  }
  
  .mid-text-info h2 {
    font-size: 32px;
    margin-top: 30px;
  }
  
  .mid-text-info p {
    font-size: 18px;
    margin-bottom: 30px;
  }
  
  .main-title-container h1 {
    font-size: 32px;
  }
  
  .main-title-container p {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .footer-section {
    max-width: 100%;
    margin-bottom: 30px;
    text-align: center;
  }
  
  .footer-social {
    max-width: 100%;
    justify-content: center;
    margin-top: 20px;
  }
  
  .footer-social a {
    margin: 0 10px;
  }
  
  .footer {
    padding: 30px 20px;
  }
}
