/* =========================================================
  ESTILOS GENERALES
  Para cambiar colores principales, edita estas variables.
========================================================= */
:root {
  --navy: #0b1f3a;
  --navy-light: #12355f;
  --gold: #c9a24d;
  --white: #ffffff;
  --light-gray: #f5f7fa;
  --medium-gray: #667085;
  --dark: #101828;
  --border: #e4e7ec;
  --shadow: 0 20px 60px rgba(11, 31, 58, 0.14);
  --radius: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section-padding {
  padding: 92px 0;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.35rem;
}

p {
  color: var(--medium-gray);
}

.eyebrow {
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  margin-bottom: 14px;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
}

.section-heading p:last-child {
  margin-top: 14px;
}

.align-left {
  text-align: left;
  margin-left: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 14px 32px rgba(201, 162, 77, 0.28);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border);
}

.text-link {
  color: var(--navy);
  font-weight: 800;
  border-bottom: 2px solid var(--gold);
  width: fit-content;
}

/* =========================================================
  HEADER
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 800;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: 'Playfair Display', serif;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--gold);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--navy);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.4rem;
}

/* =========================================================
  HERO
========================================================= */
.hero {
  background:
    linear-gradient(120deg, rgba(11,31,58,0.96), rgba(18,53,95,0.88)),
    url('images/real-estate-bg.jpg') center/cover;
  color: var(--white);
  min-height: 760px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
}

.hero h1,
.hero p {
  color: var(--white);
}

.hero-subtitle {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 24px 0 32px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.hero-card {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-card img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
}

.hero-card-badge {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-card-badge strong {
  color: var(--navy);
  display: block;
}

.hero-card-badge span {
  color: var(--medium-gray);
  font-size: 0.9rem;
}

/* =========================================================
  ABOUT
========================================================= */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}

.about-content p + p {
  margin-top: 16px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 30px 0;
}

.feature-list div {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--light-gray);
}

.feature-list h3 {
  margin-bottom: 10px;
}

/* =========================================================
  PROPERTIES SEARCH
========================================================= */
.properties {
  background: var(--light-gray);
}

.property-search {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--white);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--dark);
  background: var(--white);
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(201, 162, 77, 0.35);
  border-color: var(--gold);
}

.properties-whatsapp {
  text-align: center;
  margin-top: 26px;
}

/* =========================================================
  BLOG
========================================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(16, 24, 40, 0.07);
}

.blog-card img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.blog-card-content {
  padding: 24px;
  display: grid;
  gap: 12px;
}

.blog-category {
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}

/* =========================================================
  TESTIMONIOS
========================================================= */
.testimonials {
  background: var(--navy);
}

.testimonials h2,
.testimonials .eyebrow {
  color: var(--white);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

blockquote {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-radius: 26px;
  padding: 28px;
  font-size: 1.05rem;
}

cite {
  display: block;
  margin-top: 18px;
  color: var(--gold);
  font-style: normal;
  font-weight: 800;
}

/* =========================================================
  CTA
========================================================= */
.cta {
  background: var(--light-gray);
}

.cta-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 36px;
  padding: 64px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-box h2,
.cta-box p {
  color: var(--white);
}

.cta-box p {
  margin: 18px auto 28px;
  max-width: 640px;
}

/* =========================================================
  CONTACTO
========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-info {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.contact-info a {
  color: var(--navy);
  font-weight: 800;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.form-note {
  font-size: 0.88rem;
}

/* =========================================================
  FOOTER
========================================================= */
.site-footer {
  background: #07172b;
  color: var(--white);
  padding: 58px 0 28px;
}

.site-footer h2,
.site-footer h3,
.site-footer p,
.site-footer a {
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
}

.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 34px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.legal p {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* =========================================================
  BOTÓN FLOTANTE WHATSAPP
========================================================= */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2000;
  background: #25d366;
  color: var(--white);
  padding: 15px 20px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.32);
}

/* =========================================================
  RESPONSIVE: TABLET Y CELULAR
========================================================= */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 4%;
    right: 4%;
    top: 82px;
    display: none;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .property-search,
  .blog-grid,
  .testimonial-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-card img {
    min-height: 420px;
  }

  .cta-box {
    padding: 42px 24px;
  }
}

@media (max-width: 560px) {
  .section-padding {
    padding: 68px 0;
  }

  .hero-buttons,
  .btn {
    width: 100%;
  }

  .hero-card-badge {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .whatsapp-float {
    left: 18px;
    right: 18px;
    text-align: center;
  }
}
