@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;1,300&display=swap');

/* ==========================
   RESET GENERAL
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
}

/* ==========================
   NAVBAR
========================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  position: fixed;
  top: 0;
  width: 100%;
  background: transparent;
  transition: background 0.3s ease, height 0.3s ease;
  z-index: 1000;
}

/* ==========================
   LOGO
========================== */
.left {
  display: flex;
  align-items: center;
}

.logo {
  height: 60px;
  width: auto;
}

/* ==========================
   MENÚ PRINCIPAL
========================== */
.navbar nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.navbar nav ul li {
  position: relative;
}

.navbar nav ul li a {
  text-decoration: none;
  color: white;
  padding: 8px 10px;
  transition: color 0.3s ease;
}

.navbar nav ul li a:hover {
  color: #ddc9a3;
}

/* ==========================
   SUBMENÚS DROPDOWN
========================== */
.navbar nav ul li ul {
  position: absolute; 
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column; 
  padding: 10px 0;
  border-radius: 6px;
  min-width: 220px;
  z-index: 100;
  background: rgba(105, 28, 50, 0.95);
}

.navbar nav ul li:hover > ul {
  display: flex;
}

.navbar nav ul li ul li a {
  padding: 10px 20px;
  font-size: 16px;
  white-space: nowrap;
  color: white;
}

.navbar nav ul li ul li a:hover {
  background: #bc955c;
  color: #fff;
  border-radius: 4px;
}

/* ==========================
   ICONO MENU MÓVIL
========================== */
.menu-toggle {
  display: none;
  cursor: pointer;
  z-index: 1010;
  filter: invert(0);
  transition: filter 0.3s ease;
}

/* ==========================
   SECCION DE CONTENIDO
========================== */
section {
  /* min-height: 150vh;
  display: flex; */
  justify-content: center;
  align-items: flex-start;
}

/* ==========================
   STICKY NAV
========================== */
.sticky {
  background: rgba(105, 28, 50, 0.95);
  height: 90px;
  box-shadow: 0 2px 10px #691c32;
}

.sticky .left a,
.sticky .right a {
  color: white;
}

.sticky nav ul li a:hover {
  color: #ddc9a3;
}

.sticky nav ul li ul {
  background: rgba(105, 28, 50, 0.95);
}

.sticky nav ul li ul li a {
  color: white;
}

.sticky nav ul li ul li a:hover {
  background: #bc955c;
  color: #fff;
}

/* ==========================
   RESPONSIVE
========================== */
@media screen and (max-width: 800px) {
  .menu-toggle {
    display: block;
  }
  
  .container-fluid2 img {
      display: none;
  }
  
  .navbar {
      background: #691c32 !important;
      box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  }
  

  .right {
    display: flex;
    position: absolute;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #691c32;
    padding-top: 100px;
    transition: right 0.3s ease;
    overflow-y: auto; /* permite scroll si hay muchos submenús */
  }

  .right.active {
    right: 0;
  }

  /* Enlaces principales */
  .navbar nav ul {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .navbar nav ul li {
    width: 100%;
    text-align: center;
  }

  .navbar nav ul li a {
    font-size: 22px;
    color: #fff;
    display: block;
    width: 100%;
    padding: 10px 0;
  }

  .navbar nav ul li a:hover {
    color: #ddc9a3;
  }

  /* Submenús */
  .navbar nav ul li ul {
    position: relative;
    display: none;
    flex-direction: column;
    background: #5a162a; /* tono más oscuro para diferenciar */
    width: 100%;
    padding: 10px 0;
    border-radius: 0;
  }

  /* Mostrar submenú al tocar el padre (cuando tenga clase .active) */
  .navbar nav ul li.active > ul {
    display: flex;
  }

  /* Estilo de enlaces del submenú */
  .navbar nav ul li ul li a {
    font-size: 20px;
    color: #fff;
    padding: 10px 40px;
    text-align: left;
  }

  .navbar nav ul li ul li a:hover {
    color: #ddc9a3;
    background: none;
  }

  /* Sticky navbar en móvil */
  .sticky {
    background: #691c32;
  }

  .sticky .right {
    background: #691c32;
  }
}


