/* ===========================
   Estilos Generales
=========================== */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
    background-color: #fff;
    overflow-x: hidden;
    width: 100%;
}

/* ===========================
   Header y Video
=========================== */
.header {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    background-color: #000;
}

#video-fondo {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* ===========================
   Navbar
=========================== */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    height: 70px;
    padding: 0;
    overflow: visible;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===========================
   Logo + Títulos
=========================== */
.logo-titulos {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 60px;
  z-index: 3;
  color: #fff;
  width: fit-content;
  max-width: 90%;
  justify-content: center;
}

@media (min-width: 961px) {
  .logo-titulos {
    left: 2rem;
    transform: translateX(0);
    justify-content: flex-start;
    width: auto;
    max-width: calc(100% - 4rem);
  }
  .titulos { text-align: left; }
}





.logo-image img {
  width: 230px;
  height: auto;
}

.titulos {
  max-width: 600px;
  text-align: left;
}
.titulos h1 {
  font-weight: 700;
  font-size: 2.5rem;
  margin: 0.3em 0;
  color: white;
}
.titulos p {
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.4;
  color: white;
}
.titulos .verde { color: #7CFC00; font-weight: 600; }














@media (max-width: 768px) {
  .logo-titulos {
    flex-direction: column;   /* apilar logo y texto */
    gap: 10px;
    top: 80px;                /* lo baja un poco */
    text-align: center;
  }

  .logo-image img {
    width: 170px;             /* logo más chico */
    height: auto;
  }

  .titulos h1 {
    font-size: 1.6rem;        /* título más chico */
  }

  .titulos p {
    font-size: 1rem;       /* subtítulo más chico */
    line-height: 1.3;
  }
}



















/* ===========================
   Menú escritorio
=========================== */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}
.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 5px;
    text-shadow: 0px 1px 4px rgba(0, 0, 0, 0.8);
    transition: color 0.3s ease-in-out;
}
.nav-menu a:hover { color: #cccccc; }

/* ===========================
   Hamburguesa (oculta en desktop)
=========================== */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

/* ===========================
   Dropdown
=========================== */
.dropdown { position: relative; }
.dropdown > a { cursor: pointer; user-select: none; }
.dropdown-menu {
  display: block;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background: rgba(20, 20, 20, 0.95);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  min-width: 160px;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
  z-index: 1005;
}
.dropdown-menu li { border-bottom: 1px solid rgba(255,255,255,0.1); }
.dropdown-menu li:last-child { border-bottom: none; }
.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
}
.dropdown-menu a:hover { background: rgba(255,255,255,0.1); }
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* ===========================
   Responsive móviles
=========================== */
@media (max-width: 960px) {
  /* mostrar hamburguesa */
  .hamburger { display: block; z-index: 1001; }

  /* nav menu estilo móvil */
  .nav-menu {
      position: fixed;
      left: -100%;
      top: 0;
      flex-direction: column;
      background-color: rgba(20, 20, 20, 0.95);
      width: 100%;
      height: 100vh;
      text-align: center;
      transition: left 0.3s ease;
      justify-content: flex-start;
      gap: 15px;
      z-index: 1001;
      padding-top: 70px;
  }
  .nav-menu.active { left: 0; }

  .nav-menu li { padding: 8px 0; }
  .nav-menu a { font-size: 1rem; }

  /* submenú en móvil */
  .dropdown-menu {
      position: static;
      background: transparent;
      min-width: auto;
      padding: 0;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.25s ease;
  }
  .dropdown.open .dropdown-menu {
      max-height: 1000px;
      overflow: visible;
  }
  .dropdown-menu a { padding: 12px 0; }

  /* hamburguesa animación */
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ===========================
   Footer
=========================== */
.footer { background-color: #333; color: white; padding: 3rem 2rem; box-sizing: border-box; }
.footer-container {
    display: flex; flex-wrap: wrap; justify-content: space-between;
    max-width: 1200px; margin: 0 auto;
}
.footer-contact, .footer-map { flex: 1; min-width: 300px; margin: 1rem; }
.footer-contact h3, .footer-map h3 {
    border-bottom: 2px solid #fff;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.footer-contact a { color: #4da6ff; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
@media (max-width: 768px) {
    .footer-container { flex-direction: column; align-items: center; text-align: center; }
}
