@import "/assets/fonts/Merriweather/Merriweather-Italic-VariableFont_opsz\,wdth\,wght.ttf";
@import "/assets/fonts/Merriweather/Merriweather-VariableFont_opsz\,wdth\,wght.ttf";

:root {
  --main-color: #7c0007;
  --main-color-hover: #9c1018;
  --main-color-tint: #fbeceb;
  --secondary-color: #8C5074;
  --text-color: #2a2626;
  --text-muted: #6f6f6f;
  --border-color: #e6e1dc;
  --bg-page: #faf8f6;
  --bg-card: #ffffff;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(30, 15, 15, 0.08);
  --shadow-md: 0 8px 24px rgba(30, 15, 15, 0.10);
  --shadow-lg: 0 16px 40px rgba(30, 15, 15, 0.16);

  --font-serif: "Merriweather", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font-sans);
  color: var(--text-color);
  background: var(--bg-page);
}

h1, h2, h3 {
  font-family: var(--font-serif);
}

.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 0;
  width: 100%;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--main-color-tint);
  border-top-color: var(--main-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 2.4s;
  }
}

.footer-logo {
  height: 100px;
  object-fit: contain;
}

.container {
  flex: 1 1 auto;

}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 50px;
  margin-bottom: 60px;
  gap: 20px;
}

/* Encabezado */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background: #f5f5f5;
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
}

nav {
  margin-left: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
}

.navbar-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 20px;
  z-index: 9999;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.95em;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background-color: var(--main-color);
  color: white;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger-menu span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 2px;
}


nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding-left: 0;
}

nav ul li {
  margin: 0;
}

.navbar {
  display: flex;
  font-family: var(--font-serif);
  align-items: center;
  font-size: 1.8em;
  gap: 0.3em;
  font-weight: bold;
  color: var(--main-color);
}

.navbar-title a {
  color: var(--text-color);
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: bold;
}

/* Pie de página */
footer {
  background: var(--main-color);
  display: flex;
  flex-direction: column;
  color: white;
  padding: 48px 50px 30px;
  gap: 20px;
  text-align: center;
  height: 100%;
  width: 100%;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0 50px;
}

ul {
  list-style: none;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.5em;
  font-weight: bold;
  font-family: var(--font-serif);
}

.logo {
  width: auto;
}

.property-footer-title {
  margin-bottom: 0.7em;
  text-align: left;
  font-size: 0.85em;
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  margin-top: 20px;
}

.location-info {
  font-weight: 300;
  text-align: left;
  line-height: 1.7;
}

.property-type {
  font-weight: 300;
  text-align: left;
  line-height: 1.9;
}

.property-type a {
  transition: opacity 0.2s ease;
}

.property-type a:hover {
  opacity: 0.75;
  text-decoration: underline !important;
}

.socials img {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.socials img:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

footer p.property-type {
  text-align: center;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}




/* -------------------RESPONSIVE -----------------*/

@media (max-width: 1300px) {
  footer {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0 10px;
    width: 100%;
  }

  .footer-logo {
    grid-column: span 2;
    text-align: center;
  }
}


@media (max-width: 764px) {

  .navbar-title{
    display: none;
  }

  footer {
    flex-direction: column;
  }

  .footer-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 20px;
  }

  .footer-logo {
    text-align: center;
  }

  .footer-logo-title {
    display: none;
  }
}

@media (max-width: 900px) {
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 10px;
    width: 80px;
    height: 90px;
    background-color: #f5f5f5;
    justify-content: center;
    align-items: center;
  }

  .hamburger-menu.active {
    transition: background-color 0.3s ease;
  }


  .nav-links {
    display: none;
    position: absolute;
    top: 90px;
    right: 30px;
    width: 140px;
    background-color: white;
    border-radius: var(--radius-md);
    padding: 10px;
    box-shadow: var(--shadow-lg);
  }

  .nav-links li {
    list-style: none;
    margin: 6px 0;
  }

  .nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    display: block;
  }


  .nav-links.show {
    display: block;
  }
}
