:root {
  --azul-principal: #1d2d7d;
  --rojo-logo: #c41212;
  --gris-claro: #f4f4f4;
  --texto: #333;
  --blanco: #ffffff;
}
html{
  scroll-behavior: smooth;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  /*outline: 1px solid red; /* Para visualizar los bordes de cada elemento durante el desarrollo */
}

body {
  background-color: var(--gris-claro);
  color: var(--texto);
  padding: 30px; /* separacion del borde*/
  display: block;
  overflow-x: hidden;
}

/* Header & Nav */
.navbar {
  background: var(--blanco);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.image {
  max-height: 50px;
  height: auto;
}
.logo {
  display: flex;
  align-self: center;
}
h2 {
  text-align: center;
}
.mabel {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--azul-principal);
  line-height: 1;
}

#terrenosventa, #casasventa, #casaalquiler, #oficinaalquiler, #deptoalquiler {
  text-align: center;
  background-color: #d1161d;
  color: white;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  

}

.rubro {
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--texto);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  text-align: center;
}
.nav-links-social {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 0.5rem;
  align-self: center;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    padding-bottom: 1rem;
    transform: translateX(-3%);
  }
}

.nav-links li a {
  text-decoration: none;
  color: var(--azul-principal);
  margin-left: 20px;
  font-weight: 500;
}

/* Hero Section */
.hero {
  background:
    linear-gradient(rgba(29, 45, 125, 0.7), rgba(29, 45, 125, 0.7)),
    url('https://via.placeholder.com/1200x400') center/cover;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.search-bar {
  margin-top: 20px;
  background: white;
  padding: 10px;
  border-radius: 8px;
  display: flex;
  width: 80%;
  max-width: 600px;
}

.search-bar input {
  flex: 1;
  border: none;
  padding: 10px;
  outline: none;
}

.search-bar button {
  background: var(--rojo-logo);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 5px;
  cursor: pointer;
}

/* Grid de Propiedades */
.container {
  padding: 40px 5%;
}

.grid-propiedades {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--azul-principal);
  color: white;
  padding: 5px 12px;
  font-size: 0.7rem;
  border-radius: 4px;
}

.card-content {
  padding: 20px;
}

.price {
  font-size: 1.4rem;
  color: #000;
  margin-bottom: 5px;
}

.address {
  color: #666;
  margin-bottom: 15px;
}

.features {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.actions {
  display: flex;
  gap: 10px;
}

.btn-contact {
  background: #25d366; /* WhatsApp Green */
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
}

.btn-more {
  flex: 1;
  background: var(--azul-principal);
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.btn-more:hover {
  background: var(--rojo-logo);
}
/* Configuración General */
.main-footer {
  background-color: #f8f9fa; /* Gris muy claro como el de la imagen */
  font-family: sans-serif;
  color: #555;
  padding-top: 40px;
  border-top: 4px solid #d32f2f; /* Línea roja decorativa superior */
}

.footer-container {
  display: flex;
  justify-content: space-around; /* Distribuye las columnas equitativamente */
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-column {
  margin-bottom: 20px;
  min-width: 150px;
}

.footer-column h3 {
  color: #1a436d; /* Azul oscuro para los títulos */
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-column a {
  text-decoration: none;
  color: #777;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: #d32f2f; /* Rojo al pasar el mouse */
}

/* Barra inferior */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding: 20px 40px;
  margin-top: 20px;
  font-size: 0.85rem;
}

.footer-logo {
  height: 100px; /* Ajusta según tu imagen */
}

.bottom-links a {
  margin-left: 15px;
  text-decoration: none;
  color: #555;
}
/* Contenedor de todas las tarjetas */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
  background-color: #f5f5f5;
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    padding: 10px;
  }
 
}

/* La Tarjeta */
.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', sans-serif;
  transition: transform 0.2s;
  max-width: 375px;
}

.card:hover {
  transform: translateY(-5px);
}

/* Imagen y botón favorito */
.card-image {
  overflow: hidden;
  position: relative;
  aspect-ratio: 1/1;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Slider de imágenes */
.slider-img {
  min-width: 100%;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.card-image button {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;

  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 50%;
  cursor: pointer;

  z-index: 10;
}

.card-image button img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.card-image:hover button {
  opacity: 0.7;
  pointer-events: auto;
}

.prev,
.next {
  border-radius: 1rem;
}
.prev:hover,
.next:hover {
  background-color: rgba(255, 255, 255, 1);
}

.prev {
  left: 10px;
  background-image: url('assets/left.png');
}
.next {
  right: 10px;
  background-image: url('assets/right.png');
}

/*----------------------*/

.wishlist-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: white;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Contenido de texto */
.card-content {
  padding: 20px;
}

.price {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.address {
  color: #333;
  font-weight: 500;
  margin-bottom: 15px;
}

.features {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

.description {
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
}

/* Footer de la tarjeta (Agente) */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.agent {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
}

.agent-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.item img{
  width: 5%;
  height: 5%;
}

/* Botones de contacto circulares */
.contact-actions button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  margin-left: 5px;
}

.btn-wa {
  color: #25d366;
  border-color: #25d366 !important;
}
