/* ══════════════════════════════════════════════════════════════
   B&C Ingeniería y Propiedades — Common Styles
   Extracted from original HTML templates
   ══════════════════════════════════════════════════════════════ */

:root {
  --ink:      #111820;
  --slate:    #2c3e50;
  --mid:      #5a6a7a;
  --muted:    #8f9faf;
  --line:     #dde3ea;
  --bg:       #f7f8fa;
  --white:    #ffffff;
  --accent:   #1b4f72;
  --accent2:  #2e86c1;
  --tag:      #e8f0f8;
  --green:    #1a6b45;
  --green-bg: #e8f5ef;
  --red:      #c0392b;
  --red-bg:   #fdf0ee;
  --amber:    #b7791f;
  --amber-bg: #fef9e7;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Skip Link (Accesibilidad) ── */
.skip-link {
  position: absolute; top: -100%; left: 0;
  background: var(--accent); color: white;
  padding: 12px 20px; font-weight: 600;
  z-index: 9999; transition: top 0.2s;
}
.skip-link:focus { top: 0; color: white; }

/* ── Focus Visible ── */
:focus-visible { outline: 3px solid var(--accent2); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* ── TOPBAR ── */
.topbar {
  background: var(--accent);
  padding: 10px 64px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.75); letter-spacing: 0.5px;
}
.topbar a { color: rgba(255,255,255,0.75); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-right { display: flex; gap: 28px; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 64px; height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  width: 36px; height: 36px;
  background: var(--accent);
  display: grid; place-items: center;
}
.logo-mark svg { width: 20px; height: 20px; fill: white; }
.logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 600;
  color: var(--ink); letter-spacing: 0.5px;
}
.logo-name span { color: var(--accent); }
.nav-links { display: flex; gap: 0; list-style: none; height: 100%; }
.nav-links li { height: 100%; display: flex; align-items: center; }
.nav-links a {
  display: flex; align-items: center; height: 100%;
  padding: 0 20px; font-size: 13.5px; font-weight: 500;
  color: var(--mid); text-decoration: none; letter-spacing: 0.2px;
  border-bottom: 2px solid transparent; transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent); border-bottom-color: var(--accent);
}
.nav-actions { display: flex; gap: 12px; align-items: center; }

/* ── BUTTONS ── */
.btn-outline {
  padding: 9px 22px; font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--line); color: var(--slate);
  background: transparent; cursor: pointer;
  font-family: 'Outfit', sans-serif; letter-spacing: 0.3px; transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-solid {
  padding: 9px 22px; font-size: 13px; font-weight: 600;
  background: var(--accent); color: white; border: none;
  cursor: pointer; font-family: 'Outfit', sans-serif;
  letter-spacing: 0.3px; transition: all 0.2s;
}
.btn-solid:hover { background: #154360; }
.btn-hero {
  padding: 14px 32px; font-size: 14px; font-weight: 600;
  background: var(--accent); color: white; border: none;
  cursor: pointer; font-family: 'Outfit', sans-serif;
  letter-spacing: 0.3px; transition: all 0.25s;
}
.btn-hero:hover { background: #154360; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(27,79,114,0.25); }
.btn-hero-ghost {
  padding: 14px 32px; font-size: 14px; font-weight: 500;
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent); cursor: pointer;
  font-family: 'Outfit', sans-serif; letter-spacing: 0.3px; transition: all 0.25s;
}
.btn-hero-ghost:hover { background: var(--tag); }
.btn-white {
  padding: 14px 36px; font-size: 14px; font-weight: 700;
  background: white; color: var(--accent); border: none;
  cursor: pointer; font-family: 'Outfit', sans-serif;
  white-space: nowrap; transition: all 0.25s;
}
.btn-white:hover { background: var(--tag); transform: translateY(-1px); }
.btn-white-ghost {
  padding: 14px 36px; font-size: 14px; font-weight: 500;
  background: transparent; color: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(255,255,255,0.35); cursor: pointer;
  font-family: 'Outfit', sans-serif; white-space: nowrap; transition: all 0.25s;
}
.btn-white-ghost:hover { border-color: white; color: white; }
.btn-danger { background: var(--red); color: white; border: none; padding: 9px 22px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'Outfit', sans-serif; transition: all 0.2s; }
.btn-danger:hover { background: #a93226; }

/* ── SECTION BASE ── */
.sec { padding: 100px 64px; }
.sec-sm { padding: 70px 64px; }
.label-row {
  display: flex; align-items: center; gap: 14px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent2); margin-bottom: 14px;
}
.label-row::before { content: ''; width: 24px; height: 2px; background: var(--accent2); }
h2.title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 600; line-height: 1.1;
  color: var(--ink); letter-spacing: -0.3px;
}
h2.title i { font-style: italic; color: var(--accent); }
.link-text {
  font-size: 13px; font-weight: 600; color: var(--accent);
  text-decoration: none; letter-spacing: 0.3px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--accent); padding-bottom: 1px;
  transition: gap 0.2s;
}
.link-text:hover { gap: 12px; }

/* ── BREADCRUMB BAR ── */
.breadcrumb-bar {
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 14px 64px; display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted);
}
.breadcrumb-bar a { color: var(--mid); text-decoration: none; }
.breadcrumb-bar a:hover { color: var(--accent); }
.bc-sep { color: var(--line); }

/* ── FLASH MESSAGES ── */
.flash-region { padding: 0 64px; }
.flash {
  padding: 14px 20px; margin: 16px 0; font-size: 14px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
}
.flash-success { background: var(--green-bg); color: var(--green); border-left: 4px solid var(--green); }
.flash-error { background: var(--red-bg); color: var(--red); border-left: 4px solid var(--red); }
.flash-dismiss { background: none; border: none; font-size: 18px; cursor: pointer; color: inherit; padding: 0 4px; }

/* ── FOOTER ── */
footer { padding: 80px 64px 40px; border-top: 1px solid var(--line); }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; margin-bottom: 60px;
}
.footer-logo-wrap { margin-bottom: 18px; }
.footer-desc { font-size: 14px; color: var(--muted); line-height: 1.8; max-width: 300px; margin-bottom: 28px; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact span { font-size: 13.5px; color: var(--mid); display: flex; align-items: center; gap: 8px; }
.footer-h {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--ink);
  margin-bottom: 24px; padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: var(--mid); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 15px;
  cursor: pointer; transition: all 0.2s;
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--tag); }

/* ── Dark Footer variant (nosotros, blog, contacto, inversiones) ── */
footer.dark { background: var(--ink); color: var(--muted); padding: 0; border-top: none; }
footer.dark .footer-top { padding: 72px 64px 56px; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 0; }
footer.dark .footer-logo-wrap .logo-name { color: white; }
footer.dark .footer-logo-wrap .logo-name span { color: var(--accent2); }
footer.dark .footer-logo-wrap .logo-mark { background: var(--accent2); }
footer.dark .footer-h { color: rgba(255,255,255,0.4); border-bottom-color: rgba(255,255,255,0.07); }
footer.dark .footer-links a { color: var(--muted); }
footer.dark .footer-links a:hover { color: white; }
footer.dark .footer-bottom { padding: 24px 64px; border-top-color: rgba(255,255,255,0.07); }
footer.dark .footer-bottom p { font-size: 12.5px; color: rgba(255,255,255,0.4); }
footer.dark .social-btn { border-color: rgba(255,255,255,0.12); color: var(--muted); }
footer.dark .social-btn:hover { border-color: rgba(255,255,255,0.4); color: white; background: transparent; }
footer.dark .footer-desc { color: var(--muted); }
footer.dark .footer-contact span { color: var(--muted); }

/* ── WHATSAPP FLOAT ── */
.wa {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  display: flex; align-items: center; gap: 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15); overflow: hidden;
  text-decoration: none;
}
.wa-label {
  background: #25D366; color: white;
  padding: 14px 20px 14px 18px;
  font-size: 13px; font-weight: 600;
  max-width: 0; overflow: hidden;
  transition: max-width 0.35s ease, padding 0.35s ease;
  white-space: nowrap; padding-left: 0; padding-right: 0;
}
.wa:hover .wa-label { max-width: 160px; padding: 14px 16px 14px 18px; }
.wa-icon {
  background: #25D366; color: white;
  width: 52px; height: 52px;
  display: grid; place-items: center; font-size: 22px;
  cursor: pointer; flex-shrink: 0;
}

/* ── REVEAL ANIMATION ── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ── BADGES ── */
.badge {
  display: inline-block; padding: 4px 12px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.badge-disponible { background: var(--green-bg); color: var(--green); }
.badge-arrendado  { background: var(--amber-bg); color: var(--amber); }
.badge-vendido    { background: var(--bg); color: var(--mid); }
.badge-destacado  { background: var(--tag); color: var(--accent2); }
.badge-no-leido   { background: var(--red-bg); color: var(--red); }
.badge-leido      { background: var(--bg); color: var(--mid); }

/* ── CTA SECTION (reusable) ── */
.cta-sec {
  background: var(--accent); padding: 100px 64px;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 60px;
}
.cta-sec h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4vw, 60px); font-weight: 600;
  color: white; line-height: 1.1;
}
.cta-sec h2 i { font-style: italic; color: #7fb3d3; }
.cta-sec p { color: rgba(255,255,255,0.65); font-size: 16px; margin-top: 16px; line-height: 1.7; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }

/* CTA centered variant */
.cta-sec.centered { display: block; text-align: center; }
.cta-sec.centered .cta-actions { flex-direction: row; justify-content: center; align-items: center; }
.cta-sec.centered p { max-width: 460px; margin: 0 auto 40px; }

/* ── HAMBURGER BUTTON ── */
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); font-size: 20px; line-height: 1; }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 199; }
.nav-overlay.open { display: block; }
.nav-mobile-actions { display: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .topbar { padding: 10px 24px; }
  nav { padding: 0 24px; }
  .sec { padding: 60px 24px; }
  .breadcrumb-bar { padding: 14px 24px; }
  footer { padding: 48px 24px 24px; }
  footer.dark .footer-top { padding: 48px 24px; }
  footer.dark .footer-bottom { padding: 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .flash-region { padding: 0 24px; }
  .cta-sec { padding: 60px 24px; grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .topbar { display: none; }
  nav { height: 60px; padding: 0 16px; }
  .nav-hamburger { display: flex; align-items: center; justify-content: center; }
  .nav-actions { display: none; }

  /* Mobile nav drawer (slides from right) */
  .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0; right: -280px;
    width: 280px; height: 100vh;
    background: var(--white);
    border-left: 1px solid var(--line);
    z-index: 210;
    padding: 72px 0 32px;
    transition: right 0.3s cubic-bezier(0.16,1,0.3,1);
    gap: 0;
    overflow-y: auto;
  }
  .nav-links.open { right: 0; }
  .nav-links li { height: auto; }
  .nav-links a {
    display: block; height: auto;
    padding: 14px 24px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
    border-left: none;
  }
  .nav-links a.active { border-bottom-color: var(--line); color: var(--accent); background: var(--tag); }
  .nav-mobile-actions { display: flex; flex-direction: column; gap: 12px; padding: 20px 24px; margin-top: auto; border-top: 1px solid var(--line); }
  .nav-mobile-actions a { text-align: center; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .cta-sec { padding: 48px 16px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .breadcrumb-bar { padding: 12px 16px; }
  .sec { padding: 48px 16px; }
  .sec-sm { padding: 36px 16px; }
  footer { padding: 40px 16px 24px; }
  footer.dark .footer-top { padding: 40px 16px; }
  footer.dark .footer-bottom { padding: 20px 16px; }
  .flash-region { padding: 0 16px; }
}
