/* ==========================================================================
   ACCOMODARE Inmobiliaria — estilos
   Paleta de marca tomada del arte de letreros y sello oficial:
   verde salvia #818A6F · crema #EAE3C7 · acento oliva oscuro #3D4A32
   ========================================================================== */

:root {
  --sage: #818A6F;
  --sage-dark: #626957;
  --sage-light: #A3AB8D;
  --cream: #EAE3C7;
  --cream-soft: #F5F1E4;
  --accent: #3D4A32;
  --accent-dark: #2C3624;
  --ink: #2B2A25;
  --paper: #FFFFFF;
  --line: #E4E0D2;

  --font-display: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(43, 42, 37, 0.25);
  --shadow-soft: 0 4px 16px -6px rgba(43, 42, 37, 0.15);
  --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -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.2;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; text-align: justify; text-justify: inter-word; }

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

section { padding: 88px 0; }

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(61, 74, 50, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head {
  max-width: 620px;
  margin-bottom: 48px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 { font-size: clamp(28px, 4vw, 38px); color: var(--ink); }
.section-head p { color: #5B5A52; font-size: 17px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--accent); color: var(--paper); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: var(--shadow-soft); }

.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: var(--paper); box-shadow: var(--shadow-soft); }

.btn-outline { background: transparent; border-color: rgba(255,255,255,.55); color: var(--paper); }
.btn-outline:hover { background: rgba(255,255,255,.12); }

.btn-outline-dark { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline-dark:hover { background: var(--accent); color: var(--paper); }

.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); }
.brand-badge {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
}
.brand-badge img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: .02em; color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .2s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: all .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--sage) 0%, var(--sage-dark) 100%);
  color: var(--cream-soft);
  overflow: hidden;
  padding: 100px 0 120px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(255,255,255,.10), transparent 45%),
                     radial-gradient(circle at 10% 90%, rgba(255,255,255,.08), transparent 40%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(255,255,255,.12);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  color: var(--paper);
  font-size: clamp(34px, 5vw, 54px);
  max-width: 640px;
}
.hero p.lead {
  font-size: 18px;
  color: var(--cream-soft);
  max-width: 480px;
  opacity: .92;
}
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--paper);
}
.hero-stats .stat span { font-size: 13px; color: var(--cream); opacity: .85; }

.hero-visual {
  position: relative;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(4px);
}
.hero-visual img { width: 60%; margin: 0 auto 18px; opacity: .95; }
.hero-visual-card {
  background: rgba(255,255,255,.95);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.hero-visual-card h4 { font-size: 15px; margin-bottom: 10px; color: var(--accent); }
.hero-visual-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.hero-visual-list li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}
.hero-visual-list li:last-child { border-bottom: none; }
.hero-visual-list li span:last-child { font-weight: 700; color: var(--sage-dark); }

/* ---------- Servicios ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(61, 74, 50,.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; color: #6B6A61; margin-bottom: 0; }

/* ---------- Propiedades ---------- */
.section-alt { background: var(--cream-soft); }

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  transition: all .15s ease;
}
.filter-btn:hover { border-color: var(--accent); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: var(--paper); }

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.property-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.property-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.property-media {
  position: relative;
  height: 230px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--sage-light), var(--sage-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.85);
  overflow: hidden;
}
.property-media svg { width: 30%; height: 30%; opacity: .55; }
.property-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--accent);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.property-badge.alquiler { background: var(--sage-dark); }
.property-price-tag {
  position: absolute;
  bottom: 14px; left: 14px;
  background: rgba(255,255,255,.95);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  padding: 6px 14px;
  border-radius: 999px;
}

.property-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.property-body h3 { font-size: 17px; margin: 0; }
.property-location {
  font-size: 13.5px;
  color: #7A7969;
  display: flex;
  align-items: center;
  gap: 6px;
}
.property-specs {
  display: flex;
  gap: 16px;
  font-size: 13.5px;
  color: var(--ink);
  padding-top: 8px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.property-specs span { display: flex; align-items: center; gap: 5px; }

.properties-empty {
  text-align: center;
  padding: 40px 20px;
  color: #7A7969;
  font-size: 15px;
  display: none;
}

.properties-note {
  margin-top: 28px;
  font-size: 13.5px;
  color: #8A8879;
  text-align: center;
}

/* ---------- Nosotros ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-visual {
  background: var(--sage);
  border-radius: 24px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-visual img { width: 70%; }
.about-copy p { color: #5B5A52; font-size: 16.5px; }
.about-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink);
}
.about-list li .dot {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(61, 74, 50,.1);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 1px;
}

/* ---------- Proceso ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.process-step { position: relative; padding-top: 8px; }
.process-step .num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: rgba(61, 74, 50,.15);
  line-height: 1;
  margin-bottom: 12px;
}
.process-step h3 { font-size: 16.5px; margin-bottom: 6px; }
.process-step p { font-size: 14px; color: #6B6A61; margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta-band {
  background: var(--accent);
  color: var(--paper);
  border-radius: 28px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--paper); font-size: 28px; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.contact-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(61, 74, 50,.08);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item h4 { font-size: 14.5px; margin-bottom: 4px; }
.contact-item p, .contact-item a { font-size: 14.5px; color: #5B5A52; margin: 0; }
.contact-item a:hover { color: var(--accent); }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14.5px;
  background: var(--cream-soft);
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--paper);
}
.field textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 12.5px; color: #8A8879; margin-top: 10px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 30px; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; color: var(--paper); font-size: 18px; }
.footer-col h4 {
  color: var(--paper);
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a, .footer-col p { font-size: 14px; color: rgba(255,255,255,.65); }
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
  gap: 10px;
}
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--paper);
}
.social-row a:hover { background: var(--accent); }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  z-index: 90;
  transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Utilidades ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; padding: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  section { padding: 40px 0; }
  .nav-links {
    position: fixed;
    top: 66px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform .25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-cta .btn-sm span.hide-mobile { display: none; }
  .nav-toggle { display: block; }

  .hero { padding: 32px 0 36px; }
  .hero-actions { margin-top: 20px; gap: 10px; }
  .hero-stats { gap: 18px; margin-top: 28px; }
  .hero-visual { order: 0; margin-top: 28px; padding: 16px; border-radius: 18px; }
  .hero-visual img { width: 100%; height: 170px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
  .hero-visual-card { padding: 14px; }
  .hero-visual-list { font-size: 13px; }

  .section-head { margin-bottom: 28px; }
  section p.lead { margin-bottom: .6em; }

  .about-visual { padding: 18px; }
  .services-grid, .properties-grid, .process-grid, .testimonials-grid { gap: 16px; }
  .service-card { padding: 22px 20px; }
  .property-media { height: 190px; }
  .property-body { padding: 18px; gap: 6px; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .contact-info { gap: 12px; }
  .contact-item { padding: 16px; }

  .cta-band { padding: 32px 22px; flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .site-footer { padding: 44px 0 22px; }
}
