/* Humans Guías Inmobiliarios — estilos */

/* ── TOKENS ───────────────────────────────────────────── */
:root {
  --dark:    #1a1a1a;
  --gold:    #b4975a;
  --gold-lt: #c9ae7a;
  --bg:      #faf9f7;
  --bg2:     #f2f0ec;
  --muted:   #888880;
  --border:  #e8e4dc;
  --white:   #ffffff;
  --font-h:  "Dosis", sans-serif;
  --font-b:  "Karla", sans-serif;
  --nav-h:   76px;
  --radius:  6px;
  --shadow:  0 4px 32px rgba(0,0,0,0.08);

  /* Legacy alias kept for admin templates */
  --humans-dark: var(--dark);
  --humans-accent: var(--gold);
  --humans-muted: var(--muted);
  --navbar-height: var(--nav-h);
  --font-body: var(--font-b);
  --font-heading: var(--font-h);
}

/* ── RESET / BASE ─────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.6;
}
body:not(.home-page) { padding-top: var(--nav-h); }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-h);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
img { max-width: 100%; }

/* ── NAV ──────────────────────────────────────────────── */
.public-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 2.5rem;
  background: rgba(250,249,247,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
  min-height: var(--nav-h);
}
.public-navbar.dark-hero {
  background: transparent;
  border-bottom-color: rgba(255,255,255,0.1);
}
.public-navbar.dark-hero .nav-logo-dark { display: none; }
.public-navbar.dark-hero .nav-logo-light { display: inline-flex; }
.public-navbar.dark-hero .nav-link { color: rgba(255,255,255,0.85); }
.public-navbar.dark-hero .nav-link:hover,
.public-navbar.dark-hero .nav-link.active { color: #fff; }
.public-navbar.dark-hero .nav-phone { border-color: rgba(255,255,255,0.4); color: #fff; }
.public-navbar.dark-hero .nav-phone:hover { background: rgba(255,255,255,0.12); }
.public-navbar.dark-hero .nav-icon,
.public-navbar.dark-hero .nav-lang { color: rgba(255,255,255,0.8); }
.public-navbar.dark-hero .nav-icon:hover,
.public-navbar.dark-hero .nav-lang:hover { color: #fff; }

.nav-inner {
  width: 100%;
  display: flex; align-items: center;
  max-width: 1400px; margin: 0 auto;
}
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo-light { display: none; }
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-links {
  display: flex; gap: 0; flex: 1; justify-content: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-link {
  font-family: var(--font-h); font-weight: 600; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--dark); padding: 0.5rem 1.1rem;
  transition: color 0.2s; border-radius: 4px;
  text-decoration: none; display: inline-block;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-icon {
  color: var(--dark); font-size: 1rem;
  transition: color 0.2s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.25rem;
}
.nav-icon:hover { color: var(--gold); }
.nav-icon .badge {
  background: var(--gold); color: #fff;
  font-size: 0.65rem; padding: 1px 5px; border-radius: 10px;
}
.nav-lang {
  font-family: var(--font-h); font-size: 0.8rem; font-weight: 600;
  color: var(--dark); text-decoration: none; letter-spacing: 0.05em;
  transition: color 0.2s;
}
.nav-lang:hover { color: var(--gold); }
.nav-phone {
  font-family: var(--font-h); font-size: 0.8rem; font-weight: 600;
  border: 1.5px solid var(--border); border-radius: 4px;
  padding: 0.4rem 1rem; color: var(--dark);
  transition: all 0.2s; white-space: nowrap; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.nav-phone:hover { border-color: var(--gold); color: var(--gold); background: transparent; }
.nav-toggler {
  display: none; background: transparent; border: none;
  color: var(--dark); font-size: 1.4rem; padding: 0.25rem 0.5rem;
}

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
  background-color: #0a0a0a;
  background-image:
    linear-gradient(to bottom, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.35) 60%, rgba(10,10,10,0.6) 100%),
    var(--hero-bg, url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1920&q=80"));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center; color: #fff;
}
.hero-eyebrow {
  font-family: var(--font-h); font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--gold-lt); margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.75rem; justify-content: center;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ""; width: 32px; height: 1px; background: var(--gold-lt); opacity: 0.6;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 800;
  letter-spacing: -0.02em; color: #fff;
  max-width: 820px; margin: 0 auto 1.25rem;
  text-wrap: balance;
}
.hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,0.75);
  max-width: 520px; margin: 0 auto 2.5rem; font-weight: 400;
}
.hero-search {
  background: #fff; border-radius: 8px;
  display: flex; align-items: stretch;
  max-width: 820px; width: 100%;
  box-shadow: 0 8px 48px rgba(0,0,0,0.25);
  overflow: hidden;
}
.hero-search-field {
  flex: 1; display: flex; flex-direction: column;
  padding: 1rem 1.4rem; border-right: 1px solid var(--border);
  min-width: 0; text-align: left;
}
.hero-search-field label {
  font-family: var(--font-h); font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); margin-bottom: 0.2rem;
}
.hero-search-field select, .hero-search-field input {
  border: none; outline: none; background: transparent;
  font-family: var(--font-b); font-size: 0.95rem; color: var(--dark);
  font-weight: 500; padding: 0; width: 100%;
  appearance: none; -webkit-appearance: none;
}
.hero-search-btn {
  background: var(--gold); border: none; color: #fff;
  padding: 0 2rem; font-family: var(--font-h);
  font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 0.6rem;
  transition: background 0.2s; white-space: nowrap; cursor: pointer;
}
.hero-search-btn:hover { background: var(--gold-lt); }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
}
.hero-scroll::after {
  content: ""; width: 1px; height: 36px; background: rgba(255,255,255,0.85);
  box-shadow: 0 0 4px rgba(0,0,0,0.5);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ── STATS STRIP ──────────────────────────────────────── */
.stats-strip {
  background: var(--dark); color: #fff;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 2.5rem 2rem; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-h); font-size: 2.6rem; font-weight: 800;
  color: var(--gold); line-height: 1;
}
.stat-label {
  font-size: 0.8rem; color: rgba(255,255,255,0.55);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-top: 0.4rem;
}

/* ── SECTION HELPERS ──────────────────────────────────── */
.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-alt { background: var(--bg2); }
.container {
  max-width: 1240px; margin: 0 auto; padding: 0 2rem;
  width: 100%;
}
.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }
.section-header.split {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.section-eyebrow {
  font-family: var(--font-h); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--gold); margin-bottom: 0.75rem;
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; }
.section-sub { color: var(--muted); font-size: 1rem; margin-top: 0.75rem; max-width: 560px; }
.section-header.centered .section-sub { margin: 0.75rem auto 0; }
.section-action { margin-top: 2.5rem; text-align: center; }

/* ── PROPERTY CARDS ───────────────────────────────────── */
.props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.prop-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow 0.3s, transform 0.3s;
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  text-decoration: none; color: inherit;
}
.prop-card:hover {
  box-shadow: 0 12px 48px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  color: inherit;
}
.prop-card-img {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: var(--bg2);
}
.prop-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.prop-card:hover .prop-card-img img { transform: scale(1.04); }
.prop-card-img .no-image {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  color: var(--border); font-size: 2.5rem;
}
.prop-card-badge {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-h); font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 3px;
  background: var(--dark); color: #fff;
}
.prop-card-badge.renta { background: var(--gold); }
.prop-card-actions {
  position: absolute; top: 14px; right: 14px;
  display: flex; gap: 6px;
}
.prop-btn-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--dark); font-size: 0.95rem;
  transition: all 0.2s; cursor: pointer;
}
.prop-btn-icon:hover,
.prop-btn-icon.active { background: var(--gold); color: #fff; }
.prop-card-body {
  padding: 1.25rem 1.4rem 1.4rem; flex: 1;
  display: flex; flex-direction: column;
}
.prop-card-location {
  font-size: 0.76rem; color: var(--gold); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.3rem;
  display: flex; align-items: center; gap: 0.3rem;
}
.prop-card-title {
  font-size: 1.05rem; font-weight: 700; margin: 0 0 0.5rem;
  color: var(--dark);
}
.prop-card-title a { color: inherit; text-decoration: none; }
.prop-card-title a:hover { color: var(--gold); }
.prop-card-price {
  font-family: var(--font-h); font-size: 1.3rem; font-weight: 800;
  color: var(--dark); margin-bottom: 0.9rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem;
}
.price-old {
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.78em;
}
.price-reduction-badge {
  display: inline-block;
  font-family: var(--font-h);
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 9px; border-radius: 3px;
  background: #c0392b; color: #fff;
  white-space: nowrap;
}
.map-popup-reduction {
  margin-top: 0.35rem;
}
.filter-only-reduced {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 0.85rem; font-size: 0.85rem; color: var(--dark);
  cursor: pointer; user-select: none;
}
.filter-only-reduced input[type="checkbox"] { margin: 0; cursor: pointer; }
.prop-card-meta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--muted);
  padding-top: 0.9rem; border-top: 1px solid var(--border);
  margin-top: auto;
}
.prop-card-meta span { display: flex; align-items: center; gap: 0.3rem; }
.prop-card-meta i { color: var(--gold); font-size: 0.9rem; }

/* ── NEIGHBORHOODS ────────────────────────────────────── */
.hoods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 240px 240px;
  gap: 0.75rem;
}
.hood-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; text-decoration: none; color: inherit;
  display: block;
}
.hood-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
.hood-item:nth-child(2) { grid-column: 3; grid-row: 1; }
.hood-item:nth-child(3) { grid-column: 4; grid-row: 1; }
.hood-item:nth-child(4) { grid-column: 1; grid-row: 2; }
.hood-item:nth-child(5) { grid-column: 2; grid-row: 2; }
.hood-item:nth-child(6) { grid-column: 3 / 5; grid-row: 2; }
.hood-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.hood-item:hover .hood-img { transform: scale(1.05); }
.hood-item-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--dark), #3a3a3a);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 2.5rem;
}
.hood-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.7) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.25rem; color: #fff;
}
.hood-name {
  font-family: var(--font-h); font-size: 1.05rem; font-weight: 700;
}
.hood-count { font-size: 0.78rem; color: rgba(255,255,255,0.65); margin-top: 0.2rem; }

/* ── WHY HUMANS ───────────────────────────────────────── */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
}
.why-item { text-align: center; padding: 2.5rem 2rem; }
.why-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem; color: #fff; font-size: 1.5rem;
}
.why-item h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.why-item p { color: var(--muted); font-size: 0.92rem; line-height: 1.7; margin: 0; }

/* ── TESTIMONIALS ─────────────────────────────────────── */
.testimonials-section { background: var(--dark); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.testimonial-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 2rem; color: #fff;
}
.testimonial-stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-text {
  font-size: 0.95rem; line-height: 1.7;
  color: rgba(255,255,255,0.75); margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(180,151,90,0.3); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-family: var(--font-h); font-weight: 800;
  font-size: 0.9rem; flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 0.88rem; }
.testimonial-role { font-size: 0.76rem; color: rgba(255,255,255,0.45); margin-top: 0.1rem; }

/* ── PROPERTY DETAIL META ─────────────────────────────── */
.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem 1.5rem;
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.detail-meta > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(0,0,0,0.06);
}
.detail-meta > div:last-child { border-bottom: 0; }
.detail-meta .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #6b6b6b);
  font-weight: 500;
}
.detail-meta .value {
  font-weight: 600;
  color: var(--text, #1a1a1a);
  text-align: right;
}

/* ── TEAM ─────────────────────────────────────────────── */
.team-group-photo {
  margin: 0 0 2rem;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  background: var(--white);
  border: 1px solid var(--border);
}
.team-group-photo img {
  width: 100%;
  height: auto;
  max-height: 460px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.6s ease;
}
.team-group-photo:hover img { transform: scale(1.02); }
@media (max-width: 768px) {
  .team-group-photo img { max-height: 280px; aspect-ratio: 4 / 3; }
}
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.agent-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; text-align: center;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.25s;
  text-decoration: none; color: inherit; display: block;
}
.agent-card:hover {
  box-shadow: var(--shadow); transform: translateY(-3px);
  color: inherit;
}
.agent-card-img {
  aspect-ratio: 3/4; overflow: hidden;
  background: var(--bg2); position: relative;
}
.agent-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; display: block; }
.agent-card:hover .agent-card-img img { transform: scale(1.04); }
.agent-card-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: monospace; font-size: 0.75rem; color: var(--muted);
  background: repeating-linear-gradient(45deg, var(--bg2) 0px, var(--bg2) 8px, var(--border) 8px, var(--border) 9px);
  flex-direction: column; gap: 0.5rem; text-align: center; padding: 1rem;
}
.agent-card-body { padding: 1.25rem 1rem 1.5rem; }
.agent-card-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; }
.agent-card-role {
  font-size: 0.78rem; color: var(--gold); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem;
}
.agent-card-links { display: flex; justify-content: center; gap: 0.5rem; }
.agent-link {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--muted); transition: all 0.2s;
  text-decoration: none;
}
.agent-link:hover { border-color: var(--gold); color: var(--gold); }

/* ── CTA BANNER ───────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--gold) 0%, #8a6f3a 100%);
  padding: 5rem 2rem; text-align: center; color: #fff;
}
.cta-banner h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; margin-bottom: 1rem; }
.cta-banner p {
  font-size: 1.05rem; color: rgba(255,255,255,0.8); margin-bottom: 2rem;
  max-width: 540px; margin-left: auto; margin-right: auto;
}
.cta-banner-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ──────────────────────────────────────────── */
.btn-humans {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-h); font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.85rem 1.8rem; border-radius: 4px;
  border: 2px solid transparent; transition: all 0.2s; cursor: pointer;
  white-space: nowrap; text-decoration: none;
}
.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-lt); border-color: var(--gold-lt); color: #fff; }
.btn-outline-dark-humans { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-outline-dark-humans:hover { background: var(--dark); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }
.btn-dark-humans { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn-dark-humans:hover { background: #2d2d2d; color: #fff; }
.btn-sm-humans { padding: 0.55rem 1.2rem; font-size: 0.75rem; }

/* ── FOOTER ───────────────────────────────────────────── */
.footer {
  background: #111; color: rgba(255,255,255,0.55);
  padding: 4rem 0 2rem;
}
.footer a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { margin-bottom: 1.25rem; filter: brightness(0) invert(1); height: 36px; width: auto; display: block; }
.footer-tagline { font-size: 0.88rem; line-height: 1.7; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: 0.5rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 0.9rem; transition: all 0.2s;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h5 {
  color: #fff; font-family: var(--font-h); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.25rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { font-size: 0.88rem; transition: color 0.2s; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.88rem; margin-bottom: 0.75rem; }
.footer-contact-item i { color: var(--gold); margin-top: 0.15rem; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 2rem; display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }

/* ── INNER-PAGE HEADER (dark) ─────────────────────────── */
.page-hero {
  background: var(--dark); padding: 3.5rem 0 3rem;
  color: #fff; text-align: center;
}
.page-hero h1 { font-size: 2.2rem; margin-bottom: 0.5rem; color: #fff; }
.page-hero p { color: rgba(255,255,255,0.55); font-size: 0.95rem; margin: 0; }

/* ── PROPERTIES PAGE ──────────────────────────────────── */
.props-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: start; padding: 2.5rem 0; }
.props-filters { position: sticky; top: calc(var(--nav-h) + 1rem); }
.filter-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem;
}
.filter-card h4 {
  font-family: var(--font-h); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
  margin-bottom: 1rem;
}
.filter-group { margin-bottom: 0.75rem; }
.filter-label { font-size: 0.82rem; font-weight: 600; margin-bottom: 0.3rem; display: block; }
.filter-select, .filter-input {
  width: 100%; border: 1.5px solid var(--border); border-radius: 4px;
  padding: 0.55rem 0.85rem; font-family: var(--font-b); font-size: 0.88rem;
  background: var(--bg); color: var(--dark); outline: none;
  transition: border-color 0.2s;
}
.filter-select:focus, .filter-input:focus { border-color: var(--gold); }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.filter-chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.filter-chip {
  padding: 0.35rem 0.85rem; border-radius: 20px; font-size: 0.78rem;
  font-weight: 600; border: 1.5px solid var(--border); cursor: pointer;
  transition: all 0.2s; background: transparent; color: var(--muted);
  font-family: var(--font-h); text-decoration: none; display: inline-block;
}
.filter-chip.active { border-color: var(--gold); color: var(--gold); background: rgba(180,151,90,0.08); }
.filter-chip:hover:not(.active) { border-color: var(--dark); color: var(--dark); }

.props-results-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.75rem;
}
.results-count { font-size: 0.88rem; color: var(--muted); }
.results-sort { display: flex; align-items: center; gap: 0.5rem; }
.results-sort label { font-size: 0.82rem; color: var(--muted); margin: 0; }
.results-sort select {
  font-family: var(--font-b); font-size: 0.85rem;
  border: 1.5px solid var(--border); border-radius: 4px;
  padding: 0.35rem 0.7rem; background: var(--white); outline: none;
}

/* ── CONTACT PAGE ─────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; padding: 4rem 0; align-items: start; }
.contact-info-block { display: flex; flex-direction: column; gap: 2rem; }
.contact-info-title { font-size: 1.6rem; margin-bottom: 0.5rem; }
.contact-info-sub { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.contact-info-items { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 0.5rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-icon {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.1rem; flex-shrink: 0;
}
.contact-info-item-text strong { display: block; font-size: 0.88rem; margin-bottom: 0.15rem; }
.contact-info-item-text span,
.contact-info-item-text a { font-size: 0.88rem; color: var(--muted); text-decoration: none; }
.contact-info-item-text a:hover { color: var(--gold); }
.contact-form-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem;
  box-shadow: var(--shadow);
}
.contact-form-card h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.contact-form-card p.lead { color: var(--muted); font-size: 0.88rem; margin-bottom: 1.75rem; }
.form-humans .form-group { margin-bottom: 1.1rem; }
.form-humans .form-label {
  display: block; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 0.4rem; color: var(--dark);
}
.form-humans .form-control {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid var(--border); border-radius: 4px;
  font-family: var(--font-b); font-size: 0.9rem; color: var(--dark);
  background: var(--bg); outline: none; transition: border-color 0.2s;
}
.form-humans .form-control:focus { border-color: var(--gold); background: #fff; }
.form-humans .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* ── WHATSAPP FLOAT ───────────────────────────────────── */
.whatsapp-fab {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 200;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.whatsapp-fab:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,0.5); color: #fff; }

/* ── PROPERTY DETAIL ──────────────────────────────────── */
.detail-price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem;
  font-family: var(--font-h); font-size: 1.6rem; font-weight: 800;
  color: var(--dark); margin: 0.5rem 0 1rem;
}
.detail-gallery-main {
  aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius);
  background: var(--bg2); margin-bottom: 0.5rem; cursor: zoom-in;
  border: 1px solid var(--border);
}
.detail-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-thumbs {
  display: flex; gap: 0.5rem;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
}
.detail-thumbs img {
  flex: 0 0 auto;
  width: 90px; height: 90px;
  aspect-ratio: 1; object-fit: cover;
  border-radius: 4px; cursor: pointer; opacity: 0.7;
  transition: opacity 0.2s;
  scroll-snap-align: start;
}
@media (max-width: 576px) {
  .detail-thumbs img { width: 72px; height: 72px; }
}
.detail-thumbs img.active,
.detail-thumbs img:hover { opacity: 1; }
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox-overlay img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.agent-contact-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  position: sticky; top: calc(var(--nav-h) + 1rem);
}
.agent-contact-header {
  background: var(--dark); color: #fff;
  padding: 1.5rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
}
.agent-contact-header img,
.agent-contact-avatar-placeholder {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover;
  border: 2px solid var(--gold);
  background: #2a2a2a;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.75rem;
}
.agent-contact-meta { flex: 1; min-width: 0; }
.agent-contact-name { font-family: var(--font-h); font-weight: 700; font-size: 1.05rem; color: #fff; line-height: 1.2; }
.agent-contact-role { font-size: 0.72rem; color: var(--gold-lt); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.25rem; }
.agent-contact-phone {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--gold); font-size: 0.85rem; font-weight: 600;
  margin-top: 0.4rem; text-decoration: none;
}
.agent-contact-phone:hover { color: var(--gold-lt); text-decoration: underline; }
.agent-contact-body { padding: 1.5rem; }
.btn-whatsapp {
  background: #25d366; color: #fff; border: none;
  padding: 0.85rem 1rem; border-radius: 8px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.btn-whatsapp:hover { background: #1ebd5b; color: #fff; }
.agent-contact-divider {
  position: relative; text-align: center; margin: 1.25rem 0;
  font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em;
}
.agent-contact-divider::before {
  content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px;
  background: var(--border);
}
.agent-contact-divider span { background: var(--white); padding: 0 0.75rem; position: relative; }
.agent-contact-form { display: flex; flex-direction: column; gap: 0.6rem; }
.agent-contact-form .form-control {
  font-size: 0.9rem; padding: 0.6rem 0.8rem;
  border: 1px solid var(--border); border-radius: 8px;
}
.agent-contact-form .form-control:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 161, 101, 0.15);
}
.agent-contact-form textarea.form-control { resize: vertical; min-height: 80px; }
.agent-contact-form button[type="submit"] {
  background: var(--dark); color: #fff; border: none;
  padding: 0.85rem 1rem; border-radius: 8px; font-weight: 600;
  margin-top: 0.25rem;
  transition: background 0.2s;
}
.agent-contact-form button[type="submit"]:hover { background: #000; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 991px) {
  .public-navbar { padding: 0 1.5rem; }
  .nav-links { gap: 0.25rem; }
  .nav-link { padding: 0.4rem 0.7rem; font-size: 0.75rem; }
  .nav-right { gap: 0.6rem; }
}
@media (max-width: 900px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .props-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 0.5rem; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hoods-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .hood-item { aspect-ratio: 4/3; }
  .hood-item:nth-child(n) { grid-column: auto; grid-row: auto; }
  .props-layout { grid-template-columns: 1fr; }
  .props-filters { position: static; }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0; }
  .hero-search { flex-direction: column; }
  .hero-search-field { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-search-btn { padding: 1rem; justify-content: center; }
  .section { padding: 3.5rem 0; }
  .contact-form-card { padding: 1.75rem; }
}
@media (max-width: 600px) {
  .props-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .public-navbar { padding: 0 1rem; }
  .nav-links { display: none; }
  .nav-toggler { display: inline-flex; }
  .nav-links.show {
    display: flex; position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); flex-direction: column; padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08); z-index: 99;
  }
  .public-navbar.dark-hero .nav-links.show { background: var(--bg); }
  .public-navbar.dark-hero .nav-links.show .nav-link { color: var(--dark); }
  .container { padding: 0 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── ADMIN (preserved) ────────────────────────────────── */
.admin-shell {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 220px;
  background: var(--humans-dark);
  color: #ddd;
  padding: 1.5rem 0;
}

.admin-sidebar .brand {
  font-weight: 800;
  color: #fff;
  padding: 0 1.25rem 1rem;
  border-bottom: 1px solid #333;
  margin-bottom: 1rem;
}

.admin-sidebar .nav-link {
  color: #ccc;
  padding: 0.5rem 1.25rem;
  border-left: 3px solid transparent;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
}

.admin-sidebar .nav-link:hover {
  background: #2a2a2a;
  color: #fff;
}

.admin-sidebar .nav-link.active {
  background: #2a2a2a;
  color: var(--humans-accent);
  border-left-color: var(--humans-accent);
}

.admin-sidebar .nav-link i {
  width: 20px;
  margin-right: 8px;
}

.admin-main {
  flex: 1;
  padding: 1.5rem 2rem;
  background: #f8f9fa;
  min-width: 0;
}

.admin-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.quality-alert {
  padding: 0.75rem 1rem;
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.quality-alert strong {
  color: #6b4e00;
}

/* Login */
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f6f9;
}

.login-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 400px;
}

/* Admin body override: no padding-top from home rule; admin has its own layout */
body.admin-body { padding-top: 0 !important; }

/* ── PROPERTIES MAP VIEW ─────────────────────────────── */
.view-toggle {
  display: inline-flex; gap: 0; border: 1.5px solid var(--border);
  border-radius: 999px; padding: 3px; background: var(--white);
}
.view-toggle__btn {
  font-family: var(--font-h); font-weight: 700; font-size: 0.78rem;
  padding: 0.4rem 0.95rem; border: none; background: transparent;
  color: var(--muted); border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.35rem;
  transition: all 0.18s;
}
.view-toggle__btn i { font-size: 0.85rem; }
.view-toggle__btn:hover { color: var(--dark); }
.view-toggle__btn.active {
  background: var(--dark); color: var(--white);
}

.props-map-wrap { display: flex; flex-direction: column; gap: 0.75rem; }
.props-map {
  width: 100%; height: 70vh; min-height: 480px;
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}

.map-no-location-notice {
  background: rgba(180, 151, 90, 0.08);
  border: 1px solid rgba(180, 151, 90, 0.3);
  color: var(--dark); font-size: 0.85rem;
  padding: 0.6rem 0.9rem; border-radius: var(--radius);
  display: flex; align-items: center; gap: 0.5rem;
}
.map-no-location-notice i { color: var(--gold); }

/* Leaflet pin: precio tipo Airbnb */
.map-price-pin-wrap { background: transparent !important; border: none !important; }
.map-price-pin {
  display: inline-block;
  font-family: var(--font-h); font-weight: 800; font-size: 0.78rem;
  padding: 0.35rem 0.7rem; border-radius: 999px;
  background: var(--dark); color: var(--white);
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  white-space: nowrap; cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.map-price-pin:hover { transform: scale(1.08); background: var(--gold); }
.map-price-pin.rent { background: var(--gold); }
.map-price-pin.rent:hover { background: var(--dark); }

/* Popup */
.leaflet-popup-content-wrapper { border-radius: var(--radius); padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; width: 220px !important; }
.map-popup { display: block; color: var(--dark); text-decoration: none; }
.map-popup-img { width: 100%; aspect-ratio: 16/10; overflow: hidden; background: var(--bg2); }
.map-popup-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-popup-body { padding: 0.6rem 0.75rem 0.7rem; }
.map-popup-title {
  font-family: var(--font-h); font-weight: 700; font-size: 0.92rem;
  line-height: 1.25; margin-bottom: 0.25rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.map-popup-price { font-weight: 800; color: var(--gold); font-size: 0.95rem; }

@media (max-width: 900px) {
  .props-map { height: calc(100vh - 220px); min-height: 380px; }
  .view-toggle__btn { padding: 0.35rem 0.75rem; font-size: 0.74rem; }
}

.property-location-section { scroll-margin-top: 80px; }
.property-detail-map {
  width: 100%; height: 420px;
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
@media (max-width: 600px) {
  .property-detail-map { height: 320px; }
}

/* ===== Foreigners banner (home + footer link) ===== */
.foreigners-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1.4rem 1.6rem; border-radius: var(--radius);
  background: linear-gradient(120deg, #1a2332 0%, #233348 60%, #2a4060 100%);
  color: var(--white); text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s;
}
.foreigners-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  color: var(--white);
}
.foreigners-banner-text { flex: 1 1 auto; }
.foreigners-banner-eyebrow {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.35rem;
}
.foreigners-banner-text h3 {
  font-family: var(--font-h); font-weight: 700; font-size: 1.35rem;
  margin: 0 0 0.25rem 0;
}
.foreigners-banner-text p { margin: 0; opacity: 0.85; font-size: 0.95rem; }
.foreigners-banner-cta {
  flex-shrink: 0; padding: 0.7rem 1.2rem; border-radius: 999px;
  background: var(--gold); color: var(--dark); font-weight: 600;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 0.4rem;
}
@media (max-width: 720px) {
  .foreigners-banner { flex-direction: column; align-items: flex-start; padding: 1.2rem 1.3rem; }
  .foreigners-banner-cta { align-self: stretch; justify-content: center; }
}

/* ===== Foreigners landing page ===== */
.foreigners-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, #131c2b 0%, #1f2c40 60%, #2c3f5c 100%);
  color: var(--white); text-align: center;
}
.foreigners-hero-eyebrow {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.8rem;
}
.foreigners-hero h1 {
  font-family: var(--font-h); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin: 0 auto 0.8rem; max-width: 820px;
}
.foreigners-hero .lead {
  max-width: 720px; margin: 0 auto 1.6rem; font-size: 1.05rem; opacity: 0.9;
}
.foreigners-hero-actions {
  display: inline-flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center;
}
.btn-outline-light {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.7); padding: 0.7rem 1.2rem;
  border-radius: 999px; font-weight: 500; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-outline-light:hover { background: var(--white); color: var(--dark); }
.foreigners-content { max-width: 820px; margin-left: auto; margin-right: auto; }
.foreigners-content h3 {
  font-family: var(--font-h); margin-top: 2rem; font-size: 1.35rem;
}
.foreigners-content ol, .foreigners-content ul { padding-left: 1.4rem; }
.foreigners-content details {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.8rem 1.1rem; margin: 0.6rem 0; background: var(--bg2);
}
.foreigners-content details > summary {
  font-weight: 600; cursor: pointer; list-style: none; padding-right: 1.2rem;
  position: relative;
}
.foreigners-content details > summary::after {
  content: "+"; position: absolute; right: 0; top: 0; font-size: 1.3rem;
  font-weight: 300; line-height: 1;
}
.foreigners-content details[open] > summary::after { content: "−"; }
.foreigners-content details > p { margin: 0.6rem 0 0; }
.foreigners-disclaimer {
  margin-top: 2rem; padding: 1rem 1.2rem; border-left: 3px solid var(--gold);
  background: var(--bg2); color: var(--muted); font-size: 0.92rem; font-style: italic;
}
.foreigners-cta-banner {
  background: var(--dark); color: var(--white); padding: 2.5rem 0;
}
.foreigners-cta-banner .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.foreigners-cta-banner h3 { font-family: var(--font-h); margin: 0 0 0.3rem; }
.foreigners-cta-banner p { margin: 0; opacity: 0.85; }

/* ===== Blog cards & detail ===== */
.blog-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; text-decoration: none;
  color: inherit; transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.blog-card:hover {
  transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.1);
  color: inherit;
}
.blog-card-cover {
  width: 100%; aspect-ratio: 16/9; background-color: var(--bg2);
  background-size: cover; background-position: center;
}
.blog-card-cover-empty {
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: var(--border);
}
.blog-card-body { padding: 1.1rem 1.2rem 1.3rem; flex: 1 1 auto; display: flex; flex-direction: column; }
.blog-card-date {
  font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.4rem;
}
.blog-card-title {
  font-family: var(--font-h); font-weight: 700; font-size: 1.15rem;
  margin: 0 0 0.5rem; line-height: 1.3;
}
.blog-card-excerpt {
  color: var(--muted); font-size: 0.92rem; line-height: 1.45;
  margin: 0 0 0.8rem; flex: 1 1 auto;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-more {
  font-weight: 600; color: var(--dark); font-size: 0.88rem;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.blog-card:hover .blog-card-more { color: var(--gold); }
.blog-pagination {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: 2.5rem;
}
.blog-pagination-info { color: var(--muted); font-size: 0.9rem; }

.blog-detail { padding-bottom: 3rem; }
.blog-detail-cover {
  width: 100%; height: 360px; background-size: cover; background-position: center;
}
@media (max-width: 720px) { .blog-detail-cover { height: 220px; } }
.blog-detail-container { max-width: 780px; margin-top: 2rem; }
.blog-detail-header { margin-bottom: 1.5rem; }
.blog-detail-header h1 {
  font-family: var(--font-h); font-weight: 700; font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  margin: 0.4rem 0 0.6rem;
}
.blog-detail-header .lead { color: var(--muted); font-size: 1.05rem; }
.blog-detail-date {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.blog-detail-body { font-size: 1rem; line-height: 1.7; }
.blog-detail-body h2, .blog-detail-body h3 { font-family: var(--font-h); margin-top: 1.6rem; }
.blog-detail-body img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 1rem 0; }
.blog-detail-share {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--border);
  font-size: 0.9rem; color: var(--muted);
}
.blog-related h3 {
  font-family: var(--font-h); font-weight: 700;
  border-top: 1px solid var(--border); padding-top: 1.5rem;
}

/* Foreigners banner — XL variant for English-targeted prominence */
.foreigners-banner--xl h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.foreigners-banner--xl .foreigners-banner-eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
}
.foreigners-banner--xl .foreigners-banner-cta {
  font-size: 1.05rem;
}

/* Commercial clients */
.commercial-clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 2rem 2.5rem;
  align-items: center;
  justify-items: center;
}
.commercial-client-item img {
  max-height: 70px;
  max-width: 100%;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 200ms, opacity 200ms;
}
.commercial-client-item:hover img,
.commercial-client-item:focus-visible img {
  filter: grayscale(0%);
  opacity: 1;
}
.commercial-client-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

/* Instalaciones (office) gallery */
.section-instalaciones > .container {
  max-width: 1500px;
}
.instalaciones-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 576px) {
  .instalaciones-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
@media (min-width: 992px) {
  .instalaciones-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}
.instalaciones-grid .insta-item {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface, #f5f5f5);
  padding: 0;
  border: 0;
  cursor: zoom-in;
  display: block;
  width: 100%;
}
.instalaciones-grid .insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms;
  display: block;
}
.instalaciones-grid .insta-item:hover img,
.instalaciones-grid .insta-item:focus-visible img {
  transform: scale(1.04);
}
.instalaciones-grid .insta-item:focus-visible {
  outline: 2px solid var(--primary, #111);
  outline-offset: 3px;
}

[x-cloak] { display: none !important; }

.insta-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1080;
  cursor: zoom-out;
  padding: 1rem;
}
.insta-lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.insta-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.insta-lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }

/* Nosotros (about) intro: Historia + Misión */
.nosotros-intro {
  padding: 4rem 0 3.5rem;
}
.nosotros-inner {
  max-width: 720px;
  margin: 0 auto;
}
.nosotros-block + .nosotros-block {
  margin-top: 3.5rem;
}
.nosotros-block .section-eyebrow {
  margin-bottom: 0.5rem;
}
.nosotros-block .section-title {
  margin: 0 0 1.5rem;
  line-height: 1.15;
}
.nosotros-block p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--dark);
  margin: 0;
}
.nosotros-mision {
  position: relative;
  background: var(--bg2);
  border-left: 4px solid var(--gold);
  padding: 2.25rem 2rem 2.25rem 2.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.nosotros-mision .section-title {
  font-family: var(--font-h);
}
.nosotros-mision p {
  font-size: 1.1rem;
  font-style: italic;
  color: #2a2a2a;
}
@media (max-width: 575px) {
  .nosotros-intro { padding: 2.5rem 0 2rem; }
  .nosotros-block + .nosotros-block { margin-top: 2.5rem; }
  .nosotros-mision { padding: 1.5rem 1.25rem 1.5rem 1.5rem; }
}

/* Admin: archived row */
.row-archived td {
  color: #c00;
  text-decoration: line-through;
}
.row-archived td a {
  color: #c00;
}
