/* ============================================
   VARIABLES Y COLORES GLOBALES
   ============================================ */
:root {
  --color-primary: #dd5d2a;
  --color-secondary: #dd5d2a;
  --color-dark: #22272b;
  --color-text: #333;
  --color-text-light: #555;
  --color-bg-light: #f8f8f8;
  --color-white: #ffffff;
  --color-gray: #bbbbbb;
  --transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-container {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-container2 {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  color: var(--color-white);
  max-width: 880px;
  z-index: 2;
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: -5%;
  font-family: "Poppins", sans-serif;

}

.hero-text p {
  font-size: clamp(0.85rem, 2vw, 1rem);
  line-height: 1.7;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: -5%;
  text-align: justify;
}

.hero-text .highlight {
  color: var(--color-secondary);
  font-weight: 600;
  letter-spacing: -5%;
  font-size: 15px;
}

.btn-border-orange {
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
  transition: var(--transition);
  border-radius: 0%;
}

.btn-border-orange:hover {
  border-color: var(--color-secondary);
  color: var(--color-white);
  background-color: var(--color-secondary);
}

.btn-cotizar {
  background-color: transparent;
  border: 2px solid var(--color-secondary);
  color: var(--color-white);
  padding: 12px 35px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  position: relative;
  border-radius: 0%;
}

.btn-cotizar::after {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.btn-cotizar:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-white);
}

.btn-cotizar:hover::after {
  transform: translateX(5px);
}

.hero-contact {
  position: absolute;
  top: 3rem;
  right: 13rem;
  text-align: left;
  z-index: 3;
  color: var(--color-white);
}

.contact-label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
  letter-spacing: -5%;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  text-decoration: none;
  font-weight: 400;
  font-size: 16px;
  transition: var(--transition);
}

.contact-phone img {
  width: 22px;
}

.contact-phone:hover {
  color: var(--color-secondary);
}

/* ============================================
   ABOUT INTERSTEEL SECTION
   ============================================ */
.about-intersteel {
  width: 100%;
  overflow: hidden;
  background-color: var(--color-white);
}

.about-intersteel img {
  height: 100%;
  object-fit: cover;
}

.orange-box {
  background-color: var(--color-primary);
  max-width: 600px;
  color: var(--color-white);
  padding: 40px 40px;
}

.orange-box h2 {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #000000 !important;
}

.orange-box p {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.9;
  color: var(--color-white) !important;
}

.orange-box .btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
  color: var(--color-primary);
}

.orange-box .btn:hover i {
  transform: translateX(4px);
}

/* ============================================
   FULLWIDTH IMAGE & TEXT SECTIONS
   ============================================ */
.fullwidth-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.image-text-section {
  background-color: var(--color-white);
}

.img-80 {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.text-content {
  max-width: 500px;
  text-align: left;
}

.text-content h2 {
  font-size: 2rem;
  color: #000;
}

.text-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  text-align: left;
  text-align: justify;
}

.text-content .btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
  color: var(--color-primary);
}

.text-content .btn {
  border-color: var(--color-primary);
  background-color: transparent;
  color: #000000;
}

.text-content .btn:hover i {
  transform: translateX(4px);
}

/* ============================================
   TIMELINE SECTION
   ============================================ */
.timeline-section {
  background-color: white;
  overflow-x: hidden;
}

.timeline-title {
  color: var(--color-primary);
  font-weight: 600;
}

/* ESCRITORIO: Scroll horizontal */
.timeline-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 20px;
  display: flex;
  cursor: grab;
}

.timeline-scroll::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(to right, var(--color-primary) 30%, #ddd 100%);
  opacity: 0.4;
}

.timeline-item {
  flex: 0 0 300px;
  min-height: 180px;
  position: relative;
  padding-bottom: 15px;
}

.timeline-item .year {
  display: block;
  font-size: 32px;
  font-weight: bold;
  color: var(--color-primary);
  border-left: 3px solid var(--color-primary);
  padding-left: 8px;
  font-weight: 400;
}

.timeline-item h5 {
  font-weight: 600;
  font-size: 20px;
  color: var(--color-primary);
}

.timeline-item p {
  color: var(--color-dark);
  font-size: 15px;
  font-weight: 400;
}

.timeline-scroll::-webkit-scrollbar {
  height: 8px;
}

.timeline-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.timeline-scroll::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 10px;
}

.timeline-scroll::-webkit-scrollbar-thumb:hover {
  background: #0056b3;
}

/* MÓVIL: Scroll vertical */
@media (max-width: 768px) {
  .timeline-title {
    display: block !important; /* Fuerza a que se muestre */
    text-align: left;
    margin-bottom: 30px;
  }
  
  .timeline-scroll {
    flex-direction: column; /* Cambia a vertical */
    overflow-x: hidden; /* Oculta scroll horizontal */
    overflow-y: auto; /* Activa scroll vertical */
    max-height: 900px; /* Altura máxima para el scroll */
    padding-bottom: 0;
    gap: 30px; /* Espacio entre items */
    cursor: default;
  }
  
  /* Elimina el pseudo-elemento de la línea horizontal */
  .timeline-scroll::after {
    display: none;
  }
  
  /* Elimina el indicador de scroll horizontal */
  .timeline-scroll::before {
    display: none;
  }
  
  .timeline-item {
    flex: 0 0 auto; /* Altura automática */
    min-height: auto;
    width: 100%;
    padding: 20px;
    border-left: 3px solid var(--color-primary);
    margin-bottom: 0;
  }
  
  .timeline-item .year {
    border-left: none;
    padding-left: 0;
    font-size: 28px;
    margin-bottom: 10px;
  }
  
  .timeline-item h5 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .timeline-item p {
    font-size: 14px;
    line-height: 1.5;
  }
  
  /* Scrollbar vertical personalizada */
  .timeline-scroll::-webkit-scrollbar {
    width: 6px;
    height: auto;
  }
  
  .timeline-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }
  
  .timeline-scroll::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 10px;
  }
}

/* Para tablets pequeñas */
@media (max-width: 576px) {
  .timeline-scroll {
    max-height: 600px;
  }
  
  .timeline-item {
    padding: 15px;
  }
  
  .timeline-item .year {
    font-size: 24px;
  }
  
  .timeline-item h5 {
    font-size: 16px;
  }
  
  .timeline-item p {
    font-size: 13px;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.3; }
}

/* ===================================
   SCROLLBAR PERSONALIZADO VISIBLE
   (Compatible con iOS, macOS, Safari)
   ================================== */

/* Ocultar scrollbar nativo en todos los navegadores */
.timeline-scroll {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE y Edge */
}

.timeline-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Contenedor del scrollbar personalizado */
.custom-scrollbar-container {
  width: 100%;
  height: 12px;
  margin-top: 15px;
  position: relative;
  display: block;
}

/* Track del scrollbar */
.custom-scrollbar-track {
  width: 100%;
  height: 8px;
  background: #f1f1f1;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  top: 50%;
  transform: translateY(-50%);
}

/* Thumb del scrollbar */
.custom-scrollbar-thumb {
  position: absolute;
  height: 100%;
  background: var(--color-primary);
  border-radius: 10px;
  cursor: grab;
  transition: background 0.2s ease;
  min-width: 40px; /* Ancho mínimo para que sea fácil de agarrar */
}

.custom-scrollbar-thumb:hover {
  background: #c55a3a; /* Color más oscuro al hover */
}

.custom-scrollbar-thumb:active {
  cursor: grabbing;
  background: #b04d2f; /* Color aún más oscuro al arrastrar */
}

/* Indicador visual de que se puede arrastrar */
.timeline-scroll {
  cursor: grab;
  user-select: none;
}

.timeline-scroll:active {
  cursor: grabbing;
}

/* Ajustes para móvil - Ocultar scrollbar personalizado */
@media (max-width: 768px) {
  .custom-scrollbar-container {
    display: none !important;
  }
  
  /* Restaurar scrollbar nativo en móvil (vertical) */
  .timeline-scroll {
    scrollbar-width: thin;
    -ms-overflow-style: auto;
  }
  
  .timeline-scroll::-webkit-scrollbar {
    display: block;
    width: 6px;
  }
  
  .timeline-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }
  
  .timeline-scroll::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 10px;
  }
}

/* Animación suave para el scrollbar */
.custom-scrollbar-thumb {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efecto de brillo al pasar el mouse por el track */
.custom-scrollbar-track:hover {
  background: #e8e8e8;
}

/* Para pantallas muy pequeñas */
@media (max-width: 576px) {
  .custom-scrollbar-container {
    display: none !important;
  }
}

/* ============================================ 
   CONTADOR SECTION 
   ============================================ */ 
.contador-section { 
  position: relative; 
  width: 100%; 
  overflow: hidden; 
  background-color: var(--color-white); 
  min-height: 600px; /* altura mínima para mejor visualización */
} 
 
.imagen-grua { 
  width: 100%; 
  height: auto;
  display: block; 
  object-fit: cover;
} 
 
/* Contenedor encima de la imagen */ 
.contador-content { 
  position: absolute; 
  inset: 0;
  display: flex; 
  flex-direction: column;
  z-index: 2;
  padding: 40px;
} 
 
/* Fondo semitransparente para mayor contraste */ 
.contador-content::before { 
  content: ""; 
  position: absolute; 
  inset: 0; 
  z-index: -1; 
} 
 
/* Título - SIEMPRE arriba a la izquierda */ 
.titulo-contador { 
  font-size: 55px; 
  font-weight: 400; 
  color: var(--color-text); 
  max-width: 900px;
  margin: 0;
  align-self: flex-start; /* alinea a la izquierda */
  padding-top: 20px;
} 
 
.titulo-contador span { 
  color: var(--color-secondary); 
  font-weight: 600; 
  font-size: 55px; 
} 
 
/* Contenedor para centrar el número y texto */
.contador-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1; /* ocupa el espacio restante */
  margin-top: auto;
  margin-bottom: 60px; /* posicionado un poco hacia abajo */
}

/* Número - Centrado horizontal y vertical */ 
.contador-numero { 
  font-size: 200px; 
  font-weight: 700; 
  color: var(--color-gray); 
  line-height: 0.8; 
  text-align: center; 
  margin-bottom: 20px; 
} 
 
/* SUPERÍNDICE CORRECTO */ 
.contador-numero sup { 
  font-size: 0.25em; 
  position: relative; 
  top: -2em; 
} 
 
/* Texto pequeño - Centrado */ 
.contador-text { 
  font-size: 32px; 
  font-weight: 400; 
  color: var(--color-gray); 
  text-align: center; 
  letter-spacing: 2px;
}


/* ============================================ 
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets (hasta 992px) */
@media (max-width: 992px) {
  .titulo-contador {
    font-size: 42px;
    max-width: 100%!important;
  }
  
  .titulo-contador span {
    font-size: 42px;
  }
  
  .contador-numero {
    font-size: 150px;
  }
  
  .contador-text {
    font-size: 26px;
  }
}

/* Móviles (hasta 768px) */
@media (max-width: 768px) {
  .contador-section {
    min-height: 500px;
  }
  
  .contador-content {
    padding: 30px 20px;
  }
  
  .titulo-contador {
    font-size: 32px;
    max-width: 100%;
    padding-top: 10px;
  }
  
  .titulo-contador span {
    font-size: 32px;
  }
  
  .contador-numero {
    font-size: 100px;
  }
  
  .contador-text {
    font-size: 20px;
    letter-spacing: 1px;
  }
  
  .contador-wrapper {
    margin-bottom: 40px;
  }

  .galeria-titulo {
    font-size: 20px!important;
   }

   .galeria-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    max-width: 100%!important;
    margin: 0 auto;
}

.galeria-info h3, .galeria-texto-izquierda h3 {
  font-size: 15px!important;
}

.galeria-texto-derecha span {
  font-size: 19px!important;
 }

 .hero-container img {
    /* width: auto; */
    height: 100%;
    object-fit: cover;
    object-position: center;
}

 .hero-container2 img {
    width: 10%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cities-box .title .text-orange {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 30px!important;
}

.cities-box .title {
  font-size: 30px!important;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-white);
}

}

/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
  .contador-section {
    min-height: 450px;
  }
  
  .contador-content {
    padding: 0px 15px;
  }
  
  .titulo-contador {
    font-size: 24px;
  }
  
  .titulo-contador span {
    font-size: 24px;
  }
  
  .contador-numero {
    font-size: 60px;
  }
  
  .contador-numero sup {
    font-size: 0.3em;
  }
  
  .contador-text {
    font-size: 14px;
    letter-spacing: 0.5px;
  }
  
  .contador-wrapper {
    margin-bottom: 30px;
    align-items: start!important;
  }
  .galeria-titulo {
    font-size: 20px!important;
   }

   .galeria-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    max-width: 100%!important;
    margin: 0 auto;
}

.galeria-info h3, .galeria-texto-izquierda h3 {
  font-size: 15px!important;
}

.galeria-texto-derecha span {
  font-size: 10px!important;
 }

 .hero-container img {
    width: auto;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

 .hero-container .proyectos{
    width: inherit;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


.cities-box .title .text-orange {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 30px!important;
}

.cities-box .title {
  font-size: 30px!important;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-white);
}
}

/* Para pantallas extra grandes */
        @media (min-width: 1400px) {
            .cities-box {
                padding: 5rem 3rem;
            }
            
            .service-title {
                font-size: 1.5rem;
            }
            
            .cities-list p {
                font-size: 1.1rem;
            }
        }
        
        @media (min-width: 1800px) {
            .cities-box {
                max-width: 1600px;
            }
        }

/* ============================================
   PROJECTS MAP SECTION
   ============================================ */


.projects-map-section {
  width: 100%;
  overflow: hidden;
}

.projects-map-section img {
  height: 100%;
  object-fit: cover;
}

.bg-light-gray {
  background-color: var(--color-dark);
}

.cities-box .title {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-white);
}

.cities-box {
  padding: 40px 40px;
}

.cities-box .title .text-orange {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 40px;
}

.cities-list {
  max-height: 300px;
  overflow-y: auto;
  /* padding: 13%; */
}

.cities-list ul li {
  font-size: 1rem;
  color: var(--color-white);
  padding: 6px 0;
  /* border-bottom: 1px solid #ddd; */
}

.cities-list ul li h2 {
  font-size: 25px;
  font-weight: 700;
}

.cities-list ul li p{
  font-size: 15px;
  font-weight: 400;
  text-align: justify;
}


.cities-list::-webkit-scrollbar {
  width: 6px;
}

.cities-list::-webkit-scrollbar-track {
  background: #e6e6e6;
}

.cities-list::-webkit-scrollbar-thumb {
  background-color: var(--color-primary);
  border-radius: 10px;
}

.state-group {
  margin-bottom: 15px;
}

.state-title {
  color: var(--color-primary); /* Amarillo */
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  padding: 5px 0;
}

.list-unstyled {
  /* display: grid; */
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 8px;
}

.cities-box .btn {
  border-color: var(--color-primary);
}

.cities-box .btn i {
  color: var(--color-primary);
}

.service-title {
  color: #fff;
  cursor: pointer;
  transition: color 0.3s ease;
}

.service-title:hover {
  color: #dd5d2a;
  opacity: 0.8;
}

.service-title.active {
  color: #dd5d2a !important;
}

#service-image {
  transition: opacity 0.3s ease;
  width: 35rem !important;
  height: auto !important;
}

/* ============================================
   GALERIA SECTION
   ============================================ */
.galeria-section {
  width: 100%;
  padding: 60px 20px;
  background-color: var(--color-bg-light);
}

.galeria-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  /* max-width: 1400px; */
  margin-left: auto;
  margin-right: auto;
}

.galeria-titulo {
  font-size: 55px;
  color: var(--color-secondary);
  font-weight: 400;
}

.galeria-titulo span {
  color: var(--color-text);
  font-weight: 600;
}

.ver-todo-btn {
  background-color: transparent;
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
  padding: 10px 30px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
  font-weight: 500;
  border-radius: 0%;
}

.ver-todo-btn:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.galeria-container {
  width: 100%;
  overflow: hidden;
}

.galeria-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 20px;
  max-width: 90%;
  margin: 0 auto;
}

.galeria-scroll::-webkit-scrollbar {
  height: 8px;
}

.galeria-scroll::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 10px;
}

.galeria-scroll::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 10px;
}

.galeria-scroll::-webkit-scrollbar-thumb:hover {
  background: #e55a2b;
}

.galeria-item {
  flex: 0 0 400px;
  position: relative;
  /* border-radius: 8px; */
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.galeria-item2 {
  flex: 0 0 400px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.galeria-itemIndex {
  flex: 0 0 400px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.galeria-itemIndex img {
  width: 100%;
  object-fit: cover;
  display: block;
}


.galeria-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.galeria-item2 img {
  width: 100%;
  height: 650px;
  object-fit: cover;
  display: block;
}

.galeria-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #000000bd;
  padding: 20px;
  color: var(--color-white);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
   min-height: 100px;
}

.galeria-texto-izquierda {
  flex: 1;
}

.galeria-info h3,
.galeria-texto-izquierda h3 {
  font-size: 18px;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--color-secondary);
}

.galeria-info p,
.galeria-texto-izquierda p {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
}

.galeria-texto-derecha {
  display: flex;
  align-items: flex-end;
  padding-bottom: 2px;
}

.galeria-texto-derecha span {
  font-size: 14px;
  color: var(--color-white);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.galeria-texto-derecha span:hover {
  color: var(--color-secondary);
}

/* ============================================
   FOOTER SECTION
   ============================================ */
    .footer {
      background-color: var(--color-primary);
      color: var(--color-white);
      padding: 60px 40px 30px;
      position: relative;
      overflow: hidden;
    }

    .footer::before {
      content: "INTERSTEEL";
      position: absolute;
      font-size: clamp(80px, 15vw, 200px);
      font-weight: bold;
      color: rgba(255, 255, 255, 0.05);
      bottom: -50px;
      left: 50%;
      transform: translateX(-50%);
      letter-spacing: 10px;
      pointer-events: none;
    }

    .footer-container {
      max-width: 1400px;
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }

    /* Header - Título Contacto (ancho completo, alineado a la izquierda) */
    .footer-header {
      margin-bottom: 40px;
    }

    .footer-titulo {
      font-size: 48px;
      font-weight: 300;
      display: flex;
      align-items: center;
      gap: 15px;
      margin: 0;
    }

    .arrow {
      font-size: 48px;
      font-weight: 300;
      color: #000000;
    }

    /* Grid de 4 columnas: 2fr + 1fr + 1fr + 1fr */
    .footer-content {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 40px;
      margin-bottom: 40px;
    }

    /* Columna Mapa de sitio - dividida en 2 sub-columnas */
    .footer-sitemap {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 30px;
    }

    .sitemap-column h4 {
      font-size: 17px;
      margin-bottom: 15px;
      font-weight: 600;
      letter-spacing: 1px;
      color: #000000;
    }

    .sitemap-column ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .sitemap-column ul li {
      margin-bottom: 10px;
    }

    .sitemap-column ul li a {
      color: var(--color-white);
      text-decoration: none;
      font-size: 14px;
      transition: var(--transition);
    }

    .sitemap-column ul li a:hover {
      opacity: 1;
      padding-left: 5px;
    }

    /* Columnas normales */
    .footer-column h4 {
      font-size: 17px;
      margin-bottom: 15px;
      font-weight: 600;
      letter-spacing: 1px;
      color: #000000;
    }

    .footer-column ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .footer-column ul li {
      margin-bottom: 10px;
    }

    .footer-column ul li a {
      color: var(--color-white);
      text-decoration: none;
      font-size: 13px;
      font-weight: 400;
      transition: var(--transition);
    }

    .footer-column ul li a:hover {
      opacity: 1;
    }

    /* Redes sociales */
    .social-icons {
      display: flex;
      gap: 15px;
      margin-bottom: 25px;
      flex-wrap: wrap;
    }

    .social-icon img{
      width: 25px;
      height: 25px;
      /* border: 1px solid var(--color-white); */
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--color-white);
      text-decoration: none;
      transition: var(--transition);
    }

    /* .social-icon:hover {
      background-color: var(--color-white);
      color: var(--color-primary);
    } */

    /* Newsletter */
    .newsletter-btn {
      width: 100%;
      height: 45px;
      background-color: transparent;
      color: var(--color-white);
      border: 1px solid var(--color-white);
      border-radius: 4px;
      font-size: 16px;
      font-weight: 500;
      cursor: pointer;
      transition: var(--transition);
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      padding: 0 20px;
    }

    .newsletter-btn:hover {
      background-color: var(--color-white);
      color: var(--color-primary);
    }

    /* Logo */
    .footer-logo {
      display: flex;
      align-items: flex-start;
      justify-content: flex-start;
    }

    .footer-logo img {
      width: 150px;
      height: auto;
    }

    /* Footer bottom */
    .footer-bottom {
      text-align: center;
      padding-top: 30px;
      border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .footer-bottom p {
      font-size: 13px;
      opacity: 0.8;
      margin: 0;
    }

    /* Responsive */
    @media (max-width: 1024px) {
      .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 30px;
      }

      .footer-logo {
        grid-column: span 3;
        justify-content: center;
        margin-top: 20px;
      }
    }

    @media (max-width: 768px) {
      .footer {
        padding: 40px 20px 20px;
      }

      .footer-titulo {
        font-size: 32px;
      }

      .arrow {
        font-size: 32px;
      }

      .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
      }

      .footer-sitemap {
        grid-template-columns: 1fr;
      }

      .footer-logo {
        grid-column: span 1;
        justify-content: flex-start;
      }
    }

    @media (max-width: 480px) {
      .footer-titulo {
        font-size: 28px;
      }

      .arrow {
        font-size: 28px;
      }

      .footer-sitemap {
        gap: 20px;
      }
    }
/* ============================================
   MEDIA QUERIES - CONSOLIDADOS
   ============================================ */

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-logo {
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 20px;
  }
}

/* Tablets pequeñas (max-width: 992px) */
@media (max-width: 992px) {
  .hero-text h1 {
    font-size: 20px;
    line-height: 160%;
    font-weight: 400;
  }

  .hero-text {
    max-width: 80%;
  }

  .hero-contact {
    top: 100px;
    right: 2rem;
    font-size: 0.9rem;
  }

  .contact-phone {
    font-size: 0.95rem;
  }

  .orange-box {
    width: 100%;
    max-width: 100%;
    padding: 40px 25px;
    text-align: center;
     text-align: left!important;
    align-items: flex-start!important;
  }

  .orange-box-mobile {
    order: 2;
    text-align: left!important;
    align-items: flex-start!important;
  }

  .orange-box .btn {
  align-self: flex-end; /* Botón a la derecha */
  margin-left: auto; /* Empuja el botón a la derecha */
  }

  .about-intersteel .col-lg-6:nth-child(1) {
    order: 1;
  }

  .about-intersteel .col-lg-6:nth-child(2) {
    order: 3;
  }

  .img-80 {
    width: 100%;
  }

  .text-content {
    max-width: 100%;
    text-align: center;
  }

  .projects-map-section .col-lg-8,
  .projects-map-section .col-lg-4 {
    height: auto;
  }

  .cities-list {
    /* max-height: 200px; */
    padding: 0px 15px 0px 0px;
  }

  .cities-box {
    text-align: left;
    font-size: 20px;
    padding: 70px 20px !important;
  }

  .cities-box .title br {
    display: none;
  }

  .cities-list ul li p {
    text-align: left;
  }
}

/* Móviles grandes (max-width: 768px) */
@media (max-width: 768px) {
  .hero-container {
    min-height: 500px;
  }

  .service-image {
    width: 34px;
    height: 34px;
    object-fit: cover;
    flex-shrink: 0;
}

  .hero-text p {
    font-size: 16px;
    width: auto;
    align-content: justify;
  }

  .btn-cotizar {
    padding: 10px 25px;
    font-size: 0.9rem;
  }

  .hero-contact {
    top: 0;
    right: 1rem;
  }

  .contact-label {
    font-size: 0.75rem;
  }

  .contact-phone {
    font-size: 0.85rem;
  }

  .contador-section {
    padding: 20px;
    min-height: 300px;
  }

  .titulo-contador {
    max-width: 100%;
  }

  .imagen-grua {
    width: 100%;
    position: absolute;
    top: 25%;
  }

  .timeline-item {
    flex: 0 0 250px;
  }

  .galeria-section {
    padding: 40px 20px;
  }

  .galeria-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .galeria-item {
    flex: 0 0 300px;
  }

  .galeria-item img {
    height: 250px;
  }

  .footer {
    padding: 40px 20px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cities-list {
    /* max-height: 200px; */
    padding: 0px 15px 0px 0px;
    text-align: left;
  }
}

/* Móviles pequeños (max-width: 576px) */
@media (max-width: 576px) {
  .btn-cotizar {
    width: 100%;
    justify-content: center;
  }

  .hero-contact {
    position: static;
    text-align: center;
    margin-top: 2rem;
  }
}

/* ============================================
   CONSTRUCCIONES SECTION
   ============================================ */
.construcciones-section {
    width: 100%;
    padding: 80px 10px;
    background-color: var(--color-white);
    overflow: hidden;
}

.construcciones-header {
    max-width: 100%;
    /* margin: 0 auto 60px; */
    padding: 40px 0;
    position: relative;
    background-color: var(--color-white);
}

/* Texto animado que se desplaza */
.texto-animado-container {
    width: 100%;
    overflow: hidden;
    /* margin-bottom: 20px; */
    /* opacity: 0.1; */
}

.texto-animado {
    display: flex;
    white-space: nowrap;
    animation: scrollTexto 20s linear infinite;
}

.texto-animado h2 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    color: var(--color-text);
    margin-right: 100px;
    /* text-transform: uppercase; */
}

@keyframes scrollTexto {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Título principal */
.construcciones-titulo {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    color: var(--color-text);
    margin: 0;
    text-align: left;
}

.construcciones-titulo .text-orange {
    color: var(--color-secondary);
    font-weight: 600;
}

/* Container */
.construcciones-container {
    /* max-width: 1400px; */
    margin: 0 auto;
    position: relative;
}

/* Grid de construcciones */
.construcciones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.construccion-item {
    display: flex;
    flex-direction: column;
}

.construccion-imagen {
    width: 100%;
    height: 250px;
    overflow: hidden;
    /* border-radius: 8px; */
    margin-bottom: 20px;
}

.construccion-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.construccion-item:hover .construccion-imagen img {
    transform: scale(1.08);
}

.construccion-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.construccion-info p {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
    color: #000;
    margin: 0;
}

/* Controles del slider - ocultos por defecto */
.slider-controls {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-secondary);
    background-color: transparent;
    color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--color-secondary);
    width: 30px;
    border-radius: 5px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablets */
@media (max-width: 992px) {
    .construcciones-section {
        padding: 60px 30px;
    }

    .construcciones-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .construccion-item:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}

/* Móviles - Activar slider */
@media (max-width: 768px) {
    .construcciones-section {
        padding: 50px 20px;
    }

    .construcciones-header {
        /* margin-bottom: 40px; */
    }

    .texto-animado span {
        margin-right: 50px;
    }

    /* Convertir grid en slider */
    .construcciones-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 20px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .construcciones-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    .construccion-item {
        flex: 0 0 100%;
        scroll-snap-align: center;
                border: solid 1px #CDCDCD;
        padding: 10px;
    }

    .construccion-item:last-child {
        grid-column: auto;
        max-width: 100%;
        margin: 0;
    }

    .construccion-imagen {
        height: 220px;
    }

    /* Mostrar controles del slider */
    .slider-controls {
        display: flex;
    }
}

@media (max-width: 576px) {
    .construccion-item {
        flex: 0 0 100%;
                border: solid 1px #CDCDCD;
        padding: 10px;
    }

    .construccion-imagen {
        height: 200px;
    }

    .construccion-info h3 {
        font-size: 18px;
    }

    .construccion-info p {
        font-size: 13px;
    }
}

/* ============================================
   LIGHTBOX / IMAGE PREVIEW
   ============================================ */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  /* border-radius: 8px; */
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 30px 20px 20px;
  color: var(--color-white);
  /* border-radius: 0 0 8px 8px; */
}

.lightbox-info h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.lightbox-info p {
  font-size: 16px;
  margin-bottom: 5px;
  opacity: 0.9;
}

.lightbox-info .location {
  font-size: 14px;
  opacity: 0.8;
  display: block;
}

/* Botón cerrar */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--color-white);
  border-radius: 50%;
  color: var(--color-white);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10001;
}

.lightbox-close:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: rotate(90deg);
}

/* Botones de navegación */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--color-white);
  border-radius: 50%;
  color: var(--color-white);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10001;
}

.lightbox-nav:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Contador de imágenes */
.lightbox-counter {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10001;
}

/* Responsive */
@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95%;
  }

  .lightbox-close,
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-info h3 {
    font-size: 18px;
  }

  .lightbox-info p {
    font-size: 14px;
  }

  .lightbox-counter {
    top: 10px;
    padding: 8px 15px;
    font-size: 12px;
  }
}

/* Agregar cursor pointer a las imágenes de la galería */
.galeria-item {
  cursor: pointer;
  transition: var(--transition);
}

.galeria-item:hover {
  opacity: 0.9;
}

/* ===== Hero específico de portafolio ===== */
.hero-portafolio {
  background-color: var(--color-dark);
  min-height: 150px; /* altura mínima para pantallas pequeñas */
  height: 25vh; /* base en pantallas normales */
}

/* ===== Responsivo ===== */
@media (max-width: 768px) {
  .hero-portafolio {
    height: 10vh; /* más alto en móviles */
    min-height: 115px;
  }
  .hero-portafolio-contact {
    margin-left: 25%;
  }
}

.contact-section {
  background-color: #fff;
  overflow: hidden;
}

.contact-image img {
  height: 100%;
  object-fit: cover;
}

.contact-info {
  position: absolute;
  bottom: 20px;
  left: 25px;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.4;
  background: rgba(0, 0, 0, 0.45);
  padding: 10px 15px;
  border-radius: 8px;
}

.contact-title {
  position: absolute;
  top: 30px;
  left: 50px;
  font-size: 6rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.05);
  /* text-transform: uppercase; */
  pointer-events: none;
  width: 100%;
}

.stagger-item {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  /* background-color: var(--color-white); */
}

.contact-form input,
.contact-form textarea {
  border: none;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  padding: 0.75rem 0.5rem;
  background-color: transparent;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: none;
  border-color: #000;
}

.contact-details img {
  opacity: 0.6;
}

.contact-details p {
  line-height: 1.4;
  color: #444;
}

@media (max-width: 768px) {
  .contact-title {
    font-size: 3.5rem;
    left: 20px;
  }
  .contact-info {
    position: relative;
    background: none;
    color: #333;
    padding: 1rem 0;
  }
  .contact-details {
    margin-top: 2rem;
  }
}



/* === ANIMACIONES INTERSTEEL – ESTILO FERRO.PT === */

/* SECCIONES PRINCIPALES */
.section-animate {
  opacity: 0;
  transform: translateY(80px);
  filter: blur(6px);
  transition:
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-animate.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* VARIANTES */
.section-animate.slide-in-left {
  transform: translateX(-80px);
}
.section-animate.slide-in-right {
  transform: translateX(80px);
}
.section-animate.scale-in {
  transform: scale(0.92);
}
.section-animate.slide-up {
  transform: translateY(100px);
}

.section-animate.slide-in-left.visible,
.section-animate.slide-in-right.visible,
.section-animate.scale-in.visible,
.section-animate.slide-up.visible {
  transform: translate(0) scale(1);
  opacity: 1;
  filter: blur(0);
}

/* ELEMENTOS INTERNOS */
.animate-item {
  opacity: 0;
  transform: translateY(50px);
  filter: blur(5px);
  transition:
    opacity 1s cubic-bezier(0.25, 1, 0.5, 1),
    transform 1s cubic-bezier(0.25, 1, 0.5, 1),
    filter 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.animate-item.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ELEMENTOS ESCALONADOS (stagger) */
.stagger-item {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(4px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    filter 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  font-size: 16px;
  font-weight: 600;
}
.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.service-title-proyecto {
  color: #FFF;
  cursor: pointer;
  transition: color 0.3s ease;
}

.service-title-proyecto:hover {
  color: #dd5d2a;
  opacity: 0.8;
}

.service-title-proyecto.active {
  color: #dd5d2a !important;
}

#service-image-proyecto {
  transition: opacity 0.3s ease;
  width: 35rem !important;
  height: auto !important;
}

/* ELEMENTOS DE SERVICIO */
.service-item {
  opacity: 0;
  transform: translateY(60px);
  filter: blur(6px);
  transition:
    opacity 1s cubic-bezier(0.25, 1, 0.5, 1),
    transform 1s cubic-bezier(0.25, 1, 0.5, 1),
    filter 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.service-item.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* BOTONES */
.btn-animate {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0%;
}
.btn-animate:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* IMÁGENES */
.img-animate {
  overflow: hidden;
}
.img-animate img {
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-animate:hover img {
  transform: scale(1.07);
}


/* ============================================
   PARALLAX EFFECTS
   ============================================ */

/* Contenedor base para parallax */
.parallax-container {
  overflow: hidden;
  position: relative;
}

/* Efecto parallax en imágenes */
.parallax-img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Parallax suave para hero */
.hero-container img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Parallax para secciones específicas */
.parallax-slow {
  transition: transform 0.6s ease-out;
}

.parallax-medium {
  transition: transform 0.5s ease-out;
}

.parallax-fast {
  transition: transform 0.4s ease-out;
}

/* Optimización de performance */
.parallax-container,
.parallax-img,
.hero-container img {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}