html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* previene cualquier desplazamiento horizontal */
}

/* Accesibilidad: link "saltar al contenido" para usuarios de teclado/screen reader */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: #2b1112;
  color: #fff;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-weight: bold;
}
.skip-to-content:focus {
  left: 1rem;
  top: 1rem;
}

/* Focus visible en todos los elementos interactivos (accesibilidad teclado) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #ec6e35;
  outline-offset: 2px;
}

/* ===== Hero blocks (home) ===== */
.hero-blocks {
  overflow: hidden;
  height: 100vh !important;
  min-height: 100vh;
}
.hero-blocks > .row {
  height: 100vh;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.hero-block {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  min-height: 100vh;
  height: 100vh;
  padding: 0 !important;
  max-width: none !important;
  width: auto !important;
  flex: initial;
}
.hero-block__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 2rem;
  transition: transform 0.35s cubic-bezier(.22, .61, .36, 1);
}
.hero-block__img {
  max-width: 60%;
  max-height: 70%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Cortina (::before) que cae desde arriba cerrando la "ventana".
   Hereda el color de fondo del bloque (primary_color / secundary_color / third_color)
   para que parezca el mismo bloque cerrandose. Al hacer hover sube y revela la imagen. */
.hero-block::before {
  content: "";
  position: absolute;
  /* Se extiende 1px a la derecha para superponerse con la cortina del
     bloque vecino y eliminar cualquier subpixel gap visible */
  inset: 0 -1px 0 0;
  z-index: 2;
  /* Cortina: blanco arriba degradando a gris oscuro abajo (efecto sombra) */
  background: linear-gradient(to bottom, #ffffff 0%, #e8e8e8 40%, #a0a0a0 100%);
  pointer-events: none;
  /* Estado base (despues de la animacion): cortina abajo cubriendo */
  transform: translateY(0);
  transition: transform 0.55s cubic-bezier(.4, 0, .2, 1);
  /* 'backwards' solo aplica ANTES del delay (cortina arriba escondida);
     despues de terminar la animacion, el elemento usa su valor CSS regular
     (translateY 0) y el hover puede sobrescribirlo con la transition. */
  animation: hero-curtain-drop 1.5s backwards;
}

@keyframes hero-curtain-drop {
  0%   { transform: translateY(-100%); animation-timing-function: cubic-bezier(.45, 0, .8, .4); }
  35%  { transform: translateY(0); animation-timing-function: cubic-bezier(.2, 0, .3, 1); }
  50%  { transform: translateY(-9%); animation-timing-function: cubic-bezier(.5, .5, .8, 1); }
  65%  { transform: translateY(0); animation-timing-function: cubic-bezier(.2, 0, .3, 1); }
  77%  { transform: translateY(-4%); animation-timing-function: cubic-bezier(.5, .5, .8, 1); }
  87%  { transform: translateY(0); animation-timing-function: cubic-bezier(.2, 0, .3, 1); }
  94%  { transform: translateY(-1.2%); animation-timing-function: cubic-bezier(.5, .5, .8, 1); }
  100% { transform: translateY(0); }
}

.hero-block:nth-child(1)::before { animation-delay: 0.05s; }
.hero-block:nth-child(2)::before { animation-delay: 0.2s; }
.hero-block:nth-child(3)::before { animation-delay: 0.35s; }

/* Desktop: hover sube la cortina revelando la imagen debajo. La
   transition definida en .hero-block::before hace la animacion suave
   tanto al subir (hover) como al bajar (un-hover). */
@media (hover: hover) and (pointer: fine) {
  .hero-block:hover::before {
    transform: translateY(-100%);
  }
}

/* Mobile: cada bloque ocupa el viewport completo (full height) */
@media (max-width: 767.98px) {
  .hero-blocks,
  .hero-blocks > .row {
    height: 100vh !important;
  }
  /* En mobile, grid de una columna y 3 filas */
  .hero-blocks > .row {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
  }
  .hero-block {
    min-height: 33.333vh !important;
    height: 33.333vh !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Mobile: las cortinas empiezan CERRADAS al cargar (sin caer) y se
     abren con stagger para revelar las 3 opciones horizontales. */
  .hero-block::before {
    animation: hero-curtain-open 0.8s 0.5s ease-out forwards;
  }
  .hero-block:nth-child(1)::before { animation-delay: 0.5s; }
  .hero-block:nth-child(2)::before { animation-delay: 0.8s; }
  .hero-block:nth-child(3)::before { animation-delay: 1.1s; }
}

@keyframes hero-curtain-open {
  to { transform: translateY(-100%); }
}

/* Respeta usuarios con reduce-motion */
@media (prefers-reduced-motion: reduce) {
  .hero-block {
    animation: none;
  }
  .hero-block__link {
    transition: none;
  }
}

/*NUEVAS CLASES*/
/*FUENTES*/
.ofs11 {
  font-size: clamp(100px, 11vw, 220px) !important;
}

.ofs4 {
  font-size: clamp(30px, 4vw, 60px) !important;
}

.ofs3 {
  font-size: clamp(20px, 3vw, 38px) !important;
}

.ofs2 {
  font-size: clamp(29px, 2.8vw, 33px) !important;
}

.ofs1-5 {
  font-size: clamp(25px, 1.5vw, 28px) !important;
}
.ofs1-3 {
  font-size: clamp(17px, 1.5vw, 22px) !important;
}
.ofs1 {
  font-size: clamp(15px, 1vw, 17px) !important;
}

.ofs05 {
  font-size: clamp(10px, 1vw, 13px) !important;
}

/*TERMINA FUENTES*/
/*COLORES*/
.principal_color {
  background-color: #ec6e35;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.primary_color {
  background-color: #ec6e35;
}

.secundary_color {
  background-color: #2b1112;
}

.third_color {
  background-color: #334f48;
}
.fourth_color {
  background-color: #d9d8c4;
}

.secundary_color_gradient {
  background-color: rgba(43, 17, 18, 0.5);
}

.secundary_color_gradient_o2 {
  background-color: rgba(43, 17, 18, 0.2);
}

.border_primary {
  border: 2px solid #ff5e00 !important;
}

.text_primary_color {
  color: #ff5e00;
}
.text_secondary_color {
  color: #2b1112;
}

.text_positive_color {
  color: #006837;
}
.text_danger_color {
  color: red;
}

/*TERMINA COLORES*/
/*EMPIEZA BORDES*/
.bgradient1 {
  border-width: 1px;
  border-style: solid;
  border-image-slice: 1;
  border-image-source: linear-gradient(45deg, #ff5e00, #390000);
  border-radius: 0;
}
.bprimary_color {
  border-color: #ff5e00 !important;
}
/*TERMINA BORDES*/
/*EMPIEZA MARGIN NEGATIVOS*/
.margin_nb05 {
  margin-bottom: -0.5rem;
}
.margin_nb1 {
  margin-bottom: -1rem;
}
/*TERMINA MARGIN NEGATIVOS*/
/*EMPIEZA MARGIN POSITIVOS*/

.h-75-custom {
  min-height: 75vh;
}

/*TERMINA MARGIN POSITIVOS*/
/*FONDOS DE SECCIONES*/

.bg_dark {
  background-color: #333333;
}

.bg_light {
  background-color: #666666;
}

/*FONDOS DE SECCIONES*/
/*BOTONES*/
.btn_principal {
  background: #c4955f !important;
  color: #fff !important;
}

/*TERMINA BOTONES*/
/*TERMINAN NUEVAS CLASES*/

/*PARA EL HOVER DE LOS SITIOS*/
.web-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.web-card img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.web-card:hover img {
  transform: scale(1.05);
  filter: brightness(60%);
}

.web-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.25rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.web-card:hover .web-overlay {
  opacity: 1;
}
/*TERMINA HOVER*/

/*EL TIMELINE*/
.timeline {
  position: relative;
  margin-left: 30px;
  border-left: 4px solid #cb4443; /* azul Bootstrap */
  padding-left: 20px;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 20px;
}

.timeline-marker {
  position: absolute;
  left: -12px;
  top: 0;
  width: 16px;
  height: 16px;
  background-color: #cb4443;
  border-radius: 50%;
  border: 3px solid white;
  z-index: 1;
}

.timeline-content h5 {
  margin-bottom: 5px;
}

.timeline-content p {
  margin: 0;
}

.fade-in-left,
.fade-in-right {
  opacity: 0;
  transition: all 1.5s ease-out;
  will-change: opacity, transform;
}

/* Botón hamburguesa */
.navbar-toggler {
  width: 30px;
  height: 30px; /* cuadrado perfecto */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent !important; /* transparente */
  border: none;
  padding: 0;
  margin-right: 10px;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none !important;
}

.toggler-line {
  position: absolute;
  width: 100%;
  height: 3px;
  background: #2b1112; /* oscuro por defecto (paginas con tema claro) */
  border-radius: 5px;
  transition: all 0.4s ease;
  left: 0;
  box-sizing: border-box;
}

/* En paginas con tema oscuro (brand) o cuando el navbar tiene fondo, lineas blancas */
.navbar-fade .toggler-line,
.navbar-dark .toggler-line {
  background: #fff;
}

/* Al hacer scroll y aplicarse navbar-top-fade, ajustar contraste */
.navbar-top-fade .toggler-line {
  background: #fff;
}

/* Posición inicial */
.toggler-line:nth-child(1) {
  top: 5px;
}
.toggler-line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.toggler-line:nth-child(3) {
  bottom: 5px;
}

/* Animación X */
.navbar-toggler.active .toggler-line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.navbar-toggler.active .toggler-line:nth-child(2) {
  opacity: 0;
}

.navbar-toggler.active .toggler-line:nth-child(3) {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%) rotate(-45deg);
}

/*TERMINA BOTON HAMBURGUESA*/

/*PHOTO SHOW*/
.gallery-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 15px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}
/*TERMINA PHOTO SHOW*/

.btn-primary {
  background-color: #2b1112;
  border: none;
}
.carousel-control-prev {
  background: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4));
}

.carousel-control-next {
  background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4));
}

/* Posición inicial */
.fade-in-left {
  transform: translateX(-30px);
}
.fade-in-right {
  transform: translateX(30px);
}

/* Cuando son visibles */
.fade-in-left.visible,
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/*TERMINA TIMELINE*/

.dropdown-item:focus,
.dropdown-item:hover {
  background-color: #ffffff !important;
  color: #2b1112;
}

.main-text-color {
  color: #008d36 !important;
}

.secondary-bg-color {
  background-color: #008d36 !important;
}

.mb-10 {
  margin-bottom: 10rem;
}

.py-10 {
  padding-bottom: 6rem !important;
  padding-top: 6rem !important;
}

.pt-10 {
  padding-top: 6rem !important;
}
.pb-10 {
  padding-bottom: 6rem !important;
}

.pt-10 {
  padding-top: 6rem !important;
}

.w-5 {
  width: 5% !important;
}

.w-i100px {
  width: 100px;
  margin-top: -10px;
}

#section_1 {
  background-color: #ffffff;
}

#section_3 {
  background-image: url(../../images/isologo.webp);
  height: auto;
  background-size: 150%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: 80% 60%;

  /*animation: movimiento 50s infinite linear alternate;*/
}

#contact_section {
  background-image: url(../../images/isologo_neg.webp);
  height: auto;
  background-size: 150%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: 80% 60%;

  /*animation: movimiento 50s infinite linear alternate;*/
}

.p4_section_1 {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url("../../images/p4_section_1/portada.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8); /* Glow negro */
}

.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* (eliminado: estilo duplicado que rompia el toggler con fondo blanco) */

.navbar-brand img {
  height: 40px; /* Ajusta el alto */
  width: auto; /* Mantiene la proporción */
}
.tittle_text_m {
  width: 100%;
  float: left;
  font-size: 100px;
  text-transform: uppercase;
  text-align: center;
}

.tittle_text {
  width: 100%;
  float: left;
  font-size: 100px;
  color: #090808;
  text-transform: uppercase;
  text-align: center;
}

.paragraph_text_m {
  width: 100%;
  float: left;
  font-size: 30px;
  text-align: center;
}

.paragraph_text_m_left {
  width: 100%;
  float: left;
  font-size: 30px;
  text-align: left;
}

.paragraph_text {
  width: 100%;
  float: left;
  font-size: 30px;
  color: #090808;
  text-align: center;
}

.tittle_text_secondary {
  width: 100%;
  float: left;
  font-size: 50px;
  color: #090808;
  text-transform: uppercase;
  text-align: center;
}

.paragraph_text_secondary {
  width: 100%;
  float: left;
  font-size: 25px;
  color: #090808;
  text-align: center;
}

.paragraph_text_secondary_2 {
  width: 100%;
  float: left;
  font-size: 18px;
  color: #090808;
  text-align: center;
}

.paragraph_text_secondary_3 {
  width: 100%;
  float: left;
  font-size: 18px;
  color: #090808;
}

.dropdown-menu {
  white-space: nowrap;
  max-width: 100vw; /* o algo como 300px si querés limitarlo */
  overflow-x: auto;
  right: auto !important; /* Evita que se “pegue” al borde derecho si usás dropdown-menu-end */
  left: 0 !important; /* Alinea hacia la izquierda */
  transform: translateX(0) !important; /* Asegura que no se desplace con transformaciones */
}

.dropdown-menu a:hover {
  background-color: #333333;
}

.navbar-light {
  position: fixed;
  z-index: 9999;
  width: 100%;
  background-color: #ffffff;
  /*border-bottom: 1px solid #fff;*/
  -webkit-transition:
    background 1.5s ease-in-out,
    padding 1.5s ease-in-out,
    color 1.5s ease-in-out,
    font-color 1.5s ease-in-out,
    font-size 1.5s ease-in-out;
  -moz-transition:
    background 1.5s ease-in-out,
    padding 1.5s ease-in-out,
    color 1.5s ease-in-out,
    font-color 1.5s ease-in-out,
    font-size 1.5s ease-in-out;
  transition: background 1.5s ease-in-out;
}

.pg3 {
  background-color: transparent;
}

.navbar-light a {
  -webkit-transition: color 1.5s ease-in-out;
  -moz-transition: background 1.5s ease-in-out;
  transition: background 1.5s ease-in-out;
  font-weight: 100;
}
.navbar-light .dropdown-menu {
  background-color: #ffffff !important;
  color: #000000 !important;
  -webkit-transition: color 1.5s ease-in-out;
  -moz-transition: background 1.5s ease-in-out;
  transition: background 1.5s ease-in-out;
}

.navbar-top-fade {
  background-color: rgba(255, 255, 255, 1) !important ;
  -webkit-transition:
    background 1.5s ease-in-out,
    padding 1.5s ease-in-out,
    color 3s ease-in-out,
    font-color 1.5s ease-in-out,
    font-size 1.5s ease-in-out;
  -moz-transition:
    background 1.5s ease-in-out,
    padding 1.5s ease-in-out,
    color 1.5s ease-in-out,
    font-color 1.5s ease-in-out,
    font-size 1.5s ease-in-out;
  transition:
    background 1.5s ease-in-out,
    padding 1.5s ease-in-out,
    color 3s ease-in-out,
    font-color 1.5s ease-in-out,
    font-size 1.5s ease-in-out;
}
.navbar-top-fade {
  background-color: rgba(0, 0, 0, 1) !important ;
}

.navbar-top-fade .dropdown-menu {
  background-color: #ffffff !important;
  color: #000000 !important;
  -webkit-transition: color 1.5s ease-in-out;
  -moz-transition: background 1.5s ease-in-out;
  transition: background 1.5s ease-in-out;
}

/* .curtain-container — antes tenia su propia ::before con gradiente gris.
   Ahora la cortina vive en .hero-block::before (mismo color que el bloque)
   y se anima al cargar. Mantenemos position relative + overflow hidden. */
.curtain-container {
  position: relative;
  overflow: hidden;
}

.courtain-content {
  position: relative;
  z-index: 2; /* encima de la cortina */
  padding: 20px;
  color: white;
}
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

/* Section anidada (.hero-section dentro de otra) — no duplicar el 100vh */
.hero-section .hero-section {
  min-height: 0;
  height: 100%;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover !important;
  z-index: 0;
  display: block;
}

.hero-section .container-fluid {
  position: relative;
  z-index: 1;
}

/* Breakpoints alineados con Bootstrap 5: sm 576, md 768, lg 992, xl 1200, xxl 1400 */

@media (max-width: 767.98px) {
  /* Menu desplegable en mobile: fondo solido + padding para legibilidad */
  .navbar .navbar-collapse {
    background-color: #ffffff;
    padding: 1rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
  }
  /* Apilar las dos secciones del menu (izquierda y derecha) en columna */
  .navbar .navbar-collapse > .d-flex {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  /* Stack vertical, ancho completo */
  .navbar .navbar-nav {
    flex-direction: column;
    width: 100%;
  }
  /* Linea fina divisoria entre la primera y segunda seccion */
  .navbar .navbar-collapse .navbar-nav + .navbar-nav {
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }
  /* Tipografia mas grande para mobile (doble del .ofs1 base) */
  .navbar .navbar-collapse .nav-link {
    color: #2b1112 !important;
    padding: 0.85rem 1.25rem;
    font-size: clamp(20px, 5.5vw, 28px) !important;
  }
  .navbar .nav-item {
    border: none !important;
  }
  /* Variante oscura (brand): fondo oscuro + texto blanco */
  .navbar.navbar-fade .navbar-collapse {
    background-color: #2b1112;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .navbar.navbar-fade .navbar-collapse .nav-link {
    color: #ffffff !important;
  }
  .navbar.navbar-fade .navbar-collapse .navbar-nav + .navbar-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  /* Items del dropdown de idioma tambien mas grandes */
  .navbar .navbar-collapse .dropdown-menu {
    font-size: clamp(18px, 5vw, 26px);
  }
  .navbar .navbar-collapse .dropdown-item {
    padding: 0.75rem 1.25rem;
  }

  /* (Hero mobile maneja altura desde la regla .hero-block mas arriba) */
}

/* Regla global: las secciones vh-100 nunca deben recortar contenido.
   Se mantienen como minimo 100vh pero pueden crecer (evita que una
   seccion se monte sobre la siguiente cuando el contenido crece). */
section.vh-100,
.vh-100 {
  height: auto !important;
  min-height: 100vh;
}

@media (max-width: 991.98px) {
  .h-100 {
    height: auto !important;
  }
}

@media (max-width: 575.98px) {
  #p4_section_1 {
    background-image: url("../../images/frontpages/frontpage4_mob.webp");
    background-size: 70%;
    background-color: #242525;
  }

  /* Reduce padding excesivo en cards de contacto */
  #contact_section .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

footer {
  margin-top: auto; /* Empuja el footer al final */
}

/* ========== Marquee de logos de clientes ========== */
.logos-marquee {
  overflow: hidden;
  width: 100%;
  padding: 2rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logos-marquee__track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: logos-scroll 40s linear infinite;
}

.logos-marquee:hover .logos-marquee__track {
  animation-play-state: paused;
}

.logos-marquee__item {
  flex: 0 0 auto;
  width: clamp(110px, 14vw, 180px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logos-marquee__item img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: grayscale(0%);
  transition: filter 0.3s ease;
}

@keyframes logos-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logos-marquee__track {
    animation-duration: 120s;
  }
}
