:root {
  /* Colores oficiales del Manual de Imagen de Bienes Raíces Libertad */
  --primary: #7f0020;      /* rojo oscuro (C:30 M:100 Y:76 K:41) */
  --primary-light: #c12723; /* rojo medio (C:16 M:94 Y:100 K:7) */
  --accent: #ed1c24;       /* rojo brillante (C:0 M:95 Y:85 K:0) */
  --accent-light: #e0645f;
  --bg: #f7f5f2;
  --border: #e5e0d8;
  --text: #101010;         /* negro de marca */
  --text-muted: #6b625c;
  --success: #1e8e5a;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Verdana, Geneva, -apple-system, sans-serif;
  color: var(--text);
  background: white;
  font-size: 16.5px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: white; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--primary); }
.logo-img { height: 44px; width: auto; display: block; }
.logo-icon { font-size: 28px; }
.logo-text { font-size: 14px; line-height: 1.2; }
.footer-logo { background: white; display: inline-block; padding: 8px 14px; border-radius: 8px; margin-bottom: 12px; }
.footer-logo img { height: 36px; width: auto; display: block; }
.main-nav { display: flex; gap: 28px; flex: 1; justify-content: center; }
.main-nav a { font-weight: 600; font-size: 14px; color: var(--text); }
.main-nav a:hover { color: var(--primary); }
.btn-whatsapp-nav { background: var(--success); color: white; padding: 10px 18px; border-radius: 100px; font-weight: 600; font-size: 14px; white-space: nowrap; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; border: none; text-align: center; }
.btn-primary { background: var(--primary); color: white; }
.btn-outline { background: white; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-lg { padding: 16px 32px; font-size: 15px; }
.btn-full { width: 100%; }
.btn-link-muted { display: block; text-align: center; margin-top: 10px; font-size: 13px; color: var(--text-muted); text-decoration: underline; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; padding: 80px 0; }
.hero-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.12); padding: 6px 16px; border-radius: 100px; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: 42px; font-weight: 800; margin: 0 0 16px; }
.hero h1 span { color: var(--accent-light); }
.hero-desc { font-size: 17px; color: rgba(255,255,255,0.85); margin-bottom: 32px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; justify-content: center; gap: 48px; }
.stat-num { font-size: 30px; font-weight: 800; color: var(--accent-light); }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.7); }

/* Sections */
.section { padding: 60px 0; }
.section-alt { background: var(--bg); }
.section-label { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 1px; }
.section-title { font-family: 'Oswald', Verdana, sans-serif; font-size: 34px; font-weight: 700; color: var(--primary); margin: 8px 0 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.hero h1 { font-family: 'Oswald', Verdana, sans-serif; }
.section-desc { color: var(--text-muted); max-width: 680px; font-size: 17px; }
.text-center { text-align: center; }

/* Property grid/cards */
.property-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin-top: 32px; }
.property-card { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: white; transition: transform .15s; }
.property-card:hover { transform: translateY(-3px); }
.property-card-img { height: 140px; background-color: var(--bg); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.property-card-body { padding: 18px; }
.property-card-badge { display: inline-block; background: var(--accent); color: white; font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 100px; margin-bottom: 8px; }
.property-card h3 { font-size: 18px; margin: 4px 0; color: var(--primary); line-height: 1.3; }
.property-card-loc { font-size: 14.5px; color: var(--text-muted); margin-bottom: 6px; }
.property-card-specs { font-size: 14.5px; color: var(--text-muted); margin-bottom: 10px; }
.property-card-price { font-size: 21px; font-weight: 800; color: var(--primary); }
.property-card-code { font-size: 12.5px; color: var(--text-muted); margin-top: 8px; font-weight: 600; letter-spacing: 0.3px; }
.property-card-source { font-size: 12px; color: var(--text-muted); margin-top: 6px; font-style: italic; }

/* Filters */
.filters-bar { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.filters-bar select, .filters-bar input { padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }

/* City grid */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-top: 24px; }
.city-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-align: center; box-shadow: var(--shadow); }
.city-card-name { font-weight: 700; color: var(--primary); font-size: 16px; }
.city-card-count { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 32px; }
.trust-item { padding: 20px; }
.trust-icon { font-size: 32px; margin-bottom: 10px; }
.trust-title { font-weight: 700; color: var(--primary); }
.trust-desc { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* Property detail */
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.property-detail-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.property-code-badge { display: inline-block; background: var(--bg); color: var(--text-muted); font-size: 13.5px; font-weight: 700; padding: 4px 12px; border-radius: 6px; border: 1px solid var(--border); letter-spacing: 0.3px; }
.property-detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; }
.property-detail-img { height: 280px; background-color: var(--bg); background-size: cover; background-position: center; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 80px; margin-bottom: 20px; }
.property-specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
.spec { text-align: center; background: var(--bg); border-radius: 10px; padding: 16px 8px; }
.spec-num { font-size: 22px; font-weight: 800; color: var(--primary); }
.spec-label { font-size: 12px; color: var(--text-muted); }
.property-sidebar { border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); position: sticky; top: 90px; }
.property-price-big { font-size: 28px; font-weight: 800; color: var(--primary); margin: 8px 0 20px; }
.property-price-note { font-size: 12px; color: var(--text-muted); margin-top: -14px; margin-bottom: 14px; }
.alert-info { background: #fff7e6; border: 1px solid var(--accent-light); border-radius: 10px; padding: 16px; margin-top: 20px; font-size: 14px; }

/* FAQ */
.faq-section { margin-top: 64px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-q { font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.faq-a { color: var(--text-muted); font-size: 14px; }

/* Forms */
.form-card { border: 1px solid var(--border); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; margin-top: 32px; }
.plain-list { padding-left: 20px; }
.plain-list li { margin-bottom: 8px; }

/* Footer */
.site-footer { background: var(--primary); color: rgba(255,255,255,0.85); padding: 48px 0 20px; margin-top: 48px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 40px; }
.footer-tagline { font-size: 14.5px; line-height: 1.6; max-width: 340px; }
.footer-title { color: white; font-weight: 700; margin-bottom: 14px; font-size: 16px; }
.site-footer a { display: block; margin-bottom: 9px; font-size: 15px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.12); color: white; transition: background .15s; margin: 0; }
.social-icon:hover { background: var(--accent); }
.footer-service { font-size: 14.5px; line-height: 1.7; }
.footer-service div { margin-bottom: 3px; }
.footer-service-title { color: var(--accent-light); font-weight: 700; letter-spacing: 1px; font-size: 12.5px; margin-bottom: 8px; }
.footer-service-name { color: white; font-weight: 700; font-family: 'Oswald', Verdana, sans-serif; letter-spacing: 0.5px; font-size: 16px; margin-bottom: 4px; }
.footer-bottom { text-align: center; font-size: 13px; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); }

/* WhatsApp float */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; background: var(--success); color: white; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 4px 16px rgba(0,0,0,0.25); z-index: 200; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .property-detail-grid, .contact-grid, .footer-inner { grid-template-columns: 1fr; }
  .property-specs-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 30px; }
}
