/* Variables Globales y Reset */
:root {
  --bg-plaza: #f8fafc;
  --bg-card: #ffffff;
  --primary-navy: #0f172a;
  --secondary-slate: #334155;
  --accent-gold: #d97706;
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #cbd5e1;
  --radius: 12px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--bg-plaza);
  color: var(--text-main);
  line-height: 1.6;
}

/* Header Comercial */
.mall-header {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-slate) 100%);
  color: #ffffff;
  padding: 3rem 1.5rem;
  text-align: center;
}

.mall-badge {
  background: var(--accent-gold);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 20px;
}

.mall-header h1 {
  font-size: 2.2rem;
  margin: 12px 0 6px;
}

.mall-header p {
  color: #94a3b8;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Plaza de Locales */
.mall-plaza {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.loading-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Estructura de Cada Local Comercial */
.store-building {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.store-building:hover {
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.12);
}

/* Fachada / Rótulo */
.store-façade {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  color: #ffffff;
  padding: 1.5rem 2.2rem;
}

.store-number {
  background: var(--accent-gold);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.store-brand {
  margin: 8px 0 0;
  font-size: 1.4rem;
  color: #ffffff;
}

/* Interior del Local */
.store-interior {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 2.2rem;
}

@media (min-width: 850px) {
  .store-interior {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

/* Vitrina de Exposición con Respeto Absoluto a Aspect-Ratio */
.store-display-window {
  width: 100%;
  background-color: #e2e8f0;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.store-display-window img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.store-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.store-info h3 {
  color: var(--primary-navy);
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.store-info p {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.btn-enter-store {
  display: inline-block;
  background: var(--accent-blue);
  color: #ffffff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  transition: background 0.2s ease;
}

.btn-enter-store-white {
  display: inline-block;
  background: #b1b1b1;
  color: #ffffff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  transition: background 0.2s ease;
}

.btn-enter-store:hover {
  background: var(--accent-blue-hover);
}

/* Footer */
.mall-footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
}

/* Reset básico para experiencia responsiva */
html,
body {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* -------------------------------------------
       COMPORTAMIENTO POR DEFECTO (ESCRITORIO)
       ------------------------------------------- */
.mobile-header-bar {
  display: none;
}

.menu-header-mobile {
  display: none;
}

.menu-overlay {
  display: none;
}

#menuNav {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.directory-btn {
  background: #002a6f;
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.directory-btn.active,
.directory-btn:hover {
  background: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}

/* -------------------------------------------
       COMPORTAMIENTO PROFESIONAL MÓVIL (Hasta 768px)
       ------------------------------------------- */
@media screen and (max-width: 768px) {

  .mobile-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 12px 20px;
    z-index: 1000;
    box-sizing: border-box;
  }

  .mobile-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: #1a1a1a;
  }

  #menubtn {
    background: #222d41;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1001;
  }

  .menu-overlay.activo {
    opacity: 1;
    pointer-events: auto;
  }

  .menu-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eeeeee;
  }

  #menuNav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 310px;
    height: 100vh;
    background-color: #ffffff;
    flex-direction: column;
    justify-content: flex-start;
    padding: 24px 16px;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1002;
    box-sizing: border-box;
    display: flex;
  }

  #menuNav.abierto {
    transform: translateX(-125%);
  }

  .menu-header-mobile h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
  }

  .btn-close-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
  }

  #menuNav .directory-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    box-sizing: border-box;
    box-shadow: none;
    transform: none;
  }

  #menuNav .directory-btn:active {
    background-color: #e2e8f0;
  }

  .mall-plaza {
    padding: 12px;
    max-width: 100%;
    margin: 1.5rem auto;
  }

  .store-building {
    margin-bottom: 24px;
    border-radius: 12px;
  }

  .store-display-window img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
  }

  .btn-enter-store {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    min-height: 44px;
    box-sizing: border-box;
  }
}
