
/* Header principal */
.main-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 0 0 8px 8px;
  animation: fadeInDown 0.5s ease forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Asegura que el hero esté al tope de la página */
.hero {
  margin: 0;
  padding: 0;
  position: relative;
}
.hero img {
  display: block;
  width: 100%;
  height: 80vh;
  object-fit: cover;
  filter: brightness(0.6);
  margin: 0;
  padding: 0;
  border: none;
}

/* Estado reducido al hacer scroll */
.main-header.shrink {
  padding: 0.5rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Contenedor general */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

/* Contenedor reducido */
.main-header.shrink .container {
  padding: 0.5rem 2rem;
}

/* Logo */
.logo img {
  height: 80px;
  transition: all 0.3s ease;
}
.main-header.shrink .logo img {
  height: 60px;
}

/* Navegación principal */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-links li a:hover {
  color: #c1a57b;
}

/* Menú hamburguesa móvil */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 2rem;
    background: white;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
}

/* Contenedor principal de Te Recomendamos */
.prop-recomendadas {
  padding: 4rem 2rem;
  background-color: #fff;
  text-align: center;
  max-width: 1200px;
  margin: 4rem auto;
}

/* Título estilizado */
.prop-recomendadas h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #333;
}

/* Grid de cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
  justify-items: center;
}

/* Card estilo HogaresGroup */
.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 350px;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Imagen de la card */
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Información de la card */
.card .info {
  padding: 1rem 1.2rem;
  text-align: left;
}

.card .info span,
.card .info strong {
  display: block;
  margin-bottom: 0.4rem;
}

.card .info strong {
  font-size: 1.1rem;
  color: #c1a57b;
}
.card-swiper {
  width: 100%;
  height: 220px;
}

.card-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Flechas del slider más pequeñas y doradas */
.card-swiper .swiper-button-prev,
.card-swiper .swiper-button-next {
  color: #c1a57b;        /* color dorado */
  width: 30px;           /* tamaño reducido */
  height: 30px;
  font-size: 20px;       /* tamaño del icono interno */
  background: white;     /* opcional: circulito blanco para mejor visibilidad */
  border-radius: 50%;    /* hace la flecha circular */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

/* Hover dorado más intenso */
.card-swiper .swiper-button-prev:hover,
.card-swiper .swiper-button-next:hover {
  background: #c1a57b;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Ajuste posición ligeramente */
.card-swiper .swiper-button-prev {
  left: 5px;
}
.card-swiper .swiper-button-next {
  right: 5px;
}

/* Botón pequeño */
.btn-small {
  padding: 0.5rem 1rem;
  background-color: #c1a57b;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  transition: background 0.3s ease;
}

.btn-small:hover {
  background-color: #a68c65;
}

/* Responsive */
@media (max-width: 768px) {
  .prop-recomendadas {
    padding: 2rem 1rem;
    margin: 2rem auto;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card img {
    height: 200px;
  }
}
