/* ============================================
   Mendoza Hosting — Estilos compartidos
   Estilo: Cinematográfico oscuro
   ============================================ */

:root {
  --charcoal: #0E0F12;
  --charcoal-2: #15171C;
  --charcoal-3: #1A1D24;
  --cream: #FAF8F4;
  --cream-soft: rgba(250, 248, 244, 0.7);
  --gold: #B89668;
  --gold-soft: #9C7B4A;
  --gold-dim: rgba(184, 150, 104, 0.4);
}

* { box-sizing: border-box; }

html, body {
  background: var(--charcoal);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  margin: 0;
  padding: 0;
}

body.overflow-x-hidden { overflow-x: hidden; }

.font-serif {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.text-gold { color: var(--gold); }
.text-gold-soft { color: var(--gold-soft); }
.bg-charcoal { background: var(--charcoal); }
.bg-charcoal-2 { background: var(--charcoal-2); }
.bg-charcoal-3 { background: var(--charcoal-3); }
.border-gold { border-color: var(--gold); }
.bg-gold { background: var(--gold); }
.bg-cream { background: var(--cream); }
.text-cream { color: var(--cream); }
.text-charcoal { color: var(--charcoal); }

/* ============ CURSOR DEL SISTEMA ============ */
/* (Quité el cursor custom con efecto retardado — usamos el del SO normal) */
.cursor-dot, .cursor-ring { display: none !important; }
body { cursor: auto; }
a, button, .card, .gallery-item, .filter-chip, .color-swatch { cursor: pointer; }
input, textarea, select { cursor: text; }

/* ============ NAVEGACIÓN ============ */
nav.scrolled {
  background: rgba(14, 15, 18, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(184, 150, 104, 0.12);
}

/* ============ HERO ============ */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 50%, rgba(184, 150, 104, 0.18), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(184, 150, 104, 0.08), transparent 60%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3%, 2%) scale(1.08); }
}

.grain { position: relative; }
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

.hero-title {
  font-size: clamp(3.2rem, 9vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.section-title {
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

/* ============ TEXTO VERTICAL ============ */
.vtext {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.4em;
  font-size: 0.7rem;
}

/* ============ REVEAL ON SCROLL ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(.2, .7, .2, 1),
              transform 1s cubic-bezier(.2, .7, .2, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d-1 { transition-delay: 0.1s; }
.reveal-d-2 { transition-delay: 0.2s; }
.reveal-d-3 { transition-delay: 0.3s; }
.reveal-d-4 { transition-delay: 0.4s; }

/* ============ MARQUEE ============ */
.marquee {
  display: flex;
  gap: 4rem;
  animation: marq 38s linear infinite;
  width: max-content;
}
@keyframes marq {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ PROPERTY CARDS ============ */
.card {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
}
.card .card-img-wrap {
  overflow: hidden;
  width: 100%;
  height: 100%;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.4s cubic-bezier(.2, .7, .2, 1), filter .6s;
}
.card:hover img {
  transform: scale(1.08);
  filter: brightness(0.7);
}
.card .meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.75rem;
  transform: translateY(20px);
  transition: transform .6s;
  z-index: 2;
}
.card:hover .meta { transform: none; }
.card .arrow {
  opacity: 0;
  transition: opacity .6s, transform .6s;
  transform: translateX(-8px);
}
.card:hover .arrow { opacity: 1; transform: none; }
.card .gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--charcoal) 0%, rgba(14, 15, 18, 0.3) 40%, transparent 100%);
  z-index: 1;
}

/* ============ BOTONES ============ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--gold);
  color: var(--charcoal);
  padding: 1rem 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .3s;
  border: none;
}
.btn-primary:hover { background: var(--cream); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(250, 248, 244, 0.3);
  color: var(--cream);
  padding: 1rem 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color .3s, color .3s;
  background: transparent;
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============ FILTROS (página propiedades) ============ */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid rgba(184, 150, 104, 0.3);
  color: var(--cream-soft);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border-radius: 9999px;
  transition: all .3s;
  background: transparent;
  cursor: pointer;
}
.filter-chip:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.filter-chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--charcoal);
}

/* ============ GALERÍA (página individual) ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(.2, .7, .2, 1);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item.featured {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 1;
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(14, 15, 18, 0.97);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(20px);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
}
.lightbox-close:hover { background: var(--gold); color: var(--charcoal); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid rgba(184, 150, 104, 0.4);
  color: var(--gold);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
}
.lightbox-nav:hover { background: var(--gold); color: var(--charcoal); border-color: var(--gold); }
.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }
.lightbox-counter {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream-soft);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
}

/* ============ AMENITIES ICONS ============ */
.amenity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: var(--cream);
}
.amenity svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
}

/* ============ LOADING ============ */
.skeleton {
  background: linear-gradient(90deg, var(--charcoal-2) 0%, var(--charcoal-3) 50%, var(--charcoal-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ============ BANNER ESPECIAL CATTANEO ============ */
.cattaneo-banner {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: var(--cream);
  border-top: 1px solid rgba(184, 150, 104, 0.2);
  border-bottom: 1px solid rgba(184, 150, 104, 0.2);
}
.cattaneo-banner .bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #0E0F12 0%, #1A1D24 50%, #2A2218 100%);
  z-index: 0;
}
.cattaneo-banner .bg-img {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1559827260-dc66d52bef19?w=2400&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  z-index: 0;
  transition: opacity .7s, transform 8s ease-out;
}
.cattaneo-banner:hover .bg-img {
  opacity: 0.32;
  transform: scale(1.04);
}
.cattaneo-banner .shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(184, 150, 104, 0.18) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer-bg 6s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}
@keyframes shimmer-bg {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}
.cattaneo-banner .content {
  position: relative;
  z-index: 2;
  padding: 4rem 2rem;
  text-align: center;
}
@media (min-width: 768px) {
  .cattaneo-banner .content { padding: 5.5rem 3rem; }
}
.cattaneo-banner .label {
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.cattaneo-banner h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0;
}
.cattaneo-banner h2 em {
  font-style: italic;
  color: var(--gold);
}
.cattaneo-banner .sub {
  margin-top: 1.5rem;
  color: rgba(250, 248, 244, 0.75);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  line-height: 1.6;
}
.cattaneo-banner .cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding: 1rem 2.25rem;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: gap .3s, background .3s;
}
.cattaneo-banner:hover .cta {
  gap: 1.25rem;
  background: var(--cream);
}
.cattaneo-banner .corner-mark {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 2;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: rgba(184, 150, 104, 0.6);
  text-transform: uppercase;
}
.cattaneo-banner .corner-mark-r {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: rgba(184, 150, 104, 0.6);
  text-transform: uppercase;
}

/* ============ UTILITIES ============ */
.caption-dark {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.55);
}
.no-bar::-webkit-scrollbar { display: none; }
.no-bar { scrollbar-width: none; }
