/* ==========================================================================
   AURÉA — Hoja de Estilos Principal
   Estética: Luxury Editorial / Old Money
   Fuentes: Cormorant Garamond (display) + DM Sans (cuerpo)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* ==========================================================================
   1. VARIABLES GLOBALES
   ========================================================================== */
:root {
  --primary:       #4A5A47;
  --primary-dark:  #3a4737;
  --accent:        #C9A96E;
  --accent-light:  #dfc08e;
  --accent-dark:   #a8803f;

  --bg:            #F5F2EC;
  --bg-2:          #EDE9E0;
  --bg-dark:       #181815;

  --fg-dark:       #1a1a18;
  --fg-mid:        #4a4a45;
  --fg-muted:      #8a8a7a;
  --fg-light:      #F5F2EC;

  --card-warm:     #faf8f3;
  --border:        rgba(180, 155, 100, 0.18);
  --border-strong: rgba(180, 155, 100, 0.4);

  --shadow:        0 8px 40px rgba(0,0,0,0.08);
  --shadow-lg:     0 24px 80px rgba(0,0,0,0.14);

  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;

  --ease-luxury:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-appear:   cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. RESET Y BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--fg-dark);
  background: var(--bg);
  overflow-x: hidden;
  cursor: none;
}
img   { max-width: 100%; display: block; }
a     { color: inherit; text-decoration: none; }
p     { line-height: 1.85; color: var(--fg-mid); }
button { font-family: var(--font-body); cursor: none; border: none; background: none; }

/* ==========================================================================
   3. CURSOR PERSONALIZADO
   ========================================================================== */
.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  transition: opacity 0.3s ease;
}
.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  transition: width 0.2s, height 0.2s, background 0.2s;
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(201, 169, 110, 0.5);
  transition: width 0.4s var(--ease-luxury),
              height 0.4s var(--ease-luxury),
              border-color 0.3s ease;
}
.cursor-ring.hovered {
  width: 56px;
  height: 56px;
  border-color: var(--accent);
  background: rgba(201,169,110,0.06);
}
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
  body, button { cursor: auto; }
}

/* ==========================================================================
   4. CONTENEDOR
   ========================================================================== */
.container { max-width: 1300px; margin-inline: auto; padding: 0 clamp(20px, 5vw, 64px); }

/* ==========================================================================
   5. HEADER Y NAVEGACIÓN
   ========================================================================== */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.6s var(--ease-luxury), border-color 0.6s;
}
header.scrolled {
  background: rgba(245, 242, 236, 0.94);
  backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  transition: padding 0.5s var(--ease-luxury);
}
header.scrolled .nav { padding: 14px 0; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 50px; width: auto; transition: height 0.4s var(--ease-luxury); }
header.scrolled .brand-logo { height: 38px; }

/* Menu links */
.menu { display: flex; align-items: center; }
.menu a {
  position: relative;
  padding: 10px 18px;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mid);
  transition: color 0.3s ease;
}
.menu a::after {
  content: '';
  position: absolute;
  bottom: 5px; left: 18px; right: 18px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-luxury);
}
.menu a:hover, .menu a.active { color: var(--fg-dark); }
.menu a:hover::after, .menu a.active::after { transform: scaleX(1); }

/* Texto blanco en header transparente — solo en la página de inicio */
body.page-home header:not(.scrolled) .menu a { color: rgba(245,242,236,0.85); }
body.page-home header:not(.scrolled) .menu a:hover,
body.page-home header:not(.scrolled) .menu a.active { color: var(--fg-light); }
body.page-home header:not(.scrolled) .cta .btn { color: var(--fg-light); border-color: rgba(245,242,236,0.5); }
body.page-home header:not(.scrolled) .cta .btn:hover { border-color: var(--fg-light); }

.cta { display: flex; gap: 12px; align-items: center; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border-strong);
}
.hamburger span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--fg-dark);
  transition: all 0.4s var(--ease-luxury);
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Menú móvil fullscreen */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 300;
  color: var(--fg-dark);
  letter-spacing: 0.03em;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}
.mobile-menu a::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 50%;
  width: 16px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-luxury);
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu a:hover::before { transform: scaleX(1); }
.mobile-menu-footer {
  position: absolute;
  bottom: 36px;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ==========================================================================
   6. BOTONES
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  color: var(--fg-dark);
  cursor: none;
  background-image: linear-gradient(to top, var(--fg-dark) 50%, transparent 50%);
  background-size: 100% 200%;
  background-position: top;
  transition: color 0.45s var(--ease-luxury), border-color 0.45s, background-position 0.45s var(--ease-luxury);
}
.btn::before { display: none; }
.btn:hover {
  color: var(--fg-light);
  border-color: var(--fg-dark);
  background-position: bottom;
}

.btn.acc {
  background-image: linear-gradient(to top, var(--accent-dark) 50%, var(--accent) 50%);
  background-size: 100% 200%;
  background-position: top;
  border-color: var(--accent);
  color: #fff;
}
.btn.acc:hover { border-color: var(--accent-dark); color: #fff; background-position: bottom; }

.btn.light {
  border-color: rgba(245,242,236,0.3);
  color: var(--fg-light);
  background-image: linear-gradient(to top, rgba(245,242,236,0.15) 50%, transparent 50%);
  background-size: 100% 200%;
  background-position: top;
}
.btn.light:hover { color: var(--fg-light); border-color: rgba(245,242,236,0.5); background-position: bottom; }

.btn.ghost {
  background-image: linear-gradient(to top, rgba(201,169,110,0.3) 50%, rgba(24,24,21,0.45) 50%);
  background-size: 100% 200%;
  background-position: top;
  backdrop-filter: blur(10px);
  border-color: rgba(245,242,236,0.25);
  color: var(--fg-light);
}
.btn.ghost:hover { color: var(--fg-light); background-position: bottom; }

/* ==========================================================================
   7. TIPOGRAFÍA
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--fg-dark);
}
h1 { font-size: clamp(2.8rem, 5.5vw, 5.8rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.8rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 2.2rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}
.lede {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 300;
  line-height: 1.95;
  color: var(--fg-mid);
}
.caps {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.italic-accent {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
}

.gold-line {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--accent);
  margin: 14px 0;
}

section { padding: clamp(80px, 10vw, 140px) 0; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }

/* ==========================================================================
   8. SCROLL REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.95s var(--ease-appear), transform 0.95s var(--ease-appear);
}
.reveal.delay-1 { transition-delay: 0.12s; }
.reveal.delay-2 { transition-delay: 0.24s; }
.reveal.delay-3 { transition-delay: 0.38s; }
.reveal.delay-4 { transition-delay: 0.52s; }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   9. DARK SECTION
   ========================================================================== */
.dark-section { background: var(--bg-dark); }
.dark-section h1,.dark-section h2,.dark-section h3 { color: var(--fg-light); }
.dark-section p { color: rgba(245,242,236,0.55); }
.dark-section .eyebrow { color: var(--accent); }
.dark-section .caps { color: rgba(245,242,236,0.35); }

/* ==========================================================================
   10. HERO — INDEX (pantalla completa)
   ========================================================================== */
.hero-full {
  position: relative;
  height: 100svh;
  min-height: 680px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 9s var(--ease-luxury);
}
.hero-full.loaded .hero-bg { transform: scale(1); }
.hero-full::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(20,20,16,0.75) 0%,
    rgba(20,20,16,0.35) 55%,
    rgba(20,20,16,0.1) 100%
  );
  z-index: 1;
}
/* Top vignette to ensure nav legibility over any hero image */
.hero-full::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,20,16,0.55) 0%,
    rgba(20,20,16,0) 22%
  );
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(60px, 10vh, 110px);
}
.hero-content h1 { color: var(--fg-light); margin: 14px 0 20px; }
.hero-content .lede { color: rgba(245,242,236,0.78); margin-bottom: 36px; }

/* Indicador de scroll */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  right: clamp(20px, 5vw, 64px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-indicator span {
  writing-mode: vertical-lr;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.45);
}
.scroll-line {
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, var(--accent) 0%, transparent 100%);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  49%     { transform: scaleY(1); transform-origin: top; }
  50%     { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  99%     { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* Stats flotante en hero */
.hero-counter {
  position: absolute;
  top: 50%;
  right: clamp(20px, 5vw, 64px);
  transform: translateY(-50%);
  z-index: 2;
  text-align: center;
  border: 1px solid rgba(201,169,110,0.25);
  padding: 28px 24px;
  backdrop-filter: blur(12px);
  background: rgba(24,24,21,0.35);
}
.hero-counter .num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}
.hero-counter .lbl {
  margin-top: 8px;
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.5);
}

/* ==========================================================================
   11. GRID DE PROPIEDADES (INDEX)
   ========================================================================== */
.propiedades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}
.propiedades-grid .prop-card:first-child { grid-column: span 2; }
 
/* Última fila con 1 card sola: ocupa todo el ancho */
.propiedades-grid .prop-card.last-solo { grid-column: span 3; }
 
/* Última fila con 2 cards: primera span 2, segunda span 1 */
.propiedades-grid .prop-card.last-duo-a { grid-column: span 2; }
.propiedades-grid .prop-card.last-duo-b { grid-column: span 1; }
 
.prop-card {
  position: relative;
  overflow: hidden;
  background: #111;
  cursor: none;
}
.prop-img { overflow: hidden; }
.prop-img img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  filter: brightness(0.82) saturate(0.88);
  transition: transform 0.9s var(--ease-luxury), filter 0.9s;
}
.prop-card:first-child .prop-img img { height: 540px; }
.prop-card:hover .prop-img img { transform: scale(1.07); filter: brightness(0.65) saturate(0.82); }
 
/* Overlay de info */
.prop-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 3vw, 38px);
  background: linear-gradient(to top, rgba(15,15,12,0.9) 0%, rgba(15,15,12,0.15) 50%, transparent 100%);
}
.prop-location {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.prop-overlay h3 {
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  color: var(--fg-light);
  font-weight: 300;
  margin-bottom: 0;
  transition: transform 0.5s var(--ease-luxury);
}
.prop-card:hover .prop-overlay h3 { transform: translateY(-4px); }
 
.prop-desc {
  font-size: 0.83rem;
  color: rgba(245,242,236,0.62);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.55s var(--ease-luxury), opacity 0.55s, margin-top 0.3s;
}
.prop-card:hover .prop-desc { max-height: 80px; opacity: 1; margin-top: 10px; }
 
.prop-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s var(--ease-luxury) 0.1s;
}
.prop-card:hover .prop-cta { opacity: 1; transform: none; }
.prop-cta-link {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}
.arrow-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  position: relative;
  transition: width 0.35s var(--ease-luxury);
}
.arrow-line::after {
  content: '';
  position: absolute;
  right: -1px; top: -3px;
  width: 6px; height: 6px;
  border-right: 1px solid var(--accent);
  border-top: 1px solid var(--accent);
  transform: rotate(45deg);
}
.prop-card:hover .arrow-line { width: 46px; }
 
/* Badge de precio */
.price-badge {
  position: absolute;
  top: 18px; right: 18px;
  padding: 8px 18px;
  background: rgba(18,18,14,0.65);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   12. MANIFESTO / QUIÉNES SOMOS
   ========================================================================== */
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
}
.manifesto-number {
  font-family: var(--font-display);
  font-size: clamp(6rem, 14vw, 16rem);
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  margin-bottom: -20px;
  user-select: none;
}
.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.6rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  color: var(--fg-dark);
}
.manifesto-cite {
  display: block;
  margin-top: 24px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}
.stat-box {
  background: var(--bg);
  padding: clamp(24px, 3vw, 36px);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 300;
  color: var(--fg-dark);
  line-height: 1;
}
.stat-label {
  margin-top: 8px;
  font-size: 0.63rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ==========================================================================
   13. HERO — REMODELACIONES (editorial)
   ========================================================================== */
.hero-editorial {
  padding: clamp(130px, 18vh, 200px) 0 clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}
.hero-editorial::before {
  content: 'AURÉA';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  font-family: var(--font-display);
  font-size: clamp(100px, 20vw, 260px);
  font-weight: 300;
  color: rgba(74,90,71,0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
}
.hero-editorial-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: end;
}
.hero-editorial h1 { margin: 12px 0 0; }

/* ==========================================================================
   13. HERO — REMODELACIONES (editorial)
   ========================================================================== */
.hero-editorial {
  padding: clamp(130px, 18vh, 200px) 0 clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}
.hero-editorial::before {
  content: 'AURÉA';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  font-family: var(--font-display);
  font-size: clamp(100px, 20vw, 260px);
  font-weight: 300;
  color: rgba(74,90,71,0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
}
.hero-editorial-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: end;
}
.hero-editorial h1 { margin: 12px 0 0; }
 
/* ==========================================================================
   14. SERVICES GRID (REMODELACIONES)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  background: var(--border);
}

/* ================================
   MOBILE (por defecto)
   ================================ */
.package-card:nth-child(1) { grid-column: span 5; }
.package-card:nth-child(2) { grid-column: span 7; }
.package-card:nth-child(3) { grid-column: span 4; }
.package-card:nth-child(4) { grid-column: span 4; }
.package-card:nth-child(5) { grid-column: span 4; }

/* ================================
   DESKTOP FIX
   ================================ */
@media (min-width: 1024px) {
  .package-card:nth-child(1),
  .package-card:nth-child(2) {
    grid-column: span 6;
  }

  /* Igualamos alturas en desktop */
  .package-card:nth-child(2) {
    aspect-ratio: 4/2;
  }
}

.package-card {
  position: relative;
  aspect-ratio: 4/2; /* 🔥 menos alto (antes 4/5) */
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #111;
  cursor: none;
}

/* ❌ Eliminado el aspect-ratio conflictivo */
/* .package-card:nth-child(2) { aspect-ratio: 16/9; } */

.bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.72) saturate(0.82);
  transition: transform 1s var(--ease-luxury), filter 1s;
}

.package-card:hover .bg-img {
  transform: scale(1.09);
  filter: brightness(0.55) saturate(0.75);
}

.package-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,8,0.88) 0%,
    rgba(10,10,8,0.15) 55%,
    transparent 100%
  );
  z-index: 1;
}

.package-content {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 3vw, 36px);
  width: 100%;
}

.badge {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(201,169,110,0.35);
  padding: 5px 12px;
  margin-bottom: 12px;
}

.package-content h3 {
  font-size: clamp(1.5rem, 2.3vw, 2.3rem);
  font-weight: 300;
  color: var(--fg-light) !important;
  transition: transform 0.5s var(--ease-luxury);
}

.package-card:hover .package-content h3 {
  transform: translateY(-4px);
}

.package-content p {
  font-size: 0.83rem;
  color: rgba(245,242,236,0.58) !important;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition:
    max-height 0.55s var(--ease-luxury),
    opacity 0.5s,
    margin-top 0.3s;
}

.package-card:hover .package-content p {
  max-height: 80px;
  opacity: 1;
  margin-top: 12px;
}

.package-content .btn {
  margin-top: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.45s var(--ease-luxury) 0.12s;
}

.package-card:hover .package-content .btn {
  opacity: 1;
  transform: none;
}
 
/* ==========================================================================
   15. GALERÍA PORTAFOLIO
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  background: var(--border);
}
.g-item { position: relative; overflow: hidden; cursor: none; background: #111; }
.g-item:nth-child(1) { grid-column: span 8; }
.g-item:nth-child(2) { grid-column: span 4; }
.g-item:nth-child(3) { grid-column: span 4; }
.g-item:nth-child(4) { grid-column: span 4; }
.g-item:nth-child(5) { grid-column: span 4; }
.g-item:nth-child(6) { grid-column: span 12; }
 
.g-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  filter: saturate(0.82);
  transition: transform 0.9s var(--ease-luxury), filter 0.6s;
}
.g-item:nth-child(6) img { height: 420px; }
.g-item:hover img { transform: scale(1.06); filter: saturate(1); }
.g-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.65);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-luxury);
}
.g-item:hover .g-label { transform: none; }

/* ==========================================================================
   16. LIGHTBOX
   ========================================================================== */
dialog#lightbox {
  border: none;
  padding: 0;
  background: rgba(18,18,14,0.97);
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
dialog#lightbox[open] { display: flex; }
dialog#lightbox::backdrop { background: transparent; }
#lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; display: block; }
.lightbox-close {
  position: fixed;
  top: 24px; right: 28px;
  width: 44px; height: 44px;
  border: 1px solid rgba(245,242,236,0.2);
  color: rgba(245,242,236,0.7);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, color 0.3s;
}
.lightbox-close:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   17. CONTACTO / ASESORÍA
   ========================================================================== */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
}
.contact-panel {
  background: var(--bg);
  padding: clamp(40px, 6vw, 80px);
}
.contact-panel.dark-panel {
  background: var(--bg-dark);
}
.contact-panel.dark-panel h2,
.contact-panel.dark-panel h3 { color: var(--fg-light); }
.contact-panel.dark-panel p { color: rgba(245,242,236,0.55); }
.contact-panel.dark-panel .caps { color: rgba(245,242,236,0.3); }

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
  transition: all 0.3s ease;
}
.contact-method:first-of-type { border-top: 1px solid var(--border); margin-top: 32px; }
.contact-method:hover .method-icon { background: var(--accent); border-color: var(--accent); }
.contact-method:hover .method-icon svg { color: #fff; }
.method-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.35s var(--ease-luxury);
}
.method-icon svg { color: var(--accent); transition: color 0.3s; }
.method-text b { display: block; font-weight: 500; font-size: 0.88rem; margin-bottom: 4px; }
.method-text small { font-size: 0.78rem; color: var(--fg-muted); }

/* Formulario minimalista de lujo */
.luxury-form { display: grid; gap: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: grid; gap: 10px; }
.form-group label {
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--fg-dark);
  outline: none;
  appearance: none;
  transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group textarea { resize: none; min-height: 100px; }

/* ==========================================================================
   18. DETALLE DE PROPIEDAD
   ========================================================================== */
.detail-page { padding-top: clamp(80px, 12vh, 110px); overflow-x: hidden; width: 100%; }
.detail-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 0;
  background: var(--bg-dark);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
.carousel {
  position: relative;
  overflow: hidden;
  background: #111;
}
.carousel-track { height: 75vh; min-height: 460px; }
.carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  animation: cFade 0.7s var(--ease-luxury);
}
.carousel-track img.active { display: block; }
@keyframes cFade { from { opacity: 0; } to { opacity: 1; } }
 
.carousel-thumbs {
  display: flex;
  gap: 2px;
  background: var(--border);
}
.carousel-thumbs:empty { display: none; }
.thumb {
  flex: 1;
  height: 78px;
  overflow: hidden;
  opacity: 0.45;
  transition: opacity 0.35s;
  cursor: none;
}
.thumb.active, .thumb:hover { opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
 
.cnav {
  position: absolute;
  bottom: 96px;
  z-index: 5;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(18,18,14,0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--fg-light);
  font-size: 1rem;
  transition: all 0.3s;
}
.cnav:hover { background: var(--accent); border-color: var(--accent); }
.cnav.prev { right: 52px; }
.cnav.next { right: 4px; }
 
.detail-info {
  background: var(--bg-dark);
  padding: clamp(32px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: sticky;
  top: 0;
  min-height: 100vh;
  overflow: visible;
  /* Prevent horizontal overflow */
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}
.detail-info .eyebrow { margin-bottom: 10px; }
.detail-info h1 {
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  color: var(--fg-light);
  margin-bottom: 6px;
}
.detail-price {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  font-weight: 300;
  color: var(--accent);
  margin: 16px 0 28px;
}
.spec-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
  margin-bottom: 28px;
}
.spec-box {
  background: rgba(255,255,255,0.03);
  padding: 18px 14px;
  text-align: center;
}
.spec-box b {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}
.spec-box small {
  display: block;
  margin-top: 6px;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.35);
}
.detail-desc {
  font-size: 0.88rem;
  line-height: 1.9;
  color: rgba(245,242,236,0.55);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  margin-bottom: 32px;
}

/* ==========================================================================
   19. FOOTER
   ========================================================================== */
footer {
  background: var(--bg-dark);
  padding: clamp(60px, 8vw, 110px) 0 clamp(28px, 4vw, 44px);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: clamp(24px, 3vw, 40px);
}
.footer-logo { height: 40px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.83rem; color: rgba(245,242,236,0.38); max-width: 32ch; line-height: 1.9; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.35);
  font-weight: 400;
  margin-bottom: 20px;
}
.footer-col a { display: block; font-size: 0.88rem; color: rgba(245,242,236,0.55); margin-bottom: 12px; transition: color 0.3s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom small { font-size: 0.72rem; color: rgba(245,242,236,0.28); letter-spacing: 0.06em; }
.footer-accent { font-family: var(--font-display); font-style: italic; font-size: 0.85rem; color: var(--accent); opacity: 0.6; }

/* ==========================================================================
   20. RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: 1fr 1fr; grid-template-rows: unset; }
  .package-card:nth-child(n) { grid-column: span 1 !important; grid-row: unset !important; min-height: 0; aspect-ratio: 4/3; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 40px; }
}
 
@media (max-width: 980px) {
  .menu { display: none; }
  .hamburger { display: flex; }
  .cta .btn { display: none; }
 
  .propiedades-grid { grid-template-columns: 1fr 1fr; }
  .propiedades-grid .prop-card:first-child { grid-column: span 2; }
  .propiedades-grid .prop-card.last-solo,
  .propiedades-grid .prop-card.last-duo-a,
  .propiedades-grid .prop-card.last-duo-b { grid-column: span 1; }
  .prop-img img, .prop-card:first-child .prop-img img { height: 55vw !important; }
 
  .hero-editorial-inner { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-info { position: static; max-height: none; overflow-x: hidden; overflow-y: visible; width: 100%; max-width: 100%; box-sizing: border-box; padding: 24px 18px; min-height: 0; }
  .detail-tab-content { max-height: 180px; }
  .carousel-track { height: 56vw; min-height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
 
  /* Touch: mostrar info sin hover */
  .prop-desc { max-height: 80px !important; opacity: 1 !important; margin-top: 10px !important; }
  .prop-cta { opacity: 1 !important; transform: none !important; }
  .package-content p { max-height: 70px !important; opacity: 1 !important; margin-top: 10px !important; }
  .package-content .btn { opacity: 1 !important; transform: none !important; }
}
 
@media (max-width: 680px) {
  .propiedades-grid { grid-template-columns: 1fr; }
  .propiedades-grid .prop-card:first-child { grid-column: span 1; }
  .propiedades-grid .prop-card.last-solo,
  .propiedades-grid .prop-card.last-duo-a,
  .propiedades-grid .prop-card.last-duo-b { grid-column: span 1; }
  .prop-img img, .prop-card:first-child .prop-img img { height: 72vw !important; }
 
  .services-grid { grid-template-columns: 1fr; }
  .package-card:nth-child(n) { grid-column: span 1 !important; grid-row: unset !important; min-height: 0; aspect-ratio: 3/2; }
  .package-content p { max-height: 80px !important; opacity: 1 !important; margin-top: 10px !important; }
  .package-content .btn { opacity: 1 !important; transform: none !important; }
 
  .gallery { grid-template-columns: 1fr 1fr; }
  .g-item:nth-child(n) { grid-column: span 1 !important; }
  .g-item:nth-child(1), .g-item:nth-child(6) { grid-column: span 2 !important; }
  .g-item img { height: 46vw; }
  .g-item:nth-child(6) img { height: 52vw; }
 
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .hero-counter { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .cnav.prev { right: 52px; bottom: 86px; }
  .cnav.next { right: 4px; bottom: 86px; }
}
 
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   TIENDA — Estilos específicos de la tienda en línea
   ========================================================================== */

/* ── Hero de la tienda ── */
.hero-tienda {
  padding: clamp(130px, 18vh, 200px) 0 clamp(50px, 7vw, 90px);
  position: relative;
  overflow: hidden;
}
.hero-tienda::before {
  content: 'TIENDA';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -52%);
  font-family: var(--font-display);
  font-size: clamp(90px, 18vw, 240px);
  font-weight: 300;
  color: rgba(74, 90, 71, 0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
}

/* ── Barra de filtros y búsqueda ── */
.shop-controls {
  position: sticky;
  top: 66px;
  z-index: 50;
  background: rgba(245, 242, 236, 0.95);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  transition: top 0.4s var(--ease-luxury);
}
.shop-controls-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Campo de búsqueda */
.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 340px;
}
.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-muted);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: 11px 14px 11px 42px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--fg-dark);
  outline: none;
  transition: border-color 0.3s;
}
.search-box input::placeholder { color: var(--fg-muted); }
.search-box input:focus { border-color: var(--accent); }

/* Filtros por categoría */
.filter-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 9px 18px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-mid);
  cursor: none;
  transition: all 0.3s var(--ease-luxury);
}
.filter-tab:hover { border-color: var(--fg-dark); color: var(--fg-dark); }
.filter-tab.active {
  background: var(--fg-dark);
  border-color: var(--fg-dark);
  color: var(--fg-light);
}

/* Ordenar por */
.sort-select {
  padding: 9px 36px 9px 14px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8a7a' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mid);
  outline: none;
  cursor: none;
  appearance: none;
  transition: border-color 0.3s;
  min-width: 160px;
}
.sort-select:focus { border-color: var(--accent); }

/* Contador de resultados */
.results-count {
  margin-left: auto;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
}

/* ── Grid de productos ── */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  min-height: 400px;
}

/* Estado vacío */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  text-align: center;
  background: var(--bg);
}
.empty-state .empty-icon {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--border-strong);
  margin-bottom: 16px;
  line-height: 1;
}
.empty-state h3 { font-size: 1.6rem; font-weight: 300; margin-bottom: 10px; }
.empty-state p  { color: var(--fg-muted); font-size: 0.9rem; }

/* ── Tarjeta de producto ── */
.producto-card {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  cursor: none;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease;
}
.producto-card:hover { background: var(--card-warm); }

/* Imagen */
.prod-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 4/3;
}
.prod-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88);
  transition: transform 0.9s var(--ease-luxury), filter 0.6s;
}
.producto-card:hover .prod-img-wrap img {
  transform: scale(1.06);
  filter: saturate(1);
}

/* Segunda imagen en hover */
.prod-img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s var(--ease-luxury);
}
.prod-img-hover img { width: 100%; height: 100%; object-fit: cover; }
.producto-card:hover .prod-img-hover { opacity: 1; }

/* Badge de disponibilidad */
.prod-badge {
  position: absolute;
  top: 14px; left: 14px;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 5px 12px;
  z-index: 2;
}
.prod-badge.agotado {
  background: rgba(30, 30, 28, 0.75);
  color: rgba(245,242,236,0.7);
  border: 1px solid rgba(245,242,236,0.15);
}
.prod-badge.destacado {
  background: rgba(201,169,110,0.15);
  color: var(--accent);
  border: 1px solid rgba(201,169,110,0.4);
}

/* Acciones rápidas (aparecen en hover) */
.prod-actions {
  position: absolute;
  bottom: 14px; right: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s var(--ease-luxury) 0.05s;
}
.producto-card:hover .prod-actions { opacity: 1; transform: none; }
.prod-action-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245,242,236,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  color: var(--fg-dark);
  font-size: 0.8rem;
  transition: all 0.3s;
  cursor: none;
}
.prod-action-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.prod-action-btn svg { pointer-events: none; }

/* Info del producto */
.prod-info {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.prod-categoria {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.prod-nombre {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 300;
  color: var(--fg-dark);
  line-height: 1.2;
  margin: 0;
  transition: color 0.3s;
}
.producto-card:hover .prod-nombre { color: var(--primary); }
.prod-descripcion {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.prod-precio {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--fg-dark);
}
.prod-precio.agotado { color: var(--fg-muted); text-decoration: line-through; }
.prod-precio small {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-left: 4px;
}
.prod-ver-btn {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.3s;
}
.producto-card:hover .prod-ver-btn { color: var(--accent); }
.prod-ver-btn .mini-arrow {
  display: inline-block;
  width: 20px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.3s var(--ease-luxury);
}
.prod-ver-btn .mini-arrow::after {
  content: '';
  position: absolute;
  right: -1px; top: -2.5px;
  width: 5px; height: 5px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}
.producto-card:hover .mini-arrow { width: 32px; }

/* ── Paginación ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: clamp(40px, 5vw, 70px) 0;
}
.page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-mid);
  cursor: none;
  transition: all 0.3s var(--ease-luxury);
}
.page-btn:hover:not(:disabled) { border-color: var(--fg-dark); color: var(--fg-dark); }
.page-btn.active { background: var(--fg-dark); border-color: var(--fg-dark); color: var(--fg-light); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── PÁGINA DE DETALLE DE PRODUCTO ── */
.prod-detail-page { padding-top: clamp(80px, 12vh, 110px); }

.prod-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background: var(--border);
  align-items: start;
}

/* Galería de detalle */
.prod-gallery {
  background: var(--bg-2);
  position: sticky;
  top: 80px;
}
.prod-main-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-2);
}
.prod-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: cFade 0.5s var(--ease-luxury);
  filter: saturate(0.9);
}
.prod-thumb-row {
  display: flex;
  gap: 2px;
  background: var(--border);
}
.prod-thumb {
  flex: 1;
  aspect-ratio: 4/3;
  overflow: hidden;
  opacity: 0.45;
  transition: opacity 0.3s;
  cursor: none;
}
.prod-thumb.active, .prod-thumb:hover { opacity: 1; }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Panel de info del producto */
.prod-detail-info {
  background: var(--bg);
  padding: clamp(36px, 5vw, 64px);
}
.prod-detail-info .eyebrow { margin-bottom: 10px; }
.prod-detail-info h1 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 300;
  margin-bottom: 6px;
  line-height: 1.05;
}
.prod-detail-price {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.5rem);
  font-weight: 300;
  color: var(--fg-dark);
  margin: 18px 0;
}
.prod-detail-price small {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}

.disponibilidad {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.disponibilidad .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
}
.disponibilidad.en-stock .dot { background: #7a9e7a; }
.disponibilidad.agotado-pill .dot { background: var(--fg-muted); }
.disponibilidad.en-stock { color: var(--primary); border-color: rgba(74,90,71,0.25); }
.disponibilidad.agotado-pill { color: var(--fg-muted); }

.prod-detail-desc {
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--fg-mid);
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

/* Specs tabla */
.specs-table {
  display: grid;
  gap: 0;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}
.spec-row-item {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.spec-row-item:last-child { border-bottom: none; }
.spec-key {
  padding: 13px 16px;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--bg-2);
  border-right: 1px solid var(--border);
}
.spec-val {
  padding: 13px 16px;
  font-size: 0.88rem;
  color: var(--fg-dark);
}

/* Botones de acción del detalle */
.prod-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Productos relacionados ── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
}

/* ── Responsive tienda ── */
@media (max-width: 1100px) {
  .productos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .shop-controls-inner { gap: 10px; }
  .results-count { display: none; }
  .filter-tabs { display: none; } /* se mueven a drawer */
  .filter-drawer-btn { display: flex !important; }
  .prod-detail-grid { grid-template-columns: 1fr; }
  .prod-gallery { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .productos-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .sort-select { min-width: 120px; font-size: 0.62rem; padding: 8px 28px 8px 10px; }
  .search-box { max-width: 100%; min-width: 0; flex: 1; }
}

@media (max-width: 480px) {
  .productos-grid { grid-template-columns: 1fr; }
}

/* ── Drawer de filtros móvil ── */
.filter-drawer-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  background: transparent;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mid);
  cursor: none;
}
.filter-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}
.filter-drawer.open { display: flex; }
.filter-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18,18,14,0.5);
}
.filter-drawer-panel {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: min(85vw, 320px);
  background: var(--bg);
  padding: 40px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.filter-drawer-panel h3 { font-size: 1.5rem; font-weight: 300; margin-bottom: 4px; }
.drawer-cats { display: flex; flex-direction: column; gap: 6px; }
.drawer-cat {
  padding: 13px 16px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mid);
  background: transparent;
  text-align: left;
  cursor: none;
  transition: all 0.3s;
}
.drawer-cat:hover, .drawer-cat.active { background: var(--fg-dark); color: var(--fg-light); border-color: var(--fg-dark); }
.drawer-close {
  align-self: flex-start;
  background: none;
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: none;
  color: var(--fg-mid);
  margin-top: auto;
}
/* ==========================================================================
   TIPO BADGES — Venta / Renta / Ambos
   ========================================================================== */
.tipo-badges {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
/* En el panel de detalle los badges no son absolute */
.detail-info .tipo-badges {
  position: static;
  margin-bottom: 14px;
}
.tipo-badge {
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  border: 1px solid transparent;
}
.tipo-venta {
  background: rgba(201,169,110,0.15);
  border-color: rgba(201,169,110,0.5);
  color: var(--accent);
}
.tipo-renta {
  background: rgba(74,90,71,0.2);
  border-color: rgba(74,90,71,0.45);
  color: #8aac86;
}
/* En el panel oscuro del detalle los colores se ajustan */
.detail-info .tipo-venta {
  background: rgba(201,169,110,0.12);
  border-color: rgba(201,169,110,0.4);
  color: var(--accent);
}
.detail-info .tipo-renta {
  background: rgba(138,172,134,0.1);
  border-color: rgba(138,172,134,0.35);
  color: #8aac86;
}

/* ==========================================================================
   PRECIO DUAL (Venta + Renta en una misma propiedad)
   ========================================================================== */
.detail-price-dual {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 18px 0 28px;
  border: 1px solid rgba(255,255,255,0.08);
}
.detail-price-item {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.detail-price-label {
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.35);
}
.detail-price-value {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}
.detail-price-divider {
  width: 1px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* ==========================================================================
   TABS EDITORIALES — Detalle de propiedad
   ========================================================================== */
.detail-tabs {
  margin-bottom: 28px;
}
.detail-tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0;
}
.detail-tab-btn {
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.35);
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  cursor: none;
  transition: color 0.3s, border-color 0.3s;
}
.detail-tab-btn:hover { color: rgba(245,242,236,0.7); }
.detail-tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
 
/* El contenido de cada tab tiene altura máxima y scroll propio */
.detail-tab-content {
  display: none;
  padding: 22px 4px 0 0;
  max-height: 220px;
  overflow-y: auto;
  animation: tabIn 0.35s var(--ease-appear);
 
  /* Scrollbar estilizada — Webkit (Chrome, Safari, Edge) */
  scrollbar-width: thin;
  scrollbar-color: rgba(201,169,110,0.4) transparent;
}
.detail-tab-content.active { display: block; }
 
/* Scrollbar Webkit */
.detail-tab-content::-webkit-scrollbar {
  width: 2px;
}
.detail-tab-content::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
}
.detail-tab-content::-webkit-scrollbar-thumb {
  background: rgba(201,169,110,0.45);
  border-radius: 0;
  transition: background 0.3s;
}
.detail-tab-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
 
/* Fade inferior para indicar que hay más contenido */
.detail-tab-content.active::after {
  content: '';
  display: block;
  height: 32px;
  background: linear-gradient(to bottom, transparent, rgba(24,24,21,0.85));
  position: sticky;
  bottom: 0;
  margin-top: -32px;
  pointer-events: none;
}
 
@keyframes tabIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
 
/* Texto de resumen / ubicación */
.detail-resumen {
  font-size: 0.9rem;
  line-height: 1.95;
  color: rgba(245,242,236,0.55);
  margin: 0;
  padding-bottom: 16px;
}
 
/* Lista de características estilizada */
.detail-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.detail-feature-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.86rem;
  color: rgba(245,242,236,0.6);
  line-height: 1.5;
  transition: color 0.25s;
}
.detail-feature-item:last-child { border-bottom: none; }
.detail-feature-item::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
  margin-top: 1px;
}
.detail-feature-item:hover {
  color: rgba(245,242,236,0.85);
}
/* ==========================================================================
   HOMEPAGE — Estilos específicos de la página de inicio
   ========================================================================== */

/* ── Hero: elementos decorativos ── */
.hero-word-deco {
  position: absolute;
  bottom: -0.1em;
  right: -0.04em;
  font-family: var(--font-display);
  font-size: clamp(120px, 22vw, 320px);
  font-weight: 300;
  color: rgba(255,255,255,0.025);
  letter-spacing: -0.04em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.hero-side-line {
  position: absolute;
  left: clamp(20px, 5vw, 64px);
  bottom: clamp(40px, 8vh, 90px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero-side-line span {
  writing-mode: vertical-lr;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.35);
}
.v-line {
  width: 1px;
  height: 54px;
  background: linear-gradient(to bottom, transparent, rgba(201,169,110,0.5), transparent);
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Servicios home ── */
.home-services {
  padding: 0;
}
.home-services > .container {
  padding-top: clamp(80px, 10vw, 130px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.home-services .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 0;
}

.services-home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
}

.svc-card {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: none;
  text-decoration: none;
}
.svc-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.7) saturate(0.8);
  transition: transform 1s var(--ease-luxury), filter 1s;
}
.svc-card:hover .svc-bg {
  transform: scale(1.07);
  filter: brightness(0.5) saturate(0.75);
}
.svc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(15,15,12,0.15) 0%,
    rgba(15,15,12,0.85) 100%
  );
  z-index: 1;
}
.svc-number {
  position: absolute;
  top: clamp(20px, 3vw, 34px);
  right: clamp(20px, 3vw, 34px);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 8rem);
  font-weight: 300;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  z-index: 2;
  user-select: none;
  transition: color 0.6s;
}
.svc-card:hover .svc-number { color: rgba(201,169,110,0.1); }

.svc-content {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
}
.svc-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201,169,110,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
  transition: background 0.35s, border-color 0.35s;
}
.svc-card:hover .svc-icon {
  background: rgba(201,169,110,0.15);
  border-color: var(--accent);
}
.svc-content h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.5rem);
  font-weight: 300;
  color: var(--fg-light);
  margin: 10px 0 0;
  transition: transform 0.5s var(--ease-luxury);
}
.svc-card:hover .svc-content h3 { transform: translateY(-4px); }

.svc-content p {
  font-size: 0.84rem;
  color: rgba(245,242,236,0.58);
  line-height: 1.75;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.55s var(--ease-luxury), opacity 0.5s, margin-top 0.3s;
}
.svc-card:hover .svc-content p {
  max-height: 100px;
  opacity: 1;
  margin-top: 12px;
}

.svc-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.45s var(--ease-luxury) 0.1s;
}
.svc-card:hover .svc-cta { opacity: 1; transform: none; }

/* ── Manifesto home ── */
.home-manifesto {
  padding: clamp(80px, 10vw, 130px) 0;
}
.manifesto-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 110px);
  align-items: center;
}
.manifesto-home-grid .manifesto-quote {
  font-size: clamp(1.5rem, 2.4vw, 2.6rem);
}

/* ── Propiedad destacada ── */
.home-featured {
  padding: clamp(80px, 10vw, 130px) 0 0;
}
.featured-label {
  margin-bottom: clamp(32px, 4vw, 50px);
}
.featured-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2px;
  background: var(--border);
}
.featured-img-col {
  overflow: hidden;
  background: #111;
}
.featured-img-wrap {
  position: relative;
  height: 100%;
  min-height: 560px;
}
.featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88);
  transition: transform 1s var(--ease-luxury), filter 0.8s;
  display: block;
}
.featured-img-col:hover .featured-img-wrap img {
  transform: scale(1.04);
  filter: saturate(1);
}
.featured-price-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 10px 22px;
  background: rgba(18,18,14,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.featured-info-col {
  background: var(--bg-dark);
  padding: clamp(36px, 5vw, 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-info-col h2 {
  color: var(--fg-light);
  font-size: clamp(2rem, 3.5vw, 4rem);
  margin: 10px 0 0;
}
.featured-info-col .lede { color: rgba(245,242,236,0.6); }

.featured-specs {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
  margin-top: 10px;
}
.fspec {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.fspec-val {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}
.fspec-lbl {
  font-size: 0.57rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.3);
}
.fspec-div {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.07);
}

/* ── Proceso ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  margin-top: clamp(40px, 6vw, 70px);
}
.process-step {
  background: var(--bg);
  padding: clamp(28px, 3.5vw, 48px) clamp(22px, 2.5vw, 36px);
  transition: background 0.35s ease;
}
.process-step:hover { background: var(--bg-2); }
.process-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 7rem);
  font-weight: 300;
  color: var(--border-strong);
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.4s;
}
.process-step:hover .process-num { color: var(--accent); }
.process-body h4 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.8rem);
  font-weight: 300;
  margin-bottom: 12px;
}
.process-body p {
  font-size: 0.85rem;
  line-height: 1.85;
  color: var(--fg-muted);
}

/* ── Testimonios ── */
.home-testimonials {
  padding: clamp(80px, 10vw, 130px) 0;
}
.testimonials-track {
  position: relative;
  min-height: 200px;
}
.testimonial-card {
  display: none;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  animation: testiIn 0.6s var(--ease-appear);
}
.testimonial-card.active { display: block; }
@keyframes testiIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.testi-quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.35;
  line-height: 0.5;
  margin-bottom: 24px;
  font-style: italic;
}
.testi-text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.65rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(245,242,236,0.78) !important;
  margin-bottom: 30px;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}
.testi-initials {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(201,169,110,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 400;
  flex-shrink: 0;
}
.testi-author strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--fg-light);
  letter-spacing: 0.05em;
}
.testi-author small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.3);
  margin-top: 3px;
}
.testi-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}
.tdot {
  width: 28px;
  height: 1px;
  background: rgba(245,242,236,0.2);
  border: none;
  transition: all 0.4s var(--ease-luxury);
  cursor: none;
}
.tdot.active {
  width: 48px;
  background: var(--accent);
}
.tdot:hover { background: rgba(201,169,110,0.5); }

/* gold-line centrada */
.gold-line.center { margin-left: auto; margin-right: auto; }

/* section-head flex (propiedades page compat) */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 60px);
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* ── Responsive homepage ── */
@media (max-width: 1100px) {
  .manifesto-home-grid { grid-template-columns: 1fr; gap: 48px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .services-home-grid { grid-template-columns: 1fr; }
  .svc-card { min-height: 360px; }
  .svc-content p { max-height: 80px !important; opacity: 1 !important; margin-top: 12px !important; }
  .svc-cta { opacity: 1 !important; transform: none !important; }
  .featured-split { grid-template-columns: 1fr; }
  .featured-img-wrap { min-height: 55vw; }
  .home-services .section-head { flex-direction: column; align-items: flex-start; }
  .home-services .section-head .lede { text-align: left !important; }
  .hero-side-line { display: none; }
}

@media (max-width: 680px) {
  .process-grid { grid-template-columns: 1fr; }
  .hero-word-deco { display: none; }
  .hero-cta-row { flex-direction: column; align-items: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-head .lede { text-align: left !important; }
}