
:root {
  --azul: #102b49;
  --azul-oscuro: #0b2038;
  --dorado: #c8ad78;
  --marfil: #f8f7f3;
  --blanco: #ffffff;
  --texto: #343434;
  --gris: #77736d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--blanco);
  color: var(--texto);
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

h1, h2, h3 {
  color: var(--azul);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.2;
}

.site-header {
  min-height: 115px;
  padding: 18px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--blanco);
  border-bottom: 1px solid #eeeae2;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--azul);
  text-decoration: none;
  line-height: 1.2;
}

.brand-mark {
  font-family: Georgia, serif;
  font-size: 34px;
  font-style: italic;
  border-bottom: 1px solid var(--dorado);
}

.brand-name {
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 1px;
}

.brand-subtitle {
  font-size: 8px;
  letter-spacing: 3px;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-menu a {
  color: var(--azul);
  text-decoration: none;
  font-size: 13px;
}

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

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 1px;
  margin: 6px 0;
  background: var(--azul);
}

.button {
  display: inline-block;
  padding: 12px 25px;
  border: none;
  text-decoration: none;
  text-align: center;
  font-size: 12px;
  cursor: pointer;
}

.button-navy {
  color: white;
  background: var(--azul);
}

.button-gold {
  color: var(--azul-oscuro);
  background: var(--dorado);
}

.hero {
  max-width: 1250px;
  min-height: 390px;
  margin: 0 auto;
  padding: 55px 8%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 65px;
}

.hero-emblem {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-placeholder {
  width: 100%;
  max-width: 380px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--azul);
  text-align: center;
  font-family: Georgia, serif;
}

.logo-placeholder strong {
  font-size: 25px;
  letter-spacing: 1px;
  margin-top: 15px;
}

.logo-placeholder span {
  font-size: 10px;
  color: var(--gris);
}

.logo-placeholder small {
  margin-top: 8px;
  letter-spacing: 4px;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -1px;
}

.hero-copy p {
  max-width: 480px;
  color: var(--gris);
  font-size: 14px;
}

.section {
  max-width: 1250px;
  margin: 0 auto;
  padding: 30px 8% 65px;
}

.section-heading {
  margin-bottom: 25px;
}

.section-heading h2 {
  margin: 0;
  font-size: 27px;
}

.practice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 25px;
  row-gap: 25px;
}

.practice-card {
  min-height: 145px;
  padding: 22px 20px;
  border-top: 1px solid var(--dorado);
}

.practice-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.practice-card p {
  margin: 0;
  color: var(--gris);
  font-size: 12px;
  line-height: 1.6;
}

.profile-section {
  padding: 55px 10%;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 55px;
  background: var(--marfil);
}

.profile-photo {
  width: 100%;
  max-width: 310px;
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border-radius: 10px;
  background: #e9e5dc;
  color: var(--gris);
  text-align: center;
  font-size: 12px;
}

.profile-copy h2 {
  margin: 0 0 8px;
  font-size: 27px;
}

.profile-role {
  color: var(--gris);
  font-size: 12px;
}

.profile-copy p {
  font-size: 13px;
  line-height: 1.75;
}

.contact-section {
  padding: 65px 10%;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 65px;
  background: var(--blanco);
}

.contact-info h2 {
  margin-top: 0;
  font-size: 30px;
}

.contact-info > p {
  font-size: 13px;
}

.contact-detail {
  margin-top: 24px;
}

.contact-detail strong {
  color: var(--azul);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--azul);
  font-size: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 5px;
  border: none;
  border-bottom: 1px solid #dedbd4;
  background: transparent;
  color: var(--texto);
  font: inherit;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--dorado);
}

.contact-form button {
  width: 100%;
  margin-top: 10px;
}

footer {
  padding: 25px 8%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: var(--azul);
  color: white;
  font-size: 11px;
  letter-spacing: 1px;
}

/* Página de corretaje */

.property-hero {
  padding: 100px 10%;
  background: var(--marfil);
  text-align: center;
}

.property-hero h1 {
  font-size: 45px;
}

.property-hero h1 span {
  color: var(--dorado);
}

.property-hero > p {
  max-width: 650px;
  margin: 20px auto;
  color: var(--gris);
}

.eyebrow {
  color: var(--dorado);
  font-size: 10px;
  letter-spacing: 2px;
}

.service-intro,
.listings {
  padding-top: 65px;
  padding-bottom: 65px;
}

.intro-text {
  max-width: 750px;
  color: var(--gris);
}

.listing-placeholder {
  margin-top: 35px;
  padding: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  border-top: 1px solid var(--dorado);
}

.listing-photo {
  min-height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #e9e5dc;
  color: var(--gris);
}

/* Adaptación para celulares */

@media (max-width: 760px) {

  .site-header {
    min-height: 85px;
    padding: 12px 5%;
  }

  .brand-mark {
    font-size: 27px;
  }

  .brand-name {
    font-size: 12px;
  }

  .brand-subtitle {
    font-size: 7px;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .main-menu {
    display: none;
    position: absolute;
    z-index: 10;
    top: 85px;
    left: 0;
    right: 0;
    padding: 20px;
    flex-direction: column;
    gap: 18px;
    background: white;
    border-top: 1px solid #eeeae2;
  }

  .main-menu.open {
    display: flex;
  }

  .site-header > .button {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 45px 8%;
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .logo-placeholder {
    min-height: 190px;
  }

  .hero-copy h1 {
    font-size: 35px;
  }

  .section {
    padding: 35px 8% 45px;
  }

  .practice-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .practice-card {
    min-height: 170px;
    padding: 15px 10px;
  }

  .practice-card h3 {
    font-size: 15px;
  }

  .practice-card p {
    font-size: 11px;
  }

  .profile-section {
    padding: 40px 8%;
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .profile-photo {
    max-width: 100%;
    min-height: 260px;
  }

  .profile-copy h2 {
    font-size: 24px;
  }

  .contact-section {
    padding: 45px 8%;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }

  .property-hero {
    padding: 65px 8%;
  }

  .property-hero h1 {
    font-size: 35px;
  }

  .listing-placeholder {
    grid-template-columns: 1fr;
  }
}


/* Ajuste del logo y encabezado */

.site-header {
  min-height: 100px;
  padding: 10px 7%;
}

.site-header .brand img {
  width: 155px;
  max-width: 155px;
  height: auto;
  display: block;
}

@media (max-width: 760px) {
  .site-header {
    min-height: 80px;
    padding: 10px 5%;
  }

  .site-header .brand img {
    width: 115px;
    max-width: 115px;
  }
}

/* Botón flotante de WhatsApp */

.whatsapp-flotante {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 9999;
  transition: transform 0.2s;
}

.whatsapp-flotante:hover {
  transform: scale(1.08);
  background: #1ebe5d;
}

/* DISEÑO DE CORRETAJE DE PROPIEDADES */

.corretaje-portada {
  min-height: 480px;
  padding: 60px 8%;
  background-image:
    linear-gradient(
      rgba(10, 32, 56, 0.48),
      rgba(10, 32, 56, 0.48)
    ),
    url("imagenes/corretaje.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.corretaje-presentacion {
  max-width: 850px;
}

.corretaje-presentacion h1 {
  color: white;
  font-size: 52px;
  margin: 0 0 15px;
}

.corretaje-presentacion p {
  color: white;
  font-size: 20px;
  margin-bottom: 30px;
}

.propiedades-section {
  padding-top: 65px;
  padding-bottom: 65px;
}

.propiedades-section .section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.propiedades-section h2 {
  font-size: 32px;
}

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

.propiedad-card {
  background: white;
  border: 1px solid #e9e5dc;
  overflow: hidden;
  transition: transform 0.2s;
}

.propiedad-card:hover {
  transform: translateY(-4px);
}

.propiedad-imagen {
  aspect-ratio: 4 / 3;
  background: #f0eee8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #77736d;
  font-size: 12px;
}

.propiedad-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.propiedad-info {
  padding: 22px;
}

.propiedad-info h3 {
  margin: 0 0 10px;
  font-size: 23px;
}

.propiedad-info p {
  margin: 5px 0;
  color: #77736d;
}

.corretaje-contacto {
  padding: 65px 8%;
  background: #f8f7f3;
  text-align: center;
}

.corretaje-contacto h2 {
  font-size: 30px;
}

.corretaje-contacto p {
  margin-bottom: 25px;
}

/* Corretaje en celulares */

@media (max-width: 760px) {

  .corretaje-portada {
    min-height: 380px;
    padding: 40px 6%;
  }

  .corretaje-presentacion h1 {
    font-size: 35px;
  }

  .corretaje-presentacion p {
    font-size: 16px;
  }

  .propiedades-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .corretaje-contacto h2 {
    font-size: 25px;
  }
}

/* CARRUSELES DE PROPIEDADES */

.propiedades-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.propiedad-card {
  background: #eeeeee;
  padding: 20px;
  border: none;
  border-radius: 0;
  min-width: 0;
}

.propiedad-card h3 {
  font-family: Georgia, serif;
  font-size: 19px;
  color: #102b49;
  margin: 0 0 20px;
}

.carrusel-propiedad {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carrusel-fotos {
  display: flex;
  transition: transform 0.4s ease;
}

.carrusel-fotos img {
  width: 100%;
  height: 380px;
  flex: 0 0 100%;
  object-fit: cover;
  display: block;
}

.carrusel-anterior,
.carrusel-siguiente {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #102b49;
  cursor: pointer;
  font-size: 15px;
  z-index: 2;
}

.carrusel-anterior {
  left: 12px;
}

.carrusel-siguiente {
  right: 12px;
}

.propiedad-info {
  padding: 12px 0 0;
  color: #102b49;
}

.propiedad-info p {
  font-size: 14px;
  line-height: 1.6;
  margin: 3px 0;
}

.propiedad-acciones {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.propiedad-acciones .button {
  background: #102b49;
  color: white;
  font-size: 13px;
  padding: 12px 24px;
  border-radius: 0;
}

@media (max-width: 768px) {
  .propiedades-grid {
    grid-template-columns: 1fr;
  }

  .carrusel-fotos img {
    height: 320px;
  }
}

/* DISTRIBUCIÓN DE PROPIEDADES */

.propiedades-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.propiedades-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 28px;
  justify-items: stretch;
}

.propiedades-grid > .propiedad-card {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .propiedades-grid {
    grid-template-columns: 1fr;
  }
}

/* ESTÉTICA DE PROPIEDADES */

.propiedades-section {
  max-width: 1450px;
  width: 94%;
  padding: 65px 2%;
  margin: 0 auto;
}

.propiedades-grid {
  gap: 35px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.propiedad-card {
  background: #f5f5f5;
  padding: 22px;
  box-shadow: 0 3px 15px rgba(16, 43, 73, 0.06);
}

.propiedad-card h3 {
  font-size: 24px;
  margin-bottom: 18px;
}

.carrusel-fotos img {
  height: 450px;
  object-fit: cover;
}

.propiedad-info {
  padding: 18px 0 5px;
}

.propiedad-info p {
  font-size: 15px;
  line-height: 1.8;
}

.propiedad-info p:nth-child(2) {
  font-size: 25px;
  font-weight: bold;
  color: #102b49;
  margin: 8px 0;
}

.propiedad-acciones .button {
  font-size: 14px;
  padding: 14px 28px;
}

.propiedad-card:hover {
  transform: none;
}

@media (max-width: 768px) {
  .propiedades-section {
    width: 100%;
    padding: 40px 5%;
  }

  .propiedades-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .carrusel-fotos img {
    height: 340px;
  }

  .propiedad-card h3 {
    font-size: 20px;
  }
}
/* Ajustes finales de propiedades */

.propiedad-card {
    display: flex;
    flex-direction: column;
}

.propiedad-info {
    flex: 1;
    font-size: 16px;
    line-height: 1.7;
}

.propiedad-acciones {
    margin-top: auto;
    padding-top: 20px;
}

/* Centrar la última propiedad */

@media (min-width: 901px) {
    .propiedades-grid > .propiedad-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc((100% - 35px) / 2);
        justify-self: center;
        box-sizing: border-box;
    }
}