/* ============================================================
   ONO PROPIEDADES — SHARED STYLES
   Tokens + reset + nav/footer/prop-card/button systems shared
   across index.html, propiedades.html and propiedad-*.html.
   Page-specific styles stay inline in each HTML.
   ============================================================ */

/* ============ DESIGN TOKENS ============ */
:root {
  --color-navy: #1A2A47;
  --color-linen: #F9F7F2;
  --color-accent: #B85B3F;
  --color-white: #FFFFFF;
  --color-text-secondary: #4A5568;
  --color-divider: rgba(26, 42, 71, 0.18);
  --color-divider-soft: rgba(26, 42, 71, 0.12);

  --font-logo: 'Syne', sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-editorial: 'Cormorant Garamond', serif;
}

/* ============ RESET ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* ============ REDUCED MOTION ============
   Honor the user's OS-level "reduce motion" preference across the site
   (disables the status-badge pulse, card hover transforms, hero fades, etc.) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Balance long display headings to avoid single-word last lines (widows).
   Progressive enhancement — ignored by browsers without text-wrap support. */
.ono-hero-title,
.ono-hero-title-accent,
.ono-how-title,
.ono-props-title,
.ono-gap-title,
.ono-compare-title,
.ono-forthem-title,
.ono-transp-title,
.ono-cta-title,
.ono-catalog-title,
.title { text-wrap: balance; }

/* Align digits in the comparison table so figures line up column-wise. */
.ono-compare-table th,
.ono-compare-table td { font-variant-numeric: tabular-nums; }

body {
  font-family: var(--font-body);
  background: var(--color-linen);
  color: var(--color-navy);
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   HOME / CATALOG NAVIGATION
   (used by index.html and propiedades.html)
   ============================================================ */
.ono-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

.ono-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  align-items: center;
  justify-content: center;
}

.ono-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ono-logo-img,
.logo-img {
  display: block;
}

.ono-logo {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--color-white);
  line-height: 1;
}

.ono-logo-divider {
  width: 0.5px;
  height: 18px;
  background: rgba(255, 255, 255, 0.35);
}

.ono-logo-prop {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
}

.ono-nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.ono-nav-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.ono-nav-link:hover { opacity: 0.7; }

.ono-nav-link.is-current {
  color: var(--color-white);
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 4px;
}

.ono-nav-cta {
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 10px 18px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s ease;
  border-radius: 4px;
  text-decoration: none;
}

.ono-nav-cta:hover { opacity: 0.9; }

.ono-nav-cta-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ono-nav-cta-icon svg {
  width: 10px;
  height: 10px;
  fill: white;
}

/* ============================================================
   HOME / CATALOG BUTTONS
   ============================================================ */
.ono-btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 14px 24px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s ease;
  border-radius: 4px;
  text-decoration: none;
}

.ono-btn:hover { opacity: 0.9; }

.ono-btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.ono-btn-ghost {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.ono-btn-ghost-dark {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-navy);
}

.ono-btn-white {
  background: var(--color-white);
  color: var(--color-accent);
}

.ono-btn-white-ghost {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

/* ============================================================
   PROPERTY CARD (used in home grid + catalog grid)
   ============================================================ */
.ono-prop-card {
  background: var(--color-white);
  border: 1px solid rgba(26, 42, 71, 0.08);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.ono-prop-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(26, 42, 71, 0.10);
}

.ono-prop-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #E8DDD3 0%, #D4C4B0 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ono-prop-image-shapes {
  position: relative;
  width: 60%;
  height: 70%;
  display: flex;
  flex-direction: column;
}

.ono-prop-image-shapes .arch {
  flex: 1;
  border: 1px solid rgba(26, 42, 71, 0.3);
  border-radius: 50% 50% 0 0;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  margin-bottom: 8px;
}

.ono-prop-image-shapes .arch::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(26, 42, 71, 0.2);
}

.ono-prop-image-shapes .floor {
  height: 8px;
  background: linear-gradient(180deg,
    rgba(26, 42, 71, 0.06) 0%,
    rgba(26, 42, 71, 0.16) 100%);
  border-top: 1px solid rgba(26, 42, 71, 0.25);
}

.ono-prop-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  max-width: calc(100% - 28px);
  overflow-wrap: anywhere;
  background: var(--color-navy);
  color: var(--color-linen);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 11px;
  z-index: 2;
}

.ono-prop-status {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 100px;
  z-index: 2;
}

.ono-prop-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ono-prop-status.is-rented {
  background: var(--color-accent);
  color: var(--color-white);
}
.ono-prop-status.is-rented::before { background: rgba(255, 255, 255, 0.85); }

.ono-prop-status.is-ready {
  background: rgba(249, 247, 242, 0.92);
  color: var(--color-navy);
}
.ono-prop-status.is-ready::before { background: var(--color-accent); }

.ono-prop-status.is-coming {
  background: rgba(26, 42, 71, 0.08);
  color: var(--color-navy);
  border: 1px solid rgba(26, 42, 71, 0.45);
}
.ono-prop-status.is-coming::before {
  background: var(--color-navy);
  animation: ono-pulse 2.4s ease-in-out infinite;
}

@keyframes ono-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.ono-prop-fav {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s ease;
}

.ono-prop-fav:hover { background: var(--color-linen); }

.ono-prop-fav svg {
  width: 15px;
  height: 15px;
  stroke: var(--color-navy);
}

.ono-prop-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ono-prop-specs {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-navy);
  letter-spacing: 0.02em;
}

.ono-prop-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-top: 2px;
}

.ono-prop-pie {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 4px;
}

.ono-prop-pie strong { font-weight: 700; }

.ono-prop-metrics {
  display: flex;
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid var(--color-divider-soft);
  padding-top: 12px;
}

.ono-prop-metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ono-prop-metric + .ono-prop-metric {
  border-left: 1px solid var(--color-divider-soft);
  padding-left: 14px;
}

.ono-prop-metric-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.ono-prop-metric-value {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
}

.ono-prop-cta {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(26, 42, 71, 0.08);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.ono-prop-cta:hover { gap: 10px; }

.ono-prop-cta::after {
  content: '';
  position: absolute;
  inset: 0;
}

/* ============================================================
   HOME / CATALOG FOOTER
   ============================================================ */
.ono-footer {
  background: var(--color-navy);
  padding: 64px 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ono-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.ono-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ono-footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ono-footer-logo {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--color-white);
}

.ono-footer-logo-divider {
  width: 0.5px;
  height: 16px;
  background: rgba(255, 255, 255, 0.3);
}

.ono-footer-logo-prop {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.ono-footer-tagline {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(249, 247, 242, 0.5);
  line-height: 1.6;
  max-width: 280px;
  font-weight: 400;
}

.ono-footer-links-title,
.ono-footer-social-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 20px;
}

.ono-footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
}

.ono-footer-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: rgba(249, 247, 242, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ono-footer-link:hover { color: var(--color-white); }

.ono-footer-social-icons {
  display: flex;
  gap: 12px;
}

.ono-footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.ono-footer-social-icon:hover { background: rgba(255, 255, 255, 0.15); }

.ono-footer-social-icon svg {
  width: 15px;
  height: 15px;
  fill: rgba(249, 247, 242, 0.65);
}

.ono-footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ono-footer-copy {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(249, 247, 242, 0.35);
  font-weight: 400;
}

/* ============================================================
   FICHA NAV + WRAP
   (used by propiedad-*.html: fichas and templates)
   ============================================================ */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.nav { background: var(--color-navy); }
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-row { display: flex; align-items: center; gap: 12px; }
.logo {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 22px;
  color: var(--color-white);
  letter-spacing: 0.02em;
}
.logo-divider { width: 0.5px; height: 16px; background: rgba(255, 255, 255, 0.35); }
.logo-prop {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
}
.nav-cta {
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 10px 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* ============================================================
   FICHA BUTTONS (sticky panel + final CTA)
   ============================================================ */
.panel-btn {
  width: 100%;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: opacity 0.2s;
  text-decoration: none;
  box-sizing: border-box;
}
.panel-btn:hover { opacity: 0.92; }
.panel-btn.ghost {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-navy);
  margin-top: 10px;
}

.cta-btn {
  background: #fff;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 26px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* ============================================================
   FICHA FOOTER
   ============================================================ */
.footer { background: var(--color-navy); padding: 36px 32px; }
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-tag {
  font-family: var(--font-editorial);
  font-style: italic;
  color: rgba(249, 247, 242, 0.7);
  font-size: 16px;
}
.footer-copy { font-size: 12px; color: rgba(249, 247, 242, 0.4); }

/* ============================================================
   RESPONSIVE — shared chunks only
   Page-specific responsive rules stay inline per file.
   ============================================================ */
@media (max-width: 900px) {
  .ono-nav { padding: 18px 20px; }
  .ono-nav-links { gap: 12px; }
  .ono-nav-link { font-size: 12px; }
  .ono-nav-cta { padding: 9px 14px; font-size: 13px; }

  .ono-footer { padding: 48px 24px 0; }
  .ono-footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
  }
}

/* ============================================================
   GALLERY TRIGGER BUTTONS
   .gallery-main / .gallery-thumb are rendered as <button> (ficha +
   template detail pages) so the lightbox is keyboard-accessible.
   Neutralize native button chrome so they match the original divs.
   The .gallery-* geometry (aspect-ratio, background, flex centering)
   lives in each page's inline <style>.
   ============================================================ */
button.gallery-main,
button.gallery-thumb {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: zoom-in;
}

@media (max-width: 600px) {
  .ono-btn { justify-content: center; }

  .ono-nav-toggle { display: flex; }
  .ono-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    background: var(--color-navy);
    padding: 18px 20px 22px;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.12);
    z-index: 50;
  }
  .ono-nav-links.is-open { display: flex; }
  .ono-nav-link { font-size: 15px; }
  .ono-nav-cta { justify-content: center; }
}
