:root {
  --bg-deep: #07080d;
  --bg-card: #10131f;
  --bg-glass: rgba(12, 15, 25, 0.92);
  --cyan: #00f0ff;
  --cyan-dim: rgba(0, 240, 255, 0.15);
  --magenta: #ff00a0;
  --orange: #ff6a00;
  --text-main: #f3f6ff;
  --text-muted: #9aa4c2;
  --border-subtle: rgba(0, 240, 255, 0.24);
  --grad-brand: linear-gradient(135deg, var(--cyan) 0%, var(--magenta) 55%, var(--orange) 100%);
  --grad-btn: linear-gradient(90deg, #00d2ff 0%, #ff00a0 100%);
  --shadow-neon: 0 0 24px rgba(0, 240, 255, 0.2), 0 0 48px rgba(255, 0, 160, 0.1);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(0, 240, 255, 0.09) 0%, transparent 35%),
    radial-gradient(circle at 85% 20%, rgba(255, 0, 160, 0.09) 0%, transparent 40%);
  color: var(--text-main);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Simple 1-line Top Promo Bar */
.top-bar {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.14), rgba(255, 0, 160, 0.18));
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
  padding: 0.38rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Ultra-Clean 1-Row Sticky Navbar (Desktop & Mobile) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.6rem 1.25rem;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-main);
  flex-shrink: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  background: #07080d;
  border: 1.5px solid var(--cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.05;
}

.brand-subtitle {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
  font-weight: 700;
  text-transform: uppercase;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin-right: 0.5rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--cyan);
}

/* Clean Dropdown Button for "Diseños" */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.52rem 0.95rem;
  border-radius: var(--radius-md);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.nav-dropdown-btn:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 230px;
  background: #0d101b;
  border: 1px solid var(--cyan);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-neon);
  padding: 0.45rem;
  list-style: none;
  display: none;
  z-index: 100;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

@media (hover: hover) {
  .nav-dropdown:hover .nav-dropdown-menu {
    display: block;
  }
}

.nav-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-dropdown-menu li a:hover {
  background: var(--cyan-dim);
  color: var(--cyan);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  color: var(--text-main);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 0, 160, 0.3);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--cyan);
  background: var(--cyan-dim);
}

.cart-badge {
  background: var(--cyan);
  color: #05070c;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
}

/* Hero Section */
.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.75rem 1.5rem 2.25rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.25rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-subtle);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.95rem;
}

.hero h1 span {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.04rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-cta .btn {
  padding: 0.75rem 1.35rem;
  font-size: 0.95rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-card {
  position: relative;
  padding: 0.85rem;
  border-radius: 26px;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.22), rgba(255, 0, 160, 0.12), rgba(10, 12, 20, 0.96));
  border: 1.5px solid rgba(0, 240, 255, 0.45);
  box-shadow:
    0 0 30px rgba(0, 240, 255, 0.28),
    0 0 60px rgba(255, 0, 160, 0.18),
    inset 0 0 24px rgba(0, 240, 255, 0.15);
  max-width: 370px;
  width: 100%;
  overflow: hidden;
  animation: heroFloat 4.5s ease-in-out infinite;
}

.hero-anim-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: #05060b;
}

.hero-anim-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  animation: logoPulseGlow 3.2s ease-in-out infinite alternate;
}

.hero-anim-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Holographic light sweep across the emblem */
.hero-anim-stage::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(0, 240, 255, 0.16) 48%,
    rgba(255, 0, 160, 0.18) 52%,
    transparent 58%
  );
  transform: translateX(-100%) rotate(12deg);
  animation: holoSweep 4.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}

@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0px);
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.28), 0 0 55px rgba(255, 0, 160, 0.16);
  }
  50% {
    transform: translateY(-8px);
    box-shadow: 0 12px 38px rgba(0, 240, 255, 0.45), 0 0 70px rgba(255, 0, 160, 0.3);
  }
}

@keyframes logoPulseGlow {
  0% {
    filter: contrast(1.04) saturate(1.08) brightness(1);
    transform: scale(1);
  }
  100% {
    filter: contrast(1.1) saturate(1.22) brightness(1.08);
    transform: scale(1.022);
  }
}

@keyframes holoSweep {
  0%, 25% {
    transform: translateX(-110%) rotate(12deg);
  }
  75%, 100% {
    transform: translateX(110%) rotate(12deg);
  }
}

/* Section Container */
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 900;
}

.section-title span {
  color: var(--cyan);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Catalog Layout */
.catalog-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.disenos-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  position: sticky;
  top: 80px;
}

.disenos-sidebar-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.category-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cat-btn {
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cat-btn:hover,
.cat-btn.active {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-subtle);
}

.product-thumb {
  height: 185px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 35%, rgba(0, 240, 255, 0.16), rgba(255, 0, 160, 0.07), #0b0e17);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-icon-svg {
  font-size: 3.8rem;
}

.product-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(7, 8, 13, 0.85);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.product-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.65rem;
}

.product-title {
  font-size: 1.08rem;
  font-weight: 800;
}

.product-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  flex: 1;
}

.option-group label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.option-group select,
.form-control {
  width: 100%;
  padding: 0.52rem 0.65rem;
  background: #090b12;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.86rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.2rem;
}

.product-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--cyan);
}

/* Friendly Custom Order Section */
.quote-box {
  background: linear-gradient(145deg, rgba(16, 19, 31, 0.95), rgba(24, 15, 38, 0.9));
  border: 1px solid rgba(255, 0, 160, 0.35);
  border-radius: 20px;
  padding: 1.75rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.75rem;
  align-items: center;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.quote-result-card {
  background: #080a11;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #05060a;
  padding: 2.5rem 1.5rem 2rem;
  margin-top: 2rem;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.75rem;
}

.footer-list {
  list-style: none;
  margin-top: 0.6rem;
}

.footer-list li {
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-list a {
  color: var(--cyan);
  text-decoration: none;
}

/* Modern Dialog Styling */
dialog {
  margin: auto;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--cyan);
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 520px;
  width: calc(100% - 1.5rem);
  box-shadow: var(--shadow-neon);
  opacity: 0;
  transform: scale(0.95);
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.25s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(4px);
  transition-property: background-color, display, overlay;
  transition-duration: 0.25s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}

:is(dialog[open]):where(:not([data-closing])) {
  opacity: 1;
  transform: scale(1);

  @starting-style {
    opacity: 0;
    transform: scale(0.95);
  }

  &::backdrop {
    background-color: rgba(4, 6, 12, 0.75);

    @starting-style {
      background-color: rgba(0, 0, 0, 0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog {
    transform: none;
    transition-duration: 0.1s;
  }
  @starting-style {
    dialog[open] {
      transform: none;
    }
  }
}

.dialog-header {
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dialog-body {
  padding: 1.35rem;
  max-height: 75vh;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 0.65rem;
}

.cart-item-info h4 {
  font-size: 0.92rem;
}

.cart-item-info small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.qty-btn {
  background: #090b12;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
}

/* Mobile Layout (iPhone & Android) - Super Clean & Simple */
@media (max-width: 860px) {
  .navbar {
    padding: 0.55rem 0.85rem;
  }
  .brand-logo {
    width: 40px;
    height: 40px;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-subtitle {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }
  /* Hide secondary text links on mobile so the header is ALWAYS 1 clean row */
  .nav-links {
    display: none;
  }
  .nav-right {
    gap: 0.45rem;
  }
  .nav-dropdown-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
  }
  .nav-right .btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem 1.25rem;
    gap: 1.35rem;
    text-align: center;
  }
  .hero h1 {
    font-size: 1.85rem;
  }
  .hero p {
    font-size: 0.94rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.15rem;
  }
  .hero-cta {
    flex-direction: column;
    gap: 0.6rem;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .hero-logo-card {
    max-width: 230px;
    padding: 0.75rem;
    margin: 0 auto;
  }

  .section {
    padding: 1.75rem 1rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .catalog-layout > *,
  .disenos-sidebar,
  .category-tabs {
    min-width: 0;
    max-width: 100%;
  }
  .disenos-sidebar {
    position: sticky;
    top: 60px;
    z-index: 30;
    padding: 0.6rem 0.75rem;
    background: rgba(16, 19, 31, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
  }
  .disenos-sidebar-title {
    display: none;
  }
  .category-tabs {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.45rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .category-tabs::-webkit-scrollbar {
    display: none;
  }
  .cat-btn {
    width: auto;
    flex: 0 0 auto;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    border-radius: 999px;
    white-space: nowrap;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .quote-box,
  .quote-grid {
    grid-template-columns: 1fr;
  }
  .quote-box {
    padding: 1.15rem;
    gap: 1.1rem;
  }
}
@media (max-width: 860px) {
  .navbar { padding: 0.5rem 0.65rem; }
  .nav-container { gap: 0.4rem; }
  .brand { gap: 0.45rem; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-title { font-size: 0.95rem; }
  .brand-subtitle { font-size: 0.54rem; letter-spacing: 0.1em; }
  .nav-right { gap: 0.35rem; }
  .nav-dropdown-btn, .nav-right .btn { padding: 0.4rem 0.6rem; font-size: 0.78rem; }
}
