:root {
  --color-principal: #5f4141;
  --color-secundario: #f1f1f1;
  --color-texto: #333;
  --color-acento: #7d5a3e;
}

body {
  margin: 0;
  font-family: 'Playfair Display', serif;
  color: var(--color-texto);
  background-color: var(--color-fondo);
}

header {
  background-color: #1a1919;
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 20px;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-size: 30px;
}

nav a:hover {
  color: black;
  border-bottom: 2px black;
}

nav a.active {
  border-bottom: 2px solid var(--color-acento);
}


#inicio1 {
  border: 2px solid black;
  background-color: rgba(2, 2, 2, 0.2);
}

.logo {
  font-size: 80px;
  font-weight: bold;
}

.hero {
  height: 110vh;
  background-image: url('images/el-chiscon1.jpeg');
  background-size: cover;
  background-position: bottom center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  max-width: 700px;
}

.hero-content h1 {
  font-size: 60px;
  font-family: 'Playfair Display', serif;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease-in-out;
}

.hero-content p {
  font-size: 24px;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease-in-out;
}

.btn {
  background-color: #1a1919;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #8a5e3c;
}

.sobre-nosotros, .galeria, .reserva {
  padding: 60px 20px;
  text-align: center;
}

.sobre-nosotros h2,
.galeria h2,
.reserva h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--color-principal);
  margin-bottom: 20px;
}

.sobre-nosotros p,
.reserva p {
  max-width: 700px;
  margin: auto;
  font-size: 18px;
  line-height: 1.6;
}

.imagenes {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.imagenes img {
  width: 300px;
  border-radius: 12px;
  transition: transform 0.5s ease;
}

.imagenes img:hover {
  transform: scale(1.05);
}

.fade-in {
  opacity: 0;
  transform: scale(0.7);
  filter: blur(8px);
  transition: opacity 2s ease, transform 2s ease, filter 2s ease;
  will-change: opacity, transform, filter;
}

.fade-in.visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.carousel-container {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}


.carousel-btn {
  background-color: #1a1919;
  border: none;
  color: white;
  font-size: 40px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
  transition: background-color 0.3s ease;
}

.carousel-btn:hover {
  background-color: #1a1919;
}

.carousel-btn.prev {
  margin-right: 10px;
}

.carousel-btn.next {
  margin-left: 10px;
}

.carousel-container {
  width: 100%;
  max-width: 1200px;  
  margin: 0 auto;     
  overflow: hidden;
  position: relative;
}


.carousel {
  overflow: hidden;
  width: 840px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px;
  height: auto;
}

.carousel-img {
  flex: 0 0 30%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

.carousel-img.active {
  opacity: 1;
  border: 3px solid var(--color-acento);
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 1500;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
}

.lightbox.show {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 70vh;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: contain;
}

.lightbox-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  max-width: 90vw;
}

.lightbox-thumb {
  width: 80px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.lightbox-thumb.active {
  opacity: 1;
  border: 2px solid var(--color-acento);
}

.lightbox-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: white;
  background-color: rgba(95, 65, 65, 0.6);
  border: none;
  border-radius: 50%;
  padding: 10px 20px;
  cursor: pointer;
  user-select: none;
  z-index: 1600;
  transition: background-color 0.3s ease;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
  z-index: 1001;
  padding: 0 15px;
  transition: 0.2s;
}

.lightbox-arrow:hover {
  color: #ffcc00;
}

.lightbox-arrow.left {
  left: 0;
}

.lightbox-arrow.right {
  right: 0;
}


.ubicacion {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--color-secundario);
}

.ubicacion h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--color-principal);
  margin-bottom: 20px;
}

.ubicacion p {
  max-width: 700px;
  margin: auto;
  font-size: 18px;
  line-height: 1.6;
}

.mapa {
  margin-top: 30px;
  max-width: 1000px;
  height: 450px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


footer {
  background-color: #1a1919;
  color: white;
  padding: 30px 20px;
  text-align: center;
  font-size: 14px;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
} 

@media (max-width: 1024px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  .logo {
    font-size: 60px;
    margin-bottom: 10px;
  }

  nav a {
    font-size: 24px;
    margin-left: 0;
    margin-right: 15px;
    padding: 8px 12px;
  }
}

  .hero-content h1 {
    font-size: 48px;
  }

  .hero-content p {
    font-size: 20px;
  }

  .carousel {
    width: 600px;
  }

  .carousel-img {
    flex: 0 0 48%;
    height: 250px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  .logo {
    font-size: 60px;
    margin-bottom: 10px;
  }

  nav a {
    font-size: 24px;
    margin-left: 0;
    margin-right: 15px;
    padding: 8px 12px;
  }

  .hero {
    height: 80vh;
    background-position: center;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .carousel {
    width: 100%;
  }

  .carousel-track {
    gap: 10px;
  }

  .carousel-img {
    flex: 0 0 100%;
    height: 220px;
  }

  .ubicacion h2 {
    font-size: 28px;
  }

  .ubicacion p {
    font-size: 16px;
  }

  .mapa iframe {
    height: 300px;
  }

  footer {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }

  .logo {
    font-size: 32px;
  }

  nav {
    display: flex;
    flex-direction: row;
    gap: 8px;
  }

  nav a {
    font-size: 14px;
    padding: 6px 8px;
    margin: 0;
  }
  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  .carousel-img {
    height: 180px;
  }

  .ubicacion p {
    font-size: 14px;
  }

  footer {
    padding: 20px;
    font-size: 11px;
  }
  .mapa {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .mapa iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
  }
}
