/* ---------- GENERAL ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #ffffff;
  color: #004f61;
}

/* ---------- NAVBAR ---------- */
.navbar {
  width: 100%;
  padding: 25px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #004f61;
}

/* ---------- MENU DESKTOP ---------- */
#nav-menu ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

#nav-menu a {
  text-decoration: none;
  color: #004f61 !important;   /* 🔒 color fijo */
  font-weight: 600;
}

/* 🔥 NEUTRALIZAR CUALQUIER PINTADO */
#nav-menu a:hover,
#nav-menu a:active,
#nav-menu a:focus,
#nav-menu a.active {
  color: #004f61 !important;
}

/* ---------- HAMBURGUESA ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #004f61;
  transition: 0.3s;
}

/* ---------- HERO TRABAJOS ---------- */
.hero-trabajos {
  position: relative;
  height: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("FONDO-TRABAJOS.jpg");
  background-size: cover;
  background-position: center;
}

.hero-trabajos .overlay {
  position: absolute;
  inset: 0;
  background: #004f61;
  opacity: 0.2;
}

.hero-content {
  position: relative;
  text-align: center;
  color: #004f61;
  animation: fadeUp 1s ease forwards;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.2rem;
}

/* ---------- GALERÍA ---------- */
.galeria {
  padding: 70px 60px;
}

.galeria h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
}

.grid-galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.item {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

.item img:hover {
  transform: scale(1.08);
}

/* ---------- CTA ---------- */
.cta-section {
  text-align: center;
  padding: 80px 20px;
  background: #004f61;
  color: white;
}

.cta-section .btn-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 38px;
  background: #F9A21B;
  color: #0A295A;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
}

.cta-section .btn-cta:hover {
  background: white;
}

/* ---------- ANIMACIONES ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .grid-galeria {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {

  #nav-menu {
    position: absolute;
    top: 85px;
    left: 0;
    width: 100%;
    background: white;
    display: none;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  #nav-menu.active {
    display: block;
  }

  #nav-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }

  .hamburger {
    display: flex;
  }

  .grid-galeria {
    grid-template-columns: 1fr;
  }
}


