/* ==========================================================================
   NOVA INMOBILIARIA — página elegante naranja + negro
   Hero con video + parallax lateral + secciones premium
   ========================================================================== */

:root {
  --negro: #0a0a0a;
  --negro2: #141210;
  --naranja: #f97316;
  --naranja-claro: #fb923c;
  --naranja-oscuro: #ea580c;
  --crema: #f5efe6;
  --muted: rgba(245, 239, 230, 0.72);
  --font-head: 'Space Grotesk', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body { scroll-behavior: auto; }

body {
  background: var(--negro);
  color: var(--crema);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ===================== PRELOADER ===================== */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--negro);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .7s var(--ease), visibility .7s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-ring {
  width: 74px; height: 74px; margin: 0 auto 20px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--naranja);
  border-right-color: rgba(249, 115, 22, .35);
  animation: spin 0.9s linear infinite;
  box-shadow: 0 0 26px rgba(249, 115, 22, .35);
}
@keyframes spin { to { transform: rotate(360deg); } }
.preloader-text {
  font-family: var(--font-head);
  font-size: 1.2rem; letter-spacing: .08em; color: var(--crema);
}
.preloader-text em { font-style: normal; color: var(--naranja); }

/* ===================== HEADER ===================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 20px 0;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
.header.scrolled {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .45);
}
.header-inner {
  max-width: 1220px; margin: 0 auto; padding: 0 5vw;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 700; letter-spacing: .02em;
  display: flex; align-items: baseline; gap: 7px;
}
.logo em { font-style: normal; color: var(--naranja); font-size: 1.5rem; letter-spacing: .02em; }
.nav { display: flex; gap: 30px; }
.nav-link {
  font-size: .95rem; color: rgba(245, 239, 230, .85);
  position: relative; transition: color .25s ease; padding: 4px 0;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -3px;
  width: 0; height: 2px; background: var(--naranja);
  transition: width .3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--naranja); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.btn {
  display: inline-block;
  font-weight: 600; font-size: .95rem;
  padding: 13px 30px; border-radius: 4px;
  transition: transform .3s var(--ease), box-shadow .3s ease, background .3s ease, color .3s ease, border-color .3s ease;
  border: 1px solid transparent;
}
.btn-header { background: transparent; border-color: rgba(249, 115, 22, .55); color: var(--naranja); padding: 10px 22px; font-size: .88rem; }
.btn-header:hover { background: var(--naranja); color: #0a0a0a; box-shadow: 0 0 26px rgba(249, 115, 22, .5); transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--naranja), var(--naranja-oscuro));
  color: #1a0e02;
  box-shadow: 0 10px 30px rgba(249, 115, 22, .35);
}
.btn-gold:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 22px rgba(249, 115, 22, .65), 0 0 48px rgba(249, 115, 22, .4), 0 10px 30px rgba(249, 115, 22, .35);
}
.btn-ghost {
  background: transparent; border-color: rgba(245, 239, 230, .4); color: var(--crema);
}
.btn-ghost:hover { border-color: var(--naranja); color: var(--naranja); transform: translateY(-3px); }
.menu-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: 6px; }
.menu-toggle span { width: 26px; height: 2px; background: var(--crema); transition: transform .3s ease, opacity .3s ease; }

/* ===================== HERO CON VIDEO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, .62) 0%, rgba(10, 10, 10, .45) 45%, rgba(10, 10, 10, .92) 100%),
    radial-gradient(120% 90% at 50% 0%, transparent 40%, rgba(10, 10, 10, .7) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 900px; padding: 0 6vw;
}
.hero-kicker {
  display: inline-block;
  font-size: .8rem; letter-spacing: .42em; text-transform: uppercase;
  color: var(--naranja);
  border: 1px solid rgba(249, 115, 22, .5);
  padding: 9px 22px; border-radius: 999px;
  margin-bottom: 30px;
  background: rgba(249, 115, 22, .07);
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.01em;
  margin-bottom: 26px;
}
.hero-title span { color: var(--naranja); }
.hero-text {
  max-width: 620px; margin: 0 auto 42px;
  font-size: 1.12rem; color: var(--muted); line-height: 1.75;
}
.hero-actions { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 2; width: 26px; height: 44px;
  border: 2px solid rgba(245, 239, 230, .5); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 8px;
}
.hero-scroll span {
  width: 3px; height: 9px; border-radius: 3px; background: var(--naranja);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ===================== SECCIONES GENÉRICAS ===================== */
section { padding: 110px 6vw; }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700; text-align: center; margin-bottom: 18px;
}
.section-title span { color: var(--naranja); }
.section-sub {
  text-align: center; color: var(--muted);
  max-width: 620px; margin: 0 auto 56px; font-size: 1.05rem;
}

/* ===================== PARALLAX LATERAL (experiencia) ===================== */
.experiencia { background: linear-gradient(180deg, var(--negro), var(--negro2)); }
.exp-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1240px; margin: 0 auto;
  perspective: 1200px;
}
.exp-item {
  position: relative;
  height: 420px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  border: 1px solid rgba(249, 115, 22, .18);
  transition: transform .5s var(--ease);
}
.exp-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.exp-item:hover img { transform: scale(1.08); }
.exp-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 10, .75));
  pointer-events: none;
}

/* ===================== PROPIEDADES ===================== */
.propiedades { background: var(--negro); }
.props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px; max-width: 1240px; margin: 0 auto;
}
.prop-card {
  background: linear-gradient(170deg, #161311, #0c0b0a);
  border: 1px solid rgba(249, 115, 22, .16);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s ease, border-color .45s ease;
}
.prop-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6), 0 0 30px rgba(249, 115, 22, .18);
  border-color: rgba(249, 115, 22, .5);
}
.prop-img { position: relative; height: 220px; overflow: hidden; }
.prop-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.prop-card:hover .prop-img img { transform: scale(1.09); }
.prop-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--naranja); color: #1a0e02;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  padding: 6px 14px; border-radius: 999px;
  text-transform: uppercase;
}
.prop-body { padding: 24px; }
.prop-body h3 { font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 8px; }
.prop-detail { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.prop-price {
  font-family: var(--font-head);
  font-size: 1.45rem; color: var(--naranja); font-weight: 700;
  margin-bottom: 18px;
}
.btn-card { padding: 10px 24px; font-size: .88rem; border: 1px solid rgba(249, 115, 22, .5); color: var(--naranja); background: transparent; }
.btn-card:hover { background: var(--naranja); color: #1a0e02; box-shadow: 0 0 24px rgba(249, 115, 22, .45); }

/* ===================== SERVICIOS ===================== */
.servicios { background: linear-gradient(180deg, var(--negro2), var(--negro)); }
.serv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px; max-width: 1180px; margin: 0 auto;
}
.serv-card {
  text-align: center;
  padding: 44px 26px;
  background: rgba(249, 115, 22, .05);
  border: 1px solid rgba(249, 115, 22, .18);
  border-radius: 16px;
  transition: transform .4s var(--ease), background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.serv-card:hover {
  transform: translateY(-6px);
  background: rgba(249, 115, 22, .1);
  border-color: rgba(249, 115, 22, .55);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .5), 0 0 26px rgba(249, 115, 22, .15);
}
.serv-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--naranja), var(--naranja-oscuro));
  color: #1a0e02; font-size: 1.6rem;
  margin-bottom: 20px;
  box-shadow: 0 10px 26px rgba(249, 115, 22, .4);
}
.serv-card h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 10px; }
.serv-card p { color: var(--muted); font-size: .94rem; }

/* ===================== TESTIMONIOS ===================== */
.testimonios { background: var(--negro); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px; max-width: 1180px; margin: 0 auto;
}
.testi-card {
  background: linear-gradient(170deg, #161311, #0c0b0a);
  border: 1px solid rgba(249, 115, 22, .14);
  border-radius: 16px; padding: 30px;
  transition: border-color .35s ease, transform .35s var(--ease);
}
.testi-card:hover { border-color: rgba(249, 115, 22, .45); transform: translateY(-4px); }
.testi-stars { color: var(--naranja); letter-spacing: 3px; margin-bottom: 14px; }
.testi-card p { color: var(--muted); font-size: .97rem; font-style: italic; margin-bottom: 20px; }
.testi-persona { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--naranja), var(--naranja-oscuro));
  color: #1a0e02; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.testi-persona strong { display: block; font-size: .95rem; }
.testi-persona span { color: var(--muted); font-size: .82rem; }

/* ===================== CONTACTO ===================== */
.contacto { background: linear-gradient(180deg, var(--negro2), var(--negro)); }
.contacto-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 44px;
  max-width: 1100px; margin: 0 auto;
}
.contacto-form {
  background: linear-gradient(170deg, #161311, #0c0b0a);
  border: 1px solid rgba(249, 115, 22, .18);
  border-radius: 16px; padding: 34px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block; font-size: .82rem; letter-spacing: .08em;
  color: var(--naranja); text-transform: uppercase;
  margin-bottom: 7px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(245, 239, 230, .18);
  border-radius: 8px;
  color: var(--crema);
  padding: 12px 14px;
  font-family: inherit; font-size: .95rem;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--naranja);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .15);
}
.form-field textarea { resize: vertical; }
.btn-submit { width: 100%; margin-top: 6px; }
.contacto-info {
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  padding: 10px;
}
.contacto-info h3 { font-family: var(--font-head); font-size: 1.6rem; margin-bottom: 6px; }
.contacto-info p { color: var(--muted); font-size: 1rem; }

/* ===================== FOOTER ===================== */
.footer {
  border-top: 1px solid rgba(249, 115, 22, .18);
  background: rgba(6, 6, 6, .8);
  padding: 60px 6vw 56px;
  text-align: left;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  max-width: 1180px; margin: 0 auto;
  padding-bottom: 44px;
}
.footer-brand p { color: var(--muted); margin-top: 14px; max-width: 320px; line-height: 1.7; }
.footer-col h4 {
  font-family: var(--font-head); font-size: 1rem; margin-bottom: 14px; color: var(--crema);
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--muted); width: fit-content; transition: color .25s ease; }
.footer-col a:hover { color: var(--naranja); }
.footer-bottom {
  border-top: 1px solid rgba(245, 239, 230, .1);
  max-width: 1240px; margin: 0 auto; padding: 22px 0 34px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  font-size: .85rem; color: rgba(245, 239, 230, .5);
}
/* Credito de diseno: Estilo Grafico (mismo patron que Barber House) */
.footer-diseno { margin: 0; font-size: .85rem; color: rgba(245,239,230,.72); opacity: 1; }
.footer-diseno a {
  color: var(--naranja-claro); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .25s ease;
}
.footer-diseno a:hover { color: var(--naranja); }

/* ===================== REVEAL ===================== */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .exp-grid { grid-template-columns: repeat(2, 1fr); }
  .exp-item { height: 300px; }
  .contacto-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-col a { margin: 0 auto; }
  .footer-brand p { margin: 14px auto 0; }
}
@media (max-width: 700px) {
  .nav {
    position: fixed; top: 0; right: -100%;
    height: 100vh; width: 78%; max-width: 320px;
    background: rgba(10, 10, 10, .97);
    flex-direction: column; justify-content: center; align-items: center; gap: 26px;
    transition: right .45s var(--ease);
    z-index: 950;
  }
  .nav.open { right: 0; }
  .nav-link { font-size: 1.15rem; }
  .menu-toggle { display: flex; z-index: 960; }
  .btn-header { display: none; }
  .exp-grid { grid-template-columns: 1fr; }
  .exp-item { height: 260px; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 80px 5vw; }
}
