/* =======================
   GENERAL
======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  background: #f8f8f8;
  color: #004f61;
}

/* =======================
   NAVBAR (GLOBAL)
======================= */
.navbar {
  width: 100%;
  padding: 25px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #004f61;
}

/* ----- MENU DESKTOP ----- */
#nav-menu ul {
  display: flex;
  list-style: none;
  gap: 35px;
}

#nav-menu a {
  text-decoration: none;
  color: #004f61;
  font-weight: 600;
  transition: 0.3s;
}

#nav-menu a:hover {
  color: #FDB137;
}

/* ----- HAMBURGUESA ----- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #004f61;
  border-radius: 4px;
  transition: 0.3s;
}

/* ----- RESPONSIVE NAV (ÚNICO) ----- */
@media (max-width: 850px) {

  #nav-menu {
    position: absolute;
    top: 85px;
    left: 0;
    width: 100%;
    background: white;
    display: none;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  }

  #nav-menu.active {
    display: block;
  }

  #nav-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .hamburger {
    display: flex;
  }
}

/* ----- ANIMACIÓN HAMBURGUESA ----- */
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =======================
   HERO (GENÉRICO)
======================= */
.hero {
  height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-content {
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.4;
}

/* =======================
   CONTACTO
======================= */
.contact-container {
  max-width: 1150px;
  margin: 50px auto;
  background: white;
  padding: 60px;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.07);
}

.contact-header {
  text-align: center;
  margin-bottom: 50px;
}

.contact-header h1 {
  font-size: 46px;
  font-weight: 800;
  margin-bottom: 10px;
}

.contact-header p {
  font-size: 17px;
  color: #333;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 50px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 18px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
}

.contact-form textarea {
  height: 140px;
  resize: none;
}

.contact-form button {
  width: 190px;
  padding: 14px 0;
  background: #FDB137;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

/* ----- CONTACT INFO ----- */
.contact-info h2 {
  font-size: 28px;
  margin-bottom: 22px;
}

.info-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

/* ----- CONTACT RESPONSIVE ----- */
@media (max-width: 850px) {
  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-form button {
    width: 100%;
  }

  .contact-container {
    padding: 40px 25px;
  }
}

/* =======================
   TRABAJOS
======================= */
.hero-trabajos {
  height: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-trabajos .overlay {
  position: absolute;
  inset: 0;
  background: #004f61;
  opacity: 0.2;
}

.hero-trabajos .hero-content {
  position: relative;
}

.galeria {
  padding: 70px 60px;
}

.grid-galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.item {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----- GALERIA RESPONSIVE ----- */
@media (max-width: 900px) {
  .grid-galeria {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-galeria {
    grid-template-columns: 1fr;
  }
}

/* =======================
   CTA
======================= */
.cta-section {
  text-align: center;
  padding: 80px 20px;
  background: #004f61;
  color: white;
}

.btn-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 38px;
  background: #FDB137;
  color: #0A295A;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
}

