/* Estilos generales */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #fff;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 50px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}


/* Add Animation */
.modal-content, #caption {
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)}
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}

main {
  flex: 1;
}

/* Header y navegación */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: #fff;
  color: #333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1000;
}

.logo {
  height: 40px;
  width: auto;
  object-fit:contain;
}

.upload-btn {
  display: flex;
  align-items: center;
  gap: 6px; /* espacio entre icono y texto */
  margin-left: auto; /* empuja el botón hacia la derecha del logo */
  text-decoration: none;
  color: #EA088B; /* color del texto */
  font-weight: bold;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.upload-btn img {
  width: 34px;
  height: 34px;
}

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

.upload-btn span {
  display: inline-block;
}

/* Hamburger Menu Styles */
#hamburger {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  position: relative;
}

#hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #DE107E;
  margin: 5px 0;
  transition: 0.3s;
}

/* Navigation Menu */
nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: #fff;
  padding: 2rem 1rem;
  transition: right 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 1000;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

nav.nav-open {
  right: 0;
}

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

nav ul li a {
  font-family: "Montserrat";
  color: #EA088B;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 0;
  display: block;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #a50061;
}

/* Overlay for mobile menu */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Desktop styles */
@media (min-width: 768px) {
  nav {
    width: 350px;
  }
  
  #hamburger {
    display: block;
  }
}

/* Responsive Gallery Grid */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
    padding: 1rem;
  }
  
  .galeria {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
    padding: 1rem;
  }
  
  .galeria {
    grid-template-columns: 1fr !important;
    gap: 1rem;
    padding: 1rem;
  }
}

.hero {
  background-image: url('img/banner-galeria.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  font-family: "Montserrat";
  font-size:40px;
  text-shadow: 2px 2px 4px #000000;
  text-align: center;
  padding: 5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.banner {
  text-align: center;
  padding: 40px 20px 20px 20px; /* 20px arriba y abajo, 0 a los lados */
}

.banner a {
  display: inline-block;
}

.banner img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  border-radius: 8px;
}

.filter-bar {
  text-align: right;
  padding: 1rem 2rem;
  font-weight: bold;
  color: #a50061;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-card {
  width: 100%;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  /*box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
}

.gallery-card:hover {
  transform: translateY(-5px);
  /*box-shadow: 0 4px 20px rgba(0,0,0,0.15);*/
}

.card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

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

.card-img h2 {
  position: relative;
  z-index: 2;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin: 0;
  padding: 0 1rem;
}

.location {
  font-weight: bold;
  margin: 0.5rem 0;
  color: #EA088B;
}

.desc {
  color: #151549;
  margin: 0;
}

/* Error and Success Messages */
.error-message {
  background-color: #ffebee;
  color: #c62828;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  border: 1px solid #ffcdd2;
}

.success-message {
  background-color: #e8f5e8;
  color: #2e7d32;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  border: 1px solid #c8e6c9;
}

.message {
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.message.success {
  background-color: #e8f5e8;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.message.error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

/* Sort Controls */
.sort-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 2rem;
  background-color: #f5f5f5;
  margin-bottom: 1rem;
}

.sort-controls span {
  font-weight: bold;
  color: #333;
}

.sort-btn {
  padding: 8px 16px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}

.sort-btn:hover {
  background-color: #f0f0f0;
}

.sort-btn.active {
  background-color: #EA088B;
  color: white;
  border-color: #EA088B;
}

/* Gallery Images */
.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.foto {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.foto:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.foto img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.foto a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.foto a:hover img {
  transform: scale(1.05);
}

.foto-info {
  padding: 1rem;
}

.foto-info h3 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1.1rem;
}

.foto-info p {
  margin: 0.25rem 0;
  color: #666;
  font-size: 0.9rem;
}

.no-images {
  text-align: center;
  padding: 3rem;
  color: #666;
  font-style: italic;
  grid-column: 1 / -1;
}

/* Recovery Password Page */
.recovery-password-page {
  background-image: url('img/back-login.jpg');
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recovery-password-container {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
}

.recovery-password-form h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}

.recovery-password-form input {
  width: 93%;
  padding: 12px;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.recovery-password-form button {
  width: 100%;
  padding: 12px;
  background-color: #EA088B;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.recovery-password-form button:hover {
  background-color: #a50061;
}

.recovery-password-form p {
  text-align: center;
  margin-top: 1rem;
}

.recovery-password-form a {
  color: #EA088B;
  text-decoration: none;
}

.recovery-password-form a:hover {
  text-decoration: underline;
}

.foto {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.ver-mas {
  text-align: center;
  font-size: 2rem;
  color: #EA088B;
  cursor: pointer;
  margin: 2rem 0;
}

.login-page {
  background-image: url('img/back-login.jpg');
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
}

/* Responsive styles for upload page */
@media (max-width: 768px) {
  .login-page {
    flex-direction: column;
    padding: 1rem;
    min-height: auto;
  }
  
  .login-page .hero {
    order: -1;
    margin-bottom: 2rem;
    padding: 3rem 1rem;
  }
  
  .login-page .login-container {
    order: 1;
    margin-top: 0;
    max-width: 100%;
  }
  
  .login-page .hero h1 {
    font-size: 2rem;
  }
  
  .login-page .breadcrumb {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .login-page .hero h1 {
    font-size: 1.5rem;
  }
  
  .login-page .login-container {
    padding: 1.5rem;
  }
  
  .login-page .hero {
    padding: 2rem 1rem;
  }
}

.login-form h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}

.login-form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.login-form input,
.login-form select {
  width: 93%;
  padding: 12px;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.login-form input[type="file"] {
  padding: 8px;
  border: 2px dashed #ddd;
  background-color: #f9f9f9;
}

.login-form button {
  width: 100%;
  padding: 12px;
  background-color: #EA088B;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-form button:hover {
  background-color: #a50061;
}

.login-form button,
.boton-morado {
  width: 100%;
  padding: 12px;
  background-color: #EA088B;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.boton-morado:hover {
  background-color: #a50061;
}

footer {
  background-color: #9E1E5B;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: auto;
}

.breadcrumb {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #fff;
  text-shadow: 1px 1px 2px #000;
}
.breadcrumb-container a, .breadcrumb a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}
.breadcrumb-container a:hover, .breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}

.breadcrumb-container {
    background-color: #d31179;
    color: white;
    padding: 20px 20px;
    border-radius: 0px;
    display: flex;
    font-weight: bold;
    text-transform: uppercase;
}

/* Responsive styles for recovery password page */
@media (max-width: 768px) {
  .recovery-password-page {
    flex-direction: column;
    padding: 1rem;
    min-height: auto;
  }
  
  .recovery-password-page .hero {
    order: -1;
    margin-bottom: 2rem;
    padding: 3rem 1rem;
  }
  
  .recovery-password-page .recovery-password-container {
    order: 1;
    margin-top: 0;
    max-width: 100%;
  }
  
  .recovery-password-page .hero h1 {
    font-size: 2rem;
  }
  
  .recovery-password-page .breadcrumb {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .recovery-password-page .hero h1 {
    font-size: 1.5rem;
  }
  
  .recovery-password-page .recovery-password-container {
    padding: 1.5rem;
  }
  
  .recovery-password-page .hero {
    padding: 2rem 1rem;
  }
}