/* =====================
   GENERAL
===================== */
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  background: #0E2C4D;
  color: #fff;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* =====================
   HEADER
===================== */
header {
  background: #12345a;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
}

.logo {
  height: 65px;
}

/* =====================
   NAV
===================== */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu a,
.submenu-toggle {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 600;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.nav-menu a:hover,
.submenu-toggle:hover {
  color: #D4AF37;
}

.menu-btn {
  background: #D4AF37;
  padding: 10px 22px;
  border-radius: 25px;
  color: #0E2C4D !important;
}

/* =====================
   SUBMENÚ
===================== */
.submenu {
  position: relative;
}

.submenu-content {
  position: absolute;
  top: 40px;
  left: 0;
  background: #12345a;
  min-width: 230px;
  border-radius: 10px;
  display: none;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  z-index: 2000;
}

.submenu.open .submenu-content {
  display: flex;
}

.submenu-content a {
  padding: 12px 18px;
  margin: 0;
}

.submenu-content a:hover {
  background: rgba(212,175,55,0.15);
}

/* =====================
   HERO HOME
===================== */
.hero {
  text-align: center;
  padding: 120px 20px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 44, 77, 0.75);
}

.hero * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
}

/* =====================
   HERO INTERNO
===================== */
.hero-interno {
  text-align: center;
  padding: 90px 20px;
  background: linear-gradient(135deg, #0E2C4D, #163a63);
}

.hero-interno h1 {
  font-size: 2.5rem;
}

.hero-interno p {
  max-width: 750px;
  margin: 20px auto 30px;
}

/* =====================
   BOTONES
===================== */
.btn {
  background: #D4AF37;
  color: #0E2C4D;
  padding: 14px 36px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: 0.3s;
}

.btn:hover {
  background: #b8962e;
  transform: translateY(-2px);
}

/* =====================
   SECCIONES
===================== */
.section {
  padding: 90px 0;
}

.section h2 {
  text-align: center;
  color: #D4AF37;
  margin-bottom: 50px;
}

/* =====================
   VALORES
===================== */
.grid-valores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.valor h3 {
  color: #D4AF37;
  margin-bottom: 10px;
}

/* =====================
   SERVICIOS / ÁREAS
===================== */
.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
}

.servicio {
  background: rgba(212,175,55,0.12);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.servicio img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.servicio h3 {
  padding: 20px;
  margin: 0;
}

.servicio:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* =====================
   CONTACTO
===================== */
.contacto form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
}

.contacto input,
.contacto textarea {
  padding: 14px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: none;
  font-family: inherit;
}

/* =====================
   FOOTER
===================== */
footer {
  text-align: center;
  padding: 30px;
  background: #0c243f;
}

/* =====================
   WHATSAPP
===================== */
.whatsapp-fixed {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  padding: 16px 20px;
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
}

/* =====================
   MOBILE
===================== */
.menu-toggle {
  display: none;
  font-size: 32px;
  background: none;
  border: none;
  color: #fff;
}

@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .nav-menu.active {
    display: flex;
  }

  .submenu-content {
    position: static;
    box-shadow: none;
    background: #0E2C4D;
  }

  .grid-valores {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }
}
