/* --- GLOBAL --- */
html, body {
  margin: 0;
  padding: 0;
  overflow-y: auto;
  height: auto;
  scroll-behavior: smooth;
}

/* HEADER OFFSET */
body { padding-top: 100px; }
@media (max-width: 768px){ body { padding-top: 80px; } }

/* --- MENÚ --- */
.menu-header {
  position: fixed;        
  top: 0;
  z-index: 1000;
  background-color: white;
  border-bottom: 1px solid #ddd;
  width: 100%;
}

/* Botón hamburguesa (oculto en desktop) */
.nav-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: 0;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
}



.menu-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100px;
  display: flex;
  justify-content: flex-start;        /* nuevo */
  align-items: center;
  gap: 24px;                          /* nuevo: separa logo y menú */
}

.logo img {
  height: 70px;
  width: auto;
  display: block;                     /* evita espacios raros */
}

/* Agregá esto */
.logo {
  margin-right: auto;                 /* empuja el nav a la derecha */
  display: flex;
  align-items: center;
}

/* (opcional) asegurá alineación del nav */
.menu {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;                 /* opcional */
}

.MenuItemContainer a {
  text-decoration: none;
  font-weight: bold;
  font-family: Arial, sans-serif;
  color: #333;
  padding: 8px 12px;
  transition: color 0.3s ease;
}

.MenuItemContainer a:hover {
  color: #007BFF;
}

/* --- AJUSTE PARA QUE EL HEADER NO TAPE EL CONTENIDO --- */
main, .contenido-principal {
  padding-top: 100px; /* mismo alto que el header */
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .menu-inner {
    padding: 0 20px;
    height: 80px;
  }

  .logo img {
    height: 56px;
  }

  main, .contenido-principal {
    padding-top: 80px; /* ajusta al nuevo alto */
  }

  .menu {
    gap: 16px;
  }

  .nav-toggle { display: block; }      /* mostrar hamburguesa */

}


/* Empiea Nuestra Empresa.html */
.contenido {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.titulo-principal {
  text-align: center;
  color: #007BFF;
  font-size: 2.4rem;
  margin-bottom: 40px;
  font-weight: 700;
}

.contenido section {
  margin-bottom: 40px;
}


.contenido h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #333;
}

.contenido p {
  color: #444;
  line-height: 1.7;
  font-size: 1rem;
}

.valores-lista {
  list-style: none;
  padding-left: 0;
  font-size: 1.1rem;
}

.valores-lista li {
  margin-bottom: 8px;
  padding-left: 0.5em;
}

.grid-cards {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card h2 {
  margin-top: 0;
  color: #007BFF;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.card p, .card ul {
  color: #444;
  line-height: 1.6;
  font-size: 1rem;
  margin: 0;
}

.valores-lista {
  list-style: none;
  padding-left: 0;
}

.valores-lista li {
  margin-bottom: 8px;
}

.card.grande {
  grid-column: span 2;
  padding: 32px;
  background-image: url("../images/banner.jpg"); /* asegurate que exista */
  background-size: cover;
  background-position: center;
  border-left: 6px solid #007BFF;
}

.quienes-somos h2 {
  font-size: 2rem;
  color: #007BFF;
  margin-bottom: 16px;
}


/* termina Nuestra Empresa.html */

/* aca empieza Norgrup.html */
.hero {
  background-image: url("../images/banner.jpg"); /* asegurate que exista */
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  z-index: 0;
  margin-top: 0px; /* deja espacio para que no se superponga con el menú */
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 4rem;
  margin: 0;
  text-transform: uppercase;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-top: 20px;
  font-weight: 300;
  max-width: 600px;
}
/* termina Norgrup.html */

/* aca empieza Servicios.html */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 48px;
  margin: 60px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.servicio-card {
  background-color: aliceblue;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.servicio-card:hover {
  transform: translateY(-4px);
}

.imagen-servicio {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  overflow: hidden;
  position: relative;
}

.servicio-card h2 {
  font-size: 1.3rem;
  color: orange;
  margin: 20px;
  margin-bottom: 0;
  font-weight: 600;
  
}

.servicio-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin: 16px 20px 24px;

}
 .pato {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px;
  background-image: url("../images/banner.jpg"); /* asegurate que exista */
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
 }
.Nuestros-servicios {
  text-align: center;
  color: #007BFF;
  font-size: 2.4rem;
  margin-bottom: 40px;
  font-weight: 700;
 }

 .subtitulos-servicios {
  color: orange;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.8rem;
 }



/* termina servicios.html */

/* empieza Trabajos.html */

.trabajo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.trabajo-grid img:hover {
  transform: scale(1.5);
}

.trabajo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.trabajos-principal {
  grid-column: span 2;
  padding: 32px;

}

.trabajos-titulo {
  font-size: 3em;
  color: #007BFF;
  margin-bottom: 16px;
  text-align: center; 
}


.trabajos-fondo {
 max-width: 1200px;
  margin: 40px auto;
  padding: 40px;
  background-image: url("../images/banner.jpg"); /* asegurate que exista */
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  min-height: calc(100vh - 100px); /* asegurás que se vea mínimo una pantalla */
  padding-bottom: 80px; /* para que el footer no quede apretado */
}

.trabajos-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}


.derechos-footer {
  text-align: center;
  margin-top: 40px;
}

body.pagina-trabajos {
  height: auto;
  overflow-y: auto;
}


/* termina Trabajos.html */

/* empieza Contacto.html */

.redes {
  list-style: none;
  padding: 0;
}

.redes p {
  margin-bottom: 12px;
}

.redes a {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.redes a:hover {
  color: #007BFF;
}

.redes i {
  margin-right: 10px;
  color: #007BFF;
}

.contacto-fondo {
  height: calc(100vh - 100px); /* altura total menos el menú fijo */
  background-image: url('../images/banner.jpg'); /* ajustá ruta */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
}

.contacto-overlay {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: 40px;
  display: flex;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  align-items: center;
}

.contacto-info {
  flex: 1;
}

.contacto-info h2 {
  color: #007BFF;
  font-size: 2rem;
  margin-bottom: 20px;
}

.contacto-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #333;
}

.contacto-info a {
  color: #007BFF;
  text-decoration: none;
}

.contacto-info a:hover {
  text-decoration: underline;
}

.contacto-info i {
  color: #007BFF;
}

.contacto-mapa {
  flex: 1;
  height: 300px;
}

.contacto-mapa iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .contacto-overlay {
    flex-direction: column;
    padding: 20px;
  }

  .contacto-mapa {
    height: 250px;
    width: 100%;
  }
}

/* -- termina Contacto.html -- */

/* ====== MOBILE ONLY ====== */
@media (max-width: 768px) {
  /* Header y compensación del body */
  html, body { padding-top: 0; }  /* anulá el padding global */
  body { padding-top: 80px; }     /* = alto del header en mobile */

  .menu-inner {
    padding: 0 16px;
    height: 72px;                 /* alto del header en mobile */
    gap: 12px;
  }

  .logo img { height: 48px; }

  /* Botón hamburguesa visible en mobile */
  .nav-toggle { 
    display: block;
    margin-left: 8px;
  }

  /* Menú móvil como dropdown */
  .menu {
    position: fixed;
    top: 72px;     /* justo debajo del header */
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: none;            /* cerrado por defecto */
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    z-index: 999;             /* por encima del contenido */
  }
  .menu.is-open { display: flex; }   /* estado abierto */

  .MenuItemContainer a {
    display: block;
    padding: 14px 20px;       /* target táctil cómodo */
    border-top: 1px solid #f4f4f4;
  }

  /* Hero y textos */
  .hero { height: 80vh; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-subtitle { font-size: clamp(1rem, 3.8vw, 1.2rem); }

  /* Secciones/offset para anclas (header fijo) */
  [id]{ scroll-margin-top: 84px; }

  /* Grillas más fluidas */
  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 32px auto;
  }

  .trabajos-galeria {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .trabajo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .trabajo-grid img { height: 160px; }

  /* Tarjetas / contenedores con menos padding */
  .contenido { padding: 24px; margin: 24px auto; }
  .titulo-principal { font-size: 1.8rem; margin-bottom: 24px; }
  .card { padding: 18px; }
  .card.grande { grid-column: auto; padding: 20px; }

  /* Contacto (ya tenías parte) */
  .contacto-overlay { flex-direction: column; padding: 20px; }
  .contacto-mapa { height: 250px; width: 100%; }
}

/* (opcional pero útil) resalta el link activo también en mobile */
.menu a.active {
  color: #007BFF;
  border-bottom: 2px solid #007BFF;
}

@media (max-width: 768px) {
  .menu {
    position: fixed;
    top: 80px; /* justo debajo del header */
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
    z-index: 999;
  }
  .menu.is-open { display: flex; }
}

/* --- FIX MOBILE GALERÍA --- */
@media (max-width: 768px){
  /* La envoltura NO debe ser grid en mobile */
  .trabajos-galeria{
    display: block !important;
    grid-template-columns: none !important;
  }

  /* La grilla real son las fotos */
  .trabajo-grid{
    display: grid !important;
    grid-template-columns: 1fr 1fr;   /* 2 columnas en tel. medianos */
    gap: 12px;
  }

  /* En teléfonos angostos: 1 columna */
  @media (max-width: 480px){
    .trabajo-grid{ grid-template-columns: 1fr; }
  }

  /* Alto más bajo para que no quede pesada la vista */
  .trabajo-grid img{
    height: 160px;           /* ajustá a gusto: 150–200px */
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
  }

  /* Sin zoom hover en touch */
  .trabajo-grid img:hover{ transform: none; }
}