body {
  font-family: "Cabin", sans-serif;
}
/* Bootstrap*/
.form-control {
  border-color: #c72d2d;
}
.form-control:focus {
  border-color: #c72d2d;
  outline: 0;
  box-shadow: 0 0 0 0.25rem #c72d2d25;
}

/*Fuente*/
@font-face {
  font-family: "Cabin";
  src: url("../fonts/Cabin_Noto_Sans/Cabin/static/Cabin-Regular.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
}

/* Jquery Validation */
label.error {
  display: block;
  color: red;
  font-size: small;
}

/*Text Colors*/
.text-main {
  color: #ffc234;
}
.text-main-2 {
  color: #e2e1de;
}
.text-main-3 {
  color: #f0a22e;
}

/*Background Colors*/
.bg-main {
  background-color: #ffc234;
}
.bg-main-2 {
  background-color: #e2e1de;
}
.bg-cake {
  background-color: #fff;
}
.bg-blue {
  background-color: #7ec0ce;
}

.bg-bone {
  background-color: #f5f5f5;
}

.bg-main-3 {
  background-color: #f17123 !important;
}

.bg-gradi {
  background: rgba(124, 117, 112, 0.8);
}

.img-obra {
  background-image: url("../img/iconos-calmalayo-pt 2-17.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100px;
  height: 100px;
}

.img-hidraulico {
  background-image: url("../img/iconos-calmalayo-pt-2-16.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100px;
  height: 100px;
}

.img-hidrosanitario {
  background-image: url("../img/iconos-calmalayo-pt-2-15.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100px;
  height: 100px;
}

/*Border*/
.border-main {
  border-color: #c72d2d !important;
}
.border-main-2 {
  border-color: #212325 !important;
}

.border-b {
  border-bottom: 5px solid #ffc234 !important;
}
.border-b-2 {
  border-bottom: 2px solid #ffc234 !important;
}
.border-b-3 {
  border-bottom: 10px solid #f0a22e !important;
  width: 90%;
  display: flex;
  justify-content: center;
}

.all-border {
  border: 1px solid #ffc234 !important;
  border-radius: 10px;
}

/*Buttons*/

.btn-main {
  --bs-btn-color: #fff;
  --bs-btn-bg: #f0a22e;
  --bs-btn-border-color: #ffffff;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #a11717;
  --bs-btn-hover-border-color: #a11717;
  --bs-btn-focus-shadow-rgb: 130, 138, 145;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #a11717;
  --bs-btn-active-border-color: #a11717;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #f0a22e;
  --bs-btn-disabled-border-color: #f0a22e;
  --bs-btn-disabled-opacity: 0.7;
  transition: all 0.3s ease;
}

/* Site */
.main-navbar {
  z-index: 100;
}

.main-navbar .nav-link {
  position: relative;
  color: #fff;
  transition: all 0.3s ease;
  padding: 5px 10px;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  color: #c72d2d;
}

/* Cambiar color del icono */
.navbar-toggler {
  border-color: #fff; /* color del borde */
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.img-footer {
  background-image: url("../img/fotter-ciamex.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.img-banner {
  background-image: url("../img/ciamex-banner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.img-80 {
  width: 80%;
  height: auto;
}
.img-65 {
  width: 65%;
  height: auto;
}

.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0,0,0,0.7)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.hero {
  height: 120vh;
  background: url("../img/ciamex-banner.png") center/cover no-repeat;
  /* position: relative; */
  display: flex;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  /* line-height: 1.1; */
}

.btn-main {
  background-color: #ffc234;
  color: white;
  border: none;
  padding: 12px 24px;
  font-weight: 600;
}

.btn-main:hover {
  background-color: #ffc234;
  color: white;
}

.btn-outline-custom {
  border: 2px solid #ffc234;
  padding: 10px 24px;
  font-weight: 600;
}

.btn-outline-custom:hover {
  border: 2px solid #ffc234;
  color: black;
}

.hover-effect:hover {
  transition: transform 0.5s ease;
  /*gradiente*/
  background: linear-gradient(135deg, #fad25c, #f77321);
  color: white;
}

.img-hover {
  transition: transform 0.3s ease;
}

/*imagen obra*/

#obra-civil {
  min-height: 500px;
  cursor: pointer;
}

/* contenido */
#obra-civil .contenido,
#obra-civil h5 {
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease;
}

/* imagen */
#obra-civil .img-hover-god {
  position: absolute;
  bottom: -70%;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: all 0.5s ease;
  z-index: 1;

  opacity: 0;
}

/* hover */
#obra-civil:hover .img-hover-god {
  bottom: 0;
  opacity: 1;
}

#obra-civil:hover .contenido,
#obra-civil:hover h5 {
  opacity: 0;
}

#obra-civil::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
  opacity: 0;
  transition: 0.4s;
}

#obra-civil:hover::before {
  opacity: 1;
}

/*hidráulico*/

#hidraulico {
  min-height: 500px;
  cursor: pointer;
}

/* contenido */
#hidraulico .contenido,
#hidraulico h5 {
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease;
}

/* imagen */
#hidraulico .img-hover-god {
  position: absolute;
  bottom: -70%;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: all 0.5s ease;
  z-index: 1;

  opacity: 0;
}

/* hover */
#hidraulico:hover .img-hover-god {
  bottom: 0;
  opacity: 1;
}

#hidraulico:hover .contenido,
#hidraulico:hover h5 {
  opacity: 0;
}

#hidraulico::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
  opacity: 0;
  transition: 0.4s;
}

#hidraulico:hover::before {
  opacity: 1;
}

/*hidrosanitario*/

#hidrosanitario {
  min-height: 500px;
  cursor: pointer;
}

/* contenido */
#hidrosanitario .contenido,
#hidrosanitario h5 {
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease;
}

/* imagen */
#hidrosanitario .img-hover-god {
  position: absolute;
  bottom: -70%;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: all 0.5s ease;
  z-index: 1;

  opacity: 0;
}

/* hover */
#hidrosanitario:hover .img-hover-god {
  bottom: 0;
  opacity: 1;
}

#hidrosanitario:hover .contenido,
#hidrosanitario:hover h5 {
  opacity: 0;
}

#hidrosanitario::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
  opacity: 0;
  transition: 0.4s;
}

#hidrosanitario:hover::before {
  opacity: 1;
}

.titulo-servicio {
  position: relative;
  display: inline-block;
}

.texto-titulo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  color: white;
  font-size: 1.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.img-title {
  width: 30%;
  height: auto;
  border-radius: 10px;
}

.servicio-card {
  position: relative;
  width: 100%;
  cursor: pointer;
  overflow: hidden;
}

/* imagen de fondo normal: ocupa el espacio y define la altura de la tarjeta */
.fondo-normal {
  width: 100%;
  display: block;
}

/* imagen de fondo hover: absolutamente posicionada, empieza debajo y sube */
.fondo-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateY(100%);
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

.servicio-contenido {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 10px;
  z-index: 1;
}

.servicio-icono {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 10px;
}

.servicio-contenido span {
  font-size: 0.95rem;
  font-weight: 500;
  color: #2f2f2f;
  line-height: 1.2;
  transition: color 0.3s ease;
}

/* icono hover oculto por defecto */
.icono-hover {
  display: none;
}

.servicio-card.activo .servicio-contenido span {
  color: white;
}

/* HOVER */

.servicio-card:hover .fondo-hover {
  opacity: 1;
  transform: translateY(0);
}

.servicio-card:hover .icono-normal {
  display: none;
}

.servicio-card:hover .icono-hover {
  display: block;
}

.servicio-card:hover .servicio-contenido span {
  color: #fff;
}

/* .quienes-wrapper {
  position: relative;
  min-height: 400px;
}

.quienes-img {
  width: 80%;
  position: relative;
  z-index: 2;
}

/* .quienes-box {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 65%;
  min-height: 320px;
  z-index: 1;
}*/

/* .test {
  margin-right: 50px;
}  */

.quienes-container {
  position: relative;
}

.quienes-texto {
  position: absolute;
  top: 50%;
  right: 15%;
  transform: translateY(-50%);
  width: 35%;
  color: white;
}

.quienes-texto h2 {
  font-weight: 700;
  font-size: clamp(1.5rem, 2vw, 3rem);
}

.quienes-texto p {
  font-size: clamp(0.8rem, 1vw, 1.25rem);
}

.container-lg {
  display: none;
}

.container-carousel {
  display: block;
}

#carouselMobile {
  display: none;
}

.wi {
  width: 500px;
  height: 400px;
}

/*-----------------------------------------------------------------*/
/* carousel*/
.img-carousel {
  width: 500px;
  height: 500px;
  object-fit: cover;
}

.project-slide {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.project-slide-image {
  min-height: 480px;
  max-height: 680px;
  object-fit: cover;
}

.project-slide-text {
  position: absolute;
  right: 10%;
  bottom: 35%;
  width: min(450px, 40%);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 1.25rem;
}

.project-slide-text h3 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-slide-next {
  background: transparent;
}

.project-slide-next img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}
/*-----------------------------------------------------------------*/

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero {
    text-align: center;
  }

  .hover-effect {
    height: auto;
  }

  .mb-5-mobile {
    margin-bottom: 3rem !important;
  }

  .d-flex-mobile {
    display: flex !important;
    justify-content: center !important;
  }

  .quienes-container {
    display: none;
  }

  .project-slide {
    border-radius: 10px;
  }

  .project-slide-image {
    min-height: 320px;
    max-height: 420px;
  }

  .project-slide-text {
    width: calc(100% - 2rem);
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    font-size: 0.92rem;
  }

  .project-slide-text h3 {
    font-size: 1.1rem;
  }

  .container-lg {
    display: block;
  }

  .wi {
    width: 100%;
    height: auto;
    font-size: 1rem;
  }

  .texto-titulo {
    font-size: 1.6rem;
  }

  .project-slide-text {
    font-size: 0.5rem !important;
    position: relative;
    bottom: 220px;
    width: 50%;
    left: 52%;
  }

  .img-mobile {
    width: 100%;
    max-width: 100%;
    min-height: 530px;
    height: auto;
    object-fit: cover;
    object-position: center;
  }

  .container-carousel {
    display: none !important;
  }

  .img-title {
    width: 75%;
  }

  #carouselMobile {
    display: block !important;
  }

  .text-fotter {
    font-size: 1rem !important;
  }
}

@media (min-width: 993px) {
  .container-carousel {
    display: flex !important;
  }

  #carouselMobile {
    display: none !important;
  }
}
