
:root {
  --color-primary: #ffcc00;
  --color-dark: #000;
  --overlay-color: rgba(0, 0, 0, 0.486);
  --font-main: 'Montserrat', sans-serif;
}

/* ========================
   Body general
======================== */
body {
  margin: 0;
  font-family: var(--font-main);
}

/* ========================
   Hero Header
======================== */
.hero-header {
  position: relative;
  height: 68vh;
  color: white;
  overflow: hidden;
  background: url('../../images/imgheader.jpg') no-repeat center center/cover;
  animation: changeBg 10s infinite;
}

@keyframes changeBg {
  /* Primera imagen: 0% a 33.33% */
  0%, 33.32% {
    background-image: url('../../images/imgheader.jpg');
  }
  
  /* Segunda imagen: 33.33% a 66.66% */
  33.33%, 66.65% {
    background-image: url('../../images/Inicio.png');
  }
  
  /* Tercera imagen: 66.66% a 100% */
  66.66%, 100% {
    background-image: url('../../images/portada3.jpg');
  }
}

@keyframes changeBgMobile {
  0%, 49.99% {
    background-image: url('../../images/imgheader.jpg');
  }
  50%, 100% {
    background-image: url('../../images/imgportada.png'); 
  }
}

.hero-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--overlay-color);
  z-index: 1;
}

/* ========================
   Hero Content
======================== */
.hero-content {
  position: absolute;
  bottom: 20%;
  left: 5%;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.btn-conoce {
  background-color: var(--color-primary);
  color: var(--color-dark);
  text-decoration: none;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.btn-conoce:hover {
  transform: scale(1.05);
}

/* ========================
   Navbar
======================== */
.nav-bar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
  z-index: 1001;
}


.nav-bar ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-bar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.nav-bar a:hover {
  color: #ffcc00;
  background-position: 100% 0;
  transform: scale(1.05);
  text-shadow: 0 0 6px rgba(255, 204, 0, 0.5), 0 0 8px rgba(0, 0, 0, 0.4);
  font-size: 18px;
}



.btn-login {
  background-color: green;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  color: var(--color-dark);
}

.out{
  margin-left: 10px ;
}

/* ========================
   Hamburger Menu
======================== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1002;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================
   Responsive
======================== */


/* Tablets */
@media (max-width: 1024px) {
  .hero-header { height: 50vh;
   }

  .hero-content {
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 90%;
  }

  .hero-content h1 { font-size: 2.5rem; }
}

/* Móviles medianos */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-bar ul {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.066);
    flex-direction: column;
    gap: 1.2rem;
    padding: 2rem 1rem;
    width: 100%;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    text-align: center;
    z-index: 1000;
  }

  .nav-bar ul.active { transform: translateY(0); }

  .hero-header { height: 46vh; 
  animation: changeBgMobile 10s infinite;
  }

  .hero-content {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
  }

  .hero-content h1 { font-size: 2rem; }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .hero-header { 
  height: 40vh; 
  animation: changeBgMobile 10s infinite;
  }

  .hero-content {
    bottom: 8%;
    width: 95%;
  }

  .hero-content h1 { font-size: 1.5rem; line-height: 1.2; }

  .btn-conoce, .btn-login {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    margin-top: 1rem;
  }
}
