
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #000;
  color: #fff;
}

/* HEADER */
header {
  position: relative;
  height: 100vh;
  overflow: hidden;     
}

#video-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Botones cambiar video */
.video-switch {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  font-size: 1.2rem;
  padding: 0.3em 0.6em;
  cursor: pointer;
  transition: background 0.3s ease;
  border-radius: 5px;
}

.video-switch:hover {
  background: #ffe100;
  color: #000;
}

.video-switch.left {
  left: 10px;
}

.video-switch.right {
  right: 10px;
}

/* NAVBAR */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding:0.5em 4em;
  background: rgba(0, 0, 0, 0.0);
  z-index: 4;
  box-sizing: border-box;
}

.logo img {
  height: 150px;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-menu {
  display: flex; /* Asegura que sea visible por defecto en escritorio */
  gap: 2em;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.nav-menu li a::after {
  content: '';
  display: block;
  height: 2px;
  background: #ffe100;
  width: 0;
  transition: width 0.3s;
  position: absolute;
  bottom: -5px;
  left: 0;
}

.nav-menu li a:hover::after {
  width: 100%;
}

/* SUBMENÚ DE SERVICIOS */
.nav-menu li {
  position: relative;
}

.nav-menu li ul.submenu {
  display: none;
  position: absolute;
  top: 70%;
  left: 0;
  background: #111;
  padding: 0.5em 0;
  list-style: none;
  border-radius: 5px;
  min-width: 70px;
  z-index: 5;
}

.nav-menu li:hover ul.submenu {
  display: block;
}

.nav-menu li ul.submenu li a {
  display: block;
  padding: 0.5em 1em;
  color: #fff;
  text-decoration: none;
  font-weight: 300;
}

.nav-menu li ul.submenu li a:hover {
  background: #ffe100;
  color: #000;
}

/* HEADER TEXT */
.header-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0.5em 1.5em;
  background-color: rgba(0, 0, 0, 0.2);
  animation: fadeIn 2s ease;
}

.header-content h1 {
  font-size: 3rem;
}

.header-content p {
  font-size: 1.5rem;
  color: #ccc;
}

/* FOOTER */
footer {
  background: #fff;
  color: #111;
  padding: 3em 2em;
  margin-top: 2em;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 2em;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-column h3 {
  margin-bottom: 0.5em;
}

.footer-column p, .footer-column a {
  margin: 0.3em 0;
  color: #111;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #ffe100;
}

.social-icons a img {
  width: 30px;
  margin-right: 10px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.social-icons a:hover img {
  filter: grayscale(0%);
}

/* ANIMACIONES */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none; /* Se oculta por defecto en móviles */
    flex-direction: column;
    background: #111;
    position: absolute;
    top: 100%;
    right: 2em;
    padding: 1em;
    border-radius: 5px;
    width: 200px;
  }

  .nav-menu.active {
    display: flex;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
#video-bg {
  transition: opacity 0.7s ease-in-out;
  opacity: 1;
}

.fade-out {
  opacity: 0;
}
