/* ==========================================================================
   SPACIO — Catálogo y Galería Minimalista (Sin Contornos Rígidos)
   Paleta oficial inspirada en Google Sites SPACIO + Identidad de Marca:
   - Azul Marino Arquitectónico: #073763
   - Azul Corporativo Primario: #0B5394
   - Azul Logo SPACIO: #233A7E
   - Carmesí Logo Acento: #B92B21
   - Neutros Limpios: #F5F7FB (lienzo), #FFFFFF (superficie), #111C2D (tinta)
   ========================================================================== */

:root {
  --bg-canvas: #f5f7fb;
  --bg-surface: #ffffff;
  --bg-soft: #eaeff7;
  --bg-soft-hover: #dfe7f3;

  --navy-deep: #073763;
  --navy-corp: #0b5394;
  --navy-logo: #233a7e;
  --accent-red: #b92b21;
  --accent-red-soft: rgba(185, 43, 33, 0.1);

  --ink-primary: #111c2d;
  --ink-secondary: #42526b;
  --ink-muted: #6c7a91;

  --charcoal: #1c1c1c;
  --footer-bg: #101722;

  --wa-green: #25d366;
  --wa-green-hover: #1eb954;

  --shadow-xs: 0 2px 10px rgba(7, 55, 99, 0.04);
  --shadow-sm: 0 8px 24px rgba(7, 55, 99, 0.06);
  --shadow-md: 0 18px 42px rgba(7, 55, 99, 0.10);
  --shadow-lg: 0 28px 64px rgba(7, 55, 99, 0.18);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Lexend', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  box-shadow: 0 0 0 3px rgba(11, 83, 148, 0.32);
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   Top Announcement Bar
   =========================== */
.top-announcement {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8125rem;
  font-weight: 400;
  text-align: center;
  padding: 9px 16px;
  letter-spacing: 0.01em;
}

.top-announcement[hidden] {
  display: none;
}

/* ===========================
   Minimalist Glass Navbar
   =========================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 4px 24px rgba(7, 55, 99, 0.05);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: rgba(7, 55, 99, 0.14);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name-pill {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.brand-tagline {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background: var(--bg-soft);
  color: var(--navy-deep);
}

.nav-link-subtle {
  color: var(--ink-muted);
}

/* ===========================
   Buttons (Zero Hard Contours)
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth), background-color 0.25s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 0.96rem;
}

.btn-xl {
  padding: 16px 32px;
  font-size: 1.02rem;
}

.btn-full {
  width: 100%;
}

.btn-wa {
  background: var(--wa-green);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.28);
}

.btn-wa:hover {
  background: var(--wa-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.36);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ===========================
   Architectural Navy Hero
   =========================== */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--navy-deep);
  color: #ffffff;
  padding: 72px 0 84px;
}

.hero-backdrop {
  position: absolute;
  inset: -40px 0;
  background-image: url('../Imagenes/hero/hero-spacio.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  will-change: transform;
  pointer-events: none;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(7, 55, 99, 0.95) 0%, rgba(11, 83, 148, 0.84) 55%, rgba(7, 55, 99, 0.92) 100%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  right: -140px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 43, 33, 0.26) 0%, rgba(11, 83, 148, 0) 68%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.88fr);
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 0 4px rgba(185, 43, 33, 0.28);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.3vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.86);
  max-width: 580px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Studio Brand Pedestal (luminous borderless white card in hero) */
.hero-brand-stage {
  display: flex;
  justify-content: flex-end;
}

.hero-brand-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink-primary);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: 0 32px 70px rgba(4, 24, 48, 0.38);
}

.hero-brand-logo {
  width: 100%;
  max-width: 290px;
  margin: 0 auto 26px;
  object-fit: contain;
}

.hero-highlights {
  display: grid;
  gap: 12px;
}

.highlight-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: var(--bg-canvas);
  border-radius: var(--radius-sm);
}

.chip-accent {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--navy-corp);
  flex-shrink: 0;
}

.chip-accent-red {
  background: var(--accent-red);
}

.highlight-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.highlight-chip small {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* ===========================
   Sticky Controls Bar (Search + Pills)
   =========================== */
.controls-bar {
  position: sticky;
  top: 74px;
  z-index: 80;
  background: rgba(245, 247, 251, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 18px 0 14px;
  box-shadow: 0 10px 30px rgba(7, 55, 99, 0.04);
}

.controls-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-field-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.25s ease;
}

.search-field-wrap:focus-within {
  box-shadow: 0 10px 28px rgba(11, 83, 148, 0.12);
}

.search-icon {
  position: absolute;
  left: 18px;
  color: var(--ink-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 13px 44px 13px 48px;
  font-size: 0.95rem;
  color: var(--ink-primary);
  border-radius: var(--radius-pill);
}

.search-input::placeholder {
  color: var(--ink-muted);
}

.search-clear {
  position: absolute;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  color: var(--ink-secondary);
  font-size: 0.8rem;
  cursor: pointer;
}

.search-clear[hidden] {
  display: none;
}

.gallery-stats {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
}

.pills-scroll-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.pills-scroll-wrap::-webkit-scrollbar {
  display: none;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  color: var(--ink-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all 0.22s var(--ease-smooth);
}

.cat-pill:hover {
  background: var(--bg-soft);
  color: var(--navy-deep);
  transform: translateY(-1px);
}

.cat-pill.is-active {
  background: var(--navy-deep);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(7, 55, 99, 0.24);
}

.pill-count {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(7, 55, 99, 0.08);
  color: var(--navy-deep);
  font-weight: 600;
}

.cat-pill.is-active .pill-count {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* ===========================
   Gallery Sections & Grid (Zero Borders)
   =========================== */
.gallery-section {
  padding: 40px 0 84px;
  min-height: 50vh;
}

.section-block {
  margin-bottom: 64px;
}

.section-block:last-child {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-xs);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-desc {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin-top: 4px;
  max-width: 720px;
}

.section-count-chip {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-corp);
  background: rgba(11, 83, 148, 0.09);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
  gap: 24px;
}

/* Borderless Soft-Elevated Product Card */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.product-card.is-unavailable {
  opacity: 0.72;
}

.product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transition: transform 0.55s var(--ease-smooth);
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  gap: 8px;
}

.card-badge {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(7, 55, 99, 0.88);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
}

.card-badge-featured {
  background: rgba(185, 43, 33, 0.92);
}

.card-soldout-pill {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(28, 28, 28, 0.86);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
}

.product-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.product-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.3;
}

.product-desc {
  font-size: 0.84rem;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.product-footer {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-price {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-corp);
}

.product-cta-chip {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-deep);
  background: var(--bg-soft);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.product-card:hover .product-cta-chip {
  background: var(--navy-deep);
  color: #ffffff;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 72px 24px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy-deep);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--ink-muted);
  margin-bottom: 20px;
}

/* ===========================
   Contact Banner Section
   =========================== */
.contact-section {
  padding-bottom: 80px;
}

.contact-card {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-corp) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr);
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.contact-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 10px;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}

.contact-desc {
  color: rgba(255, 255, 255, 0.86);
  max-width: 560px;
  margin-bottom: 26px;
}

.contact-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.meta-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
}

.meta-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 4px;
}

.meta-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  word-break: break-word;
}

.meta-link:hover {
  text-decoration: underline;
}

.contact-cta-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.social-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-pill:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.78);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo-badge {
  background: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
}

.footer-logo {
  height: 30px;
  width: auto;
}

.footer-name {
  font-family: var(--font-display);
  color: #ffffff;
  font-size: 1rem;
  display: block;
}

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-meta {
  text-align: right;
  font-size: 0.84rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.56);
}

.footer-admin-link {
  color: rgba(255, 255, 255, 0.72);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  transition: background-color 0.2s ease;
}

.footer-admin-link:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* ===========================
   Floating WhatsApp Button
   =========================== */
.floating-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 85;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s ease;
}

.floating-wa:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.5);
}

/* ===========================
   Split Lightbox Modal (Zero Contours)
   =========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 38, 0.72);
  backdrop-filter: blur(10px);
}

.modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  box-shadow: 0 36px 80px rgba(4, 18, 36, 0.42);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-primary);
  font-size: 1rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.modal-close:hover {
  transform: scale(1.08);
  background: var(--bg-soft);
}

.modal-media-col {
  position: relative;
  background: #0d1b2e;
  min-height: 440px;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-media-blur {
  position: absolute;
  inset: -24px;
  background-size: cover;
  background-position: center;
  filter: blur(26px) brightness(0.65);
  transform: scale(1.1);
}

.modal-img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy-deep);
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.modal-nav:hover {
  transform: translateY(-50%) scale(1.08);
}

.modal-nav-prev {
  left: 14px;
}

.modal-nav-next {
  right: 14px;
}

.modal-zoom-btn {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(7, 55, 99, 0.85);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal-info-col {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.modal-meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.modal-category-pill {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--navy-deep);
  font-size: 0.76rem;
  font-weight: 600;
}

.modal-badge-pill {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-red-soft);
  color: var(--accent-red);
  font-size: 0.76rem;
  font-weight: 600;
}

.modal-badge-pill[hidden] {
  display: none;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-deep);
  line-height: 1.22;
  margin-bottom: 14px;
}

.modal-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-corp);
}

.modal-availability {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(37, 211, 102, 0.14);
  color: #0e8a3e;
  font-size: 0.76rem;
  font-weight: 600;
}

.modal-availability.is-unavailable {
  background: rgba(185, 43, 33, 0.12);
  color: var(--accent-red);
}

.modal-description {
  font-size: 0.94rem;
  color: var(--ink-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.modal-highlights {
  background: var(--bg-canvas);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.modal-spec {
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

.modal-actions {
  margin-top: auto;
}

/* ===========================
   Fullscreen Ultra-Zoom
   =========================== */
.fullscreen-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6, 15, 28, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.fullscreen-lightbox[hidden] {
  display: none;
}

.fullscreen-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 310;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 1.15rem;
  cursor: pointer;
}

.fullscreen-img {
  max-width: 94vw;
  max-height: 86vh;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.3s var(--ease-smooth);
}

.fullscreen-img.is-zoomed {
  transform: scale(1.65);
  cursor: zoom-out;
}

.fullscreen-hint {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
}

/* ===========================
   Responsive Breakpoints
   =========================== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-brand-stage {
    justify-content: flex-start;
  }

  .hero-brand-card {
    max-width: 100%;
  }

  .contact-card {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }

  .modal-dialog {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }

  .modal-media-col {
    min-height: 290px;
    max-height: 44vh;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .brand-divider,
  .brand-text-wrap,
  .nav-link {
    display: none;
  }

  .brand-logo {
    height: 38px;
  }

  .controls-bar {
    top: 66px;
  }

  .navbar-inner {
    min-height: 66px;
  }

  .hero {
    padding: 46px 0 56px;
  }

  .hero-brand-card {
    padding: 24px 20px;
  }

  .search-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .gallery-stats {
    text-align: right;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }

  .product-body {
    padding: 13px 14px 15px;
  }

  .product-title {
    font-size: 0.9rem;
  }

  .product-desc {
    display: none;
  }

  .footer-meta {
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
