/* ===== GOOGLE FONTS ===== */
/* Importado en HTML: Inter y Poppins */

/* ===== CSS VARIABLES - PREMIUM DARK THEME ===== */
:root {
  --header-height: 4.5rem;
  /* 72px */

  /* Colors - Paleta de lujo "Noir & Gold" */
  --bg-dark-primary: #0D1117;
  /* Negro carbón muy oscuro (Casi negro, como GitHub Dark) */
  --bg-dark-secondary: #161B22;
  /* Un tono más claro para tarjetas y secciones */

  --accent-gold: #E0B047;
  /* Oro sofisticado, ni muy amarillo ni muy naranja */
  --accent-gold-dark: #C9A240;
  /* Oro más oscuro para hovers y degradados */

  --text-primary: #F0F6FC;
  /* Blanco brillante para títulos y texto importante */
  --text-secondary: #C9D1D9;
  /* Gris claro para párrafos y descripciones */
  --text-tertiary: #8B949E;
  /* Gris más oscuro para metadata y placeholders */

  --border-color: rgba(240, 246, 252, 0.1);
  /* Borde blanco muy sutil para definir elementos */
  --border-color-hover: rgba(224, 176, 71, 0.4);
  /* Borde dorado al pasar el ratón */

  /* Sombras para Dark Mode (sutiles y basadas en luz) */
  --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.2);
  --shadow-strong: 0 10px 40px rgba(0, 0, 0, 0.3);
  --shadow-glow-gold: 0 0 15px rgba(224, 176, 71, 0.15), 0 0 5px rgba(224, 176, 71, 0.1);

  /* Tipografía (se mantienen fuentes, se ajustan pesos y tamaños para legibilidad) */
  --body-font: 'Inter', sans-serif;
  --title-font: 'Poppins', sans-serif;

  --h1-font-size: 2.85rem;
  --h2-font-size: 2.35rem;
  --h3-font-size: 1.5rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.9rem;
  --tiny-font-size: 0.8rem;

  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* z-index */
  --z-tooltip: 10;
  --z-fixed: 1000;
  --z-modal: 1100;

  /* Radios de borde */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-card: 20px;
  --radius-full: 999px;

  /* Transiciones */
  --transition-cubic: cubic-bezier(0.645, 0.045, 0.355, 1);
  --transition-speed: 0.3s;
  --transition-fast: 0.2s;

  /* Tamaños de Iconos */
  --icon-size-xs: 1rem;
  --icon-size-sm: 1.25rem;
  --icon-size-md: 1.5rem;
  --icon-size-lg: 2rem;
}


/* ===== BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark-primary);
  /* Fondo base para evitar flash blanco */
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--bg-dark-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  color: var(--text-primary);
  font-family: var(--title-font);
  font-weight: var(--font-semibold);
  line-height: 1.3;
  letter-spacing: -0.03em;
  /* Espaciado negativo sutil para títulos premium */
}

h1 {
  font-size: var(--h1-font-size);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: var(--h2-font-size);
  margin-bottom: 1rem;
}

h3 {
  font-size: var(--h3-font-size);
  margin-bottom: 0.75rem;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--accent-gold);
  transition: color var(--transition-fast) ease, opacity var(--transition-fast) ease;
}

a:hover {
  color: var(--accent-gold-dark);
  opacity: 0.9;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* ===== REUSABLE CSS CLASSES ===== */
.container {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section.bg-light-gray {
  /* Ahora será una sección secundaria oscura */
  background-color: var(--bg-dark-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.section__tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: var(--bg-dark-primary);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--small-font-size);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.accent {
  color: var(--accent-gold);
}

.section__title {
  font-size: var(--h2-font-size);
  margin-bottom: 0.75rem;
}

.section__title--small-margin {
  margin-bottom: 1.25rem;
}

.section__subtitle {
  font-size: 1.1rem;
  /* Un poco más grande para mejor legibilidad */
  color: var(--text-tertiary);
  max-width: 700px;
  margin: 0 auto 1.75rem auto;
  line-height: 1.8;
}

.section__cta-container {
  text-align: center;
  margin-top: 3.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  font-family: var(--body-font);
  font-weight: var(--font-semibold);
  font-size: var(--normal-font-size);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-cubic);
  border: 2px solid transparent;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: var(--bg-dark-primary);
  box-shadow: 0 6px 20px rgba(224, 176, 71, 0.2);
}

.btn--primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(224, 176, 71, 0.3);
  color: #000;
}

.btn--secondary {
  background-color: transparent;
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.btn--secondary:hover {
  background-color: var(--accent-gold);
  color: var(--bg-dark-primary);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.65rem 1.3rem;
  font-size: var(--small-font-size);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  background: var(--text-tertiary);
  color: var(--bg-dark-secondary);
  border-color: transparent;
}


/* ===== HEADER / NAVBAR ===== */
.header {
  width: 100%;
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease, padding var(--transition-speed) ease;
  padding: 1.5rem 0;
}

.header.scroll-header {
  background-color: rgba(13, 17, 23, 0.85);
  /* Fondo oscuro semi-transparente */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#header-logo {
  max-width: 200px;
  transition: max-width 0.3s ease;
}

.nav__list {
  display: flex;
  gap: 2.8rem;
}

.nav__link {
  font-weight: var(--font-medium);
  color: var(--text-primary);
  transition: color var(--transition-fast) ease;
  position: relative;
  padding-bottom: 0.4rem;
  letter-spacing: 0.3px;
}

.header.scroll-header .nav__link {
  color: var(--text-secondary);
  /* En scroll, los links son un poco más sutiles */
}

.header.scroll-header .nav__link:hover,
.header.scroll-header .nav__link.active-link {
  color: var(--text-primary);
  /* Se iluminan al interactuar */
}

.nav__link:hover {
  color: var(--accent-gold);
}

.nav__link.active-link {
  color: var(--accent-gold);
  font-weight: var(--font-semibold);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-speed) var(--transition-cubic);
}

.nav__link.active-link::after,
.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__close,
.nav__toggle {
  display: none;
  cursor: pointer;
}

.nav__toggle-bar {
  width: 26px;
  height: 2.5px;
  background-color: var(--text-primary);
  margin: 4px 0;
  border-radius: var(--radius-full);
  transition: transform 0.4s var(--transition-cubic), opacity 0.3s ease, background-color 0.3s ease;
}

.header.scroll-header .nav__toggle-bar {
  background-color: var(--text-secondary);
}

.nav__toggle.nav-toggle--active .nav__toggle-bar--1 {
  transform: translateY(8.5px) rotate(45deg);
}

.nav__toggle.nav-toggle--active .nav__toggle-bar--2 {
  opacity: 0;
  transform: scaleX(0);
}

.nav__toggle.nav-toggle--active .nav__toggle-bar--3 {
  transform: translateY(-8.5px) rotate(-45deg);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__cta {
  background: var(--accent-gold);
  color: var(--bg-dark-primary);
  border-color: transparent;
  font-size: var(--small-font-size);
  padding: 0.6rem 1.2rem;
}

.header__cta:hover {
  background: var(--accent-gold-dark);
  color: #000;
}


/* ===== HERO SECTION ===== */
.hero {
  height: 100vh;
  min-height: 700px;
  max-height: 1000px;
  background-image: url('https://images.pexels.com/photos/106399/pexels-photo-106399.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-primary);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 17, 23, 0.95) 0%, rgba(13, 17, 23, 0.6) 100%);
}

.hero__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: 1.75rem;
  max-width: 900px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.04em;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: 3.5rem;
  max-width: 750px;
  line-height: 1.8;
}


/* ===== TARJETAS Y GRIDS (Propiedades, Categorías, etc.) ===== */
.properties__grid,
.categories__grid,
.services__grid,
.testimonials__grid,
.blog__grid {
  display: grid;
  gap: 2.5rem;
}

.properties__grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.categories__grid {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.services__grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonials__grid {
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}

.blog__grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.property-card,
.category-card,
.service-item,
.testimonial-card,
.blog-card {
  background-color: var(--bg-dark-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-speed) var(--transition-cubic),
    border-color var(--transition-speed) var(--transition-cubic),
    box-shadow var(--transition-speed) var(--transition-cubic);
}

.property-card:hover,
.category-card:hover,
.service-item:hover,
.testimonial-card:hover,
.blog-card:hover {
  transform: translateY(-10px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-glow-gold);
}

/* Property Card Specifics */
.property-card {
  display: flex;
  flex-direction: column;
}

.property-card__image-wrapper {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.property-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--transition-cubic);
}

.property-card:hover .property-card__image {
  transform: scale(1.08);
}

.property-card__tag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background-color: var(--bg-dark-primary);
  color: var(--text-primary);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: var(--tiny-font-size);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.property-card__tag--hot {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: var(--bg-dark-primary);
}

.property-card__content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.property-card__title {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.property-card__location {
  font-size: var(--small-font-size);
  color: var(--text-tertiary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.property-card__price {
  font-size: 1.85rem;
  font-weight: var(--font-bold);
  color: var(--accent-gold);
  margin-bottom: 1.25rem;
}

.property-card__features {
  display: flex;
  gap: 1.25rem;
  font-size: var(--small-font-size);
  color: var(--text-tertiary);
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.property-card__cta {
  margin-top: auto;
  width: 100%;
}

/* Category Card Specifics */
.category-card {
  padding: 2.5rem 2rem;
  text-align: center;
}

.category-card__icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-dark-primary), var(--bg-dark-secondary));
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem auto;
  transition: transform 0.35s ease, border-color 0.3s ease;
}

.category-card:hover .category-card__icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--accent-gold);
}

.category-card__icon {
  color: var(--accent-gold);
}

.category-card__title {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.category-card__description {
  font-size: var(--small-font-size);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Service Item Specifics */
.service-item {
  padding: 2.75rem 2.25rem;
  text-align: center;
}

.service-item__icon {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-md);
  background-color: var(--bg-dark-primary);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem auto;
}

.service-item__title {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.service-item__description {
  font-size: var(--normal-font-size);
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Testimonial Card Specifics */
.testimonial-card {
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  background-color: var(--bg-dark-primary);
}

.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 8rem;
  color: var(--accent-gold);
  opacity: 0.05;
  line-height: 1;
  font-family: Georgia, serif;
  z-index: 0;
}

.testimonial-card__photo {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem auto;
  border: 4px solid var(--bg-dark-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.testimonial-card__comment {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.testimonial-card__name {
  font-size: 1.2rem;
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  z-index: 1;
  position: relative;
}

.testimonial-card__title {
  font-size: var(--small-font-size);
  color: var(--text-tertiary);
  font-weight: var(--font-medium);
  z-index: 1;
  position: relative;
}

/* Blog Card Specifics (styles de la pregunta original) */
.blog-card {
  display: flex;
  flex-direction: column;
}

.blog-card__image-wrapper {
  height: 220px;
  overflow: hidden;
}

.blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--transition-cubic);
}

.blog-card:hover .blog-card__image {
  transform: scale(1.05);
}

.blog-card__content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__date {
  font-size: var(--tiny-font-size);
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.blog-card__title {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card__excerpt {
  font-size: var(--small-font-size);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.blog-card__cta {
  color: var(--accent-gold);
  font-weight: var(--font-medium);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
}

.blog-card__cta:hover .material-icons-outlined {
  transform: translateX(4px);
}


/* ===== ¿POR QUÉ ELEGIRNOS? (Why Us) ===== */
.why-us__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.why-us__image-content .why-us__image {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
  object-fit: cover;
  width: 100%;
  height: 600px;
}

.why-us__text-content .section__subtitle {
  max-width: none;
  margin-left: 0;
}

.why-us__benefits-list {
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  padding-left: 0;
}

.why-us__benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: var(--normal-font-size);
}

.why-us__benefits-list .material-icons-outlined.icon-sm {
  flex-shrink: 0;
  color: var(--accent-gold);
  margin-top: 0.2rem;
}


/* ===== CONTACTO Y FORMULARIOS ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact__details {
  list-style: none;
  padding: 0;
  margin-bottom: 2.5rem;
}

.contact__details li {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  font-size: var(--normal-font-size);
}

.contact__details .material-icons-outlined {
  color: var(--accent-gold);
}

.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 280px;
  border: 1px solid var(--border-color);
}

.contact__map iframe {
  filter: invert(90%) hue-rotate(180deg);
}

/* Estilo para mapa oscuro */
.contact__form-wrapper {
  background-color: var(--bg-dark-secondary);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.form__group {
  margin-bottom: 1.75rem;
}

.form__label {
  display: block;
  font-weight: var(--font-medium);
  margin-bottom: 0.6rem;
  font-size: var(--small-font-size);
  color: var(--text-secondary);
}

.form__input {
  width: 100%;
  padding: 0.95rem 1.15rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: var(--normal-font-size);
  font-family: var(--body-font);
  background-color: var(--bg-dark-primary);
  color: var(--text-primary);
  transition: border-color var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
}

.form__input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(224, 176, 71, 0.2);
}

.form__input::placeholder {
  color: var(--text-tertiary);
  opacity: 1;
}

textarea.form__input {
  min-height: 130px;
  resize: vertical;
}

/* CTA Banner (Newsletter) */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-dark-secondary) 0%, var(--bg-dark-primary) 100%);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 4rem 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  margin: 4rem 1rem;
}

.cta-banner__title {
  font-size: var(--h2-font-size);
  color: var(--text-primary);
}

.cta-banner__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.cta-banner__form {
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.cta-banner__form input[type="email"] {
  flex-grow: 1;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  font-size: var(--normal-font-size);
  outline: none;
  background-color: var(--bg-dark-primary);
  color: var(--text-primary);
}

.cta-banner__form input[type="email"]:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(224, 176, 71, 0.2);
}

.cta-banner__form .btn--primary {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-banner__form .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}


/* ===== FOOTER ===== */
.footer {
  background-color: var(--bg-dark-secondary);
  color: var(--text-secondary);
  padding: 5rem 0 2.5rem;
  border-top: 1px solid var(--border-color);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer__logo img {
  margin-bottom: 20px;
}

.footer__description {
  font-size: var(--small-font-size);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  max-width: 300px;
}

.footer__socials {
  display: flex;
  gap: 1.25rem;
}

.footer__social-link {
  color: var(--text-tertiary);
  transition: color var(--transition-fast) ease, transform var(--transition-fast) ease;
}

.footer__social-link:hover {
  color: var(--accent-gold);
  transform: translateY(-3px);
}

.footer__title {
  font-size: 1.2rem;
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.3px;
}

.footer__list li {
  margin-bottom: 0.85rem;
}

.footer__link {
  color: var(--text-secondary);
  transition: color var(--transition-fast) ease, padding-left var(--transition-fast) ease;
}

.footer__link:hover {
  color: var(--accent-gold);
  padding-left: 0.35rem;
}

.footer__list--contact .material-icons-outlined {
  color: var(--accent-gold);
}

.footer__bottom {
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
  font-size: var(--small-font-size);
  color: var(--text-tertiary);
}


/* ===== SCROLL UP BUTTON ===== */
.scroll-up {
  position: fixed;
  right: 1.75rem;
  bottom: -30%;
  background-color: var(--accent-gold);
  color: var(--bg-dark-primary);
  padding: 0.7rem;
  border-radius: var(--radius-md);
  z-index: var(--z-tooltip);
  transition: all 0.4s var(--transition-cubic);
  display: inline-flex;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--accent-gold-dark);
}

.scroll-up:hover {
  background-color: var(--accent-gold-dark);
  transform: translateY(-4px) scale(1.05);
}

.scroll-up.show-scroll {
  bottom: 2.25rem;
}


/* ===== ANIMATE ON SCROLL ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--transition-cubic), transform 0.7s var(--transition-cubic);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 {
  transition-delay: 0.15s;
}

.animate-delay-2 {
  transition-delay: 0.3s;
}

.animate-delay-3 {
  transition-delay: 0.45s;
}


/* ===== HERO SEARCH BAR ===== */
.hero__search-bar {
  background-color: rgba(22, 27, 34, 0.8);
  /* Fondo oscuro translúcido */
  backdrop-filter: blur(8px);
  padding: 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-strong);
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  max-width: 980px;
  width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.hero__search-group {
  display: flex;
  flex-grow: 1;
  border-radius: var(--radius-full);
  overflow: hidden;
  background-color: var(--bg-dark-primary);
}

.hero__search-item {
  flex: 1 1 200px;
  padding: 0.85rem 1.35rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 992px) {
  .hero__search-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50%;
    background-color: var(--border-color);
  }

  .hero__search-item--optional {
    flex: 0 1 160px;
  }
}

.hero__search-label {
  font-size: var(--tiny-font-size);
  font-weight: var(--font-medium);
  color: var(--text-tertiary);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.hero__search-input {
  width: 100%;
  border: none;
  background-color: transparent;
  padding: 0.4rem 0;
  font-size: var(--normal-font-size);
  color: var(--text-primary);
  outline: none;
  appearance: none;
}

.hero__search-input::placeholder {
  color: var(--text-tertiary);
}

select.hero__search-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%238B949E'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.2em;
  padding-right: 2.5rem;
}

.hero__search-button {
  flex-shrink: 0;
  padding: 0.75rem 1.75rem;
  height: auto;
  align-self: stretch;
  border-radius: var(--radius-full);
  min-height: 62px;
}


/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 1024px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: clamp(280px, 75%, 350px);
    height: 100vh;
    background-color: var(--bg-dark-secondary);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    padding: 6rem 2.5rem 2.5rem;
    z-index: calc(var(--z-fixed) - 1);
    transition: transform 0.45s var(--transition-cubic);
    transform: translateX(100%);
    overflow-y: auto;
    border-left: 1px solid var(--border-color);
  }

  .nav.show-menu {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.2rem;
  }

  .nav__link,
  .header.scroll-header .nav__link {
    color: var(--text-secondary);
    font-size: 1.25rem;
  }

  .nav__link.active-link,
  .nav__link:hover {
    color: var(--text-primary);
  }

  .nav__link.active-link::after,
  .nav__link:hover::after {
    background-color: var(--accent-gold);
  }

  .nav__close {
    display: flex;
    position: absolute;
    top: 1.5rem;
    right: 1.75rem;
    color: var(--text-primary);
    padding: 0.5rem;
  }

  .nav__toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    z-index: var(--z-fixed);
    position: relative;
  }

  .why-us__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .why-us__image-content {
    order: -1;
    margin-bottom: 2rem;
  }

  .why-us__image-content .why-us__image {
    max-height: 400px;
  }

  .contact__form-wrapper {
    padding: 2.5rem;
  }

  .contact__map {
    height: 250px;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --h1-font-size: 2.35rem;
    --h2-font-size: 1.9rem;
    --h3-font-size: 1.4rem;
    --normal-font-size: 0.95rem;
  }

  #header-logo {
    max-width: 130px;
  }

  .section {
    padding: 4.5rem 0;
  }

  .header {
    padding: 1.25rem 0;
  }

  .hero {
    min-height: auto;
    height: auto;
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 4rem;
    max-height: none;
  }

  .header__cta {
    display: none;
  }

  .hero__search-bar {
    flex-direction: column;
    padding: 0.75rem;
    border-radius: var(--radius-xl);
    gap: 0.75rem;
  }

  .hero__search-group {
    flex-direction: column;
    width: 100%;
    border-radius: var(--radius-xl);
  }

  .hero__search-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
  }

  .hero__search-item:last-child {
    border-bottom: none;
  }

  .hero__search-item::after {
    display: none;
  }

  .hero__search-button {
    width: 100%;
    min-height: 56px;
  }

  .cta-banner__form {
    flex-direction: column;
  }

  .cta-banner__form .btn--primary {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  :root {
    --h1-font-size: 2.1rem;
    --h2-font-size: 1.7rem;
  }

  .properties__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .contact__form-wrapper {
    padding: 2rem 1.5rem;
  }
}

/* Sutil Scrollbar para Webkit */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark-primary);
}

::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 10px;
  border: 2px solid var(--bg-dark-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}