:root {
  --azul-marca: #6f8fc3;
  --azul-oscuro: #486ea8;
  --marfil: #f3efe8;
  --blanco-roto: #f8f9fc;
  --negro: #111111;
  --gris: #5a5a5a;
  --borde: rgba(17, 17, 17, 0.12);
  --sombra: 0 12px 28px rgba(0, 0, 0, 0.08);
  --radio: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--negro);
  background: #ffffff;
  line-height: 1.6;
}

h1,
h2,
h3,
.logo-text {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--borde);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--azul-marca);
  border: 2px solid var(--negro);
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 1.8rem;
  line-height: 1;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.logo-subtext {
  font-size: 0.95rem;
  color: #333333;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav a {
  font-size: 1rem;
  transition: opacity 0.2s ease;
}

nav a:hover {
  opacity: 0.7;
}

.hero {
  background: linear-gradient(135deg, #6f8fc3 0%, #88a4d1 100%);
  padding: 78px 0 86px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(17, 17, 17, 0.1);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.95;
  margin: 0 0 24px;
  max-width: 9ch;
}

.hero p {
  font-size: 1.03rem;
  max-width: 58ch;
  margin: 0 0 28px;
  text-align: justify;
}
.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 16px 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--negro);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-primary {
  background: var(--negro);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.35);
}

.hero-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 28px;
  padding: 34px 34px 28px;
  box-shadow: var(--sombra);
}

.hero-card h3 {
  font-size: 1.7rem;
  margin-top: 0;
  margin-bottom: 20px;
}

.hero-card p {
  margin-bottom: 22px;
  font-size: 1rem;
}

.section {
  padding: 82px 0;
}

.section-head {
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-head p {
  margin: 0;
  color: var(--gris);
  font-size: 1rem;
}

.cards,
.service-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card,
.service-item,
.pricing-item,
.contact-box {
  background: #ffffff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

.card {
  overflow: hidden;
}

.property-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #d8e1ef, #b9c8df);
  color: var(--azul-oscuro);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.05rem;
}

.card-body {
  padding: 18px 18px 20px;
}

.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--gris);
  font-size: 0.96rem;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1.05rem;
  margin: 0 0 14px;
  line-height: 1.35;
}

.price {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.features {
  color: var(--gris);
  font-size: 0.96rem;
}

.services {
  background: #f5f2ed;
}

.service-item,
.pricing-item {
  padding: 24px;
}

.service-item h3,
.pricing-item h3,
.contact-box h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.pricing-value {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact {
  background: linear-gradient(180deg, #ffffff 0%, #eef2f8 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-box {
  padding: 24px;
}

footer {
  border-top: 1px solid var(--borde);
  padding: 24px 0 28px;
  color: var(--gris);
  font-size: 0.97rem;
  background: #ffffff;
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .cards,
  .service-grid,
  .pricing-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    gap: 16px;
  }

  .hero {
    padding: 56px 0 62px;
  }

  .section {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2.8rem;
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(calc(100% - 24px), var(--max));
  }

  .brand {
    align-items: flex-start;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    font-size: 1.5rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .cta-row {
    flex-direction: column;
  }

}
  .btn-whatsapp {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 22px;
  background: #25D366;
  color: white;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}
.page-hero {
  background: linear-gradient(135deg, var(--azul-marca), #88a4d1);
  padding: 4rem 0;
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.properties-page {
  padding: 4rem 0;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.property-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.property-link:hover .property-card {
  transform: translateY(-4px);
}

.property-card {
  background: white;
  border: 1px solid var(--borde);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  height: 100%;
  display: flex;
  flex-direction: column;
}

.property-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1rem;
}

.property-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.3;
  min-height: 72px;
}

.property-card p {
  margin: 0 0 0.9rem;
}

.property-card strong {
  margin-top: auto;
  font-size: 1.3rem;
}

@media (max-width: 768px) {
  .property-grid {
    grid-template-columns: 1fr;
  }
}

.detalle-section {
  padding: 4rem 0;
}

.detalle-back {
  margin-bottom: 1rem;
}

.detalle-back a {
  text-decoration: none;
  color: inherit;
}

.detalle-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}

.detalle-imagen-principal {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 1rem;
  display: block;
}

.detalle-galeria-miniaturas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.detalle-miniatura {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid var(--borde);
}

.detalle-info {
  background: white;
  border: 1px solid var(--borde);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.detalle-precio {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.detalle-datos {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.detalle-dato {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(17,17,17,0.08);
}

.detalle-label {
  font-size: 0.9rem;
  color: #666;
}

.detalle-extras {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}

.detalle-extras li {
  margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
  .detalle-grid {
    grid-template-columns: 1fr;
  }

  .detalle-imagen-principal {
    height: 360px;
  }

  .detalle-galeria-miniaturas {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .detalle-imagen-principal {
    height: 260px;
  }

  .detalle-galeria-miniaturas {
    grid-template-columns: repeat(2, 1fr);
  }

  .detalle-miniatura {
    height: 90px;
  }
}
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.card-link:hover .card-inmueble {
  transform: translateY(-4px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.card-inmueble {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-property-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.card-inmueble .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-inmueble h3 {
  min-height: 72px;
  line-height: 1.3;
}

.card-inmueble .price {
  margin-top: auto;
}

@media (max-width: 920px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
.services-grid-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-box,
.trust-box,
.asesoramiento-box {
  background: white;
  border: 1px solid var(--borde);
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.service-box,
.trust-box {
  padding: 2rem;
}

.service-box ul {
  padding-left: 1.2rem;
  margin-top: 1rem;
}

.service-box li {
  margin-bottom: 0.6rem;
}

.asesoramiento-section {
  background: linear-gradient(180deg, #ffffff, #eef2f8);
}

.asesoramiento-box {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}

.asesoramiento-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-outline {
  display: inline-block;
  padding: 14px 22px;
  border: 1px solid var(--negro);
  border-radius: 999px;
  text-decoration: none;
  color: var(--negro);
  font-weight: 700;
}

.trust-section {
  background: #f8f8f8;
}

.trust-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.trust-intro {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.trust-image {
  display: flex;
  justify-content: center;
}

.trust-image img {
  width: 220px;
  height: 280px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 12px 22px rgba(0,0,0,0.08);
}

.trust-text h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.trust-text p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1rem;
  text-align: justify;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.trust-box {
  background: white;
  border: 1px solid var(--borde);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 8px 18px rgba(0,0,0,0.04);
}

.trust-box h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.trust-box p {
  margin: 0;
  line-height: 1.7;
  text-align: justify;
}

@media (max-width: 920px) {
  .trust-intro {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-image {
    margin-bottom: 1rem;
  }
}
.contacto-grid-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 850px;
  margin: 0 auto;
}

.contacto-info-box,
.contacto-form-box,
.contacto-extra-box {
  background: white;
  border: 1px solid var(--borde);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.contacto-item {
  margin-bottom: 1.2rem;
}

.contacto-label {
  display: block;
  font-size: 0.92rem;
  color: #666;
  margin-bottom: 0.3rem;
}

.contacto-item p {
  margin: 0;
}

.contacto-item a {
  text-decoration: none;
  color: inherit;
}

.contacto-form-text {
  margin-bottom: 1.5rem;
  color: #555;
}

.contacto-form {
  display: grid;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(17,17,17,0.15);
  border-radius: 14px;
  font: inherit;
  background: white;
}

.form-group textarea {
  resize: vertical;
}

.btn-form {
  padding: 14px 22px;
  border: 1px solid var(--negro);
  background: var(--negro);
  color: white;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.contacto-extra-section {
  background: linear-gradient(180deg, #ffffff, #eef2f8);
}

.contacto-extra-box {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.contacto-extra-box p {
  margin: 0 auto;
  max-width: 700px;
  line-height: 1.7;
  color: #555;
}

@media (max-width: 920px) {
  .contacto-grid-page {
    grid-template-columns: 1fr;
  }
}
.form-error {
  margin-top: 0.8rem;
  color: #c62828;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 22px;
}