/* ===== HEADER ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1000;
}

/* ===== LOGO ===== */
.logo { display: flex; align-items: center; }
.logo img { height: 75px; width: 75px; }

/* ===== NAV WEB ===== */
.navweb { display: flex; align-items: center; flex: 1; margin-left: 50px; }
.linksnav { display: flex; align-items: center; gap: 30px; }
.navweb a { text-decoration: none; color: black; font-size: 16px; font-weight: 500; transition: color 0.3s; }
.navweb a:hover { color: #eb3d00; }

/* ===== BOTÓN MENÚ HAMBURGUESA ===== */
.botonmenu { display: flex; align-items: center; justify-content: flex-end; }
.btn-menu label { color: black; font-size: 31px; cursor: pointer; transition: color 0.3s; }
.btn-menu label:hover { color: #eb3d00; }

/* Ocultar checkbox nativo */
#btn-menu { display: none; }

/* ===== MENÚ DESPLEGABLE (OVERLAY) ===== */
.directorio-menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px); /* Efecto moderno de desenfoque de fondo */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  z-index: 9999;
}

/* Contenedor deslizante del menú */
.dire-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estado activo cuando se presiona el checkbox */
#btn-menu:checked ~ .directorio-menu {
  opacity: 1;
  visibility: visible;
}

#btn-menu:checked ~ .directorio-menu .dire-menu {
  transform: translateX(0);
}

/* ===== ESTILOS DE LOS ENLACES DEL MENÚ LATERAL ===== */
.nav-item {
  display: block;
  width: 100%;
  text-decoration: none;
  padding: 12px 16px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
  box-sizing: border-box;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.nav-item:hover, .dropdown-group:hover .dropdown-btn {
  background-color: #fff1ed; /* Tono sutil marca ladrillo */
  color: #eb3d00;
  border-left: 4px solid #eb3d00;
}

/* ===== GRUPO NOSOTROS DESPLEGABLE ===== */
.dropdown-links { 
  display: none; 
}
.dropdown-group:hover .dropdown-links { 
  display: block; 
}

/* ===== UTILIDADES Y ANIMACIONES ===== */
@keyframes slow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.animate-bounce-slow { animation: slow-bounce 3s infinite ease-in-out; }

@keyframes pulse-whatsapp {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.animate-whatsapp-pulse { animation: pulse-whatsapp 3s infinite ease-in-out; }

/* Ocultar menú web en pantallas chicas */
@media (max-width: 767px) { 
  .navweb { display: none; } 
}