/* === RESETEO BÁSICO === */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background-color: #111;
  color: #ddd;
  padding-top: 70px; /* espacio por la navbar fija */
}

/* === NAVBAR === */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 38px;
  height: 38px;
}

.logo-text {
  color: #f7931e;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* NAV LINKS (DESKTOP) */
.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: #eee;
  margin-left: 15px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: 0.2s;
}

.nav-links a:hover {
  color: #f7931e;
}

/* BOTÓN HAMBURGUESA (OCULTO EN DESKTOP) */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #eee;
  margin: 5px 0;
  transition: 0.3s;
}

/* Animación del ícono al abrir */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === HERO === */
.hero {
  position: relative;
  height: 100vh;
  background: url('./img/tanque-industrial-1.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.hero .content {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: #f7931e;
  text-shadow: 0 0 18px black;
}

.hero p {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  margin: 10px 0 30px;
  color: #f5f5f5;
}

/* === BOTONES === */
.boton {
  display: inline-block;
  background-color: #f7931e;
  color: #111;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
  margin: 8px;
}

.boton:hover {
  background-color: #ffa94d;
  transform: scale(1.05);
}

/* === BLOQUES GENERALES === */
.bloque {
  padding: 80px 20px;
  text-align: center;
}

.bloque-oscuro {
  background-color: #181818;
}

.bloque h2 {
  color: #f7931e;
  font-size: 2rem;
  margin-bottom: 15px;
}

.bloque p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
}

.intro {
  max-width: 800px;
  margin: 0 auto 40px;
  color: #ccc;
}

/* === GRID GENERAL === */
.grid {
  max-width: 1100px;
  margin: 40px auto 0;
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* === CARDS === */
.card {
  background-color: #1f1f1f;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
  transition: 0.3s;
  text-align: left;
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card h3 {
  margin: 15px 15px 5px;
  color: #f7931e;
  font-size: 1.1rem;
}

.card p {
  margin: 0 15px 15px;
  color: #ddd;
  font-size: 0.95rem;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(247,147,30,0.5);
}

.card-simple {
  padding: 18px 18px 22px;
}

.card-simple h3 {
  margin: 0 0 8px;
}

.card-simple p {
  margin: 0;
}

/* === IMÁGENES EXTRA SERVICIOS === */
.grid-img-extra {
  margin-top: 30px;
  justify-content: center;
}

.extra-img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(0,0,0,0.7);
}

/* === INDUSTRIAS === */
.industrias-grid {
  max-width: 1000px;
  margin: 40px auto 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.industria-card {
  background-color: #202020;
  border-radius: 10px;
  padding: 20px 18px;
  border: 1px solid #333;
  text-align: left;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  transition: 0.2s;
}

.industria-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #f7931e;
  font-size: 1.15rem;
}

.industria-card p {
  margin: 0;
  color: #ccc;
  font-size: 0.95rem;
}

.industria-card:hover {
  border-color: #f7931e;
  box-shadow: 0 0 18px rgba(247,147,30,0.4);
}

/* === GALERÍA DE TRABAJOS === */
.galeria-grid {
  max-width: 1100px;
  margin: 40px auto 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.galeria-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0,0,0,0.7);
  transition: 0.3s;
}

.galeria-img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 18px rgba(247,147,30,0.5);
}

/* === CONTACTO === */
#contacto p {
  margin: 8px 0;
}

#contacto .correo,
#contacto .ubicacion {
  color: #aaa;
  font-size: 0.95rem;
}

/* MAPA */
.mapa-contenedor {
  max-width: 900px;
  margin: 25px auto 0;
}

/* === FOOTER === */
footer {
  background-color: #000;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #777;
}

/* === LIGHTBOX === */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 2000;
}

#lightbox.show {
  opacity: 1;
  visibility: visible;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

/* === RESPONSIVE (MÓVIL) === */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  /* Mostrar hamburguesa y ocultar menú clásico */
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    height: calc(100vh - 70px);
    width: 260px;
    background-color: #000;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 10px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.8);
  }

  .nav-links.show {
    transform: translateX(0);
  }

  .nav-links a {
    margin: 8px 0;
    font-size: 0.95rem;
  }

  .hero {
    height: 80vh;
  }

  .galeria-img {
    height: 180px;
  }
}

















  