/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
}

body {
  min-height: 100vh;
  background: #1a1410;
  color: #f7efe0;
  overflow-x: hidden;
}

/* ===== BARRA SUPERIOR FIJA CON IMAGEN DE FONDO ===== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-image: url('https://ik.imagekit.io/u08srvey7/Mirador%20Prendas/Dise%C3%B1o%20sin%20t%C3%ADtulo%20(9).png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  border-bottom: 1px solid #b48b4b;
  padding: 0.6rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.top-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 0;
  pointer-events: none;
}

.top-bar > * {
  position: relative;
  z-index: 1;
}

/* ===== SELECTOR DE IDIOMAS ===== */
.language-selector {
  position: relative;
  display: inline-block;
  list-style: none;
  flex-shrink: 0;
}

.lang-btn {
  background: rgba(30, 22, 16, 0.9);
  border: 1px solid #b48b4b;
  color: #f7efe0;
  padding: 6px 14px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.lang-btn:hover {
  background: rgba(50, 40, 30, 0.95);
  border-color: #dbb36b;
  transform: scale(1.03);
}

.lang-btn i {
  color: #dbb36b;
  font-size: 13px;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(30, 22, 16, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid #b48b4b;
  border-radius: 20px;
  padding: 0.5rem 0;
  min-width: 200px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 99999;
  list-style: none;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-dropdown li {
  padding: 10px 20px;
  cursor: pointer;
  color: #eeddcc;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  list-style: none;
}

.lang-dropdown li:hover {
  background: rgba(255, 215, 140, 0.1);
  border-left-color: #dbb36b;
  color: white;
}

.lang-dropdown li .flag {
  font-size: 20px;
  line-height: 1;
}

.lang-dropdown li .lang-name {
  flex: 1;
}

.lang-dropdown li .check {
  color: #dbb36b;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lang-dropdown li.active .check {
  opacity: 1;
}

.lang-dropdown li.active {
  background: rgba(180, 139, 75, 0.15);
  border-left-color: #dbb36b;
}

/* ===== MENÚ DE NAVEGACIÓN ===== */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 50px;
  cursor: pointer;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  box-shadow: rgb(0 0 0 / 15%) 0 2px 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 11px;
  transition: all 0.5s ease;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-links a i {
  color: #7a5f3e;
  transition: color 0.5s ease;
  font-size: 12px;
}

.nav-links a:hover {
  letter-spacing: 2px;
  background-color: #6b4c2a;
  color: white;
  box-shadow: rgba(139, 115, 85, 0.5) 0px 7px 29px 0px;
}

.nav-links a:hover i {
  color: white;
}

.nav-links a:active {
  letter-spacing: 2px;
  background-color: #6b4c2a;
  color: white;
  box-shadow: none;
  transform: translateY(6px);
  transition: 100ms;
}

.nav-links a:active i {
  color: white;
}

.nav-links a.active {
  background-color: #6b4c2a;
  color: white;
  box-shadow: rgba(139, 115, 85, 0.5) 0px 7px 29px 0px;
}

.nav-links a.active i {
  color: white;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.main-wrapper {
  padding-top: 75px;
}

/* ===== PARALLAX HERO ===== */
.parallax-hero {
  position: relative;
  height: 70vh;
  background: url('https://ik.imagekit.io/u08srvey7/Mirador%20Prendas/galeria/WhatsApp%20Image%202026-08-06%20at%204.27.19%20PM.jpeg?updatedAt=1786055261282') center/cover fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.parallax-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.parallax-hero .content {
  position: relative;
  z-index: 2;
  animation: fadeInDown 1.2s ease;
}

.parallax-hero h1 {
  font-size: 4.5rem;
  font-family: 'Georgia', serif;
  letter-spacing: 4px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.8);
}

.parallax-hero p {
  font-size: 1.4rem;
  opacity: 0.9;
  margin-top: 0.5rem;
  font-style: italic;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== GALERÍA MASONRY ===== */
.gallery-section {
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-section h2 {
  font-family: 'Georgia', serif;
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.gallery-section .subtitle {
  text-align: center;
  opacity: 0.7;
  margin-bottom: 3rem;
  font-style: italic;
}

.masonry {
  columns: 3 280px;
  column-gap: 1.5rem;
}

/* ===== TARJETA SIMPLE - SIN VOLTEO ===== */
.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  cursor: pointer;
  width: 100%;
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.masonry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.5);
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
  border-radius: 2rem;
  transition: transform 0.5s ease;
}

.masonry-item:hover img {
  transform: scale(1.02);
}

/* ===== BOTÓN DE ZOOM ===== */
.masonry-item .zoom-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 10;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s ease;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.masonry-item:hover .zoom-btn {
  opacity: 1;
}

.masonry-item .zoom-btn:hover {
  background: #b48b4b;
  transform: scale(1.1);
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  justify-content: center;
  align-items: center;
  animation: modalFadeIn 0.4s ease;
}

.modal.active {
  display: flex;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.modal-content {
  max-width: 85vw;
  max-height: 85vh;
  border-radius: 1.5rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
  object-fit: contain;
  border: 2px solid rgba(255,255,255,0.08);
}

.modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  transition: 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255,50,50,0.3);
  transform: rotate(90deg);
  border-color: rgba(255,50,50,0.3);
}

/* ===== CARRUSEL ===== */
.carousel-section {
  padding: 4rem 2rem;
  background: rgba(30, 22, 16, 0.6);
  backdrop-filter: blur(8px);
}

.carousel-section h2 {
  font-family: 'Georgia', serif;
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.carousel-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.carousel-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  min-width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  cursor: pointer;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.carousel-slide .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  pointer-events: none;
}

.carousel-slide .caption h3 {
  font-size: 1.6rem;
  font-family: 'Georgia', serif;
}

.carousel-slide .zoom-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.carousel-slide .zoom-overlay i {
  font-size: 3rem;
  color: white;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  background: rgba(0,0,0,0.4);
  padding: 1rem;
  border-radius: 50%;
  backdrop-filter: blur(4px);
}

.carousel-slide:hover .zoom-overlay {
  opacity: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.3s;
  z-index: 10;
}

.carousel-btn:hover {
  background: #b48b4b;
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 1rem; }
.carousel-btn.next { right: 1rem; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.carousel-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: 0.3s;
}

.carousel-dots span.active {
  background: #b48b4b;
  transform: scale(1.2);
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid #7a5f3e;
  color: rgba(220, 200, 170, 0.6);
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    padding: 0.5rem 0.8rem;
    gap: 0.4rem;
  }
  .nav-links {
    justify-content: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    width: 100%;
  }
  .nav-links a {
    padding: 5px 10px;
    font-size: 9px;
    letter-spacing: 0.3px;
  }
  .nav-links a i {
    font-size: 9px;
  }
  .language-selector {
    align-self: flex-end;
  }
  .lang-btn {
    padding: 5px 10px;
    font-size: 10px;
    gap: 4px;
  }
  .lang-btn i {
    font-size: 11px;
  }
  .lang-dropdown {
    min-width: 170px;
    right: -5px;
  }
  .lang-dropdown li {
    font-size: 12px;
    padding: 8px 14px;
    gap: 8px;
  }
  .lang-dropdown li .flag {
    font-size: 17px;
  }
  .main-wrapper {
    padding-top: 100px;
  }
  
  .parallax-hero h1 { font-size: 2.8rem; }
  .parallax-hero p { font-size: 1rem; }
  
  .masonry { columns: 2 180px; }
  .gallery-section h2 { font-size: 2rem; }
  .carousel-section h2 { font-size: 2rem; }
  
  .masonry-item img {
    min-height: 240px;
  }
  
  .modal-content {
    max-width: 90vw;
    max-height: 70vh;
  }
  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
  
  .carousel-slide .zoom-overlay i {
    font-size: 2rem;
    padding: 0.8rem;
  }
}

@media (max-width: 480px) {
  .top-bar {
    padding: 0.4rem 0.5rem;
  }
  .nav-links a {
    padding: 4px 8px;
    font-size: 8px;
    letter-spacing: 0.2px;
  }
  .nav-links a i {
    font-size: 8px;
  }
  .lang-btn {
    padding: 4px 8px;
    font-size: 9px;
    gap: 3px;
  }
  .lang-btn i {
    font-size: 9px;
  }
  .lang-dropdown {
    min-width: 150px;
    right: -8px;
    top: calc(100% + 6px);
  }
  .lang-dropdown li {
    font-size: 11px;
    padding: 6px 12px;
    gap: 6px;
  }
  .lang-dropdown li .flag {
    font-size: 15px;
  }
  .main-wrapper {
    padding-top: 85px;
  }
  
  .masonry { columns: 1; }
  .parallax-hero h1 { font-size: 2rem; }
  
  .masonry-item img {
    min-height: 200px;
  }
  
  .modal-content {
    max-width: 95vw;
    max-height: 60vh;
  }
  .modal-close {
    top: 0.8rem;
    right: 0.8rem;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  
  .carousel-slide .zoom-overlay i {
    font-size: 1.5rem;
    padding: 0.6rem;
  }
}