
/* =============================================
   CASAS CÓRDOBA – Paleta gris y blanco
   ============================================= */

:root {
  --bg:      #f4f4f5;
  --paper:   #ffffff;
  --ink:     #111827;
  --muted:   #6b7280;
  --brand:   #1f2937;
  --brand2:  #374151;
  --cream:   #e5e7eb;
  --line:    #d1d5db;
  --wa:      #128c7e;
  --shadow:  0 18px 45px rgba(0,0,0,.10);
  --radius:  24px;
  --max:     1180px;
}

/* RESET */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* CONTAINER */
.container {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

/* TOPBAR */
.topbar {
  background: #111827;
  color: #e5e7eb;
  font-size: .92rem;
}
.topbar .container {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.topbar a { color: #fff; text-decoration: none; }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.logo {
  font-size: 1.35rem;
  font-weight: 850;
  text-decoration: none;
  letter-spacing: -.04em;
  color: var(--brand);
}
.logo span {
  display: block;
  font-size: .72rem;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0;
}
.menu { display: flex; align-items: center; gap: 16px; }
.menu a {
  text-decoration: none;
  font-weight: 700;
  font-size: .93rem;
  color: #374151;
}
.menu a:hover { color: var(--brand); }
.header-actions { display: flex; gap: 10px; align-items: center; }

/* BOTONES */
.btn, .btn-outline, .btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  padding: 11px 18px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s, background .15s;
}
.btn             { background: var(--brand); color: #fff; }
.btn:hover       { background: var(--brand2); }
.btn-outline     { border-color: #9ca3af; color: var(--brand); background: #fff; }
.btn-outline:hover { background: #f3f4f6; }
.btn-wa          { background: var(--wa); color: #fff; }
.btn-wa:hover    { opacity: .9; }

.menu-toggle {
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
}

/* HERO */
.hero { padding: 72px 0 44px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 36px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  background: #e5e7eb;
  color: var(--brand);
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: .88rem;
}
h1 {
  font-size: clamp(2.25rem, 5vw, 4.9rem);
  line-height: .98;
  margin: 18px 0;
  letter-spacing: -.07em;
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.07;
  margin: 0 0 14px;
  letter-spacing: -.045em;
}
h3 { font-size: 1.2rem; margin: 0 0 8px; }
.lead { font-size: 1.16rem; color: #374151; max-width: 760px; }

.hero-card {
  background: linear-gradient(145deg, #fff, #e5e7eb);
  border: 1px solid var(--line);
  border-radius: 36px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.hero-visual {
  min-height: 430px;
  border-radius: 28px;
  background: radial-gradient(circle at 20% 15%, #fff 0 16%, transparent 17%),
              linear-gradient(135deg, #111827, #374151 58%, #6b7280);
  padding: 24px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.mini-card {
  background: rgba(255,255,255,.92);
  color: var(--ink);
  border-radius: 20px;
  padding: 18px;
  max-width: 360px;
  box-shadow: 0 18px 50px rgba(0,0,0,.16);
}
.hero-buttons, .cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* SECCIONES */
.section { padding: 58px 0; }
.section.alt {
  background: #fff;
  border-block: 1px solid var(--line);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}
.section-head p { margin: 0; color: var(--muted); max-width: 720px; }

/* GRIDS */
.grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.grid.two { grid-template-columns: repeat(2,1fr); }

/* TARJETAS DE CONTENIDO */
.feature, .zone-group, .contact-box, .faq-item, .doc-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
.feature p, .contact-box p { color: var(--muted); }

/* TARJETAS DE INMUEBLE */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
.property-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
}
.property-card img {
  width: 100%;
  height: 205px;
  object-fit: cover;
  object-position: center;
  background: #e5e7eb;
  border-bottom: 1px solid var(--line);
}
.property-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  background: #f3f4f6;
  color: var(--brand);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .78rem;
  font-weight: 800;
}
.price {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--brand);
}
.meta {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 8px;
  font-size: .9rem;
  color: #4b5563;
}
.meta span {
  background: #f3f4f6;
  border-radius: 12px;
  padding: 8px;
}
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}
.card-actions a { font-size: .88rem; padding: 9px 10px; }

/* FILTROS */
.filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(4,1fr);
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  margin-bottom: 22px;
}
.filters input, .filters select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #f4f4f5;
  color: var(--ink);
}
.filters select:focus, .filters input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

/* BREADCRUMBS */
.breadcrumbs {
  font-size: .92rem;
  color: var(--muted);
  padding: 22px 0 0;
}
.breadcrumbs a {
  text-decoration: none;
  color: var(--brand);
  font-weight: 700;
}

/* HERO DE PÁGINA INTERIOR */
.page-hero { padding: 46px 0 28px; }

/* ZONAS */
.zone-list {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
  margin-top: 14px;
}
.zone-list a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  text-decoration: none;
  font-weight: 750;
  color: #1f2937;
}
.zone-list a:hover {
  border-color: #9ca3af;
  background: #f3f4f6;
}

/* FAQ */
.faq-item { margin-bottom: 12px; }
.faq-item button {
  width: 100%;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 850;
  text-align: left;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
.faq-answer { display: none; color: var(--muted); padding-top: 10px; }
.faq-item.open .faq-answer { display: block; }

/* FOOTER */
.site-footer {
  background: #111827;
  color: #e5e7eb;
  padding: 48px 0 90px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3,1fr);
  gap: 26px;
}
.site-footer a {
  display: block;
  color: #e5e7eb;
  text-decoration: none;
  margin: 7px 0;
  opacity: .9;
}
.site-footer a:hover { opacity: 1; }

/* MOBILE CTA */
.mobile-cta {
  position: fixed;
  z-index: 30;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: none;
  gap: 10px;
}
.mobile-cta a { flex: 1; }

/* BOTÓN SUBIR */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 78px;
  border: 0;
  border-radius: 999px;
  width: 46px;
  height: 46px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  display: none;
  cursor: pointer;
}

/* MENSAJES VACÍOS */
.empty {
  background: #f3f4f6;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  color: var(--muted);
}

/* MINI LINKS */
.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.mini-links a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  text-decoration: none;
  font-weight: 800;
  color: var(--brand);
}
.mini-links a:hover { background: #f3f4f6; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 980px) {
  .hero-grid,
  .grid,
  .grid.two,
  .property-grid,
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .filters { grid-template-columns: 1fr 1fr; }

  .menu {
    position: fixed;
    inset: 78px 12px auto 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .menu.open { display: flex; }
  .menu-toggle { display: block; }
  .header-actions .btn-wa { display: none; }

  .zone-list { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
  .topbar { display: none; }
  .nav { height: 68px; }
  .hero { padding-top: 40px; }

  .hero-grid,
  .grid,
  .grid.two,
  .property-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .filters { grid-template-columns: 1fr; }
  .hero-visual { min-height: 330px; }
  .section { padding: 42px 0; }
  .section-head { display: block; }
  .card-actions { grid-template-columns: 1fr; }
  .zone-list { grid-template-columns: 1fr; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 78px; }
}
