:root {
  --bg-main: #050505;
  --bg-section: #0c0c0c;
  --primary: #d4a24c;  
  --text-main: #f6e7c1; 
  --text-muted: #a7a297;
  --card-bg: #111111;
  --border-soft: rgba(255,255,255,0.06);
  --radius-lg: 1.5rem;
  --transition-fast: 0.25s ease;
  --shadow-soft: 0 18px 40px rgba(0,0,0,0.55);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background: radial-gradient(circle at top, #151515 0%, #000000 60%);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HEADER */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.6));
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(212,162,76,0.5);
  box-shadow: 0 0 30px rgba(212,162,76,0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text span:first-child {
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  font-weight: 700;
}

.brand-text span:last-child {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.1rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), #f6e7c1);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-primary {
  border-radius: 999px;
  border: none;
  padding: 0.55rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--primary), #f6e7c1);
  color: #1a1205;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(0,0,0,0.6);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.75);
  filter: brightness(1.03);
}

.btn-outline {
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 500;
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(246,231,193,0.4);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border var(--transition-fast), transform var(--transition-fast);
}

.btn-outline:hover {
  background: rgba(246,231,193,0.06);
  transform: translateY(-1px);
  border-color: var(--primary);
}

/* MENÚ HAMBURGUESA */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 4px;
  transition: 0.3s ease;
}

/* MENÚ MÓVIL DESLIZABLE */

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  max-width: 320px;
  height: 100%;
  background: #0b0b0b;
  border-left: 1px solid var(--border-soft);
  box-shadow: -5px 0 20px rgba(0,0,0,0.7);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: right 0.4s ease;
  z-index: 99;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.mobile-menu ul li a {
  color: var(--text-main);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.close-menu {
  font-size: 2rem;
  color: var(--text-main);
  cursor: pointer;
}

.mobile-header {
  display: flex;
  justify-content: flex-end;
}

.mobile-btn {
  width: 100%;
  margin-top: auto;
}

/* HERO */

.hero {
  padding: 3.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(246,231,193,0.2);
  background: rgba(0,0,0,0.45);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #f6e7c1 0%, var(--primary) 60%);
  box-shadow: 0 0 12px rgba(246,231,193,0.9);
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.hero-sub {
  max-width: 480px;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.3rem;
}

.hero-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-meta strong {
  color: var(--primary);
  font-weight: 600;
}

.hero-card {
  background: radial-gradient(circle at top, #18120a 0%, #050505 55%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: floatCard 10s ease-in-out infinite alternate;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top, rgba(212,162,76,0.22), transparent 60%);
  opacity: 0.6;
  z-index: -1;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.hero-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(246,231,193,0.2);
  color: var(--text-muted);
  background: rgba(0,0,0,0.4);
}

.hero-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.hero-stat-row span strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
}

.hero-strip {
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(246,231,193,0.18);
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.hero-avatars {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.avatar-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(246,231,193,0.7);
  background: linear-gradient(135deg, #f6e7c1, var(--primary));
}

.avatar-circle:nth-child(2) { transform: translateX(-6px); }
.avatar-circle:nth-child(3) { transform: translateX(-12px); }

.hero-avatars span {
  font-size: 0.7rem;
  color: var(--text-muted);
  transform: translateX(-10px);
}

/* BUSCADOR */

.search-section {
  padding: 0 0 2.5rem;
}

.search-box {
  border-radius: var(--radius-lg);
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--border-soft);
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  box-shadow: 0 14px 40px rgba(0,0,0,0.7);
}

.search-field {
  flex: 1 1 150px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.search-field label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.search-field select,
.search-field input {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(246,231,193,0.2);
  background: rgba(7,7,7,0.9);
  color: var(--text-main);
  font-size: 0.8rem;
  outline: none;
}

.search-field select:focus,
.search-field input:focus {
  border-color: var(--primary);
}

/* SECCIONES GENERALES */

section {
  padding: 2.6rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.section-title {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 340px;
}

/* PROPIEDADES DESTACADAS */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.4rem;
}

.property-card {
  background: var(--card-bg);
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(212,162,76,0.4);
}

.property-image {
  position: relative;
  padding-top: 62%;
  background: radial-gradient(circle at center, #3d301d, #050505);
}

.property-tag {
  position: absolute;
  left: 0.9rem;
  top: 0.9rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  background: rgba(0,0,0,0.7);
  color: var(--text-main);
  border: 1px solid rgba(246,231,193,0.3);
}

.property-body {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.property-location {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.property-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.property-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.property-price {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

/* BENEFICIOS */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.2rem;
}

.benefit-card {
  border-radius: 1.1rem;
  border: 1px solid var(--border-soft);
  background: rgba(5,5,5,0.85);
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
}

.benefit-icon {
  width: 30px;
  height: 30px;
  border-radius: 0.9rem;
  background: rgba(212,162,76,0.12);
  border: 1px solid rgba(212,162,76,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.benefit-card h3 {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--text-main);
}

/* CÓMO FUNCIONA & NOSOTROS */

.two-column {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 2rem;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.steps-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.step-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(246,231,193,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--primary);
  flex-shrink: 0;
}

.about-card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, #1d1510 0%, #050505 55%);
  border: 1px solid var(--border-soft);
  padding: 1.4rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-soft);
}

.about-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

/* TESTIMONIOS */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.2rem;
}

.testimonial-card {
  border-radius: 1.1rem;
  border: 1px solid var(--border-soft);
  background: rgba(5,5,5,0.85);
  padding: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.testimonial-card strong {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-main);
  font-size: 0.8rem;
}

/* CONTACTO */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr);
  gap: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.85rem;
}

.contact-form label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.55rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(246,231,193,0.2);
  background: rgba(5,5,5,0.9);
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  resize: vertical;
  min-height: 40px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}

.contact-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.contact-highlight {
  padding: 0.9rem;
  border-radius: 1rem;
  border: 1px dashed rgba(212,162,76,0.5);
  background: rgba(13,10,6,0.9);
  font-size: 0.85rem;
  color: var(--text-main);
}

/* FOOTER */

footer {
  border-top: 1px solid var(--border-soft);
  padding: 1.5rem 0 1.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ANIMACIONES */

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero-grid,
  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    order: -1;
    margin-bottom: 1.5rem;
  }

  .desktop-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .benefits-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 640px) {
  .card-grid,
  .benefits-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .search-box {
    padding: 0.9rem;
  }
}
