/* ====================================
   HEADER & NAVBAR STYLES
   ==================================== */

/* Navbar principal */
.navbar {
  background-color: rgba(3, 40, 65, 0.60);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  transition: all 0.4s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Navbar con scroll */
.navbar.scrolled {
  background-color: rgba(3, 40, 65, 0.65);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Ocultar menú al bajar (solo en desktop) */
@media (min-width: 992px) {
  .navbar.hide-menu .navbar-collapse {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .navbar:not(.hide-menu) .navbar-collapse {
    opacity: 1;
    pointer-events: all;
  }
}

/* Logo navbar */
.navbar-brand img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

/* Nav links */
.navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0.8rem;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  position: relative;
  font-family: 'Inter', sans-serif;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #ccff00;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

.navbar-nav .nav-link:hover {
  color: #ccff00 !important;
}

/* Botón destacado Contáctanos con borde amarillo fosforescente */
.contact-highlight {
  background: transparent;
  color: #ccff00 !important;
  border: 2px solid #ccff00;
  border-radius: 25px;
  padding: 0.6rem 1.5rem !important;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(204, 255, 0, 0.3), 0 0 15px rgba(204, 255, 0, 0.2);
  transition: all 0.3s ease;
}

.contact-highlight:hover {
  background: #ccff00;
  color: #000000 !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(204, 255, 0, 0.5), 0 0 30px rgba(204, 255, 0, 0.4);
  border-color: #ccff00;
}

.contact-highlight::after {
  display: none;
}

/* Botón hamburguesa responsive */
.navbar-toggler {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler i {
  color: #ffffff;
  font-size: 1.5rem;
}

.navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Botón hamburguesa desktop (sin círculo) */
.desktop-toggler {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.desktop-toggler i {
  color: #ffffff;
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.desktop-toggler:hover i {
  transform: rotate(90deg);
  color: #ccff00;
}

/* Offcanvas side panel (desktop) */
.sidepanel-offcanvas {
  background: linear-gradient(180deg, #032841 0%, #1a3a52 100%);
  color: #ffffff;
  width: 400px !important;
}

.sidepanel-offcanvas .offcanvas-header {
  padding: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidepanel-offcanvas .btn-close {
  background: transparent;
  opacity: 1;
  font-size: 1.5rem;
  color: #ffffff;
  padding: 0;
  margin: 0;
}

.sidepanel-offcanvas .btn-close i {
  color: #ffffff;
  font-size: 2rem;
  transition: transform 0.3s ease;
}

.sidepanel-offcanvas .btn-close:hover i {
  transform: rotate(90deg);
  color: #ccff00;
}

.sidepanel-offcanvas .offcanvas-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidepanel-offcanvas .about-info h4 {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.sidepanel-offcanvas .about-info p {
  color: #ffffff;
  line-height: 1.7;
  font-size: 1rem;
  opacity: 0.9;
}

.sidepanel-offcanvas .socail-info h5 {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidepanel-offcanvas .socail-info ul li {
  margin-bottom: 0.8rem;
}

.sidepanel-offcanvas .socail-info ul li a {
  color: #ffffff;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.sidepanel-offcanvas .socail-info ul li a:hover {
  color: #ccff00;
  padding-left: 0.5rem;
}

.sidepanel-offcanvas .contact-info h5 {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidepanel-offcanvas .contact-info span,
.sidepanel-offcanvas .contact-info a {
  color: #ffffff;
  font-size: 1rem;
  text-decoration: none;
  display: block;
  margin-bottom: 0.8rem;
  transition: all 0.3s ease;
}

.sidepanel-offcanvas .contact-info a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.sidepanel-offcanvas .contact-info a:hover {
  color: #ccff00;
  padding-left: 0.5rem;
}

.sidepanel-offcanvas .contact-info .text {
  color: #ffffff;
  font-size: 0.95rem;
  font-style: italic;
  margin-top: 1.5rem;
  line-height: 1.6;
  opacity: 0.85;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Offcanvas responsive menu */
.offcanvas {
  background: linear-gradient(180deg, #032841 0%, #1a3a52 100%);
  color: #ffffff;
}

.offcanvas .offcanvas-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offcanvas .navbar-brand img {
  height: 40px;
  width: auto;
}

.offcanvas .btn-close {
  background: transparent;
  opacity: 1;
  filter: none;
  padding: 0;
  margin: 0;
  transition: transform 0.3s ease;
}

.offcanvas .btn-close i {
  color: #ffffff;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.offcanvas .btn-close:hover i {
  transform: rotate(90deg);
  color: #ccff00;
}

.offcanvas .offcanvas-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.offcanvas .navbar-nav {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.offcanvas .navbar-nav .nav-link {
  color: #ffffff !important;
  padding: 1rem 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.offcanvas .navbar-nav .nav-link.active {
  color: #ccff00 !important;
}

.offcanvas .navbar-nav .nav-link:hover {
  padding-left: 1rem;
  color: #ccff00 !important;
}

.offcanvas .navbar-nav .contact-highlight {
  background: transparent;
  border: 2px solid #ccff00;
  border-radius: 25px;
  color: #ccff00 !important;
  font-weight: 700;
  text-align: center;
  margin-top: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 2px solid #ccff00;
}

.offcanvas .navbar-nav .contact-highlight:hover {
  background: #ccff00;
  color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(204, 255, 0, 0.3);
  padding-left: 1.5rem;
}

.offcanvas .menu-info {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.offcanvas .menu-info h6 {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
  opacity: 0.8;
}

.offcanvas .menu-info a,
.offcanvas .menu-info span {
  color: #ffffff;
  font-size: 0.95rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.offcanvas .menu-info a:hover {
  color: #ccff00;
  padding-left: 0.3rem;
}

.offcanvas .menu-info .social-link {
  display: inline-flex;
  margin-right: 1rem;
}

.offcanvas .menu-info .social-link i {
  font-size: 1.5rem;
}

/* Banner principal con video */
.main-banner {
  position: relative;
  width: 100%;
  height: 105vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-banner video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
}

.main-banner .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.main-banner .banner-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding: 2rem;
  max-width: 1000px;
}

.main-banner .banner-text h2 {
  font-size: 3rem;
  font-weight: 900;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  line-height: 1.3;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .navbar-nav .nav-link {
    font-size: 0.95rem;
    margin: 0 0.5rem;
  }
}

@media (max-width: 992px) {
  .navbar {
    padding: 0.8rem 1rem;
  }

  .navbar-brand img {
    height: 40px;
  }

  .desktop-toggler {
    display: none !important;
  }

  .navbar-collapse {
    display: none !important;
  }

  .navbar-toggler {
    display: block !important;
  }

  .main-banner {
    height: 85vh;
    margin-top: 70px;
  }
  
  .main-banner video {
    min-width: 120%;
    min-height: 120%;
  }

  .main-banner .banner-text h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .sidepanel-offcanvas {
    width: 300px !important;
  }
  
  .sidepanel-offcanvas .offcanvas-body {
    padding: 1.5rem;
    gap: 1.8rem;
  }
  
  .sidepanel-offcanvas .about-info h4 {
    font-size: 1.3rem;
  }

  .navbar {
    padding: 0.6rem 0.8rem;
  }

  .navbar-brand img {
    height: 35px;
  }

  .main-banner {
    height: 75vh;
    margin-top: 65px;
  }
  
  .main-banner video {
    min-width: 130%;
    min-height: 130%;
  }

  .main-banner .banner-text h2 {
    font-size: 1.8rem;
    line-height: 1.4;
  }

  .main-banner .banner-text {
    padding: 1rem;
  }

  .offcanvas {
    width: 280px !important;
  }
}

@media (max-width: 576px) {
  .sidepanel-offcanvas {
    width: 280px !important;
  }
  
  .sidepanel-offcanvas .offcanvas-body {
    padding: 1.2rem;
    gap: 1.5rem;
  }
  
  .sidepanel-offcanvas .about-info h4 {
    font-size: 1.2rem;
  }

  .sidepanel-offcanvas .about-info p {
    font-size: 0.95rem;
  }

  .navbar {
    padding: 0.5rem 0.8rem;
  }

  .navbar-brand img {
    height: 32px;
  }

  .navbar-toggler {
    padding: 0.4rem 0.6rem;
  }

  .navbar-toggler i {
    font-size: 1.3rem;
  }

  .main-banner {
    height: 70vh;
    margin-top: 60px;
  }
  
  .main-banner video {
    min-width: 140%;
    min-height: 140%;
  }

  .main-banner .banner-text h2 {
    font-size: 1.5rem;
    padding: 0 1rem;
  }

  .main-banner .banner-text {
    padding: 0.5rem;
  }

  .offcanvas {
    width: 300px !important;
  }
  
  .offcanvas .offcanvas-body {
    padding: 1.5rem;
  }

  .offcanvas .navbar-nav .nav-link {
    font-size: 1rem;
    padding: 0.9rem 1rem;
  }
  
  .offcanvas .navbar-brand img {
    height: 35px;
  }
}

@media (max-width: 400px) {
  .navbar-brand img {
    height: 28px;
  }

  .main-banner {
    height: 65vh;
  }
  
  .main-banner video {
    min-width: 150%;
    min-height: 150%;
  }

  .main-banner .banner-text h2 {
    font-size: 1.3rem;
  }
}

/* ====================================
   HEADER SCROLL TRANSPARENCY EFFECT
   ==================================== */

/* Estado transparente del header al hacer scroll */
.navbar.header-transparent {
  background-color: rgba(3, 40, 65, 0.05) !important;
  backdrop-filter: blur(3px);
  box-shadow: none;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ocultar elementos del menú cuando está transparente */
.navbar.header-transparent .navbar-collapse,
.navbar.header-transparent .desktop-toggler,
.navbar.header-transparent .navbar-toggler {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* Mantener el logo visible pero más pequeño */
.navbar.header-transparent .navbar-brand {
  opacity: 1;
  transition: all 0.4s ease;
}

.navbar.header-transparent .navbar-brand img {
  height: 40px;
  transition: height 0.4s ease;
}

/* Al hacer hover sobre el navbar transparente, mostrar todo */
.navbar.header-transparent:hover {
  background-color: rgba(3, 40, 65, 0.60) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.header-transparent:hover .navbar-collapse,
.navbar.header-transparent:hover .desktop-toggler,
.navbar.header-transparent:hover .navbar-toggler {
  opacity: 1;
  pointer-events: all;
}

.navbar.header-transparent:hover .navbar-brand img {
  height: 50px;
}

/* Responsive: Solo aplicar en desktop */
@media (max-width: 991px) {
  .navbar.header-transparent {
    background-color: rgba(3, 40, 65, 0.60) !important;
    backdrop-filter: blur(10px);
  }
  
  .navbar.header-transparent .navbar-collapse,
  .navbar.header-transparent .navbar-toggler {
    opacity: 1;
    pointer-events: all;
  }
}

/* Animación suave para el logo */
.navbar-brand img {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Asegurar que el header esté siempre visible en la parte superior */
.navbar.fixed-top {
  z-index: 1030;
}
