/* ═══════════════════════════════════════════════════════════
   scesa store — styles.css
   Tema: Luxury Dark Tech  |  Fuentes: Syne + DM Sans
═══════════════════════════════════════════════════════════ */

:root {
  --bg:        #080a0f;
  --surface:   #0f1117;
  --surface2:  #161921;
  --surface3:  #1d2130;
  --border:    #252836;
  --border2:   #323548;
  --accent:    #00e5ff;
  --accent-dk: #00b8cc;
  --accent2:   #ff6b35;
  --accent3:   #7c3aed;
  --text:      #eef0f5;
  --text2:     #f4f4f8;
  --text3:     #fefeff;
  --success:   #10b981;
  --error:     #ef4444;
  --warning:   #f59e0b;
  --gold:      #f59e0b;

  --radius:    16px;
  --radius-sm: 8px;
  --radius-xs: 4px;
  --shadow:    0 4px 24px rgba(0,0,0,0.4);
  --glow:      0 0 40px rgba(0,229,255,0.1);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);

  --navbar-h: 70px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }
a { color: var(--accent); cursor: pointer; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dk); }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }
img { max-width: 100%; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ─── ANIMATIONS ─── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes toastIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(110%); opacity: 0; }
}
@keyframes brandScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── LAYOUT ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 80px 0; }
.section.alt { background: var(--surface); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-family: 'Syne', sans-serif; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: .6rem; }
.section-header p { color: var(--text2); font-size: 1.05rem; }
.center-btn { text-align: center; margin-top: 3rem; }

.essentials-grid,
.products-intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.essential-card,
.products-intro-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.essential-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.essential-card h4,
.products-intro-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
}

.essential-card p,
.products-intro-card p {
  color: var(--text2);
  line-height: 1.7;
}

.essential-card .btn-accent,
.essential-card .btn-ghost {
  margin-top: auto;
}

.products-section-header {
  margin-top: 3rem;
}

.products-intro-card.accent {
  background:
    radial-gradient(circle at top right, rgba(0,229,255,.16), transparent 42%),
    linear-gradient(135deg, rgba(124,58,237,.2), rgba(15,17,23,.98));
}

.products-intro-kicker {
  display: inline-flex;
  align-items: center;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: rgba(0,229,255,.1);
  border: 1px solid rgba(0,229,255,.2);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 1rem;
}

.products-mini-stats {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  align-items: center;
}

.products-mini-stats div {
  background: rgba(8,10,15,.35);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  padding: 1rem .85rem;
  text-align: center;
}

.products-mini-stats strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  margin-bottom: .35rem;
}

.products-mini-stats span {
  color: var(--text2);
  font-size: .82rem;
}

/* ─── PAGES ─── */
.page { display: none; min-height: 100vh; padding-top: var(--navbar-h); animation: fadeIn 0.3s ease; }
.page.active { display: block; }
#page-home { padding-top: 0; }

/* ─── HERO SMALL TRANSPARENTE PREMIUM ─── */
.page-hero-sm {
  background: rgba(8, 10, 15, 0.4) !important; /* Fondo negro muy transparente */
  backdrop-filter: blur(12px); /* Efecto de cristal esmerilado */
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-hero-sm h1 {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.3); /* Brillo suave al texto */
}

.page-hero-sm p {
  color: var(--text2);
  font-size: 1rem;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}


/* ─── NAVBAR ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(8,10,15,0.9); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  height: var(--navbar-h);
}
.nav-inner { max-width: 1300px; margin: 0 auto; padding: 0 2rem; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.nav-logo {
  font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 800;
  color: var(--text); display: flex; align-items: center; gap: 10px;
  cursor: pointer; text-decoration: none; flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }
.logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; color: #000;
}
.nav-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: brightness(1.05);
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text2); font-size: .88rem; font-weight: 500; transition: color var(--transition); cursor: pointer; }
.nav-links a:hover { color: var(--accent); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#navUserArea {
  display: flex;
  flex-direction: row !important;
  gap: 0.5rem;
  align-items: center;
}

.nav-btn {
  background: none;
  border: 1px solid var(--border2);
  color: var(--text2);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all var(--transition);
}
.nav-btn:hover { border-color: var(--accent); color: var(--accent); }
.nav-btn.primary { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 700; }
.nav-btn.primary:hover { background: var(--accent-dk); box-shadow: 0 0 20px rgba(0,229,255,.35); }

.cart-btn {
  position: relative; background: var(--surface2);
  border: 1px solid var(--border2); color: var(--text);
  padding: 9px 14px; border-radius: var(--radius-sm); font-size: 1rem;
  transition: all var(--transition);
}
.cart-btn:hover { border-color: var(--accent); color: var(--accent); }
.cart-count {
  position: absolute; top: -7px; right: -7px;
  background: var(--accent2); color: #fff;
  font-size: .68rem; font-weight: 700; min-width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

.user-greeting { font-size: .85rem; color: var(--text2); }
.user-greeting strong { color: var(--accent); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: var(--navbar-h); left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 1.5rem; gap: 1.25rem; z-index: 999; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .nav-btn { padding: 6px 12px; font-size: 0.78rem; }
  .nav-logo-img { height: 36px; }
}

@media (max-width: 480px) {
  .nav-btn span { display: none; }
  .nav-btn { padding: 8px 10px; }
  .nav-btn i { font-size: 1rem; margin: 0; }
  .nav-logo-img { height: 32px; }
  .products-mini-stats {
    grid-template-columns: 1fr;
  }
}

/* ─── CART DRAWER ─── */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.65);
  z-index: 1100; opacity: 0; pointer-events: none; transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 95vw);
  background: var(--surface); border-left: 1px solid var(--border);
  z-index: 1200; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.5);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.cart-header h3 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--text); }
.cart-header button { background: none; border: none; color: var(--text2); font-size: 1.25rem; cursor: pointer; transition: color var(--transition); }
.cart-header button:hover { color: var(--error); }

.cart-items { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 1rem; color: var(--text2); text-align: center; }
.cart-empty i { font-size: 3rem; opacity: .3; }

.cart-item {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .85rem;
  display: flex; gap: .85rem; align-items: flex-start;
}
.cart-item-emoji { font-size: 2rem; flex-shrink: 0; width: 50px; height: 50px; background: var(--surface3); border-radius: var(--radius-xs); display: flex; align-items: center; justify-content: center; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: .88rem; font-weight: 600; margin-bottom: .25rem; }
.cart-item-price { font-size: .95rem; color: var(--accent); font-weight: 700; }
.cart-item-controls { display: flex; align-items: center; gap: .4rem; margin-top: .4rem; }
.qty-btn { background: var(--surface3); border: 1px solid var(--border); color: var(--text); width: 26px; height: 26px; border-radius: 6px; font-size: .85rem; cursor: pointer; transition: all var(--transition); }
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.qty-num { font-size: .9rem; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-del { background: none; border: none; color: var(--text3); font-size: .85rem; padding: 4px; margin-left: auto; cursor: pointer; transition: color var(--transition); }
.cart-item-del:hover { color: var(--error); }

.cart-footer { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); background: var(--surface2); }
.cart-totals { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.total-row { display: flex; justify-content: space-between; font-size: .9rem; color: var(--text2); }
.total-row.total { font-size: 1.1rem; font-weight: 700; color: var(--text); padding-top: .5rem; border-top: 1px solid var(--border); margin-top: .25rem; }
.free-ship { color: var(--success); font-weight: 600; font-size: .82rem; }

.btn-checkout {
  width: 100%; padding: 1rem; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  color: #000; font-weight: 700; font-size: .95rem; border: none;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; transition: all var(--transition); box-shadow: 0 4px 20px rgba(0,229,255,.25);
}
.btn-checkout:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,229,255,.4); }

/* ─── TOAST ─── */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: .6rem; }
.toast {
  background: var(--surface2); border: 1px solid var(--border2);
  padding: .85rem 1.2rem; border-radius: var(--radius-sm);
  font-size: .88rem; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow); min-width: 260px; max-width: 340px;
  animation: toastIn .35s ease;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--error); }
.toast.info    { border-left: 3px solid var(--accent); }
.toast i { font-size: 1rem; }
.toast.success i { color: var(--success); }
.toast.error i   { color: var(--error); }
.toast.info i    { color: var(--accent); }
.toast.out { animation: toastOut .35s ease forwards; }

/* ─── HERO CAROUSEL ─── */
.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  padding-top: var(--navbar-h);
}
.hero-carousel-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.hero-slide {
  min-width: 100%;
  min-height: 580px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2.5rem 2rem 5rem;
}
.hero-slide-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-slide-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  text-align: center;
  animation: fadeInUp .5s ease;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(0,229,255,.08); border: 1px solid rgba(0,229,255,.2);
  color: var(--accent); padding: 5px 16px; border-radius: 50px;
  font-size: .78rem; font-weight: 600; letter-spacing: .05em; margin-bottom: 1.5rem;
}
.hero-slide-content h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin: .75rem 0 1rem;
}
.hero-slide-content h1 em { font-style: normal; color: var(--accent); }
.hero-slide-content p {
  color: var(--text2);
  font-size: .95rem;
  max-width: 500px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}
.hero-slide-visual {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}
.slide-icon-wrap {
  width: 150px;
  height: 150px;
  border-radius: 32px;
  background: rgba(0,229,255,.08);
  border: 1px solid rgba(0,229,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--accent);
  box-shadow: 0 0 80px rgba(0,229,255,.08);
  animation: float 5s ease-in-out infinite;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(15,17,23,.75);
  border: 1px solid var(--border2);
  color: var(--text);
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.carousel-btn:hover { background: var(--accent); color: #000; border-color: var(--accent); }
.carousel-btn.prev { left: 1.5rem; }
.carousel-btn.next { right: 1.5rem; }
.carousel-dots {
  position: absolute;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 10;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border2);
  border: none;
  transition: all .3s ease;
  cursor: pointer;
}
.dot.active {
  width: 28px;
  border-radius: 4px;
  background: var(--accent);
}
.hero-stats-bar {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: rgba(15,17,23,.85);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: .65rem 2rem;
  z-index: 10;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .2rem 2.5rem;
}
.stat-item strong {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}
.stat-item span { font-size: .72rem; color: var(--text2); }
.stat-sep {
  width: 1px;
  height: 32px;
  background: var(--border2);
}
@media (max-width: 768px) {
  .hero-slide-visual { display: none; }
  .hero-slide { min-height: 480px; padding: 2rem 1.5rem 5rem; }
  .stat-item { padding: .2rem 1rem; }
  .carousel-btn { display: none; }
}

/* ─── BUTTONS ─── */
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  color: #000; font-weight: 700; padding: .7rem 1.6rem; border: none;
  border-radius: var(--radius-sm); font-size: .9rem;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; transition: all var(--transition); box-shadow: 0 4px 20px rgba(0,229,255,.2);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,229,255,.4); }
.btn-accent.large { padding: .9rem 2rem; font-size: .95rem; }

.btn-ghost {
  background: none; color: var(--text); font-weight: 600;
  padding: .7rem 1.6rem; border: 1px solid var(--border2);
  border-radius: var(--radius-sm); font-size: .9rem;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; transition: all var(--transition);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost.large { padding: .9rem 2rem; font-size: .95rem; }

.btn-submit {
  width: 100%; padding: .9rem; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  color: #000; font-weight: 700; font-size: .95rem; border: none;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; transition: all var(--transition); box-shadow: 0 4px 20px rgba(0,229,255,.2);
  margin-top: .5rem;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,229,255,.4); }

.btn-demo {
  width: 100%; padding: .8rem; border-radius: var(--radius-sm);
  background: none; border: 1px solid var(--border2);
  color: var(--text2); font-size: .88rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; transition: all var(--transition);
}
.btn-demo:hover { border-color: var(--accent); color: var(--accent); }

/* ─── CATEGORIES ─── */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.25rem; }
.cat-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem 1.25rem; text-align: center;
  cursor: pointer; transition: all var(--transition);
}
.cat-card:hover { border-color: var(--c, var(--accent)); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.cat-icon {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 1rem;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--c);
}
.cat-card h4 { font-family: 'Syne', sans-serif; font-size: .9rem; font-weight: 700; margin-bottom: .3rem; }
.cat-card p { font-size: .75rem; color: var(--text2); }

/* ─── PRODUCTS GRID ─── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.product-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all var(--transition); cursor: pointer; display: flex; flex-direction: column;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,.4); }
.product-img {
  background: var(--surface3); height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; position: relative; overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.25rem;
  background:
    radial-gradient(circle at top, rgba(0,229,255,.14), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.08));
}
.product-img .badge-new, .product-img .badge-sale {
  position: absolute; top: .75rem; right: .75rem;
  padding: 3px 10px; border-radius: 50px;
  font-size: .68rem; font-weight: 700;
}
.badge-new  { background: var(--accent); color: #000; }
.badge-sale { background: var(--accent2); color: #fff; }
.product-info { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.product-cat  { font-size: .72rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .35rem; }
.product-name { font-family: 'Syne', sans-serif; font-size: .95rem; font-weight: 700; margin-bottom: .4rem; line-height: 1.35; }
.product-meta-inline { font-size: .74rem; color: var(--text2); margin-bottom: .55rem; letter-spacing: .04em; text-transform: uppercase; }
.product-desc { font-size: .8rem; color: var(--text2); line-height: 1.55; margin-bottom: .85rem; flex: 1; }
.product-stars { color: var(--gold); font-size: .75rem; margin-bottom: .5rem; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.product-price { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--text); }
.product-price del { font-size: .78rem; color: var(--text3); font-weight: 400; margin-right: .25rem; }
.btn-add {
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  color: #000; border: none; padding: .5rem 1rem; border-radius: var(--radius-xs);
  font-size: .8rem; font-weight: 700; display: flex; align-items: center; gap: 5px;
  cursor: pointer; transition: all var(--transition);
}
.btn-add:hover { box-shadow: 0 4px 16px rgba(0,229,255,.4); transform: scale(1.05); }

/* ─── PRODUCTS TOOLBAR ─── */
.products-toolbar { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.search-box { display: flex; align-items: center; gap: .5rem; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .5rem 1rem; min-width: 220px; flex: 1; }
.search-box i { color: var(--text2); }
.search-box input { background: none; border: none; color: var(--text); font-size: .9rem; flex: 1; outline: none; }
.filter-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.filter-tab { background: none; border: 1px solid var(--border); color: var(--text2); padding: .4rem .9rem; border-radius: 50px; font-size: .78rem; font-weight: 500; cursor: pointer; transition: all var(--transition); }
.filter-tab.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 700; }
.filter-tab:hover:not(.active) { border-color: var(--accent); color: var(--accent); }
.sort-box select { background: var(--surface2); border: 1px solid var(--border); color: var(--text); padding: .5rem .85rem; border-radius: var(--radius-sm); font-size: .85rem; outline: none; cursor: pointer; }
.no-results { text-align: center; padding: 5rem 0; color: var(--text2); }
.no-results i { font-size: 3rem; margin-bottom: 1rem; display: block; opacity: .3; }

.product-detail-view { animation: fadeIn .28s ease; }
.detail-back-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); padding: .8rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; margin-bottom: 1.5rem; transition: all var(--transition);
}
.detail-back-btn:hover { border-color: var(--accent); color: var(--accent); }
.product-detail-shell {
  display: grid;
  gap: 1.5rem;
}
.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.product-detail-media,
.product-detail-main,
.detail-section-card,
.detail-data-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.product-detail-media {
  padding: 1.25rem;
}
.product-detail-image-wrap {
  min-height: 360px;
  height: 100%;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(0,229,255,.12), transparent 58%),
    linear-gradient(180deg, var(--surface3), rgba(8,10,15,.95));
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-detail-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2rem;
}
.product-detail-main {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.product-detail-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.detail-chip {
  display: inline-flex;
  align-items: center;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: rgba(0,229,255,.12);
  border: 1px solid rgba(0,229,255,.2);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
}
.product-detail-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.05;
}
.product-detail-stars span { color: var(--text2); margin-left: .35rem; }
.product-detail-summary {
  color: var(--text2);
  line-height: 1.7;
  font-size: 1rem;
}
.product-detail-price-row {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}
.detail-old-price {
  color: var(--text3);
  text-decoration: line-through;
  font-size: 1rem;
}
.product-detail-price {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}
.product-detail-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.product-detail-data {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.detail-data-card {
  padding: 1rem 1.1rem;
}
.detail-data-card span {
  display: block;
  font-size: .76rem;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .45rem;
}
.detail-data-card strong {
  font-size: .98rem;
  line-height: 1.45;
}
.product-detail-sections {
  display: grid;
  gap: 1rem;
}
.detail-section-card {
  padding: 1.35rem;
}
.detail-section-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  margin-bottom: .85rem;
}
.detail-section-card p {
  color: var(--text2);
  line-height: 1.8;
}
.detail-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .85rem;
}
.detail-spec-item {
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .95rem;
}
.detail-spec-item span {
  display: block;
  color: var(--text2);
  font-size: .78rem;
  margin-bottom: .45rem;
}
.detail-tech-list {
  display: grid;
  gap: .75rem;
  padding-left: 1.1rem;
  color: var(--text2);
  line-height: 1.7;
}
.detail-tech-list li::marker {
  color: var(--accent);
}

@media (max-width: 900px) {
  .product-detail-hero,
  .product-detail-data {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .product-detail-main,
  .detail-section-card,
  .detail-data-card {
    padding: 1rem;
  }

  .product-detail-image-wrap {
    min-height: 260px;
  }

  .product-detail-actions > * {
    width: 100%;
    justify-content: center;
  }
}

/* ─── TESTIMONIALS ─── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.testimonial { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.stars { color: var(--gold); font-size: 1.1rem; margin-bottom: .75rem; }
.testimonial > p { color: var(--text2); font-size: .9rem; line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: .85rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent3)); display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; color: #000; flex-shrink: 0; }
.testimonial-author strong { font-size: .88rem; display: block; }
.testimonial-author span { font-size: .75rem; color: var(--text2); }

/* ─── BRANDS CAROUSEL ─── */
.brands-carousel-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
  overflow: hidden;
}
.brands-label {
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 1.25rem;
}
.brands-track-wrap {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.brands-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: brandScroll 30s linear infinite;
}
.brands-track:hover { animation-play-state: paused; }
.brand-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem 2rem;
  border-right: 1px solid var(--border);
  color: var(--text3);
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition);
  cursor: default;
  font-family: 'Syne', sans-serif;
  background: transparent;
}
.brand-logo {
  width: auto;
  height: 40px;
  object-fit: contain;
  display: block;
  filter: brightness(0.9) grayscale(0.2);
  transition: all var(--transition);
}
.brand-item:hover .brand-logo {
  filter: brightness(1) grayscale(0);
  transform: scale(1.05);
}
.brand-item span {
  transition: color var(--transition);
}
.brand-item:hover span {
  color: var(--accent);
}
@media (max-width: 768px) {
  .brand-logo { height: 30px; }
  .brand-item { padding: 0.4rem 1.2rem; gap: 0.4rem; font-size: 0.75rem; }
}

/* ─── FOOTER ─── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand p {
  color: var(--text2);
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 280px;
}
.social-links {
  display: flex;
  gap: .75rem;
}
.social-links a {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); font-size: .95rem;
  transition: all var(--transition);
}
.social-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,229,255,.06);
}
.footer-col h5 {
  font-family: 'Syne', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: .03em;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.footer-col ul li {
  font-size: .85rem;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: color var(--transition);
}
.footer-col ul li a {
  color: var(--text2);
  font-size: .85rem;
  cursor: pointer;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-col ul li i {
  color: var(--accent);
  font-size: .8rem;
  width: 14px;
  flex-shrink: 0;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  color: var(--text3);
  font-size: .82rem;
}
.payment-icons {
  display: flex;
  gap: .75rem;
  font-size: 1.75rem;
  color: var(--text3);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── AUTH PAGES ─── */
.auth-page { min-height: calc(100vh - var(--navbar-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-left { background: linear-gradient(135deg, rgba(0,229,255,.06), rgba(124,58,237,.08)); border-right: 1px solid var(--border); display: flex; align-items: center; justify-content: center; padding: 4rem 3rem; }
.auth-brand { max-width: 420px; }
.auth-brand h2 { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; margin: 1.5rem 0 .75rem; }
.auth-brand > p { color: var(--text2); line-height: 1.7; margin-bottom: 2rem; }
.auth-perks, .register-perks { display: flex; flex-direction: column; gap: 1rem; }
.perk { display: flex; align-items: center; gap: 1rem; color: var(--text2); font-size: .9rem; }
.perk i { color: var(--accent); font-size: 1rem; width: 24px; }
.perk.highlight { background: rgba(0,229,255,.08); border: 1px solid rgba(0,229,255,.2); border-radius: var(--radius-sm); padding: .8rem 1rem; }
.perk.highlight i { font-size: 1.1rem; }
.perk.highlight strong { color: var(--accent); display: block; font-size: .9rem; }
.perk.highlight span { font-size: .75rem; }
.auth-right { display: flex; align-items: center; justify-content: center; padding: 3rem 2.5rem; }
.auth-form-card { width: 100%; max-width: 440px; }
.auth-form-card h3 { font-family: 'Syne', sans-serif; font-size: 1.5rem; margin-bottom: .25rem; }
.form-subtitle { color: var(--text2); margin-bottom: 1.5rem; font-size: .85rem; }
.form-subtitle a { cursor: pointer; color: var(--accent); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .8rem; font-weight: 500; margin-bottom: .4rem; color: var(--text2); }
.input-wrap { display: flex; align-items: center; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem .8rem; transition: border-color var(--transition); }
.input-wrap:focus-within { border-color: var(--accent); }
.input-wrap i { color: var(--text2); font-size: .9rem; margin-right: .6rem; }
.input-wrap input, .input-wrap select { background: none; border: none; color: var(--text); font-size: .9rem; flex: 1; outline: none; }
.input-wrap select option { background: var(--surface2); }
.toggle-pass { background: none; border: none; color: var(--text2); cursor: pointer; padding: 0 0 0 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-check-row { display: flex; justify-content: space-between; align-items: center; margin: 1rem 0; }
.checkbox-label { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--text2); cursor: pointer; }
.checkbox-label input { accent-color: var(--accent); cursor: pointer; }
.forgot { font-size: .75rem; color: var(--accent); cursor: pointer; }
.divider { text-align: center; margin: 1.5rem 0; position: relative; }
.divider::before { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: var(--border); }
.divider span { background: var(--surface); padding: 0 1rem; position: relative; font-size: .75rem; color: var(--text2); }
.form-error { margin-top: 1rem; padding: .6rem; background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); border-radius: var(--radius-sm); color: var(--error); font-size: .8rem; display: flex; align-items: center; gap: 6px; }
.strength-bar { height: 3px; background: var(--border); border-radius: 3px; margin-top: 6px; overflow: hidden; }
#strengthFill { width: 0%; height: 100%; transition: width var(--transition); background: var(--error); }
.strength-label { font-size: .7rem; margin-top: 4px; color: var(--text2); }
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { display: none; }
}

/* ─── CHECKOUT ─── */
.checkout-steps { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.step { display: flex; align-items: center; gap: 0.5rem; color: var(--text2); font-size: 0.85rem; }
.step span { width: 28px; height: 28px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; }
.step.active { color: var(--accent); }
.step.active span { background: var(--accent); color: #000; border-color: var(--accent); }
.step-line { width: 40px; height: 1px; background: var(--border); }
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; }
.checkout-main .checkout-card { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.checkout-card h3 { font-family: 'Syne', sans-serif; font-size: 1.1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; }
.checkout-card h3 i { color: var(--accent); }
.card-brands { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.card-brands i { font-size: 2rem; color: var(--text2); }
.credit-card-visual { background: linear-gradient(135deg, #1a1f2e, #0f1117); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 1.5rem; border: 1px solid var(--border); }
.card-front .card-chip { margin-bottom: 1rem; }
.card-front .card-chip i { font-size: 1.5rem; color: var(--gold); }
.card-number-display { font-family: monospace; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 1rem; }
.card-bottom { display: flex; justify-content: space-between; }
.card-bottom small { font-size: 0.65rem; color: var(--text2); display: block; }
.card-bottom div div { font-size: 0.7rem; font-weight: 600; }
.secure-badge { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.2); border-radius: var(--radius-sm); padding: 0.6rem; text-align: center; font-size: 0.75rem; color: var(--success); margin: 1rem 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.checkout-btn-row { display: flex; gap: 1rem; }
.confirmation { text-align: center; }
.confirm-icon i { font-size: 4rem; color: var(--success); margin-bottom: 1rem; }
.order-number { background: var(--surface3); padding: 0.5rem; border-radius: var(--radius-sm); font-family: monospace; margin: 1rem 0; }
.checkout-sidebar .checkout-card { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 90px; }
.secure-info { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.75rem; color: var(--text2); text-align: center; }
.secure-info i { margin-right: 6px; color: var(--accent); }
@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-sidebar .checkout-card { position: static; }
}

/* ═══════════════════════════════════════════
   ESTILOS PARA ABOUT (NOSOTROS) Y CONTACT
═══════════════════════════════════════════ */

/* ABOUT PAGE */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-text h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.about-text p {
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.about-values {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.value-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.value-item:hover {
  border-color: var(--accent);
  transform: translateX(5px);
}
.value-item i {
  font-size: 1.5rem;
  color: var(--accent);
}
.value-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.value-item p {
  font-size: 0.8rem;
  margin: 0;
  color: var(--text2);
}
.about-stats-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.stat-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
}
.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.stat-desc {
  font-size: 0.8rem;
  color: var(--text2);
}
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-stats-panel {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .about-stats-panel {
    grid-template-columns: 1fr;
  }
}

/* CONTACT PAGE */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-info h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.contact-info > p {
  color: var(--text2);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  transition: all var(--transition);
}
.contact-item:hover .contact-icon {
  border-color: var(--accent);
  transform: scale(1.05);
}
.contact-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.contact-item p {
  color: var(--text2);
  font-size: 0.85rem;
}
.contact-form-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contact-form-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.contact-form-card textarea {
  width: 100%;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  color: var(--text);
  font-family: inherit;
  resize: vertical;
}
.contact-form-card textarea:focus {
  outline: none;
  border-color: var(--accent);
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ═══════════════════════════════════════════
   ÓRDENES (ORDERS) PAGE
═══════════════════════════════════════════ */

/* Botones de filtro de órdenes */
.filter-buttons-order {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-buttons-order .btn-accent,
.filter-buttons-order .btn-ghost {
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
}

/* Lista de órdenes */
#ordersList {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Tarjeta individual de orden */
.order-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}

.order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.order-id {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.order-id-code {
  color: var(--text2);
  font-size: 0.8rem;
  font-weight: 500;
}

.order-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.order-status.pendiente {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--warning);
}

.order-status.completado {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.order-status.cancelado {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--error);
}

.order-date {
  color: var(--text2);
  font-size: 0.85rem;
}

.order-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.order-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.order-info-label {
  color: var(--text2);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.order-info-value {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.order-info-value.price {
  color: var(--accent);
  font-size: 1.1rem;
}

.order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.order-items-preview {
  font-size: 0.8rem;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.order-items-preview i {
  font-size: 0.9rem;
  color: var(--accent);
}

.order-action-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  color: #000;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.order-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.3);
}

/* Estado de carga */
#ordersLoading {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text2);
  font-size: 0.95rem;
}

#ordersLoading i {
  margin-right: 0.5rem;
  color: var(--accent);
}

/* Sin órdenes */
#noOrders {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--surface2);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

#noOrders i {
  font-size: 4rem;
  color: var(--text2);
  margin-bottom: 1rem;
  display: block;
  opacity: 0.5;
}

#noOrders h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

#noOrders p {
  color: var(--text2);
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .order-body {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .order-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-buttons-order {
    gap: 0.5rem;
  }

  .filter-buttons-order .btn-accent,
  .filter-buttons-order .btn-ghost {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 500px;
  width: 90%;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition);
}
.modal-overlay.active .modal-box {
  transform: scale(1);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
}
.modal-close:hover {
  border-color: var(--error);
  color: var(--error);
}
.modal-content {
  padding: 2rem;
}

/* ═══════════════════════════════════════════
   CORRECCIÓN: CURSOR PARA ELEMENTOS CLIQUEABLES
════════════════════════════════════════════ */
button,
a,
[onclick],
[role="button"],
.nav-logo,
.nav-links a,
.cart-btn,
.cat-card,
.product-card,
.filter-tab,
.filter-tabs button,
.btn-add,
.btn-accent,
.btn-ghost,
.btn-submit,
.btn-demo,
.btn-checkout,
.detail-back-btn,
.modal-close,
.carousel-btn,
.dot,
.step,
.step span,
.checkout-btn-row button,
.qty-btn,
.cart-item-del,
.cart-header button,
.social-links a,
.footer-col ul li a,
.perk a,
.form-subtitle a,
.forgot,
.checkbox-label,
.toggle-pass,
.hero-cta button,
.nav-btn {
  cursor: pointer !important;
}

/* Asegurar cursor default en texto normal */
p, h1, h2, h3, h4, h5, h6, span, label, li:not(.cart-item-del):not(.qty-btn),
.product-desc, .product-name, .product-cat, .product-meta-inline,
.detail-data-card span, .detail-spec-item span, .testimonial p,
.contact-item p, .about-text p, .brand-item, .stat-item span {
  cursor: default;
}

/* Evitar cursor text en contenedores no editables */
div:not([contenteditable="true"]),
section, article, aside, header, footer, main {
  cursor: default;
}

/* ═══════════════════════════════════════════
   FORZAR CURSOR POINTER EN TODO LO CLIQUEABLE
════════════════════════════════════════════ */
* {
  cursor: default;
}

button,
a,
[onclick],
[role="button"],
[type="button"],
[type="submit"],
.nav-logo,
.nav-links a,
.cart-btn,
.cat-card,
.product-card,
.filter-tab,
.filter-tabs button,
.btn-add,
.btn-accent,
.btn-ghost,
.btn-submit,
.btn-demo,
.btn-checkout,
.detail-back-btn,
.modal-close,
.carousel-btn,
.dot,
.step,
.step span,
.checkout-btn-row button,
.qty-btn,
.cart-item-del,
.cart-header button,
.social-links a,
.footer-col ul li a,
.perk a,
.form-subtitle a,
.forgot,
.checkbox-label,
.toggle-pass,
.hero-cta button,
.nav-btn,
.product-img,
.product-img *,
.hero-slide-content button,
.hero-stats-bar *,
.brand-item,
.payment-icons i,
.logo-icon,
.nav-inner *[onclick] {
  cursor: pointer !important;
}

/* Excepciones donde el cursor debe ser texto */
input:not([type="button"]):not([type="submit"]):not([type="reset"]),
textarea,
[contenteditable="true"] {
  cursor: text !important;
}
/* ─── CONFIGURACIÓN DEL FONDO SHADER ─── */
#shader-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; 
    display: block;
    pointer-events: none;
}

/* Hacemos que la página sea transparente para ver el shader */
body, .page, .section, .hero-carousel {
    background-color: transparent !important;
}

/* Mantenemos los fondos sólidos solo en los elementos que necesitan lectura clara */
.surface, .surface2, .surface3, .nav-inner, .cart-drawer, .auth-form-card, .checkout-card {
    background-color: var(--surface) !important;
}

/* Ajuste para que el Hero no sea un bloque sólido */
.hero-slide {
    background: transparent !important;
}
.hero-slide-bg {
    opacity: 0.6; /* Suavizamos la capa de color del hero para que se vea el shader */
}

/* ─── EFECTO DE BORDE ANIMADO PREMIUM (SÓLO AL PASAR EL MOUSE) ─── */

@keyframes rotate-gradient {
  0% { --gradient-angle: 0deg; }
  100% { --gradient-angle: 360deg; }
}

@property --gradient-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.animated-border-card {
  position: relative;
  padding: 2px; /* Grosor del borde */
  background: var(--border); /* Color del marco normal cuando NO hay mouse */
  border-radius: var(--radius);
  transition: all 0.4s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

/* Esta es la capa de iluminación que está "dormida" */
.animated-border-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 2px; /* Debe ser igual al padding del padre */
  background: conic-gradient(
    from var(--gradient-angle),
    #00e5ff 0%, 
    #00b8cc 25%, 
    #00e5ff 50%, 
    #00b8cc 75%, 
    #00e5ff 100%
  );
  opacity: 0; /* 👈 AQUÍ ESTÁ EL TRUCO: Empieza invisible */
  transition: opacity 0.4s ease;
  z-index: -1;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* ─── QUÉ PASA CUANDO PASAS EL MOUSE ─── */
.animated-border-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
}

.animated-border-card:hover::before {
  opacity: 1; /* 👈 El brillo aparece */
  animation: rotate-gradient 3s linear infinite; /* 👈 El brillo empieza a girar */
}

.border-content {
  background: var(--surface2); 
  border-radius: calc(var(--radius) - 2px);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
  z-index: 2;
  transition: background 0.3s ease;
}

/* Opcional: que el fondo se aclare un poquito al iluminarse */
.animated-border-card:hover .border-content {
  background: var(--surface3);
}

/* ─── LOGO ANIMADO PREMIUM ─── */
.logo-animated-container {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text);
  padding-bottom: 5px;
}

.logo-text-part {
  display: flex;
  overflow: hidden;
}

/* Estilo para cada letra individual */
.logo-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: logoLetterIn 0.4s forwards;
}

.logo-middle-img {
  height: 50px; /* Ajusta el tamaño según tu logo */
  width: auto;
  object-fit: contain;
  animation: logoFloat 3s ease-in-out infinite;
  z-index: 2;
}

/* Línea inferior animada */
.logo-underline {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: all 0.8s ease;
  animation: logoLineExpand 1.2s forwards;
  animation-delay: 0.8s; /* Empieza después de que las letras suban */
}

/* ANIMACIONES */
@keyframes logoLetterIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes logoLineExpand {
  to {
    width: 100%;
    left: 0;
  }
}

/* ─── ZOOM DE IMAGEN POR CLIC (SISTEMA DE LIGHTBOX) ─── */

/* 1. La imagen en la vista de detalle solo indica que es clickable */
.product-detail-image {
  cursor: zoom-in;
  transition: opacity 0.3s ease;
}

.product-detail-image:hover {
  opacity: 0.8; /* Un pequeño cambio visual para avisar que se puede hacer clic */
}

/* 2. El Visor de Pantalla Completa */
.image-zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92); /* Negro más profundo para resaltar la imagen */
  backdrop-filter: blur(20px); /* Desenfoque más intenso para look premium */
  z-index: 5000; /* Aseguramos que esté por encima de TODO */
  display: none; 
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: fadeIn 0.3s ease;
}

/* 3. La imagen dentro del visor: Aquí ocurre la "magia" del crecimiento */
.image-zoom-overlay img {
  max-width: 85%;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(0, 229, 255, 0.4); /* Resplandor neón alrededor de la foto */
  border: 1px solid rgba(0, 229, 255, 0.3);
  
  /* Estado inicial: la imagen empieza pequeña y transparente */
  transform: scale(0.7);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.5, 0.69, 1), opacity 0.3s ease;
}

/* Cuando el visor se activa, la imagen crece a su tamaño real */
.image-zoom-overlay.active {
  display: flex;
}

.image-zoom-overlay.active img {
  transform: scale(1);
  opacity: 1;
}







