:root {
  --color-primary: #e63946;
  --color-dark: #1c1c1c;
  --color-gray: #6c757d;
  --color-light-gray: #b0b0b0;
  --color-light: #f8f9fa;
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1ebe5d;

  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 2px 10px rgba(0, 0, 0, 0.3);

  --bg-color: #1f1f1f;
  --text-color: #fff;
  --hover-color: #333;
  --accent-color: #00bfa6;
  --font-family: 'Segoe UI', sans-serif;
}

body.dark-mode {
  --bg-color: #f4f4f4;
  --text-color: #111;
  --hover-color: #ddd;
  --accent-color: #00796b;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 90px;
  padding: 20px;
  background: white;
  box-shadow: var(--shadow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

/* ===== NAVIGATION BAR ===== */
.nav_bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
}

.nav_logo img {
  width: 100px;
  height: 100px;
  margin: auto;
}

.menu_button_ul {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

/* ===== NAV LINKS ===== */
.nav_links {
  margin: auto;
  display: flex;
  gap: 40px;
  list-style: none;
  align-items: center;
  justify-content: center;
}

.nav_link_item a {
  position: relative;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-dark);
  text-decoration: none;
  transition: 0.5s ease-in-out;
}

.nav_link_item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 4px;
  background-color: red;
  border-radius: 3px;
  transition: 0.5s ease-in-out;
}

.nav_link_item a:hover::after {
  width: 100%;
}

.nav_link_item a:hover {
  color: red;
}

/* ===== WHATSAPP BUTTON ===== */
.button_nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 240px;
  height: 40px;
  border: none;
  border-radius: 30px;
  background-color: rgb(212, 5, 5);
  box-shadow: 0px 4px 12px rgba(255, 0, 0, 0.4);
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.button_nav:hover {
  transform: scale(1.01);
  background-color: rgb(207, 5, 5);
}

a .button_nav {
  font-size: 17px;
  font-weight: 900;
  color: white;
  text-decoration: none;
}

/* ===== MOBILE ICON ===== */
.nav_mobile_icon {
  display: none;
  transition: transform 0.3s ease;
}

.nav_mobile_icon i.fa-x {
  transform: rotate(90deg);
}

/* ===== MENU LATERAL ===== */
.menu_lateral {
  position: fixed;
  right: 0;
  top: 90px;
  width: 250px;
  height: 100%;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 9999;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu_lateral.nav_open {
  transform: translateX(0);
  opacity: 1;
}

.nav_content {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav_content li {
  margin-bottom: 12px;
}

.nav_content a,
.submenu_toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--text-color);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 15px;
}

.nav_content a:hover,
.submenu_toggle:hover {
  background-color: var(--hover-color);
}

.nav_content i {
  font-size: 18px;
  min-width: 20px;
  text-align: center;
}

/* ===== OVERLAY ===== */
.overlay_menu{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  z-index: 8888;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay_open {
  opacity: 1;
  visibility: visible;
}

/* ===== RESPONSIVO ===== */
@media screen and (max-width: 768px) {
  .nav_links,
  .button_nav {
    display: none;
  }

  .nav_logo img {
    width: 100px;
    margin-left: -20px;
    margin-top: -10px;
  }

  .nav_mobile_icon {
    display: flex;
    font-size: 3rem;
    margin-right: -10px;
    cursor: pointer;
  }

  nav .nav_content {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .nav_content span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    height: 60px;
    width: 100%;
    border-bottom: 1px solid var(--color-gray);
    cursor: pointer;
    transition: 0.5s ease-in-out;
  }

  .nav_content span:hover {
    background-color: var(--color-primary);
    color: #0088ff;
  }

  .nav_content a {
    text-decoration: none;
  }

  .nav_content i {
    font-size: 20px;
  }

  .nav_content h5 {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    font-size: 18px;
    font-weight: 500;
    color: #000;
  }

  .politicas_menu_lateral {
    position: fixed;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #000;
    z-index: 8888;
  }
}
