/* ============================================================
   Cuadra por Cuadra — Home Page Styles
   ============================================================ */

/* ── Hero — imagen de fondo con overlay claro ───────────────── */

/* hero-bg ya está oculto en style.css, no lo necesitamos */
.hero-grid      { z-index: 2 !important; opacity: 0.35; pointer-events: none; }
.hero-particles { z-index: 2 !important; pointer-events: none; }

/* Contenedor de la imagen — capa base */
.hero-img-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  overflow: hidden;
  margin: 0; padding: 0;
}
.hero-img-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 0; padding: 0;
  border: 0; outline: 0;
  vertical-align: top;
  background: #0a0812;
}
/* Velo blanco suave — imagen visible como detalle de fondo */
.hero-img-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 18, 0.38);
}

/* El texto siempre encima de todo */
.hero-content    { z-index: 4 !important; }
.scroll-indicator { z-index: 4 !important; }

/* Texto "SIN" con outline tenue sobre fondo claro */
.hero-title-outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(28,24,32,0.15);
}

/* ── Hero console visual ─────────────────────────────────────── */
.hero-console-visual {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 50%;
  pointer-events: none;
  overflow: hidden;
}
.hero-console-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 65% 50%, rgba(196,24,122,0.08) 0%, transparent 65%);
  animation: heroPulse 4s ease-in-out infinite alternate;
}
@keyframes heroPulse {
  from { opacity: 0.5; }
  to   { opacity: 1; }
}

/* ── Scroll indicator ────────────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
  z-index: 2;
}
.scroll-indicator span {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--grey-mid);
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--blue-core), transparent);
  animation: scrollPulse 1.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1) translateY(0); }
  50%       { opacity: 1;   transform: scaleY(1.2) translateY(5px); }
}

/* ── Marquee ─────────────────────────────────────────────────── */
.marquee-wrapper {
  overflow: hidden;
  background: rgba(196,24,122,0.06);
  border-top: 1px solid rgba(196,24,122,0.12);
  border-bottom: 1px solid rgba(196,24,122,0.12);
  padding: 0.9rem 0;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  width: max-content;
  animation: marquee 25s linear infinite;
}
.marquee-wrapper:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--grey-light);
}
.marquee-track .dot { color: var(--blue-core); font-size: 0.5rem; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Featured games ──────────────────────────────────────────── */
.featured-section { padding: 7rem 0; }
.section-header { display: flex; flex-direction: column; margin-bottom: 4rem; }

.games-featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
}
.game-big {
  position: relative;
  min-height: 520px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.game-bg { position: absolute; inset: 0; }
.game-bg-glow { position: absolute; inset: 0; }
.game-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  background-image: image();
  background: linear-gradient(to top, rgba(5,8,17,0.95) 0%, transparent 100%);
  width: 100%;
}
.game-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin: 0.5rem 0;
  color: #fff;
}
.game-genre {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}
.game-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
}
.games-small-col { display: flex; flex-direction: column; gap: 1.5rem; }
.game-small { display: flex; gap: 0; overflow: hidden; border-radius: 12px; }
.game-sm-img { width: 130px; flex-shrink: 0; }
.game-sm-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.game-sm-body h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}
.game-sm-body p { font-size: 0.8rem; color: var(--grey-light); }

/* ── Button small ────────────────────────────────────────────── */
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.78rem; }

/* ── Console section ─────────────────────────────────────────── */
.console-section { padding: 5rem 0; }
.console-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.specs-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
.specs-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--grey-light);
}
.specs-list .fa-check-circle { color: var(--blue-core); }

.console-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.console-mockup {
  position: relative;
  width: 280px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.console-body {
  width: 200px;
  height: 340px;
  background: linear-gradient(160deg, #f0f0f3 0%, #e0dfe5 60%, #d8d7de 100%);
  border-radius: 20px 20px 16px 16px;
  border: 1px solid rgba(196,24,122,0.15);
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
.console-light {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 4px;
  background: var(--blue-core);
  border-radius: 2px;
  animation: consoleLightPulse 2s ease-in-out infinite;
}
@keyframes consoleLightPulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}
.console-disc {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(196,24,122,0.12);
  background: radial-gradient(circle, #e8e7ec 0%, #d4d3da 100%);
}
.console-usb {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 6px;
  background: var(--grey-dark);
  border-radius: 2px;
}
.console-glow-ring {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,24,122,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.console-stats { display: flex; gap: 1rem; }
.stat-pill {
  background: rgba(196,24,122,0.08);
  border: 1px solid rgba(196,24,122,0.20);
  border-radius: 100px;
  padding: 0.5rem 1.2rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-core);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ── Stats ───────────────────────────────────────────────────── */
.stats-section { padding: 3rem 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item { display: flex; flex-direction: column; gap: 0.5rem; position: relative; }
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 20%;
  height: 60%; width: 1px;
  background: rgba(28,24,32,0.10);
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--blue-core);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--grey-mid);
}

/* ── Accessories ─────────────────────────────────────────────── */
.acc-preview { padding: 5rem 0; }
.acc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.acc-icon-wrap {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(196,24,122,0.35);
  position: relative;
  overflow: hidden;
}
.acc-card:hover .acc-icon-wrap i {
  color: var(--blue-core);
  transition: all 0.4s;
}

/* ── CTA Band ────────────────────────────────────────────────── */
.cta-band { position: relative; padding: 8rem 0; overflow: hidden; }
.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(196,24,122,0.07) 0%, transparent 70%);
}
.cta-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196,24,122,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,24,122,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta-inner { position: relative; max-width: 600px; }

/* ════════════════════════════════════════════════════════════
   PANEL DE ACCIONES — Deslizable desde la derecha
   ════════════════════════════════════════════════════════════ */

/* Botón trigger */
.nav-actions-trigger {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  padding: 0.55rem 1.2rem;
  border-radius: 4px;
  background: var(--blue-core);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 1100;
  white-space: nowrap;
}
.nav-actions-trigger:hover { background: var(--blue-bright); }

/* Icono hamburger dentro del trigger */
.trigger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
  flex-shrink: 0;
}
.trigger-icon span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
  transform-origin: center;
}
/* Animación X al abrir */
.nav-actions-trigger.open .trigger-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-actions-trigger.open .trigger-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-actions-trigger.open .trigger-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.trigger-label { line-height: 1; }

/* Panel → Botones flotantes siempre visibles */
.nav-actions-panel {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: auto;
  height: auto;
  background: transparent;
  border: none;
  z-index: 1090;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 0;
  box-shadow: none;
  transform: none;
  opacity: 1;
  pointer-events: all;
}

/* Botón trigger oculto */
.nav-actions-trigger,
.nav-actions {
  display: none !important;
}

/* Título oculto */
.nav-actions-panel-title {
  display: none;
}

/* Botones flotantes — siempre visibles */
.nav-panel-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.7rem 1.2rem;
  border-radius: 50px;
  color: #ffffff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  opacity: 1;
  transform: none;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}

.nav-panel-btn:hover {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
}

.nav-panel-btn i {
  font-size: 1rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

/* Colores individuales */
.btn-magenta          { background: var(--blue-core); }
.btn-magenta:hover    { background: var(--blue-bright); }

.btn-orange           { background: #F6B919; }
.btn-orange:hover     { background: #d0901a; }

.btn-green            { background: #CBD517; }
.btn-green:hover      { background: #a8b014; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .games-featured-grid { grid-template-columns: 1fr; }
  .games-small-col { flex-direction: row; flex-wrap: wrap; }
  .game-small { flex: 1 1 calc(50% - 0.75rem); }
  .console-row { grid-template-columns: 1fr; text-align: center; }
  .console-visual { align-items: center; }
  .acc-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .featured-section { padding: 4rem 0; }
  .game-big { min-height: 380px; }
  .game-title { font-size: 2rem; }
  .games-small-col { flex-direction: column; }
  .game-small { flex: 1; }
  .acc-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .console-row { gap: 3rem; }
  .nav-actions-panel { width: 85vw; }
}



/* ════════════════════════════════════════════════════════════
   NAVBAR — Botón lupa búsqueda
   ════════════════════════════════════════════════════════════ */
.nav-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-light);
  font-size: 1.05rem;
  border-radius: 50%;
  transition: color var(--transition), background var(--transition);
  line-height: 1;
}
.nav-search-btn:hover {
  color: var(--blue-core);
  background: rgba(196,24,122,0.08);
}

/* ════════════════════════════════════════════════════════════
   MODAL BUSCADOR
   ════════════════════════════════════════════════════════════ */

/* Overlay */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,8,18,0.45);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.search-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Modal contenedor — centrado, horizontal */
.search-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  z-index: 2010;
  background: #fff;
  border-radius: 18px;
  padding: 2.2rem 2.4rem 2.4rem;
  width: 92%;
  max-width: 1200px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.20);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s, transform 0.32s cubic-bezier(0.4,0,0.2,1);
}
.search-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

/* Botón cerrar */
.search-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(196,24,122,0.08);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--blue-core);
  font-size: 0.9rem;
  transition: background var(--transition);
}
.search-modal-close:hover { background: rgba(196,24,122,0.18); }

/* Tabs Venta / Arriendo */
.search-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.6rem;
  border-bottom: 2px solid rgba(196,24,122,0.12);
  padding-bottom: 0;
}
.search-tab {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--grey-mid);
  padding: 0.7rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}
.search-tab i { font-size: 1rem; opacity: 0.4; transition: opacity 0.2s; }
.search-tab.active {
  color: var(--blue-core);
  border-bottom-color: var(--blue-core);
}
.search-tab.active i { opacity: 1; color: var(--blue-core); }
.search-tab:hover { color: var(--blue-core); }

/* Fila de filtros horizontal */
.search-filters {
  display: flex;
  align-items: center;
  background: #f7f5fb;
  border: 1.5px solid rgba(196,24,122,0.14);
  border-radius: 12px;
  overflow: hidden;
}

/* Cada filtro */
.search-filter-item {
  flex: 1;
  min-width: 160px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-select {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--grey-light);
  padding: 1.15rem 2.2rem 1.15rem 1.2rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-select:focus { color: var(--white); }

/* Flecha custom del select */
.search-select-arrow {
  position: absolute;
  right: 0.9rem;
  color: var(--blue-core);
  font-size: 0.7rem;
  pointer-events: none;
}

/* Divisor vertical entre filtros */
.search-filter-divider {
  width: 1px;
  height: 36px;
  background: rgba(196,24,122,0.15);
  flex-shrink: 0;
}

/* Botón buscar — círculo magenta */
.search-submit-btn {
  background: var(--blue-core);
  border: none;
  cursor: pointer;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.05rem;
  transition: background var(--transition);
  border-radius: 0 10px 10px 0;
  margin: 0;
}
.search-submit-btn:hover { background: var(--blue-bright); }

/* Responsive */
@media (max-width: 700px) {
  .search-filters { flex-direction: column; border-radius: 12px; }
  .search-filter-item { width: 100%; }
  .search-filter-divider { width: 90%; height: 1px; margin: 0 auto; }
  .search-submit-btn { width: 100%; height: 50px; border-radius: 0 0 10px 10px; }
  .search-modal { padding: 1.6rem 1.2rem 1.8rem; }
}

/* ════════════════════════════════════════════════════════════
   HERO — Botón "Búsqueda de propiedades"
   ════════════════════════════════════════════════════════════ */

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  opacity: 0;
  animation: fadeUp 0.9s 0.9s forwards;
}

/* Botón principal del hero que abre el popup */
.hero-search-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.95rem 2rem 0.95rem 1.6rem;
  border-radius: 100px;
  background: #ffffff;
  color: var(--white);
  border: 2px solid rgba(196,24,122,0.22);
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(196,24,122,0.12);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s, background 0.25s;
}
.hero-search-open-btn i {
  color: var(--blue-core);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.hero-search-open-btn:hover {
  border-color: var(--blue-core);
  box-shadow: 0 6px 28px rgba(196,24,122,0.22);
  transform: translateY(-2px);
  background: #fff;
}
.hero-search-open-btn:active {
  transform: translateY(0);
}

/* ════════════════════════════════════════════════════════════
   MODAL — Separador + campo búsqueda por código
   ════════════════════════════════════════════════════════════ */

/* Separador "o busca por código" */
.search-divider-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.4rem 0 1.1rem;
}
.search-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(196,24,122,0.12);
}
.search-divider-text {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--grey-mid);
  white-space: nowrap;
}

/* Fila del campo de código */
.search-code-row {
  width: 100%;
}
.search-code-pill {
  display: flex;
  align-items: center;
  background: #f7f5fb;
  border: 1.5px solid rgba(196,24,122,0.14);
  border-radius: 100px;
  padding: 0.3rem 0.3rem 0.3rem 1.2rem;
  gap: 0.6rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.search-code-pill.focused {
  border-color: var(--blue-core);
  box-shadow: 0 0 0 3px rgba(196,24,122,0.08);
}
.search-code-pill.shake {
  animation: shake 0.45s ease;
  border-color: #F6B919;
}
.search-code-icon {
  color: var(--blue-core);
  font-size: 0.9rem;
  opacity: 0.7;
  flex-shrink: 0;
}
.search-code-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  color: var(--white);
  min-width: 0;
}
.search-code-input::placeholder {
  color: var(--grey-mid);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}
.search-code-btn {
  width: 42px;
  height: 42px;
  border-radius: 100px;
  background: var(--grey-dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: background 0.25s, transform 0.2s;
}
.search-code-btn.active { background: var(--blue-core); color: #fff; }
.search-code-btn.active:hover {
  background: var(--blue-bright);
  transform: scale(1.08);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-5px); }
  80%       { transform: translateX(5px); }
}

@media (max-width: 600px) {
  .hero-search-open-btn { width: 100%; justify-content: center; }
}

/* ════════════════════════════════════════════════════════════
   HERO — Pill búsqueda por código (inline en el hero)
   ════════════════════════════════════════════════════════════ */

.hero-code-search {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hero-code-search-pill {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid rgba(196,24,122,0.20);
  border-radius: 100px;
  padding: 0.3rem 0.3rem 0.3rem 1.2rem;
  gap: 0.6rem;
  box-shadow: 0 4px 20px rgba(196,24,122,0.10);
  transition: border-color 0.25s, box-shadow 0.25s;
  min-width: 300px;
}
.hero-code-search-pill.focused {
  border-color: var(--blue-core);
  box-shadow: 0 4px 24px rgba(196,24,122,0.18);
}
.hero-code-search-pill.shake {
  animation: shake 0.45s ease;
  border-color: #F6B919;
}

.hero-code-icon {
  color: var(--blue-core);
  font-size: 0.95rem;
  flex-shrink: 0;
  opacity: 0.7;
}

.hero-code-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  color: var(--white);
  min-width: 0;
}
.hero-code-input::placeholder {
  color: var(--grey-mid);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}

.hero-code-btn {
  width: 44px;
  height: 44px;
  border-radius: 100px;
  background: var(--grey-dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: background 0.25s, transform 0.2s;
}
.hero-code-btn.active { background: var(--blue-core); color: #fff; }
.hero-code-btn.active:hover { background: var(--blue-bright); transform: scale(1.08); }

.hero-code-hint {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  color: var(--grey-mid);
  padding-left: 1.2rem;
}

@media (max-width: 600px) {
  .hero-code-search-pill { min-width: 0; width: 100%; }
  .hero-search-open-btn  { width: 100%; justify-content: center; }
}

/* ════════════════════════════════════════════════════════════
   NAVBAR — Hint "¿Buscas propiedades?" visible solo al scroll
   ════════════════════════════════════════════════════════════ */

.nav-search-li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Texto oculto por defecto */
.nav-search-hint {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--blue-core);
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  pointer-events: none;
  transition:
    opacity 0.40s cubic-bezier(0.4, 0, 0.2, 1),
    max-width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Aparece cuando el navbar tiene clase .scrolled */
#navbar.scrolled .nav-search-hint {
  opacity: 1;
  max-width: 200px;
  pointer-events: auto;
}

/* Parpadeo de la lupa cuando el navbar está en modo scrolled */
@keyframes lupaPulse {
  0%, 100% { color: var(--grey-light); }
  50%       { color: var(--blue-core); transform: scale(1.25); }
}

#navbar.scrolled .nav-search-btn {
  animation: lupaPulse 1.4s ease-in-out infinite;
}
#navbar.scrolled .nav-search-btn:hover {
  animation: none;
  color: var(--blue-core);
}
/* ── Imagen de fondo real en tarjeta grande ── */
.game-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;         /* necesario para que la imagen no se salga */
}
.game-bg-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.game-big:hover .game-bg-real-img {
  transform: scale(1.06);   /* zoom suave al hover */
}

/* ── Imágenes en tarjetas pequeñas ── */
.game-sm-img--photo {
  position: relative;
  width: 130px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-secondary);
}
.game-sm-img--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.game-small:hover .game-sm-img--photo img {
  transform: scale(1.08);
}

/* ════════════════════════════════════════════════════════════
   BUSCADOR INLINE EN HERO — visible directamente
   ════════════════════════════════════════════════════════════ */

.hero-inline-search {
  background: rgba(255,255,255,0.97);
  border-radius: 16px;
  padding: 1.4rem 1.6rem 1.2rem;
  max-width: 900px;
  width: 100%;
  margin-top: 2rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  backdrop-filter: blur(12px);
  opacity: 0;
  animation: fadeUp 0.9s 0.9s forwards;
}

/* Tabs Venta / Arriendo */
.hero-inline-search .his-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0.8rem;
  border-bottom: 2px solid rgba(196,24,122,0.12);
}
.hero-inline-search .his-tab {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--grey-mid);
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.25s, border-color 0.25s;
}
.hero-inline-search .his-tab i { font-size: 1rem; opacity: 0.4; transition: opacity 0.2s; }
.hero-inline-search .his-tab.active {
  color: var(--blue-core);
  border-bottom-color: var(--blue-core);
}
.hero-inline-search .his-tab.active i { opacity: 1; color: var(--blue-core); }
.hero-inline-search .his-tab:hover { color: var(--blue-core); }

/* Filtros */
.hero-inline-search .his-filters {
  display: flex;
  align-items: center;
  background: #f7f5fb;
  border: 1.5px solid rgba(196,24,122,0.14);
  border-radius: 12px;
  overflow: hidden;
  flex-wrap: nowrap;
}
.hero-inline-search .his-filter-item {
  flex: 1;
  min-width: 140px;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-inline-search .his-select {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey-light);
  padding: 1rem 2rem 1rem 1rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-inline-search .his-select:focus { color: var(--white); }
.hero-inline-search .his-select-arrow {
  position: absolute;
  right: 0.8rem;
  color: var(--blue-core);
  font-size: 0.65rem;
  pointer-events: none;
}
.hero-inline-search .his-divider {
  width: 1px;
  height: 32px;
  background: rgba(196,24,122,0.15);
  flex-shrink: 0;
}
.hero-inline-search .his-submit {
  background: var(--blue-core);
  border: none;
  cursor: pointer;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: background 0.25s;
  border-radius: 0 10px 10px 0;
}
.hero-inline-search .his-submit:hover { background: var(--blue-bright); }

/* Separador código */
.hero-inline-search .his-divider-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1rem 0 0.8rem;
}
.hero-inline-search .his-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(196,24,122,0.12);
}
.hero-inline-search .his-divider-text {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--grey-mid);
  white-space: nowrap;
}

/* Campo de código */
.hero-inline-search .his-code-row {
  width: 100%;
}
.hero-inline-search .his-code-pill {
  display: flex;
  align-items: center;
  background: #f7f5fb;
  border: 1.5px solid rgba(196,24,122,0.14);
  border-radius: 100px;
  padding: 0.25rem 0.25rem 0.25rem 1rem;
  gap: 0.5rem;
}
.hero-inline-search .his-code-icon {
  color: var(--blue-core);
  font-size: 0.8rem;
  flex-shrink: 0;
}
.hero-inline-search .his-code-input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--white);
  padding: 0.6rem 0;
}
.hero-inline-search .his-code-input::placeholder { color: var(--grey-mid); }
.hero-inline-search .his-code-btn {
  background: var(--blue-core);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.25s;
}
.hero-inline-search .his-code-btn:hover { background: var(--blue-bright); }

/* Error inline */
.hero-inline-search .his-no-results {
  display: none;
  text-align: center;
  padding: 0.6rem 0;
  color: var(--blue-core);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Responsive */
@media (max-width: 700px) {
  .hero-inline-search { padding: 1.2rem 1rem 1rem; }
  .hero-inline-search .his-filters { flex-direction: column; border-radius: 12px; }
  .hero-inline-search .his-filter-item { width: 100%; }
  .hero-inline-search .his-divider { width: 90%; height: 1px; margin: 0 auto; }
  .hero-inline-search .his-submit { width: 100%; height: 46px; border-radius: 0 0 10px 10px; }
}

