:root {
  --c1: #0f1113;      
  --c2: #1c1f23;      
  --c3: #2a2f35;      
  --accent: #2c5f75; 
  --text: #e6e6e6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  list-style: none;
  text-decoration: none;
}

html {
  scroll-padding-top: 80px;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(rgba(0,0,0,.75), rgba(0,0,0,.75)), url(media/fondo-general.jpg) no-repeat center/cover fixed;
  color: var(--text);
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1px;
}

/*header */
.header {
  position: sticky;
  top: 0;
  background: var(--c1);
  height: 70px;
  z-index: 100;
}

.nav {
  max-width: 1100px;
  margin: auto;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 20px;
}

.logo { 
  height: 50px; 
  transition: transform 0.3s ease-out;
}

.logo:hover {
  transform: scale(1.08);
}

.nav-menu {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 5vw, 80px);
}

.nav-menu-link {
  font-family: 'Rajdhani', sans-serif;
  color: var(--text);
  font-size: 1.1rem;
  letter-spacing: 2px;
  position: relative;
}

.nav-menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: .3s;
}

.nav-menu-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  color: var(--text);
  font-size: 2rem;
  border: none;
  cursor: pointer;
}

.hero-bienvenida {
  width: 100%;
  height: 100vh; 
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url("media/volcanLanin.jpg") no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero-contenido {
  max-width: 900px; 
  display: flex;
  flex-direction: column; 
  align-items: center;    
  gap: 25px;   
}

.hero-bienvenida h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem); 
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.2;
  text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.7); 
}

.hero-logo {
  height: clamp(60px, 12vw, 110px); 
  width: auto;
  object-fit: contain;
  filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.6)); 
}

/*banners */
.banners {
  background: transparent;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 60px 10px;
  gap: 12px;
}

.banner {
  width: 400px;
  min-height: 250px; 
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
  cursor: pointer;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  transition: background 0.1s ease-out;
}

.banner:hover, .banner:active {
  transform: scale(1.03); 
  box-shadow: 0 15px 30px rgba(0,0,0,0.8); 
  z-index: 10; 
}

.banner:hover::before, .banner.active::before {
  background: rgba(0,0,0,0.2); 
}

.banner h1 {
  position: relative;
  text-transform: uppercase;
  text-align: center;
  padding: 12px 18px;
  letter-spacing: 2px;
  font-size: 2.1rem;
  color: #e6e6e6;
}

#banner1 { background-image: url("media/obra.jpeg"); }
#banner2 { background-image: url("media/oilAndGas.jpg"); }
#banner3 { background-image: url("media/rentalLogistica.jpg"); }
#banner4 { background-image: url("media/reunion.png"); }
#banner5 { background-image: url("media/mantenimiento.webp"); }
#banner6 { background-image: url("media/equipoRooftop.jpg"); }
#banner7 { background-image: url("media/tablero.png"); }

/* info*/
.fondo-compartido { 
  width: 100%;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url("media/fondo2.jpg") no-repeat center center/cover fixed;
}
.info-main {
  max-width: 1100px;
  margin: auto;
  padding: 80px 20px;
  display: grid;
  gap: 40px; 
}
.info-section {
  background: var(--c2);
  padding: 35px;
  border-left: 16px solid var(--accent);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  text-align: center;
}

.info-section h1 {
  display: inline-block;
  cursor: pointer;
  margin-bottom: 20px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-position: bottom left;
  background-repeat: no-repeat;
  background-size: 0% 3px; 
  transition: background-size 0.1s ease-out;
}

.info-section:hover h1 {
  background-size: 100% 3px;
}
.info-section p {
  text-align: justify;
  margin-bottom: 10px;
}

.info-section ul {
  display: table; 
  margin: 15px auto 0 auto;
  text-align: center; 
}

.control-solutions {
  font-weight: bold;
  text-transform: uppercase;
  color: var(--accent);
}

/*footer */
.footer {
  background: var(--c1);
  padding: 50px 20px 20px;
}

.footer-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
  align-items: start;
  padding: 0 20px;
}

.footer-col:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo { height: 60px; margin-bottom: 10px; }
.footer-slogan { font-size: 0.9rem; letter-spacing: 1px; }
.footer-link { color: var(--text); }
.footer-link:hover { text-decoration: underline; }
.footer-col:nth-child(2),
.footer-col:nth-child(3) { text-align: justify; }
.copy { margin-top: 30px; text-align: center; font-size: 0.8rem; opacity: .7; }

/*flecha para subir arriba*/
#toTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 55px;
  height: 55px;
  background: #737373;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #0f1113;
  cursor: pointer;
  transition: .3s;
  z-index: 200;
  border: none;
}

#toTop:hover { transform: scale(1.08); }

/*responsiveness*/

@media (max-width: 768px) {
  .nav { grid-template-columns: auto auto; }
  .nav-menu { 
    position: fixed; 
    top: 70px; 
    left: 100%; 
    flex-direction: column; 
    width: 100%; 
    height: 100%; 
    background: var(--c2); 
    align-items: center; 
    padding-top: 40px; 
    transition: .3s; 
    gap: 30px; 
  }
  .nav-menu_visible { left: 0; }
  .nav-toggle { display: block; }
  .banner { width: 100%; } 
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col:nth-child(2),
  .footer-col:nth-child(3) { display: flex; flex-direction: column; align-items: center; }
}