/* Ajustes técnicos 2026: preservan la identidad visual original de Vertebrata. */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
}

#header {
  position: relative;
  z-index: 1000;
  background: #ffffff;
}

/* Recupera el comportamiento original: el encabezado normal se desplaza
   con la página y una copia del menú aparece desde arriba al seguir bajando. */
.stuck-clone {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #660000;
  transform: translate3d(0, -110%, 0);
  visibility: hidden;
  will-change: transform;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.75s;
}

.stuck-clone.is-visible {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 3000;
  transform: translateY(-160%);
  padding: 8px 12px;
  background: #ffffff;
  color: #660000;
  border: 2px solid #660000;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 3px solid #ff6600;
  outline-offset: 3px;
}

.text-justify {
  text-align: justify;
}

.text-center {
  text-align: center;
}

/* Inicio: conserva las tarjetas originales, pero evita los grandes vacíos
   entre ambas filas. */
.home-page .row.wrap_1 {
  padding-top: 45px;
}

.home-page .wrap_6 {
  padding-bottom: 40px;
}

/* Separación aprobada para tarjetas de Servicios, Equipos y Galería. */
.box_7 {
  padding-bottom: 45px;
}

.box_7 .caption {
  padding-top: 12px;
}

.box_7 ul {
  list-style: disc;
  margin-left: 30px;
}

/* La grilla ahora usa el flujo natural del CSS, sin Isotope. */
.isotope.row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  height: auto !important;
}

.element-item {
  float: none;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
}

/* Slider principal: reemplaza Camera.js sin modificar su apariencia general. */
.camera-wrapper {
  background: #e8e8e8;
}

.site-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 5;
  min-height: 200px;
  overflow: hidden;
  background: #e8e8e8;
}

.site-slider .site-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity 0.55s ease;
}

.site-slider .site-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}

.site-slider .site-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.site-slider .camera_caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 150px;
  text-align: center;
}

.site-slider .camera_caption .text_1 {
  padding: 0;
  letter-spacing: 3.4px;
}

.site-slider-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 82px;
  height: 82px;
  margin-top: -41px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d4d8d8;
  color: #660000;
  font: 300 72px/70px Arial, sans-serif;
  text-align: center;
  cursor: pointer;
  transition: color 0.3s ease;
}

.site-slider-control:hover {
  color: #ff6600;
}

.site-slider-prev {
  left: 68px;
}

.site-slider-next {
  right: 67px;
}

/* Testimonios: carrusel liviano, sin dependencia de jQuery. */
.site-testimonials {
  position: relative;
  padding: 0 70px;
}

.site-testimonials .item {
  display: none;
  text-align: center;
}

.site-testimonials .item.is-active {
  display: block;
}

.site-testimonial-control,
.site-client-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #660000;
  font: 300 72px/1 Arial, sans-serif;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 5;
}

.site-testimonial-control:hover,
.site-client-control:hover {
  color: #ff6600;
}

.site-testimonial-prev,
.site-client-prev {
  left: 0;
}

.site-testimonial-next,
.site-client-next {
  right: 0;
}

/* Clientes y mandantes: restaura las filas deslizables con flechas. */
.site-clients {
  position: relative;
  min-height: 120px;
}

.site-clients > .item {
  display: none;
}

.site-clients > .item.is-active {
  display: block;
}

.site-clients .list_3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: nowrap;
}

.site-clients .list_3 li,
.site-clients .list_3 li + li {
  float: none;
  margin-left: 0;
}

.site-clients .list_3 img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Botón volver arriba sin dependencia de jQuery. */
#toTop {
  display: none;
  background: transparent;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-weight: 300;
}

#toTop.is-visible {
  display: block;
}

.map {
  display: block;
  border: 0;
}

@media (max-width: 979px) {
  .stuck-clone {
    display: none !important;
  }

  .site-clients .list_3 {
    flex-wrap: wrap;
  }

  .site-slider-control {
    width: 41px;
    height: 41px;
    margin-top: -20px;
    font-size: 36px;
    line-height: 38px;
  }

  .site-slider-prev {
    left: 34px;
  }

  .site-slider-next {
    right: 34px;
  }

  .site-slider .camera_caption {
    padding: 0 75px;
  }

  .site-slider .camera_caption .text_1 {
    font-size: 48px;
    line-height: 40px;
  }
}

@media (max-width: 767px) {
  .site-slider .camera_caption {
    display: none;
  }

  .site-testimonials {
    padding: 0 45px;
  }

  .site-testimonial-control,
  .site-client-control {
    font-size: 46px;
  }
}

@media (max-width: 479px) {
  .site-slider-prev {
    top: 35px;
    left: 20px;
    margin-top: 0;
  }

  .site-slider-next {
    top: 35px;
    right: auto;
    left: 70px;
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* El usuario prefiere conservar la animación suave del menú flotante,
     incluso si el sistema operativo solicita reducir otras animaciones. */
  .stuck-clone {
    transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.75s !important;
  }

  .stuck-clone.is-visible {
    transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s !important;
  }
}

.brand .brand-heading {
  display: inline-block;
  text-align: left;
}

.content-list {
  list-style: disc;
}

.content-list > li {
  display: list-item;
}
