html, body {
  overflow-x: hidden; /* Evita el scroll horizontal */
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  color: #333;
}


section {
  padding: 40px 20px;
  text-align: center;
}

h2 {
  font-size: 1.8em;
  margin-bottom: 30px;
}

.promociones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.card {
  background: rgb(226, 191, 75);
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  width: 300px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: auto;
}

.card h3 {
  margin: 15px 0;
}


/* Botones de navegación */
.btn-slider {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

#prevBtn {
  left: 15px;
}

#nextBtn {
  right: 15px;
}

.btn-slider:hover {
  background-color: rgba(0,0,0,0.7);
}

.btn {
  display: inline-block;
  margin: 10px 0 20px;
  background: #165bf6;
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  font-weight: bold;
}

.btn:hover {
  background: #F5A623;
}



.detalle {
  display: flex;
  flex-direction: column;
  padding: 30px;
  max-width: 1000px;
  margin: auto;
}

.slider {
  /*display: flex;*/
  /*overflow-x: auto;*/
  /*gap: 10px;*/
  margin-bottom: 20px;
}

.slider img {
  max-height: 300px;
  border-radius: 8px;
}

.info {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.info p {
  margin: 10px 0;
}

.titulo-propiedad {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.iconos-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  font-size: 1rem;
  color: #444444;
}

.info-item img {
  width: 20px;
  height: 20px;
}

.info-detalle {
  background: rgb(226, 191, 75);
  padding: 15px;
}

.precio {
  color: #d32f2f;
  font-size: 1.4rem;
  font-weight: bold;
}

.descripcion {
  margin-top: 10px;
  color: #555;
}

.cabecera {
  display: flex;
  justify-content:space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: rgb(226, 191, 75);
  color: white;
}

.cabeceraPaginaRosa {
  display: flex;
  justify-content:space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #ffe0eb;
  color: white;
}

.paginaRosa {
    background-color: #ffe0eb;
}

.cabecera .logo img {
  height: 40px;
}


.cabeceraPaginaRosa .logo img {
  height: 40px;
}

.logo {
  display: flex;
  align-items: center;      /* Centra verticalmente */
  gap: 8px;                 /* Espacio entre logo y texto */
}

.textoLogo {
  height: 50px;             /* Ajusta tamaño del logo */
}

.logo-text {
  font-size: 1.3rem;
  font-weight: bold;
  color: #070642;               /* Cambia el color a tu gusto */
  font-family: Arial, sans-serif;
}


.menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.whatsapp-btn {
  background-color: #25d366;
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
  position: fixed;
}

.whatsapp-btn:hover {
  background-color: #1ebd58;
}


.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0px 2px 10px rgba(0,0,0,0.3);
    z-index: 999;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}
.whatsapp-float img {
    width: 50px;
    height: 50px;
}


.buscador {
  padding: 50px 20px;
  text-align: center;
  background-color: #f4f4f4;
}

.buscador h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

.buscador p {
  font-size: 1.2em;
  color: #555;
}

.buscador a {
  font-weight: bold;
  text-decoration: none;
}

.link-venta {
  color: #e94e4e;
}

.link-alquiler {
  color: #1a8dd8;
}

.filtros {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.filtros select,
.filtros input {
  padding: 5px;
  font-size: 1em;
  border: 1px solid #150696;
  border-radius: 4px;
  flex: 1 1 80px;
}

.filtros input {
  flex: 1;
}

.filtros .lupa {
  background-color: #e94e4e;
  color: white;
  border: none;
  padding: 15px 25px;
  font-size: 1.2em;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s;
}

.filtros .lupa:hover {
  background-color: #c93e3e;
}

.volver {
  text-align: center;
  margin: 20px 0;
}

.btn-regresar {
  display: inline-block;
  background: #e9df4e;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-regresar:hover {
  background: #c93e3e;
}


.slider-detalle {
  width: 80%;
  max-width: 900px;
  height: 600px; /* puedes ajustar este valor */
  margin: 30px auto;
  position: relative;
  overflow: hidden;
  border-radius: 10px; /* esquinas redondeadas */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); /* sombra elegante */
  background-color: #fff; /* base para que la sombra luzca mejor */
  


}

.slider-detalle img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* recorta y ajusta la imagen sin deformarla */
}


/* Formulario más estilizado */
form {
    margin-top: 50px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px; /* 🔹 LIMITE DE ANCHO PARA PC */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

form input, form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

form button {
    background-color: #27ae60;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 12px;
    border-radius: 8px;
    transition: 0.3s;
}

form button:hover {
    background-color: #2ecc71;
}
/*fin del formulario mas estilizado */

/* generar logo animado */
.snowflake {
    position: fixed;
    top: -10px;
    /* Si quieres usar tu logo, acá en lugar de color, pondrías background-image */
    width: 50px; /* ajusta según el tamaño de tu logo */
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
    animation: fall 20s linear infinite;
    z-index: 999;
}

/* Movimiento con balanceo */
@keyframes fall {
    0% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(20px) translateY(25vh); /* se mueve a la derecha */
    }
    50% {
        transform: translateX(-20px) translateY(50vh); /* se mueve a la izquierda */
    }
    75% {
        transform: translateX(15px) translateY(75vh); /* otra vez derecha */
    }
    100% {
        transform: translateX(0) translateY(100vh); /* termina abajo */
    }
}


@media (max-width: 768px) {
  .slider img {
    height: 300px;
  }
}


/* Móvil: logo arriba, menú debajo y vertical */
@media (max-width: 640px) {
  .cabecera {
    flex-direction: column;    /* Pone el nav debajo del logo */
    align-items: flex-start;   /* Alineado a la izquierda (cámbialo a center si quieres centrar) */
    gap: 8px;
    padding: 12px 16px;
  }

  .menu {
    width: 100%;
    display: flex;
    flex-direction: column;    /* Uno debajo del otro */
    gap: 8px;
  }

  .menu a {
    display: block;
    /* opcional, si quieres que se vean como botones full-width:
    width: 100%;
    padding: 10px 0;
    text-align: center;
    */
  }
}

/* En móviles (pantallas menores a 600px) */
@media (max-width: 600px) {
  .filtros {
    flex-direction: column; /* uno debajo del otro */
    align-items: stretch;   /* que ocupen todo el ancho */
  }

  .filtros select,
  .filtros input,
  .filtros .lupa {
    width: 100%;     /* que ocupen todo el ancho */
    flex: none;      /* anulamos el flex para que no peleen */
  }
}

/* Estilos para el Popup (Modal) */
/* ==== Base de los modales ==== */
.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
  background: #fff;
  margin: 12% auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  animation: slideDown 0.4s ease;
}

.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s ease;
}
.close:hover {
  color: crimson;
}

/* ==== Diferencias sutiles ==== */

/* Modal principal */
.modal-principal-content {
  border-top: 5px solid #4CAF50; /* verde */
}
.close-principal {
  color: #4CAF50;
}

/* Modal de mensaje */
.modal-mensaje-content {
  border-top: 5px solid #2196F3; /* azul */
}
.close-mensaje {
  color: #2196F3;
}

/* Animaciones */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes slideDown {
  from {transform: translateY(-50px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}

.acceso-secret {
  cursor: pointer;
  padding: 15px 25px;
  background: #e50914; /* rojo fuerte tipo Netflix */
  color: #fff; /* texto blanco */
  border: none;
  border-radius: 8px;
  width: max-content;
  margin: 20px auto;
  text-align: center;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.acceso-secret:hover {
  background: #c20811; /* rojo más oscuro al pasar el mouse */
  transform: scale(1.05); /* pequeño zoom */
}

.acceso-secret:active {
  transform: scale(0.95); /* efecto al hacer clic */
}


.footer {
  background: #111;
  color: #fff;
  padding: 40px 20px;
  margin-top: 50px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 30px;
}

.footer-logo h2 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #f4d03f;
}

.footer-menu ul {
  list-style: none;
  padding: 0;
}

.footer-menu ul li {
  margin-bottom: 8px;
}

.footer-menu ul li a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.footer-menu ul li a:hover {
  color: #f4d03f;
}

.footer-redes .social-icons a {
  display: inline-block;
  margin-right: 15px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s;
}

.footer-redes .social-icons a:hover {
  color: #f4d03f;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  border-top: 1px solid #333;
  padding-top: 15px;
}

.logo-textFooter {
  font-size: 1.3rem;
  font-weight: bold;
  color: #ccc;               /* Cambia el color a tu gusto */
  font-family: Arial, sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-redes .social-icons a {
    display: block;
    margin: 8px 0;
  }
}
