:root {
  --color-red: #d70300;
}

body {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
}

/* Estilos comunes para todos los slides */
.slide1,
.slide2,
.slide3,
.slide4,
.slide5,
.slide6,
.slide7 {
  position: relative;
  height: 65vh;
  /* Otras propiedades comunes */
}

/* Estilos comunes para los pseudoelementos ::before de todos los slides */
.slide1::before,
.slide2::before,
.slide3::before,
.slide4::before,
.slide5::before,
.slide6::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Detrás del contenido */
  background-repeat: no-repeat;
  background-position: center; /* Centrar imagen de fondo */
  background-size: cover;
  transform-origin: center; /* Punto de origen de la transformación */
}

.slide7::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Detrás del contenido */
  background-repeat: no-repeat;
  background-position: bottom; /* Centrar imagen de fondo */
  background-size: cover;
  transform-origin: center;
}

/* Animación solo en el slide1 */
.slide1::before {
  animation: zoomInEffect 1.5s ease-out forwards; /* Aplicar animación */
}

/* Imágenes de fondo específicas para cada slide */
.slide1::before {
  background-image: url("./assets/img/imagenes/slider2-hispania.png");
  height: 100%;
}

.slide2::before {
  background-image: url("./assets/img/imagenes/webp/slider1-hispania.webp");
  height: 100%;
}

/* .slide3::before {
  background-image: url("./assets/img/imagenes/webp/article3.webp");
  height: 100%;
}

.slide4::before {
  background-image: url("./assets/img/imagenes/webp/article4.webp");
  height: 100%;
} */

.slide5::before {
  background-image: url("./assets/img/imagenes/webp/article5.webp");
  height: 100%;
}
.slide6::before {
  background-image: url("./assets/img/imagenes/article6.jpg");
  height: 100%;
}
.slide7::before {
  background-image: url("./assets/img/imagenes/article7.jpg");
  height: 100%;
}

@keyframes zoomInEffect {
  0% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* .slide1 {
  position: relative;
  background-image: url("./assets/img/imagenes/slider2-hispania.png");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: cover;
 
  height: 65vh;
  z-index: 1;
}

.slide2 {
  position: relative;
  background-image: url("./assets/img/imagenes/slider1-hispania.png");
  background-repeat: no-repeat;
  background-position: bottom -100px center;
  background-size: cover;
  height: 65vh;
  z-index: 1;
} */

/* .owl-dots {
  display: none;
} */

/* .btn-rojo {
      text-decoration: none;
      padding: 15px 10px;
      text-align: center;
      background-color: var(--color-red);
      color: #fff;
      text-transform: uppercase;
      transition: 0.3s;
      width: 250px;
    }

    .btn-rojo:hover {
      text-decoration: none;
      background-color: #9b0b0b;
      color: #fff;
      
} */

.btn-rojo {
  text-decoration: none;
  padding: 14px 10px;
  text-align: center;
  /* background-color: var(--color-red); */
  background-color: black;
  color: #fff;
  text-transform: uppercase;
  transition: all 0.3s ease;
  width: 250px;
  border-radius: 4px;
  font-weight: medium;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-rojo:hover {
  background-color: #9b0b0b;
  color: #fff;
  transform: scale(1.025);

  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .btn-rojo:hover {
    background-color: none !important;
    color: none !important;
    transform: none !important;

    box-shadow: none !important;
  }
}

.btn-outline {
  text-decoration: none;
  padding: 15px 10px;
  text-align: center;
  /* background-color: var(--color-red); */
  outline: 1px solid #fff;
  color: #fff;
  text-transform: uppercase;
  transition: 0.3s;
  width: 250px;
  font-size: 0.75rem;
}

.btn-outline:hover {
  text-decoration: none;
  background-color: #fff;
  color: white;
  /* animation: .3s ease; */
}

.overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  background: #000;
  opacity: 0.55;
  z-index: -1;
}

.title-slider {
  /* outline: 1px solid red; */
  width: 50%;
  height: 50%;
}

.title-slider h1 {
  /* outline: 1px solid green; */
  font-weight: bold;
  font-size: 35px;
}

.title-slider h4 {
  /* outline: 1px solid blue; */
  font-weight: 300;
  font-size: 18px;
  margin-bottom: 25px;
  margin-top: 25px;
}

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

.text-red {
  color: var(--color-red);
}

.publish-section .card {
  border: none;
}

.footer-area a {
  text-decoration: none;
  display: inline-block;
  color: #fff;
}

.footer-area a:hover {
  text-decoration: none;
  display: inline-block;
  color: var(--color-red);
  text-decoration: underline;
}

.content-section {
  /* outline: 1px solid green; */
  width: 100%;
  /* margin: auto; */
}

.nav-bar-section {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

/* movil */
@media only screen and (max-width: 600px) {
  h2 {
    font-weight: bold;
    font-size: 20px;
  }

  h3 {
    font-weight: bold;
    font-size: 17px;
  }

  .navbar-nav {
    /* margin-left: 25px !important; */
    margin-bottom: 20px !important;
  }

  .navbar-nav > .nav-item > .nav-link {
    font-weight: 500;
  }

  .title-slider {
    /* outline: 1px solid red; */
    width: 90%;
    height: 50%;
    /* margin-left: 10px; */
    /* margin-right: 20px; */
  }

  .title-slider h1 {
    /* outline: 1px solid green; */
    font-weight: bold;
    font-size: 25px;
  }

  .title-slider h4 {
    /* outline: 1px solid blue; */
    font-weight: 300;
    font-size: 15px;
    margin-bottom: 25px;
    margin-top: 25px;
  }

  .btn-rojo {
    padding: 10px 5px;
    width: 150px;
    font-size: 10px;
  }

  .fast-section {
    /* width: 100%; */
    /* margin-left: 0px; */
    color: #fff;
  }

  .fast-section h2 {
    font-weight: bold;
    font-size: 20px;
    text-align: start;
  }

  .services-slider h2 {
    text-align: center;
  }

  .services-slider .item p {
    text-align: center;
  }

  .services-slider .item .btn-rojo {
    margin: auto;
    width: 50%;
  }

  .fast-section p {
    /* font-weight: bold; */
    font-size: 15px;
    text-align: start;
    margin-top: 15px;
  }

  .fast-section .btn-rojo {
    /* font-weight: bold; */
    font-size: 11px;
    display: block;
    width: 100%;
  }

  .btn-principal {
    font-size: 11px;
    display: block;
    width: 100%;
  }

  .why-hispania-section {
    /* width: 90%; */
    /* margin-left: 20px; */
    /* outline: 1px solid red; */
  }

  .why-hispania-section-items {
    /* width: 100%;
          margin-left: 2px; */
    /* outline: 1px solid green; */
    margin-top: 20px;
  }

  .why-hispania-section-items h3 {
    font-size: 18px;
  }

  .why-hispania-section-items img {
    /* font-size: 18px; */
    width: 95px;
  }

  .why-hispania-section-items .item-why {
    /* font-size: 18px; */
    /* width: 95px; */
    /* outline: 1px solid green; */
    margin-bottom: 30px;
  }

  .why-hispania-section-items .item-why:last-child {
    /* font-size: 18px; */
    /* width: 95px; */
    /* outline: 1px solid green; */
    margin-bottom: 0px;
  }

  .why-hispania-section-items .service-arrow {
    /* font-size: 18px; */
    /* width: 95px; */
    /* outline: 1px solid blue; */
    margin-top: -10px;
  }

  .why-hispania-section-items .service-item .service-title {
    font-size: 18px;
    font-weight: 600;
  }

  .advantage-section {
    /* width: 90%; */
    /* margin-left: 10px; */
  }

  .partners-section div {
    /* outline: 1px solid red; */
    padding: 15px 5px;
  }

  .partners-section h2 {
    /* width: 90%; */
    /* margin-left: 20px; */
  }

  .partners-section h2 {
    /* color: aqua; */
    margin-top: -15px;
    font-size: 20px;
  }

  .publish-section {
    /* width: 95%; */
    /* margin-left: 10px; */
  }

  .publish-section .card .card-body .card-title {
    font-size: 18px;
    font-weight: 600;
  }

  .publish-section .card .card-body .card-text a {
    color: var(--color-red) !important;
  }

  .footer-area {
    /* width: 95%; */
    /* margin-left: 10px; */
    color: #fff;
  }

  .footer-area img {
    /* margin-left: -20px; */
  }

  .footer-area a {
    margin-left: 20px;
    text-decoration: none;
    font-size: 12px;
    display: block;
  }

  .footer-area .col-md-3 {
    /* border-left: 1px solid #ccc; */
  }

  .content-section {
    /* outline: 1px solid red; */
    width: 90%;
    margin: auto;
  }

  .nav-bar-section {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
  }
}

/* desktop */
@media only screen and (min-width: 600px) {
  h1 {
    font-weight: bold;
    font-size: 23px;
  }

  h2 {
    font-weight: bold;
    font-size: 21px;
  }

  h3 {
    font-weight: bold;
    font-size: 19px;
  }

  p {
    font-size: 16px;
  }

  .fast-section p {
    /* font-size: 20px; */
    margin-bottom: 40px;
    margin-top: 40px;
    font-weight: 200;
  }

  .services-slider .items .card-img-overlay img {
    /* margin: 120px;
          margin-top: 0px;
          margin-bottom: 0px;
          padding: 0px 10px 0px 10px; */
    width: 75px !important;
  }

  .services-slider .item div {
    /* font-size: 15px; */
    /* width: 60% !important; */
  }

  .services-slider .items h3 {
    /* font-size: 15px; */
    font-size: 17px !important;
    /* width: 60% !important; */
  }

  .services-slider .items p {
    /* font-size: 15px; */
    font-size: 12px !important;
    /* width: 60% !important; */
  }

  .services-slider .items .btn-rojo {
    font-size: 13px;
    width: 50%;
    display: inline-block;
    padding: 5px 10px;
    /* width: 60% !important; */
  }

  .fast-section .text-fast a.btn-rojo {
    /* font-size: 15px; */
    /* background-color: aqua; */
    display: inline-block !important;
    /* width: 90%; */
    /* width: 60% !important; */
  }

  .why-hispania-section p {
    /* font-size: 20px; */
  }

  .why-hispania-section .col-12 {
    margin-bottom: 40px;
  }

  .why-hispania-section-items img {
    width: 120px;
  }

  .why-hispania-section-items h3 {
    /* font-size: 22px; */
  }

  .advantage-section {
    /* background-color: aqua; */
    justify-content: space-between;
  }

  .partners-section {
    justify-content: space-between !important;
  }

  .footer-area h3 {
    color: #fff;
  }

  .footer-area img {
    /* margin-left: -20px; */
  }
}

.services-slider .owl-dots {
  display: block !important;
}

.services-slider .owl-dots {
  text-align: center;
  margin-top: 15px;
}

.services-slider .owl-dots .owl-dot {
  border: none;
  background: transparent;
  /* margin-bottom: 20px; */
}

.services-slider .owl-dots .owl-dot span {
  margin: 4px;
  border-radius: 10px;
  width: 7px;
  height: 7px;
  display: inline-block;
  background-color: #d6d6d6;
  transition: all 0.5s ease-in-out;
}

.services-slider .owl-dots .owl-dot.active span {
  background-color: #e6490b;
}

/* Styles Jairo 7/12 */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero-section-text {
  animation: fadeIn 1s ease-in-out;
}

.hero-section__title {
  text-wrap: balance;
}

.hero-section .owl-nav {
  display: flex;
  font-size: 65px;
  color: rgba(255, 0, 0, 0.65);
  transition: all 250ms ease-in-out;
}

.hero-section .owl-nav:hover {
  transition: all 250ms ease-in-out;
  color: rgba(255, 0, 0, 1);
}

.hero-section .owl-nav .owl-prev {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 45px;
}

.hero-section .owl-nav .owl-next {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 45px;
}

@media (max-width: 768px) {
  .hero-section .owl-nav {
    font-size: 40px;
    color: rgba(255, 0, 0, 0.75);
  }
  .hero-section .owl-nav .owl-prev {
    margin-left: 8px;
  }
  .hero-section .owl-nav .owl-next {
    margin-right: 8px;
  }
}

.hero-section .owl-dots {
  display: none !important;
}

.content-title {
  text-wrap: balance;
  font-size: 22px;
}

.content-text {
  width: 80%;
  /* text-wrap: balance; */
  padding-top: 8px;
  padding-bottom: 8px;
}

@media (max-width: 768px) {
  .content-text {
    width: 100%;
  }
}

.services-title {
  font-size: 22px;
  font-weight: bold;
  color: white;
  text-align: center;
  letter-spacing: 2px;
  padding-bottom: 1rem;
}

/* DISCOVER HISPANIA SECTION INICIO */
.discover-hispania {
  background-color: var(--color-red);
  padding-top: 5rem;
  padding-bottom: 5rem;
  width: 100%;
  height: 100%;
  color: white;
  position: relative;
  overflow: hidden;
}

.discover-hispania::before {
  width: 100%;
  height: 100%;
  content: "";
  position: absolute;
  top: 0;
  left: 45%;
  background-image: url("assets/img/iconos/hi-logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 25%;
  opacity: 0.65;
  z-index: 1;
}

@media (max-width: 768px) {
  .discover-hispania::before {
    left: 40%;
    top: 25%;
  }
}

.discover-hispania2 {
  background-color: black;
  padding-top: 3rem;
  padding-bottom: 3rem;
  color: white;
}

.discover-hispania2__container {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.discover-hispania2__container > div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .discover-hispania2__container > div {
    align-items: start;
    justify-content: start;
    text-wrap: balance;
  }
}

.discover-hispania2__button {
  padding-right: 22px;
  padding-left: 22px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 4px;
  border: 1px solid white;
  color: white;
  font-size: 16px;
  background: transparent;
  transition: all 250ms ease-in-out;
  font-weight: medium;
}
.discover-hispania2__button:hover {
  background: white;
  color: black;
  transform: scale(1.025);
  transition: all 250ms ease-in-out;
}

.discover-hispania2__top-title {
  font-size: 14px;
  letter-spacing: 2px;
  color: white;
}

/* DISCOVER HISPANIA SECTION FIN */

/* WHY SECTION INICIO */
.why-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.why-section__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.why-section__title {
  font-size: 22px;
  font-weight: bold;
}
.why-section__text {
  font-size: 18px;
  text-align: start;

  padding-top: 1rem;
}

@media (max-width: 768px) {
  .why-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  .why-section__text {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 16px;
  }
}

.why-section__cards {
  padding-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .why-section__cards {
    grid-template-columns: repeat(1, 1fr);
  }
}

.why-section__card {
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;

  border: 1px solid #ccc;
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  transition: all 250ms ease-in-out;
}

.why-section__card-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
  gap: 1px;
}

.why-section__card:hover {
  border: 1px solid var(--color-red);
  transition: all 250ms ease-in-out;
}
/* WHY SECTION FINAL */

/* Modal Form Inicio */

.modal-contact,
.modal-header,
.modal-footer {
  /* background-color: #bcbcbc; */
  background-color: gray;
  color: black;

  border-radius: none;
}
.form-control::placeholder {
  color: black !important;
  font-weight: medium !important;
}
::-ms-input-placeholder {
  /* Edge 12 -18 */
  color: black !important;
  font-weight: medium !important;
}
/* Modal Form Fin */

.img-cardblog {
  width: 100%;
  height: 110px;
  object-fit: cover;
}

/* BLOG CARDS - SECTION - INICIO*/
.blog-cards__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (max-width: 768px) {
  .blog-cards__container {
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
  }
}

.card-img-top {
  width: auto;
  height: 220px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .card-img-top {
    width: auto;
    height: 190px;
    object-fit: cover;
  }
}

/* BLOG CARDS - SECTION - FIN */

/*BTN PRODUCTS - PAGE PRODUCTS - INICIO */
.btn-products {
  text-decoration: none;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
  /* background-color: var(--color-red); */
  background-color: black;
  color: #fff;
  text-transform: uppercase;
  transition: all 0.3s ease;
  width: 250px;
  border-radius: 4px;
  font-weight: medium;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-products:hover {
  background-color: #9b0b0b;
  color: #fff;

  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
}
/*BTN PRODUCTS - PAGE PRODUCTS - FIN */

.content-about-us {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: start;
  justify-content: center;
}

/*Embracing Diversity - PAGE - INICIO */
.header-page__embracing {
  position: relative;
  padding-top: 5.7rem;
  padding-bottom: 5.7rem;
  background-image: url("assets/img/imagenes/embracingDiversity.jpg");
  background-repeat: no-repeat;
  background-position: 0% 30%;
  background-size: cover;
  color: white;
  text-align: center;
}

.header-page__embracing::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1; /* Cambio aquí para que esté encima del fondo */
}

.content-section {
  position: relative;
  z-index: 2; /* Asegúrate de que el contenido esté encima del overlay */
}

.header-page__leveling {
  position: relative;
  padding-top: 5.7rem;
  padding-bottom: 5.7rem;
  background-image: url("assets/img/imagenes/page__leveling.jpg");
  background-repeat: no-repeat;
  background-position: 0% 17%;
  background-size: cover;
  color: white;
  text-align: center;
}

.header-page__leveling::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1; /* Cambio aquí para que esté encima del fondo */
}

/*Embracing Diversity - PAGE - FIN */

.card-services {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.img-aboutus-1 {
  height: 120px;
  object-fit: cover;
  object-position: 0% 70%;
}

.img-aboutus-2 {
  height: 120px;
  object-fit: cover;
  object-position: 0% 25%;
}
@media (max-width: 768px) {
  .img-aboutus-1,
  .img-aboutus-2 {
    height: 182px;
  }
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: top 0.5s ease-in-out, opacity 0.5s ease-in-out;
  opacity: 1; /* Asegúrate de que esto esté aquí para iniciar con opacidad completa */
}

#loading-text {
  font-size: 20px;
  letter-spacing: 2px;
  color: black;
}

#loading-text span {
  animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
  0% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  80% {
    opacity: 0;
  }
}
#loading-bar-container {
  width: 50%;
  height: 20px;
  background-color: transparent;
  border: 1px solid #ba0702;
  border-radius: 6px;
}

@media (max-width: 768px) {
  #loading-bar-container {
    width: 70%;
  }
}

#loading-bar {
  border-radius: 6px;
  height: 100%;
  background-color: #ba0702;
  width: 0%; /* Inicialmente la barra está vacía */
  transition: width 1s ease-in-out;
}

.container-preloader {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.img-preloader {
  width: 40%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .img-preloader {
    width: 80%;
  }
}
