/* 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;
  }

  .icon-brand {
    width: 250px;
    margin-bottom: 20px;
  }
  
  .text-fix{
    font-size: larger;
  }

  /* 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;
    }
    
    .navbar-fix{
      flex-direction: column;
    }
  }
  
  header {
    background-color: #ffffff;
    padding: 20px;
    border-bottom: 1px solid #ddd;
  }
  
  .social-icons {
    font-size: x-large;
  }
  
/* Carousel */
.carousel-inner {
  max-height: 300px;
}

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


  /* 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);
  }
  

  /* Footer Section */
  .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;
      }
    }
  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 */
    }
  }
  /* End Footer Section */

  /* estilos de la vista "sobre nosotros" */
  .sobrenosotros-body-container {
    padding: 0;
    margin: 0;
  }
  .main-title {
    position: relative; /* Necesario para que ::before se posicione en relación al título */
    text-align: center;
    font-size: 48px;
    margin-bottom: 20px;
    color: #000;
    display: inline;
    margin-bottom: 10px;
    font-weight: 700;
  }
  
  .main-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 5px; /* Grosor de la línea */
    width: 50px; /* Ajustar el ancho para que llegue a la segunda letra */
    background-color: red; /* Color de la línea */
    margin-bottom: 10px;
  }
  
  .section {
    display: flex;
    align-items: center;
    padding: 20px 0;
    /* width: 100%; */
    margin-bottom: 60px;
  }

  .upper-section {
    display: flex;
flex-direction: row-reverse;
  }
  
  .content {
    flex: 1;
    padding: 0 40px;
    font-size: 1.1rem;
    max-width: 1000px;
    margin-right: 20px;
    padding: 150px;
  }

  @media (max-width:728px) {
    .content{
      margin-top: 20px;
    }
  }

  .content p{
    line-height: 1.4;
    margin-bottom: 15px;
    font-size: 24px;
  }
  
  .image {
    max-width: 847px; /* Establece el ancho máximo del contenedor de la imagen */
    width: 100%; /* Asegura que la imagen ocupe todo el contenedor */
    height: 100%; /* Mantén la altura automática */
    position: relative; /* Asegura que los íconos se posicionen correctamente */
  }
  
  .image img {
    width: 100%; /* La imagen ocupa el 100% del contenedor */
    height: auto; /* Mantén la proporción de la imagen */
    object-fit: cover; /* Cubre el contenedor sin distorsión */
    display: block; /* Evita espacios en blanco debajo de la imagen */
  }

  .image-left {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    width: 100%;
    height: auto;
  }
  
  .image-right {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    width: 100%;
    height: auto;
  }
  
  /* Redondear bordes derechos de la primera imagen */
  .image-top-style {
    border-top-right-radius: 20px; /* Ajusta el valor para el redondeo */
    border-bottom-right-radius: 20px;
  }
  
  /* Redondear bordes izquierdos de la segunda imagen */
  .section:last-child .image img {
    border-top-left-radius: 20px; /* Ajusta el valor para el redondeo */
    border-bottom-left-radius: 20px;
  }
  .icon-container {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px; /* Aumentado para hacer los contenedores más anchos */
    background-color: white;
    color: black;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    transform: translateX(-50%); /* Asegura que sobresalga hacia la izquierda */
    white-space: nowrap; /* Asegura que el texto no se rompa en líneas */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .icon-container i {
    color: white; /* Color del icono */
    border-radius: 50%; /* Circular */
    padding: 5px; /* Espacio alrededor del icono */
    margin-right: 10px; /* Espacio entre el icono y el texto */
  }
  
  .top-icon {
    top: 5%;
    left: 100%; /* Mover al costado derecho */
    transform: translate(-70%); /* Ajusta la posición */
  }
  
  .top-bottom-icon {
    top: 5%;
    left: 100%; /* Mover al costado derecho */
    transform: translate(-550%); /* Ajusta la posición */
  }
  
  .middle-icon {
    top: 70%;
    left: 100%;
    transform: translate(-50%);
  }
  
  .middle-bottom-icon {
    top: 70%;
    /* left: 100%; */
    transform: translate(-50%);
  }
  
  .middle-icon i{
    color: #D51616;
  
  }
  
  .bottom-icon-left {
    bottom: 10px;
    left: 50%;
    transform: translate(-50%, 55%) rotate(-45deg); /* Rotar hacia un lado */
    background-color: #d4131e;
    color: white;
    font-size: 2rem; /* Aumentar tamaño del icono */
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
}

/* Sección para el segundo icono */
.bottom-icon-right {
    bottom: 10px;
    left: 50%;
    transform: translate(-50%, 55%) rotate(45deg); /* Rotar hacia el otro lado */
    background-color: #d4131e;
    color: white;
    font-size: 2rem; /* Aumentar tamaño del icono */
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
}

  
  .icon-container i {
    margin-right: 5px;
  }
  
  .icon-container p {
    margin: 0;
  }
  
  .section:last-child {
    justify-content: flex-end;
  }
  
  .title {
    font-size: 48px;
    margin-bottom: 10px;
  }
  
  .text {
    line-height: 1.4;
    margin-bottom: 15px;
    font-size: 24px;
  }
  
  
  
  @media only screen and (max-width: 768px) {
    .section {
      flex-direction: column;
      text-align: center;
    }
  
    .image {
      width: 100%;
      height: auto;
      margin-left: 0;
      margin-bottom: 20px;
    }
  
    .content {
      width: 100%;
      padding: 0 20px;
    }
  
    .main-title {
      font-size: 2rem;
      margin-bottom: 15px;
    }
  }
  
  .main-title-container{
    margin: auto;
    text-align: center;
  }
  
  .main-title-container h1{
    font-size: 48px;
    justify-content: center;
    display: flex;
    margin-top: 50px;
    font-weight: 700;
  }
  
  .main-title-container p{
    font-size: 26px;
    justify-content: center;
    display: flex;
    margin-top: 20px;
    margin-bottom: 50px;
  }
  
  .main-title-margin{
    margin-bottom: 20px;
  }

  @media only screen and (max-width: 768px) {
    /* Ocultar iconos */
    .icon-container {
      display: none;
    }
  
    /* Añadir margin-top a los textos */
    .main-title-container h1,
    .main-title-container p,
    .content h2,
    .content p {
      margin-top: 20px;
    }
  }

  .carousel-sobrenosotros{
    height: 267px;
  }


  .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;
    }
  }
  