/* ==========================================================================
   Paola Reyes Inmobiliaria — hoja de estilos
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Archivo:wght@400;500;600;700&display=swap');

:root{
  --color-bg:      #F5EFE4;
  --color-bg-alt:  #EAE1D2;
  --color-card:    #FBF8F2;
  --color-ink:     #2A2A24;
  --color-ink-soft:#5B5748;
  --color-line:    #D8CDB8;

  --color-green:      #22392C;
  --color-green-dark: #172720;
  --color-clay:       #A6502D;
  --color-clay-dark:  #863F22;
  --color-whatsapp:   #25D366;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1120px;
  --radius: 3px;
  --header-h: 68px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--color-green-dark);
}

p{ margin: 0 0 1em; max-width: 62ch; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

:focus-visible{
  outline: 2px solid var(--color-clay);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------
   Header / navegación
   -------------------------------------------------------------------- */

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}

.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img{
  height: 40px;
  width: auto;
}

.navmenu ul{
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.navmenu a{
  font-size: .98rem;
  font-weight: 600;
  color: var(--color-ink-soft);
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}

.navmenu a:hover,
.navmenu a.active{
  color: var(--color-clay);
  border-bottom-color: var(--color-clay);
}

.nav-toggle{
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after{
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-green-dark);
  position: relative;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle span::before{ position:absolute; top:-8px; }
.nav-toggle span::after{ position:absolute; top:8px; }

body.nav-open .nav-toggle span{ background: transparent; }
body.nav-open .nav-toggle span::before{ transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span::after{ transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px){
  .nav-toggle{ display: block; z-index: 60; }

  .navmenu{
    position: fixed;
    inset: 0;
    background: var(--color-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
  }
  body.nav-open .navmenu{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .navmenu ul{
    flex-direction: column;
    align-items: center;
    gap: 1.9rem;
  }
  .navmenu a{
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: #F5EFE4;
  }
  .navmenu a.active,
  .navmenu a:hover{
    color: #E3A583;
    border-bottom-color: #E3A583;
  }
}

/* --------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------- */

.btn{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .96rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary{
  background: var(--color-clay);
  color: #fff;
}
.btn-primary:hover{ background: var(--color-clay-dark); }

.btn-outline{
  background: transparent;
  border-color: rgba(245,239,228,.55);
  color: inherit;
}
.btn-outline:hover{ border-color: var(--color-clay); color: var(--color-clay); }

.btn-whatsapp{
  background: var(--color-whatsapp);
  color: #fff;
}
.btn-whatsapp:hover{ background: #1ea952; }

/* --------------------------------------------------------------------
   Hero (portada)
   -------------------------------------------------------------------- */

.hero{
  position: relative;
  min-height: 78svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-green-dark);
}

.hero-slides{
  position: absolute;
  inset: 0;
}
.hero-slide{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.is-active{ opacity: 1; }

.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15,22,17,.86) 0%, rgba(15,22,17,.35) 48%, rgba(15,22,17,.1) 100%);
}

.hero-content{
  position: relative;
  z-index: 2;
  color: #F5EFE4;
  padding-bottom: 3.2rem;
  max-width: 640px;
}

.hero-kicker{
  font-size: .95rem;
  color: #E3C7A9;
  font-weight: 600;
  margin-bottom: .6rem;
}

.hero h1{
  color: #fff;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  margin-bottom: .6rem;
}

.hero p{
  color: #E7E1D3;
  font-size: 1.08rem;
  max-width: 46ch;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.4rem;
}

/* --------------------------------------------------------------------
   Secciones generales
   -------------------------------------------------------------------- */

.section{
  padding: 4.5rem 0;
}
.section-tight{ padding: 3rem 0; }
.section-alt{ background: var(--color-bg-alt); }

.section-divider{
  border: none;
  border-top: 1px dashed var(--color-line);
  margin: 0;
}

.split{
  display: grid;
  gap: 2.6rem;
  align-items: center;
}
@media (min-width: 860px){
  .split{ grid-template-columns: 1fr 1fr; gap: 4rem; }
  .split.reverse .split-media{ order: 2; }
}

.split-eyebrow{
  color: var(--color-clay);
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: .4rem;
}

.split h2{ font-size: clamp(1.6rem, 3.4vw, 2.2rem); }

/* marco tipo "plano de mensura": marcas de esquina en la imagen destacada */
.framed{
  position: relative;
  padding: 14px;
}
.framed::before, .framed::after,
.framed .corner-tl, .framed .corner-br{
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: var(--color-clay);
  border-style: solid;
  border-width: 0;
}
.framed::before{ top:0; left:0; border-top-width:2px; border-left-width:2px; }
.framed::after{ bottom:0; right:0; border-bottom-width:2px; border-right-width:2px; }
.framed img{ border-radius: var(--radius); }

/* Franja de confianza */
.trust-strip{
  display: grid;
  gap: 1.8rem;
  margin-top: 2.4rem;
  padding-top: 2.2rem;
  border-top: 1px dashed var(--color-line);
}
@media (min-width: 700px){
  .trust-strip{ grid-template-columns: repeat(3, 1fr); }
}
.trust-item h4{
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--color-green-dark);
  margin-bottom: .3rem;
}
.trust-item p{ color: var(--color-ink-soft); font-size: .95rem; }

/* --------------------------------------------------------------------
   Título de página interior
   -------------------------------------------------------------------- */

.page-title{
  padding: 2.6rem 0 2rem;
  border-bottom: 1px dashed var(--color-line);
}
.page-title h1{ font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin-bottom: .3rem; }
.breadcrumb{
  font-size: .9rem;
  color: var(--color-ink-soft);
}
.breadcrumb a{ color: var(--color-clay); }

/* --------------------------------------------------------------------
   Loteos — grilla de tarjetas
   -------------------------------------------------------------------- */

.filters{
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.8rem 0 2.2rem;
}
.filter-btn{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--color-line);
  background: var(--color-card);
  color: var(--color-ink-soft);
  cursor: pointer;
}
.filter-btn.is-active,
.filter-btn:hover{
  border-color: var(--color-clay);
  color: var(--color-clay);
}

.card-grid{
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px){
  .card-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px){
  .card-grid{ grid-template-columns: repeat(3, 1fr); }
}

.lot-card{
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lot-card-media{
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.lot-card-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lot-card-tag{
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-green-dark);
  color: #F5EFE4;
  font-size: .74rem;
  font-weight: 600;
  padding: .3rem .6rem;
  border-radius: 999px;
}

.lot-card-body{
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
}
.lot-card-body h3{
  font-size: 1.2rem;
  margin: 0;
}
.lot-card-links{
  margin-top: auto;
  display: flex;
  gap: .8rem;
  padding-top: .6rem;
}
.lot-card-links a{
  font-size: .88rem;
  font-weight: 600;
  color: var(--color-clay);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.lot-card-links a:hover{ color: var(--color-clay-dark); }

/* --------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------- */

.contact-grid{
  display: grid;
  gap: 2.6rem;
}
@media (min-width: 900px){
  .contact-grid{ grid-template-columns: minmax(280px, 380px) 1fr; align-items: start; }
}

.contact-card{
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.contact-item{
  display: flex;
  gap: .9rem;
  padding: .9rem 0;
  border-top: 1px dashed var(--color-line);
}
.contact-item:first-of-type{ border-top: none; padding-top: 0; }
.contact-item .icon{
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-clay);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-item h4{
  font-family: var(--font-body);
  font-size: .85rem;
  text-transform: none;
  color: var(--color-ink-soft);
  margin: 0 0 .15rem;
  font-weight: 600;
}
.contact-item p{ margin: 0; font-weight: 600; color: var(--color-green-dark); }

.social-row{
  display: flex;
  gap: .7rem;
  margin-top: 1.3rem;
}
.social-btn{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-green-dark);
  color: #F5EFE4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.social-btn:hover{ background: var(--color-clay); }

.map-frame{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-line);
  aspect-ratio: 4/3;
}
@media (min-width: 700px){ .map-frame{ aspect-ratio: 16/10; } }
.map-frame iframe{ width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------- */

.site-footer{
  background: var(--color-green-dark);
  color: #D9D2C1;
  padding: 3rem 0 1.6rem;
}
.footer-top{
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(245,239,228,.14);
}
.footer-brand img{ height: 34px; margin-bottom: .8rem; }
.footer-brand p{ color: #B9B29E; font-size: .9rem; max-width: 32ch; }

.footer-heading{
  font-family: var(--font-body);
  color: #F5EFE4;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .8rem;
}

.footer-contact p{ margin: 0 0 .4rem; font-size: .92rem; color: #C9C2AF; }

.footer-bottom{
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
  justify-content: space-between;
  padding-top: 1.4rem;
  font-size: .82rem;
  color: #9B9581;
}
.footer-bottom a{ color: #C9C2AF; }
.footer-bottom a:hover{ color: #F5EFE4; }

/* --------------------------------------------------------------------
   Botón flotante de WhatsApp
   -------------------------------------------------------------------- */

.wa-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
.wa-float:hover{ background: #1ea952; }
.wa-float svg{ width: 28px; height: 28px; }

/* Scroll top removido a favor del botón de WhatsApp para no saturar mobile */
