/* General styles */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.link {
  color: rgb(231, 107, 75);
  font-weight: 900;
  transition: color 0.3s ease;
}

.link:hover {
  color: #0d6efd;
}

/* Gallery styles */
.gallery-intro {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
              url('Portada.JPG') center/cover;
  padding: 4rem 0;
  position: relative;
  margin-bottom: 2rem;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.gallery-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.gallery-intro > * {
  position: relative;
  z-index: 2;
}

.gallery-filters {
  margin-bottom: 2rem;
  text-align: center;
}

.filter-btn {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid #fff;
  color: #fff;
  padding: 0.5rem 1.5rem;
  margin: 0.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.gallery-grid .row {
  margin: -10px;  /* Negative margin to counteract padding */
}

.gallery-grid .col-12 {
  padding: 10px;  /* Even spacing between items */
  flex: 0 0 33.333%;  /* Exactly three columns */
  max-width: 33.333%;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
  aspect-ratio: 16/9;
  background-color: rgba(0, 0, 0, 0.1);
}

.gallery-item.vertical {
  aspect-ratio: 3/4;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.close-lightbox {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-lightbox:hover {
  color: #0d6efd;
}

/* Navigation arrows for lightbox */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 1001;
}

.lightbox-nav:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

/* Contact form styles */
#contact {
  padding: 4rem 0;
}

.contact-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
              url('Portada.JPG') center/cover;
  border-radius: 10px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-section h2,
.contact-section p {
  color: #fff;
}

.form-control {
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.9);
  padding: 0.8rem;
  margin-bottom: 1rem;
}

.form-control:focus {
  background-color: #fff;
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
  padding: 0.8rem 2.5rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  background-color: rgb(231, 107, 75);
  border: none;
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  transform: translateY(-2px);
  background-color: #0d6efd !important;
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:not(:hover) {
  background-color: rgb(231, 107, 75) !important;
  border-color: rgb(231, 107, 75) !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .gallery-grid .col-12 {
    flex: 0 0 50%;  /* Two columns on medium screens */
    max-width: 50%;
  }
}

@media (max-width: 576px) {
  .gallery-grid .col-12 {
    flex: 0 0 100%;  /* One column on small screens */
    max-width: 100%;
  }
  
  .gallery-item {
    aspect-ratio: 4/3;
  }
  
  .gallery-item.vertical {
    aspect-ratio: 2/3;
  }
  
  .filter-btn {
    padding: 0.4rem 1rem;
    margin: 0.3rem;
    font-size: 0.9rem;
  }
  
  .lightbox-nav {
    font-size: 1.5rem;
    padding: 0.75rem;
  }
} 