/* Tipografía y colores generales */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #000;
  color: #fff;
  margin: 0;
}

/* Títulos con Bebas Neue */
h1, h2, h3 {
  font-family: 'Bebas Neue', cursive;
  letter-spacing: 1px;
  color: #FFA500;
  margin-bottom: 20px;
}

/* Barra de navegación */
.navbar {
  background-color: #111;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
  padding-left: 0;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 4px;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: #FFA500;
  color: #000;
}

/* Hero principal (portada en index.html) */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #000;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 1;
  color: white;
  padding: 0 20px;
}

.hero-text h1 {
  font-family: 'Bebas Neue', cursive;
  font-size: 3.5rem;
  color: #FFA500;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto;
}

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

/* Fondo atenuado para páginas internas */
.fondo-interno {
  background: url('portada-tntcalcos.png') no-repeat center center fixed;
  background-size: cover;
  position: relative;
  z-index: 0;
}

.fondo-interno::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 45);
  z-index: -1;
}

/* Contenido general */
main {
  padding: 20px;
}

.contenido {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

/* Formularios empresas */
.empresas-formulario {
  background-color: #111;
  padding: 30px;
  border-radius: 10px;
}

.form-titulo {
  color: #FFA500;
  text-align: center;
  margin-bottom: 10px;
}

.form-descripcion {
  color: #ccc;
  text-align: center;
  margin-bottom: 30px;
  font-size: 1rem;
  line-height: 1.5;
}

.formulario-empresas {
  display: flex;
  flex-direction: column;
}

.formulario-empresas label {
  color: white;
  margin-bottom: 5px;
  font-weight: bold;
}

.formulario-empresas input,
.formulario-empresas textarea {
  margin-bottom: 25px;
  padding: 12px 15px;
  font-size: 1rem;
  border-radius: 5px;
  border: none;
  width: 100%;
  box-sizing: border-box;
}

.formulario-empresas input:focus,
.formulario-empresas textarea:focus {
  outline: 2px solid #FFA500;
}

/* Botón enviar */
.boton-enviar {
  background-color: #FFA500;
  color: black;
  border: none;
  padding: 15px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s ease;
}

.boton-enviar:hover {
  background-color: #e69500;
}

/* Footer */
footer {
  background-color: #111;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
  .contenido {
    margin: 30px 10px;
  }

  .empresas-formulario {
    padding: 20px;
  }

  .form-descripcion {
    font-size: 0.95rem;
  }

  .hero {
    height: 70vh;
  }
}

.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}
.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}

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

.hero-text {
  position: absolute;
  bottom: 40px;
  width: 100%;
  text-align: center;
  padding: 0 20px;
  color: white;
}

.hero-text h1 {
  font-family: 'Bebas Neue', cursive;
  font-size: 3rem;
  color: #FFA500;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 1.2rem;
}

/* Responsive hero */
@media (max-width: 768px) {
  .hero {
    height: auto;
  }

  .hero img {
    height: auto;
  }

  .hero-text {
    position: static;
    background: #000000aa;
    padding: 20px 10px;
    margin-top: -5px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
}
/* BotÃ³n hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #fff;
  margin: 4px 0;
  transition: all 0.3s ease;
}

/* Ajustes para mÃ³viles */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    flex-direction: column;
    background-color: #111;
    width: 100%;
    padding: 10px 0;
    z-index: 1000;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    margin: 10px 0;
  }
}
/* Estilo para la galería de trabajos */

.galeria-nav {
  text-align: center;
  margin: 30px 0;
}

.galeria-nav .filtro {
  background-color: #111;
  color: #fff;
  border: none;
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  transition: background-color 0.3s ease;
}

.galeria-nav .filtro:hover {
  background-color: #e60e0e;
}

.galeria-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 0 30px 40px;
  background-color: #0e0e0e; /* mismo fondo que la portada */
}

.galeria-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.galeria-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.galeria-item img:hover {
  transform: scale(1.03);
}

.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px auto;
  padding: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.filter-buttons button {
  background-color: #FF7F00;
  color: white;
  border: none;
  padding: 10px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block;
  white-space: nowrap;
}

.filter-buttons button:hover {
  background-color: #ffa640;
}
.filtro-categorias button {
  background-color: transparent;
  color: #000; /* texto negro */
  border: 2px solid #FFA500;
  padding: 10px 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.filtro-categorias button.active,
.filtro-categorias button:hover {
  background-color: #FFA500;
  color: #000;
}

/* Reestablecer estilo de galería en forma de tarjetas */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 30px 0;
}

.galeria-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.6);
  background-color: #111;
  padding: 10px;
  transition: transform 0.3s ease;
}

.galeria-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.galeria-item:hover {
  transform: scale(1.02);
}