* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #f4f1ee;
  color: #2c2c2c;
}

header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 20px 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap;
  transition: background 0.2s ease;
}

header h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #8c6b4f;
}

.logo img {
  height: 55px;
}

.nav-left, .nav-right {
  display: flex;
  gap: 20px;
}

.nav-left a,
.nav-right a,
nav a {
  text-decoration: none;
  color: #444;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-left a:hover,
.nav-right a:hover,
nav a:hover {
  color: #8c6b4f;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2em;
  color: #8c6b4f;
  cursor: pointer;
  margin-top: 10px;
}

.hero {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  z-index: 1;
  overflow: hidden;
  filter: none !important;
  background-blend-mode: normal !important;
}

.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fadeSlide 12s infinite;
}

.slide:nth-child(1) { background-image: url('imagenes/pieza.jpeg'); animation-delay: 0s; }
.slide:nth-child(2) { background-image: url('imagenes/logo.png'); animation-delay: 4s; }
.slide:nth-child(3) { background-image: url('imagenes/fuerahotel.jpg'); animation-delay: 8s; }

@keyframes fadeSlide {
  0% { opacity: 0; }
  10% { opacity: 1; }
  30% { opacity: 1; }
  40% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes fadeInZoom {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.container, .galeria-container {
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 20px;
}

.container p {
  font-size: 1.1em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #555;
}


.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature {
  background-color: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  display: flex;
  align-items: flex-start;
  gap: 15px;
  flex-direction: row;
}

.feature span {
  font-size: 1.8em;
  color: #8c6b4f;
}

.feature p {
  margin: 0;
  font-weight: 600;
}

.btn {
  display: inline-block;
  margin-top: 40px;
  background-color: #8c6b4f;
  color: white;
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #6f513b;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.4s ease;
}

.card:hover {
  transform: scale(1.03);
  background-color: #f0e6dd;
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2em;
  margin: 15px 0;
  color: #8c6b4f;
}

.gallery-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 40px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  height: 0;
  overflow: hidden;
  transition: opacity 0.6s ease, transform 0.6s ease, height 0.6s ease;
}

.gallery-section.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  overflow: visible;
  height: auto;
}

.gallery-section img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  animation: fadeInZoom 0.6s ease forwards;
  opacity: 0;
}

@media (max-width: 576px) {
  .hero {
    height: 320px;
  }

  .eco-grid {
    gap: 20px;
  }

  .eco-image {
    height: 240px;
  }

  .eco-text {
    height: auto;
    padding: 20px 15px;
  }

  .eco-text h2 {
    font-size: 1.4rem;
  }

  .eco-text hr {
    width: 70%;
    margin: 15px 0;
  }

  .eco-text p {
    font-size: 0.88rem !important;
    line-height: 1.3 !important;
    margin-bottom: 15px !important;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .info-box {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .info-icon {
    padding: 12px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .info-text h3 {
    font-size: 1rem;
  }

  .info-text p {
    font-size: 0.9rem;
  }

  h2 {
    font-size: 1.8rem !important;
    line-height: 1.3;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .info-hotel {
    gap: 24px;
    padding: 40px 15px;
  }

  .eco-pool {
    margin: 40px auto;
  }
}
