@import url("https://fonts.googleapis.com/css?family=Raleway");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap");

:root {
  /* CSS HEX */
  --primary: #2a7fff; /* Azul brillante - para acentos principales y botones */
  --secondary: #fff;
  --secondary-light: rgb(173, 173, 173);
  --delft-blue: #253b63ff;
  --berkeley-blue: #123360ff;
  --background: #021239ff;
  --space-cadet: #142a52ff;
  --background2: #384e78ff;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Raleway", "Arial", sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Helvetica Neue", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow: auto;
}

body {
  background: var(--background);
  font-size: 18px;
  color: var(--secondary);
  overflow-y: scroll;
  height: 100vh;
  width: 100vw;
  margin: 0;
}

.properties-section {
  background-color: var(--background);
  padding: 50px 20px;
  color: var(--secondary);
}

.properties-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
  font-weight: bold;
}

.property-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 0 auto;
  max-width: 1200px;
}

.property-card {
  background: var(--background2);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.property-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.property-card h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.property-card p {
  color: var(--secondary-light);
  margin-bottom: 10px;
}

.property-card span {
  display: block;
  margin-top: 10px;
  font-size: 1.25rem;
  color: var(--primary);
}

.action-btn {
  background-color: var(--primary);
  color: var(--background);
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 15px;
}

.action-btn:hover {
  background-color: var(--background);
  color: var(--primary);
  transform: translateY(-4px);
}

@media (max-width: 768px) {
  .properties-section h2 {
    font-size: 1.8rem;
  }

  .property-list {
    grid-template-columns: 1fr 1fr;
  }

  .property-card {
    padding: 15px;
  }

  .action-btn {
    padding: 10px 25px;
  }
}

@media (max-width: 480px) {
  .properties-section h2 {
    font-size: 1.5rem;
  }

  .property-list {
    grid-template-columns: 1fr;
  }
}
