.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 60px 40px;
}

.hero-text {
  flex: 1;
  min-width: 300px;
  padding-right: 30px;
}

.hero-text h1 {
  font-size: 3em;
  color: #132264;
}

.hero-text h2 {
  font-size: 2.5em;
  margin: 10px 0;
  color: #0a0a0a;
}

.hero-text p {
  color: #312f2f;
  margin-top: 20px;
  line-height: 1.6;
}

.hero-buttons {
  margin-top: 30px;
}

.hero-buttons a {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-right: 15px;
}

.btn-reserva {
  background-color: #0b1eca;
  color: #f3ebeb;
}

.btn-carta {
  border: 2px solid #4b58d3;
  color: #3514cc;
}

.hero-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.imagen-3d {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  transform: rotateY(-10deg) rotateX(5deg);
  box-shadow: 10px 20px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  perspective: 1000px;
  margin: 0 auto;
}

.imagen-3d:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.03);
  box-shadow: 0 10px 30px rgba(30, 136, 229, 0.6);
}

.carousel {
  padding: 40px 0;
  background-color: #323b6e;
}

.carousel-cell {
  width: 320px;
  background: #fff;
  color: #323b6e;
  margin-right: 15px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(228, 225, 225, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.carousel-cell img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-text {
  padding: 20px;
  text-align: center;
}

.card-text h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #121212;
}

.card-text p {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 15px;
}

.read-more {
  display: inline-block;
  padding: 8px 16px;
  background-color: #1e0bc2;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.read-more:hover {
  background-color: #1e06a3;
}

.galeria-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px;
  justify-content: center;
  align-items: center;
  background: #f7f9fc;
  border-radius: 8px;
  margin-bottom: 30px;
}

.galeria-info:nth-child(even) {
  flex-direction: row-reverse;
}

.imagen-destello {
  flex: 1 1 250px;
  max-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.imagen-destello img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.imagen-destello:hover img {
  transform: scale(1.05);
}

.info-rancho {
  flex: 1 1 300px;
  max-width: 500px;
  padding: 20px;
}

.info-rancho h2 {
  font-family: 'Poppins', sans-serif;
  color: #1e88e5;
  margin-bottom: 10px;
}

.info-rancho p {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .hero-text {
    padding-right: 0;
  }

  .hero-text h1 {
    font-size: 2em;
  }

  .hero-text h2 {
    font-size: 1.8em;
  }

  .hero-buttons a {
    display: block;
    margin: 10px auto;
    width: 70%;
  }

  .galeria-info {
    flex-direction: column;
    text-align: center;
  }

  .galeria-info:nth-child(even) {
    flex-direction: column;
  }

  .imagen-destello {
    max-width: 100%;
  }
}
