/* ==========================================================================
   INTEC — estilos propios de la pagina
   --------------------------------------------------------------------------
   Se carga despues de Bootstrap y antes de assets/css/simac-identidad.css.

   Esta hoja venia de otro maquetado, con su propia paleta azul, su propia
   tipografia y su propia cabecera: por eso INTEC parecia otra empresa.
   Aqui quedan solo los bloques que existen en intec.html, ya con el color
   corporativo de SIMAC (#00a9e0) y sin la navegacion antigua.
   ========================================================================== */

body {
  font-size: 1rem;
  overflow-x: hidden;
}

.tm-font-big {
  font-size: 1.25rem;
}

.tm-text-primary {
  color: #1e1e1e;
}

.tm-section-pad-top {
  padding-top: 90px;
  padding-bottom: 50px;
}

.tm-content-box {
  padding-top: 20px;
  padding-bottom: 40px;
}

.tm-btn-primary {
  display: inline-block;
  color: #101820;
  background-color: #00a9e0;
  border: 2px solid #00a9e0;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  transition: background-color 0.25s, border-color 0.25s;
}

.tm-btn-primary:hover,
.tm-btn-primary:focus {
  color: #fff;
  background-color: #86a52a;
  border-color: #86a52a;
}

/* --------------------------------------------------------------------------
   Portada
   -------------------------------------------------------------------------- */

#infinite {
  background-color: #1e1e1e;
  background-image: url(../img/iStock-926799886\ \(7\).jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  height: 100vh;
  min-height: 420px;
  position: relative;
}

#infinite::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.62), rgba(18, 18, 18, 0.74));
}

.tm-hero-text-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: column;
  justify-content: center;
  padding: 0 20px;
}

.tm-hero-title {
  color: #fff;
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: 6px;
  margin-bottom: 14px;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.5);
}

.tm-hero-lema {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  font-weight: 400;
  max-width: 640px;
  margin: 0 auto 34px;
  line-height: 1.6;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

/* --------------------------------------------------------------------------
   Que hacemos / Como lo hacemos
   -------------------------------------------------------------------------- */

.tm-section-title {
  font-size: 2.1rem;
  font-weight: 700;
}

.tm-intro-text {
  font-size: 15px;
  line-height: 1.85;
}

.tm-icon {
  display: block;
  color: #00a9e0;
}

.tm-continue {
  padding: 16px 0 10px 0;
}

/* --------------------------------------------------------------------------
   Servicios (carrusel sobre fondo)
   -------------------------------------------------------------------------- */

#testimonials {
  color: rgba(255, 255, 255, 0.93);
  background-color: #1e1e1e;
  background-image: url(../img/intec-fondo-servicios.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.tm-testimonials-content {
  position: relative;
  z-index: 100;
}

.tm-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.66);
  z-index: 0;
}

#testimonials .tm-section-desc {
  color: rgba(255, 255, 255, 0.85);
}

.tm-testimonials-carousel {
  max-width: 1050px;
  margin: 0 auto;
}

.tm-testimonial-item {
  max-width: 290px;
  margin-left: 35px;
  margin-right: 35px;
}

.tm-testimonial-item img {
  border-radius: 50%;
  width: 190px;
  height: 190px;
  object-fit: cover;
  margin-bottom: 28px;
}

.tm-testimonial-item h3 {
  color: #00a9e0;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
}

.tm-testimonial-item blockquote {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.tm-section-desc {
  max-width: 680px;
  width: 100%;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Galeria
   -------------------------------------------------------------------------- */

.tm-container-gallery {
  padding-top: 30px;
}

.tm-gallery-container {
  padding-top: 60px;
  padding-bottom: 110px;
}

.tm-gallery-item {
  margin: 0 15px;
}

.slick-dots {
  bottom: -60px;
}

.slick-dots li {
  margin: 0 10px;
}

.slick-dots li button:before {
  font-size: 15px;
}

.slick-dots li button:hover:before,
.slick-dots li button:focus:before,
.slick-dots li.slick-active button:before {
  opacity: 1;
  color: #00a9e0;
}

.tm-testimonials-carousel .slick-dots li button:before {
  color: #fff;
  opacity: 0.5;
}

.tm-testimonials-carousel .slick-dots li button:hover:before,
.tm-testimonials-carousel .slick-dots li button:focus:before,
.tm-testimonials-carousel .slick-dots li.slick-active button:before {
  color: #00a9e0;
  opacity: 1;
}

/* Efecto de la miniatura */
.grid figure {
  position: relative;
  float: left;
  overflow: hidden;
  background: #1e1e1e;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
}

.grid figure img {
  position: relative;
  display: block;
  min-height: 100%;
  max-width: 100%;
  opacity: 0.85;
}

.grid figure figcaption {
  padding: 2em;
  color: #fff;
  text-transform: uppercase;
  font-size: 1.1em;
  backface-visibility: hidden;
}

.grid figure figcaption,
.grid figure figcaption > a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.grid figure h2 {
  word-spacing: -0.15em;
  font-size: 0.85em;
  font-weight: 400;
  color: #fff;
  margin: 0;
}

.grid figure h2 span {
  font-weight: 600;
  color: #00a9e0;
}

figure.effect-honey {
  background: #1e1e1e;
  max-width: 220px;
}

figure.effect-honey:hover img {
  opacity: 0.35;
}

figure.effect-honey figcaption::before {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: #00a9e0;
  content: "";
  transform: translate3d(0, 8px, 0);
}

figure.effect-honey h2 {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1em 1.4em;
  width: 100%;
  text-align: left;
  transform: translate3d(0, -30px, 0);
}

figure.effect-honey h2 i {
  font-style: normal;
  opacity: 0;
  transition: opacity 0.35s, transform 0.35s;
  transform: translate3d(0, -30px, 0);
}

figure.effect-honey figcaption::before,
figure.effect-honey h2 {
  transition: transform 0.35s;
}

figure.effect-honey:hover figcaption::before,
figure.effect-honey:hover h2,
figure.effect-honey:hover h2 i {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */

#contact {
  color: #fff;
  background-color: #1e1e1e;
  background-image: url(../img/EJEMPLO\ 2.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  padding: 100px 0 90px;
}

#contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.78);
}

#contact .container {
  position: relative;
  z-index: 2;
}

#contact .tm-section-title,
#contact p {
  color: #fff;
}

.tm-container-contact .contact-item {
  margin-left: 0;
  margin-bottom: 34px;
}

.item-link {
  display: flex;
  align-items: center;
}

.item-link i,
.item-link span {
  color: #fff;
  transition: color 0.25s;
}

.item-link i {
  color: #00a9e0;
}

.item-link:hover i,
.item-link:hover span {
  color: #00a9e0;
}

.tm-input {
  margin: 0 0 16px 0;
  width: 100%;
  padding: 11px 18px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 14px;
}

.tm-input:focus {
  border-color: #00a9e0;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

#contact ::placeholder {
  color: rgba(255, 255, 255, 0.72);
  opacity: 1;
}

.tm-btn-submit {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #101820;
  background-color: #00a9e0;
  border: none;
  border-radius: 30px;
  padding: 12px 34px;
  transition: background-color 0.25s;
}

.tm-btn-submit:hover,
.tm-btn-submit:focus {
  color: #fff;
  background-color: #86a52a;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
  .tm-intro-text-container {
    padding-left: 0;
  }
}

@media (min-width: 1200px) {
  .tm-container-gallery {
    max-width: 1290px;
  }

  .tm-container-contact {
    max-width: 1063px;
  }
}

@media (max-width: 991px) {
  .tm-intro-text-container {
    padding-left: 15px;
    padding-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .tm-hero-title {
    font-size: 3.4rem;
  }

  .tm-section-title {
    font-size: 1.7rem;
  }

  #contact {
    background-attachment: scroll !important;
    padding: 70px 0 60px;
  }

  .tm-btn-submit {
    margin-top: 10px;
  }
}

/* Parallax en movil.
   `background-attachment: fixed` no lo soportan los navegadores moviles, por
   eso estas tres secciones pasaban a `scroll` y el efecto desaparecia.
   Cambiar solo `background-position` tampoco habria servido: medido a 360,
   390, 768 y 991 px, con `background-size: cover` las tres fotos desbordan
   siempre en horizontal y el recorrido vertical disponible es exactamente
   cero, o sea que no habria nada que mover.
   Lo que se hace es dar altura de sobra al fondo -un 124 % de la seccion- y
   deslizarlo dentro de esa holgura desde JavaScript. La foto sigue siendo el
   fondo de la propia seccion, asi que las sustituciones de css/intec-identidad
   .css (por ejemplo intec-contacto.jpg en #contact) se respetan solas.
   Solo en vertical: en apaisado una pantalla de 991x420 no quedaria cubierta
   por el 124 % y asomaria una franja, asi que ahi se deja el comportamiento
   actual. El escritorio no se toca: conserva background-attachment: fixed. */
@media (max-width: 991px) {
  #infinite,
  #testimonials,
  #contact {
    background-attachment: scroll !important;
  }
}

@media (max-width: 991px) and (orientation: portrait) {
  #infinite,
  #testimonials,
  #contact {
    /* Cubre con holgura: la foto mas "cuadrada" es 1:1 y aun asi sobra ancho
       en todas las cajas medidas. El 24 % extra de alto es el recorrido. */
    background-size: auto 124%;
    background-position: center calc(50% + var(--intec-parallax, 0px));
  }
}

/* Si el visitante pidio menos animacion, el fondo se queda centrado. */
@media (max-width: 991px) and (orientation: portrait) and (prefers-reduced-motion: reduce) {
  #infinite,
  #testimonials,
  #contact {
    background-position: center center;
  }
}

@media (max-width: 767px) {

  .tm-hero-title {
    font-size: 2.6rem;
    letter-spacing: 3px;
  }

  .tm-hero-lema {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .tm-gallery-container {
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
  }

  .tm-gallery-container-2 {
    max-width: 350px;
  }

  .slick-dots li {
    margin: 0 7px;
  }

  .tm-gallery-item {
    margin: 0;
  }
}
