/* ==========================
   RESET BASE LAYOUT
========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;
}

main {
  flex: 1;
  padding-top: 150px; /* Compensa header fixed */
}

/* ==========================
   HEADER
========================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px;
  z-index: 1000;
  background-color: #303030;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.main-header .header-bg {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background-color: #303030;
  pointer-events: none;
  z-index: 0;
}

.main-header .header-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 1.5rem;
}

.logo-title img.logo {
  width: 150px;
  height: auto;
  border-radius: 6px;
}

.nav-header {
  display: flex;
  gap: 1rem;
}

.nav-header a,
.dropbtn {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
  display: inline-block;
  cursor: pointer;
}

.nav-header a:hover,
.dropbtn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #00e0ff;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #333;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  z-index: 2;
  border-radius: 0 0 5px 5px;
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #444;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ==========================
   COOKIE + OVERLAY
========================== */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

#cookie-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  z-index: 9999;
  max-width: 400px;
  text-align: center;
}

#cookie-popup h2 {
  margin-bottom: 1rem;
}

#cookie-popup button {
  margin-top: 1.5rem;
  padding: 0.6rem 1.2rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

#cookie-popup button:hover {
  background-color: #0056b3;
}

/* ==========================
   FOOTER
========================== */
footer {
  background-color: #303030;
  color: #fff;
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 1rem;
}

.footer-content p {
  margin: 0.6rem 0;
  line-height: 1.6;
}

.footer-content a {
  color: #fff;
  text-decoration: underline;
  transition: color 0.2s;
}

.footer-content a:hover {
  color: #eee;
}

.social-icon {
  margin-left: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.social-icon:hover {
  color: #ccc;
}
