@media (max-width: 900px) {
  .gallery-row {
    grid-template-columns: repeat(3, 1fr);
  }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 20px;
    background: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 100%;
    right: 0;
    padding: 20px;
    width: 100%;
    text-align: center;
  }

  nav.active ul {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }
}

@media (max-width: 500px) {
  .gallery-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero {
    padding-left: 5%;
  }
}

/* --- HEADER RESPONSIVE FIXES --- */
@media (max-width: 900px) {
  header {
    height: 90px; /* más pequeño en móvil */
    padding: 0 20px;
  }

  .logo img {
    max-height: 70px;
  }

  .hamburger {
    display: flex;
  }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 20px;
    background: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 100%;
    right: 0;
    padding: 20px;
    width: 100%;
    text-align: center;
  }

  nav.active ul {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }
}

@media (max-width: 500px) {
  header {
    height: 80px;
  }

  .logo img {
    max-height: 60px;
  }

  .top-bar {
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    gap: 4px;
  }
}


/* --- HERO RESPONSIVE --- */
@media (max-width: 900px) {
  .hero {
    height: 100vh; /* ocupa toda la altura visible */
    padding: 0 8%;
    display: flex;
    align-items: center; /* centra verticalmente */
    justify-content: center; /* centra horizontalmente */
    text-align: center;
  }

  .hero-content {
    max-width: 90%;
    white-space: normal; /* permite que el texto se parta en móvil */
  }

  .hero h1 {
    font-size: 48px;
  }
}


@media (max-width: 500px) {
  .hero {
    height: 100vh;
    padding: 0 5%;
    align-items: center;
    justify-content: center;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 1.1;
  }
}


