* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: default;
}

body {
  font-family: "Playfair Display", "Georgia", serif;
  background-color: #0a0a0a;
  color: #f5f5f5;
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Hero Section */
.hero-section {
  height: 60vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
      135deg,
      rgba(10, 10, 10, 0.8),
      rgba(212, 175, 55, 0.1)
    ),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23000" width="1200" height="600"/><g fill="%23d4af37" opacity="0.1"><circle cx="300" cy="150" r="20"/><circle cx="800" cy="300" r="25"/><circle cx="1000" cy="100" r="15"/><circle cx="200" cy="400" r="30"/><circle cx="600" cy="450" r="18"/></g></svg>');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-content {
  text-align: center;
  padding: 40px;
  max-width: 600px;
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 10, 0.3);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 15px;
  letter-spacing: 2px;
  color: #d4af37;
  animation: fadeInUp 1.5s ease;
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(245, 245, 245, 0.9);
  font-weight: 300;
  letter-spacing: 1px;
  animation: fadeInUp 1.5s ease 0.3s both;
}

/* Main Section */
.main-section {
  padding: 100px 40px;
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  position: relative;
}

.main-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23d4af37" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 20px;
  color: #d4af37;
  letter-spacing: 2px;
  position: relative;
  text-align: center;
}

.section-subtitle {
  font-size: 1.2rem;
  color: rgba(245, 245, 245, 0.7);
  text-align: center;
  margin-bottom: 60px;
  font-style: italic;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

/* Gallery Categories */
.gallery-categories {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.category-btn {
  padding: 12px 30px;
  background: rgba(245, 245, 245, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 25px;
  color: #f5f5f5;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.category-btn:hover::before {
  left: 100%;
}

.category-btn:hover,
.category-btn.active {
  background: linear-gradient(45deg, #d4af37, #f4d03f);
  color: #0a0a0a;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  cursor: default; /* Cambiado de pointer a default */
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.gallery-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(212, 175, 55, 0.1),
    rgba(212, 175, 55, 0.05)
  );
  z-index: 1;
  transition: all 0.4s ease;
}

.gallery-item:hover::before {
  background: linear-gradient(
    45deg,
    rgba(212, 175, 55, 0.2),
    rgba(212, 175, 55, 0.1)
  );
}

.gallery-item:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(2deg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(212, 175, 55, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(10, 10, 10, 0.9));
  padding: 30px 25px 25px;
  transform: translateY(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h3 {
  font-size: 1.3rem;
  color: #d4af37;
  margin-bottom: 8px;
  font-weight: 300;
}

.gallery-overlay p {
  font-size: 0.9rem;
  color: rgba(245, 245, 245, 0.8);
  line-height: 1.4;
}

/* Parallax Gallery Section */
.parallax-gallery {
  margin: 100px 0;
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 25px;
  border: 2px solid rgba(212, 175, 55, 0.3);
}

.parallax-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(212, 175, 55, 0.1));
  background-size: cover;
  background-position: center;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.parallax-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 10, 0.5);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.parallax-content h3 {
  font-size: 2.5rem;
  color: #d4af37;
  margin-bottom: 15px;
  font-weight: 300;
}

.parallax-content p {
  font-size: 1.1rem;
  color: rgba(245, 245, 245, 0.9);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-fade {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.gallery-item.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .gallery-categories {
    gap: 15px;
  }

  .category-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .parallax-content {
    padding: 30px 20px;
  }

  .parallax-content h3 {
    font-size: 2rem;
  }

  .hero-section {
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .main-section {
    padding: 60px 20px;
  }

  .hero-content {
    padding: 30px 20px;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .parallax-gallery {
    height: 300px;
    margin: 60px 0;
  }
}

/* Scrollbar para navegadores basados en Webkit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #d4af37, #b8941f);
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ffdb70, #d4af37);
}

/* Para Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #d4af37 #0a0a0a;
}
