:root {
  --bg: #f6f5ef;
  --surface: #ffffff;
  --surface-2: #f1eee4;
  --text: #1f2937;
  --muted: #667085;
  --primary: #2f6f4f;
  --primary-dark: #24573e;
  --accent: #c8a96b;
  --border: rgba(31, 41, 55, 0.08);
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.topbar {
  background: #183727;
  color: #f8fafc;
  font-size: 0.92rem;
}

.topbar-content {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-left {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 245, 239, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.menu a {
  color: var(--text);
  font-weight: 500;
  transition: 0.2s ease;
}

.menu a:hover {
  color: var(--primary);
}

.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(200, 169, 107, 0.16), transparent 30%),
    radial-gradient(circle at right center, rgba(47, 111, 79, 0.14), transparent 28%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow.light {
  color: #ecfdf3;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.3rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-badges span {
  padding: 0.7rem 0.95rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
}

.hero-card {
  display: flex;
  justify-content: flex-end;
}

.card-glass {
  width: 100%;
  max-width: 430px;
  padding: 2rem;
  background: rgba(24, 55, 39, 0.92);
  color: #fff;
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(24, 55, 39, 0.22);
}

.card-glass h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
}

.card-glass p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1rem;
}

.card-glass ul {
  margin: 0 0 1.4rem;
  padding-left: 1.2rem;
}

.card-glass li {
  margin-bottom: 0.45rem;
}

.section {
  padding: 5rem 0;
}

.section-soft {
  background: linear-gradient(to bottom, rgba(255,255,255,0.45), rgba(241,238,228,0.8));
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading.center {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 2.2rem;
}

.section-heading h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 1.4rem;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.info-card,
.property-card,
.step,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-card {
  padding: 1.6rem;
}

.icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--surface-2);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.info-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.18rem;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.property-card {
  overflow: hidden;
}

.property-image {
  height: 220px;
  background-size: cover;
  background-position: center;
}

.property-image-1 {
  background:
    linear-gradient(rgba(0,0,0,0.08), rgba(0,0,0,0.2)),
    url("../Imagenes/longotoma.webp");
  background-position: center 75%;
}

.property-image-2 {
  background:
    linear-gradient(rgba(0,0,0,0.08), rgba(0,0,0,0.2)),
    url("../Imagenes/Curacavi.webp");
  background-position: center;
}

.property-image-3 {
  background:
    linear-gradient(rgba(0,0,0,0.08), rgba(0,0,0,0.2)),
    url("../Imagenes/PuertoOctay.webp");
  background-position: center 80%;
}

.property-image {
  background-size: cover;
  background-repeat: no-repeat;
}

.property-content {
  padding: 1.4rem;
}

.tag {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.4rem 0.7rem;
  background: #edf7f0;
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.property-content h3 {
  margin: 0 0 0.7rem;
  font-size: 1.2rem;
}

.property-content p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.link-arrow {
  color: var(--primary);
  font-weight: 700;
}

.link-arrow:hover {
  color: var(--primary-dark);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.step {
  padding: 1.6rem;
}

.step-number {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 1rem;
}

.step h3 {
  margin: 0 0 0.5rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.cta-section {
  padding-top: 0;
}

.cta-box {
  background: linear-gradient(135deg, #214d38, #2f6f4f);
  color: white;
  border-radius: 28px;
  padding: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 18px 40px rgba(47, 111, 79, 0.24);
}

.cta-box h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.cta-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: start;
}

.contact-list p {
  margin: 0 0 0.7rem;
}

.contact-form {
  padding: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

label {
  margin-bottom: 0.45rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(31, 41, 55, 0.12);
  border-radius: 14px;
  font: inherit;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: rgba(47, 111, 79, 0.55);
  box-shadow: 0 0 0 4px rgba(47, 111, 79, 0.12);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-dark);
  border: 1px solid rgba(47, 111, 79, 0.2);
}

.btn-light {
  background: white;
  color: var(--primary-dark);
}

.btn-sm {
  min-height: 40px;
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
}

.full {
  width: 100%;
}

.footer {
  background: #132c20;
  color: #e5efe8;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  padding: 3rem 0 2rem;
}

.footer h3,
.footer h4 {
  margin-top: 0;
  color: white;
}

.footer p,
.footer a {
  color: rgba(229, 239, 232, 0.82);
}

.footer-bottom {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.92rem;
  color: rgba(229, 239, 232, 0.75);
}

@media (max-width: 991px) {
  .hero-grid,
  .contact-grid,
  .cards-3,
  .steps,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .menu {
    display: none;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 4rem;
  }
}

@media (max-width: 640px) {
  .topbar-content,
  .nav,
  .hero-actions,
  .topbar-left {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .section {
    padding: 4rem 0;
  }

  .card-glass,
  .info-card,
  .step,
  .contact-form {
    border-radius: 18px;
  }
}


/* ===== SELECT CUSTOM ===== */

.form-group select {
  appearance: none; /* quita estilo feo nativo */
  -webkit-appearance: none;
  -moz-appearance: none;

  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(31, 41, 55, 0.12);
  background: #fff;
  font-size: 0.95rem;
  color: #1f2937;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%232f6f4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 10 13 14 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;

  cursor: pointer;
  transition: 0.2s ease;
}

/* hover */
.form-group select:hover {
  border-color: rgba(47, 111, 79, 0.4);
}

/* focus */
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 111, 79, 0.1);
  outline: none;
}


.contact-highlight {
  background: linear-gradient(135deg, #214d38, #2f6f4f);
  color: #fff;
  padding: 2rem;
  border-radius: 28px;
  box-shadow: 0 20px 45px rgba(47, 111, 79, 0.22);
}

.contact-highlight h2 {
  margin: 0 0 1rem;
  font-size: 2rem;
  line-height: 1.1;
}

.contact-highlight p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.2rem;
}

.contact-highlight ul {
  padding-left: 1.2rem;
  margin: 0 0 1.5rem;
}

.contact-highlight li {
  margin-bottom: 0.5rem;
}