/* ═══════════════════════════════════════════
   Inversiones Karina Ravelo — Estilos globales
   ═══════════════════════════════════════════ */

/* ═══ TOKENS ═══ */
:root {
  --gold:    #C09A5C;
  --gold-lt: #D4B47A;
  --gold-dk: #9A7A40;
  --wine:    #8C2F2F;
  --wine-lt: #a83838;
  --cream:   #F5F0E8;
  --parch:   #EDE6D8;
  --ink:     #141210;
  --ink-mid: #3a3632;
  --muted:   #7A746E;
  --ease:     cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(0,0,.2,1);
  --sh-sm: 0 1px 3px rgba(0,0,0,.08);
  --sh-md: 0 4px 20px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --sh-lg: 0 12px 40px rgba(0,0,0,.16), 0 4px 12px rgba(0,0,0,.10);
  --r: 14px;
}

/* ═══ ACCESIBILIDAD — Skip link ═══ */
.skip-link {
  position: absolute;
  top: -44px; left: 16px;
  z-index: 9999;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 20px;
  border-radius: 0 0 8px 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: .88rem;
  transition: top .2s;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { text-decoration: none; color: inherit; }

/* ═══ NAVBAR ═══ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px 52px;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
  background: linear-gradient(to bottom, rgba(10,4,4,.56) 0%, rgba(10,4,4,.22) 65%, transparent 100%);
}
#navbar.scrolled {
  background: rgba(247,243,238,.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 14px 52px;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .9rem; font-weight: 600; letter-spacing: .02em;
  color: rgba(255,255,255,.95);
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
  transition: color .3s, text-shadow .3s;
}
.nav-logo-mark {
  width: 30px; height: 30px;
  background: var(--gold);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-logo-mark svg { width: 15px; height: 15px; fill: white; }
#navbar.scrolled .nav-logo { color: var(--ink); text-shadow: none; }

.nav-links {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; list-style: none;
}
.nav-links a {
  font-size: .8rem; font-weight: 500; letter-spacing: .06em;
  color: rgba(255,255,255,.95);
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
  text-transform: uppercase;
  position: relative;
  transition: color .3s, text-shadow .3s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -3px;
  width: 0; height: 1.5px; background: var(--gold);
  border-radius: 2px; transition: width .3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
#navbar.scrolled .nav-links a { color: var(--ink-mid); text-shadow: none; }
#navbar.scrolled .nav-links a:hover { color: var(--gold-dk); }

.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.nav-cta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .76rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink); background: var(--gold);
  padding: 9px 20px; border-radius: 50px;
  transition: background .25s, transform .2s;
}
.nav-cta:hover { background: var(--gold-lt); transform: translateY(-1px); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 1.5px; border-radius: 2px;
  background: rgba(255,255,255,.95);
  transition: background .3s, transform .3s, opacity .3s;
}
#navbar.scrolled .nav-toggle span { background: var(--ink); }

/* ═══ HERO ═══ */
#hero {
  position: relative;
  width: 100%; height: 100svh; min-height: 600px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

.hero-layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s var(--ease);
}
.hero-layer.on { opacity: 1; }

.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1; opacity: 1;
  transition: opacity 1s var(--ease);
}
.hero-video.fade-out { opacity: 0; pointer-events: none; }

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right,  rgba(5,3,2,.86) 0%, rgba(5,3,2,.52) 42%, rgba(5,3,2,.08) 72%, transparent 100%),
    linear-gradient(to top,    rgba(5,3,2,.80) 0%, rgba(5,3,2,.18) 28%, transparent 52%),
    linear-gradient(to bottom, rgba(5,3,2,.50) 0%, transparent 18%);
}

.hero-ambient {
  position: absolute; bottom: 14%; left: -1%;
  z-index: 2; pointer-events: none; overflow: hidden;
}
.hero-ambient-line {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(5rem, 14vw, 15rem);
  font-weight: 800; letter-spacing: -.04em; line-height: .88;
  color: rgba(255,255,255,.055);
  mix-blend-mode: overlay;
  white-space: nowrap;
  transform: translateY(18px); opacity: 0;
  transition: transform .75s var(--ease-out), opacity .75s var(--ease-out);
}
.hero-ambient-line.on { transform: translateY(0); opacity: 1; }

.hero-accent-line {
  position: absolute; left: 6.5%;
  top: 50%; transform: translateY(-50%);
  width: 2px; height: clamp(160px, 22vh, 280px);
  background: linear-gradient(to bottom, transparent 0%, var(--gold) 30%, var(--gold) 70%, transparent 100%);
  z-index: 3; opacity: 0;
  animation: lineReveal 1.2s var(--ease-out) .4s forwards;
}
@keyframes lineReveal {
  from { opacity: 0; transform: translateY(-50%) scaleY(.3); }
  to   { opacity: 1; transform: translateY(-50%) scaleY(1); }
}

.hero-side-label {
  position: absolute; right: 3.5%; top: 50%;
  transform: translateY(-50%) rotate(90deg);
  z-index: 3; pointer-events: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .62rem; font-weight: 600; letter-spacing: .5em;
  text-transform: uppercase; color: rgba(255,255,255,.48);
  white-space: nowrap; transform-origin: center center;
}

.hero-topbar {
  position: absolute; top: 88px; left: 0; right: 0; z-index: 3;
  padding: 0 8% 0 calc(6.5% + 28px);
  display: flex; align-items: center; justify-content: space-between;
}
.hero-topbar-loc {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .72rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,.82);
  text-shadow: 0 1px 10px rgba(0,0,0,.6);
}
.hero-topbar-count {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.72);
  display: flex; align-items: center; gap: 8px;
  text-shadow: 0 1px 10px rgba(0,0,0,.6);
}
.hero-topbar-count strong {
  font-size: 1.15rem; font-weight: 700; color: var(--gold); letter-spacing: 0;
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
}

.hero-content {
  position: absolute;
  left: calc(6.5% + 28px); top: 50%; transform: translateY(-50%);
  z-index: 3; max-width: min(600px, 54vw);
  display: flex; flex-direction: column; gap: 0;
}
.hero-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(.72rem, 1.2vw, .88rem);
  font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255,255,255,.78); text-shadow: 0 1px 10px rgba(0,0,0,.55);
  margin-bottom: 16px;
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  display: flex; flex-direction: column; gap: 0; margin-bottom: 24px;
}
.ht-thin {
  font-size: clamp(1.1rem, 2.6vw, 1.9rem);
  font-weight: 400; letter-spacing: .06em;
  color: rgba(255,255,255,.82); text-shadow: 0 1px 14px rgba(0,0,0,.55); line-height: 1.3;
}
.ht-bold {
  font-size: clamp(3.4rem, 7.5vw, 8rem);
  font-weight: 800; letter-spacing: -.03em;
  color: white; line-height: .9; text-shadow: 0 4px 48px rgba(0,0,0,.55);
}
.ht-accent {
  font-size: clamp(1.5rem, 3.4vw, 3.5rem);
  font-weight: 300; font-style: italic; letter-spacing: .04em;
  color: var(--gold); line-height: 1.3;
}
.hero-sub {
  font-size: clamp(.88rem, 1.5vw, 1.05rem);
  font-weight: 400; line-height: 1.75;
  color: rgba(255,255,255,.82); text-shadow: 0 1px 12px rgba(0,0,0,.5);
  max-width: 400px; margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.btn-primary {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: var(--gold);
  padding: 13px 28px; border-radius: 4px;
  box-shadow: 0 4px 20px rgba(192,154,92,.4);
  transition: background .25s, transform .2s, box-shadow .25s;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--gold-lt); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(192,154,92,.5);
}
.btn-ghost {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.8); background: transparent;
  border: 1px solid rgba(255,255,255,.3); padding: 13px 24px; border-radius: 4px;
  transition: background .25s, border-color .25s, color .25s, transform .2s;
  display: inline-block;
}
.btn-ghost:hover {
  background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5);
  color: white; transform: translateY(-2px);
}

.hero-bottombar {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 4;
  background: rgba(5,3,2,.7);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; padding: 0 8%; height: 72px; gap: 0;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.hero-bottombar.visible { opacity: 1; pointer-events: all; transform: translateY(0); }

.hb-item {
  display: flex; flex-direction: column; gap: 3px;
  padding: 0 32px 0 0; border-right: 1px solid rgba(255,255,255,.1);
  margin-right: 32px; flex-shrink: 0;
}
.hb-item:first-child { padding-left: 0; }
.hb-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .6rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
}
.hb-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .88rem; font-weight: 600;
  color: rgba(255,255,255,.95); text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.hb-spacer { flex: 1; }

.dn-toggle {
  display: flex; gap: 3px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px; padding: 4px;
}
.dn-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.4); padding: 7px 16px; border-radius: 4px;
  transition: background .3s var(--ease), color .3s;
}
.dn-btn.active { background: var(--gold); color: var(--ink); }
.dn-btn:hover:not(.active) { color: rgba(255,255,255,.75); }

.hero-scroll {
  position: absolute; bottom: 88px; right: 5%; z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.4));
  animation: scrollAnim 2s ease-in-out infinite;
}
.hero-scroll-lbl {
  font-size: .6rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,.6);
  writing-mode: vertical-rl; transform: rotate(180deg);
}
@keyframes scrollAnim {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(.5); opacity: .35; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}

/* ═══ CATALOG ═══ */
#catalogo { padding: 96px 0 80px; background: var(--cream); }

.section-header { text-align: center; padding: 0 24px; margin-bottom: 52px; }
.section-eyebrow {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .7rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-dk); margin-bottom: 12px;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; color: var(--ink); line-height: 1.15;
  letter-spacing: -.01em; margin-bottom: 14px;
}
.section-sub {
  font-size: .96rem; color: var(--muted);
  max-width: 460px; margin: 0 auto; line-height: 1.72;
}

.filter-wrap {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 48px; padding: 0 24px; flex-wrap: wrap;
}
.filter-tab {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border: 1.5px solid #d6d0c8;
  padding: 9px 22px; border-radius: 50px;
  transition: all .25s var(--ease);
}
.filter-tab:hover { border-color: var(--gold-dk); color: var(--gold-dk); }
.filter-tab.active { background: var(--ink); border-color: var(--ink); color: white; }

.prop-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; max-width: 1300px; margin: 0 auto; padding: 0 40px;
}

.prop-card {
  background: white; border-radius: var(--r);
  overflow: hidden; box-shadow: var(--sh-md);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.prop-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }

.card-gallery {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: #ede8e1; flex-shrink: 0;
}
.card-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; cursor: zoom-in;
  transition: opacity .42s var(--ease);
}
.card-img.on { opacity: 1; }

.card-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 30px; height: 30px;
  background: rgba(10,4,4,.48); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  color: white; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s, background .2s;
}
.card-gallery:hover .card-arrow { opacity: 1; }
.card-arrow:hover { background: rgba(10,4,4,.72); }
.card-arrow.prev { left: 10px; }
.card-arrow.next { right: 10px; }

.card-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 2;
}
.card-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.4); transition: background .25s, transform .25s;
}
.card-dot.on { background: white; transform: scale(1.4); }

.card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 50px;
}
.badge-venta    { background: var(--wine); color: white; }
.badge-alquiler { background: #1a4f3a; color: white; }
.badge-ocupado  { background: #555; color: white; }

.card-count {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .62rem; font-weight: 600;
  color: rgba(255,255,255,.8); background: rgba(10,4,4,.52);
  backdrop-filter: blur(8px); padding: 3px 9px; border-radius: 50px;
}

.card-body {
  padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .98rem; font-weight: 600; color: var(--ink); line-height: 1.3;
}
.card-loc { display: flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--muted); }
.card-loc svg { width: 11px; height: 11px; fill: var(--muted); flex-shrink: 0; }

.card-feats { display: flex; flex-wrap: wrap; gap: 5px; }
.card-feat {
  font-size: .72rem; font-weight: 500; color: var(--ink-mid);
  background: #f0ebe3; padding: 4px 10px; border-radius: 50px;
}

.card-footer {
  margin-top: auto; padding-top: 14px; border-top: 1px solid #ede8e1;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem; font-weight: 700; color: var(--wine); line-height: 1.2;
}
.card-price small {
  display: block; font-family: 'Inter', sans-serif;
  font-size: .68rem; font-weight: 400; color: var(--muted); margin-top: 1px;
}
.btn-wa {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: white; background: #25D366;
  padding: 9px 16px; border-radius: 50px;
  box-shadow: 0 3px 12px rgba(37,211,102,.3);
  transition: background .25s, transform .2s, box-shadow .25s;
  white-space: nowrap; flex-shrink: 0;
}
.btn-wa:hover {
  background: #1eb856; transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(37,211,102,.4);
}
.btn-wa svg { width: 14px; height: 14px; fill: white; flex-shrink: 0; }
.tag-ocupado {
  font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #999;
}

/* ═══ LIGHTBOX ═══ */
#lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(6,3,3,.92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
#lightbox.on { opacity: 1; pointer-events: all; }
#lightbox .lb-img-wrap {
  position: relative; max-width: 92vw; max-height: 88vh;
  display: flex; align-items: center; justify-content: center;
}
#lightbox .lb-img {
  max-width: 92vw; max-height: 86vh; object-fit: contain;
  border-radius: 10px; box-shadow: 0 24px 80px rgba(0,0,0,.6);
  transform: scale(.96); opacity: 0;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
#lightbox.on .lb-img { transform: scale(1); opacity: 1; }
.lb-close {
  position: fixed; top: 20px; right: 24px;
  width: 40px; height: 40px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  color: white; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s; cursor: pointer;
}
.lb-close:hover { background: rgba(255,255,255,.22); transform: scale(1.1); }
.lb-arrow {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18); border-radius: 50%;
  color: white; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s; cursor: pointer; user-select: none;
}
.lb-arrow:hover { background: rgba(255,255,255,.22); }
.lb-arrow.lb-prev { left: 16px; }
.lb-arrow.lb-next { right: 16px; }
.lb-arrow:hover.lb-prev { transform: translateY(-50%) translateX(-2px); }
.lb-arrow:hover.lb-next { transform: translateY(-50%) translateX(2px); }
.lb-counter {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .76rem; font-weight: 500; letter-spacing: .1em; color: rgba(255,255,255,.5);
}

/* ═══ CONTACTO ═══ */
#contacto { padding: 96px 0 80px; background: var(--parch); }

.contact-wrap { max-width: 680px; margin: 0 auto; padding: 0 24px; }

.contact-form {
  background: white; border-radius: 20px;
  padding: 48px; box-shadow: var(--sh-lg); margin-top: 0;
}
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }

label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-mid);
}
.required-star { color: var(--gold-dk); }

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  font-family: 'Inter', sans-serif;
  font-size: .92rem; color: var(--ink);
  background: var(--cream);
  border: 1.5px solid #ddd8d0;
  border-radius: 8px; padding: 12px 14px;
  transition: border-color .25s, box-shadow .25s; outline: none; width: 100%;
  -webkit-appearance: none; appearance: none;
}
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(192,154,92,.15);
}
input:invalid:not(:placeholder-shown) { border-color: #c0392b; }
select:invalid                         { border-color: #ddd8d0; }
textarea { resize: vertical; min-height: 110px; }
select   { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237A746E' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.field-error {
  font-size: .76rem; color: #c0392b; font-weight: 500; display: none;
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: #c0392b; }
.form-group.has-error .field-error { display: block; }

.btn-submit {
  width: 100%; margin-top: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .88rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: var(--gold); border: none;
  padding: 16px 32px; border-radius: 8px; cursor: pointer;
  box-shadow: 0 4px 20px rgba(192,154,92,.35);
  transition: background .25s, transform .2s, box-shadow .25s, opacity .2s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-submit:hover:not(:disabled) {
  background: var(--gold-lt); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(192,154,92,.45);
}
.btn-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.btn-submit .spinner {
  width: 16px; height: 16px; border: 2px solid rgba(20,18,16,.3);
  border-top-color: var(--ink); border-radius: 50%; display: none;
  animation: spin .7s linear infinite;
}
.btn-submit.loading .spinner      { display: block; }
.btn-submit.loading .btn-text-val { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-feedback {
  margin-top: 16px; padding: 14px 18px; border-radius: 8px;
  font-size: .88rem; font-weight: 500; display: none;
}
.form-feedback.success {
  background: #e8f5e9; border: 1px solid #a5d6a7; color: #2e7d32; display: block;
}
.form-feedback.error {
  background: #fce4e4; border: 1px solid #e57373; color: #c62828; display: block;
}

/* ═══ FOOTER ═══ */
#site-footer {
  background: var(--ink); color: rgba(255,255,255,.6); padding: 60px 40px 36px;
}
.footer-inner {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 52px;
}
.footer-logo-row {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .95rem; font-weight: 600; color: white; margin-bottom: 14px;
}
.footer-desc { font-size: .88rem; line-height: 1.75; max-width: 280px; }
.footer-col-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .68rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 18px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: rgba(255,255,255,.88); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a { font-size: .88rem; transition: color .2s; }
.footer-contact a:hover { color: rgba(255,255,255,.88); }
.footer-bottom {
  max-width: 1300px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  font-size: .78rem; color: rgba(255,255,255,.28);
}

/* ═══ SCROLL REVEAL ═══ */
.rv {
  opacity: 0; transform: translateY(26px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
.rv.on { opacity: 1; transform: none; }

/* ═══ MOBILE NAV ═══ */
.nav-links.open {
  display: flex !important; flex-direction: column;
  position: fixed; inset: 0; z-index: 998;
  background: rgba(10,4,4,.97); backdrop-filter: blur(24px);
  align-items: center; justify-content: center; gap: 32px;
}
.nav-links.open a { font-size: 1.5rem; color: white; text-shadow: none; letter-spacing: .04em; }
.nav-links.open a::after { bottom: -6px; height: 2px; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1100px) {
  .prop-grid { grid-template-columns: repeat(2, 1fr); padding: 0 28px; }
}
@media (max-width: 900px) {
  #navbar { padding: 20px 28px; grid-template-columns: 1fr auto; }
  #navbar.scrolled { padding: 14px 28px; }
  .nav-links { display: none; }
  .nav-right .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
}
@media (max-width: 640px) {
  .prop-grid    { grid-template-columns: 1fr; padding: 0 16px; gap: 20px; }
  #catalogo, #contacto { padding: 72px 0 60px; }
  .hero-scroll  { display: none; }
  .hero-topbar  { display: none; }
  .hero-side-label { display: none; }
  .hero-accent-line { left: 5%; }
  .hero-content { left: calc(5% + 20px); max-width: 90vw; }
  .ht-bold      { font-size: clamp(2.8rem, 12vw, 5rem); }
  .hero-bottombar {
    padding: 0 5%; height: auto; flex-wrap: wrap; gap: 12px;
    padding-top: 14px; padding-bottom: 14px;
  }
  .hb-item      { border-right: none; margin-right: 0; padding-right: 0; }
  .hb-item:not(:last-of-type) { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  #site-footer  { padding: 48px 24px 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  #navbar { padding: 18px 20px; }
  #navbar.scrolled { padding: 12px 20px; }
  .contact-form { padding: 28px 20px; }
}
@media (max-width: 400px) {
  .ht-bold  { font-size: clamp(2.4rem, 14vw, 4rem); }
  .prop-grid { padding: 0 12px; }
}
