/* ============================================================
   GÉNESIS LAB — ESTILOS COMPLETOS
   ============================================================ */

/* ========== VARIABLES BASE ========== */
:root {
  --neon-cyan: #00e5ff;
  --neon-cyan-rgb: 0, 229, 255;
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-medium: 0.35s;
  --transition-fast: 0.2s;
  --menu-width: 300px;
  --header-height: 68px;
}

/* ========== TEMA OSCURO (DEFAULT) ========== */
[data-theme="dark"] {
  --bg-body: #0a0e1a;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-blur: 24px;
  --text-primary: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-muted: rgba(255, 255, 255, 0.25);
  --shadow-light: rgba(255, 255, 255, 0.06);
  --shadow-dark: rgba(0, 0, 0, 0.50);
  --bg-overlay: rgba(0, 0, 0, 0.35);
  --body-bg-image: url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi73IOyIcin3Qa_H_zyJI54RrtrOiKKNteqTu6zSIKR1J_CyZfjfWZfzH9wdM5-CkilORH5n3RQLH9ZiDm2kqUP3vBUNy7BaFqYp2ZOWel998XrVU4hhho4SfJ1ucqaLrShzpDybXb4TVE_xOfycTWOIcCVj1fRuUV2LP8QTiK-30Sk1fOOeRLm9B2FtIyV/s1595/1001064775.png');
  --menu-bg: rgba(10, 14, 26, 0.98);
  --input-bg: rgba(255, 255, 255, 0.02);
  --input-border: rgba(255, 255, 255, 0.06);
  --input-focus: rgba(0, 229, 255, 0.15);
  --badge-bg: rgba(0, 229, 255, 0.10);
  --badge-border: rgba(0, 229, 255, 0.10);
  --card-bg: rgba(255, 255, 255, 0.02);
  --card-border: rgba(255, 255, 255, 0.04);
  --modal-bg: rgba(16, 16, 32, 0.95);
  --toast-bg: rgba(16, 16, 32, 0.95);
}

/* ========== TEMA CLARO ========== */
[data-theme="light"] {
  --bg-body: #f0f2f5;
  --bg-card: rgba(255, 255, 255, 0.70);
  --bg-glass: rgba(255, 255, 255, 0.60);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-blur: 24px;
  --text-primary: rgba(0, 0, 0, 0.88);
  --text-secondary: rgba(0, 0, 0, 0.55);
  --text-muted: rgba(0, 0, 0, 0.30);
  --shadow-light: rgba(255, 255, 255, 0.40);
  --shadow-dark: rgba(0, 0, 0, 0.08);
  --bg-overlay: rgba(255, 255, 255, 0.40);
  --body-bg-image: url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilLd4H7HepW8lzv2HSMRMdIDGMBwQGZUqYTSOM0ggYFY51W5UGQlj8zpkcuosRdOR8TuG49ZU-He1FTufLiVUuuzQeZf-EjHdP7rvEZrdeXU9oPoBXIqbwr6NDwQiEyAWoFM9jqfFgYU1siLWhnij3GzPenbujaG4w6uZEg4AaKryJs2zj1SDrMO8NSz8o/s1308/1001104587.jpg');
  --menu-bg: rgba(255, 255, 255, 0.98);
  --input-bg: rgba(255, 255, 255, 0.80);
  --input-border: rgba(0, 0, 0, 0.06);
  --input-focus: rgba(0, 229, 255, 0.20);
  --badge-bg: rgba(0, 229, 255, 0.10);
  --badge-border: rgba(0, 229, 255, 0.15);
  --card-bg: rgba(255, 255, 255, 0.60);
  --card-border: rgba(0, 0, 0, 0.04);
  --modal-bg: rgba(255, 255, 255, 0.98);
  --toast-bg: rgba(255, 255, 255, 0.98);
}

/* ========== RESET Y BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  position: relative;
  background: var(--bg-body);
  transition: all 0.4s ease;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--body-bg-image) no-repeat center center fixed;
  background-size: cover;
  background-attachment: fixed;
  z-index: 0;
  transition: all 0.6s ease;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-overlay);
  z-index: 1;
  transition: all 0.6s ease;
}

/* ========== HEADER ========== */
.header-main {
  width: 100%;
  max-width: 1100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  margin-bottom: 16px;
  position: relative;
  z-index: 20;
  background: var(--bg-glass);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow:
    -8px -8px 20px var(--shadow-light),
    12px 12px 36px var(--shadow-dark);
  transition: all 0.4s ease;
  min-height: var(--header-height);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.10);
  border: 1px solid rgba(0, 229, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--neon-cyan);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: 18px;
  letter-spacing: 4px;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.logo-text span {
  color: var(--neon-cyan);
  font-weight: 300;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ========== HAMBURGUESA ========== */
.hamburger-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-medium) var(--ease-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow:
    -4px -4px 12px var(--shadow-light),
    6px 6px 18px var(--shadow-dark);
  padding: 0;
  position: relative;
}

.hamburger-btn:active {
  transform: scale(0.92);
}

.hamburger-btn .bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all var(--transition-medium) var(--ease-smooth);
  transform-origin: center;
}

.hamburger-btn .bar:nth-child(1) { width: 22px; }
.hamburger-btn .bar:nth-child(2) { width: 18px; }
.hamburger-btn .bar:nth-child(3) { width: 14px; }

.hamburger-btn.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  width: 22px;
}

.hamburger-btn.active .bar:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger-btn.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
  width: 22px;
}

/* ========== CARRITO HEADER ========== */
.cart-header-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition-medium) var(--ease-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    -4px -4px 12px var(--shadow-light),
    6px 6px 18px var(--shadow-dark);
}

.cart-header-btn:active {
  transform: scale(0.92);
}

.cart-header-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-body);
  transition: all 0.3s ease;
}

.cart-header-btn .badge.hidden {
  display: none;
}

/* ========== MENÚ LATERAL ========== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.side-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: var(--menu-width);
  max-width: 85vw;
  height: 100%;
  background: var(--menu-bg);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-left: 1px solid var(--glass-border);
  z-index: 101;
  transition: right 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 20px 16px;
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(0,0,0,0.3);
}

.side-menu.open {
  right: 0;
}

.side-menu::-webkit-scrollbar { width: 3px; }
.side-menu::-webkit-scrollbar-track { background: transparent; }
.side-menu::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 10px;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 16px;
}

.menu-header h3 {
  color: var(--neon-cyan);
  font-weight: 300;
  letter-spacing: 2px;
  font-size: 16px;
}

.menu-header h3 i {
  margin-right: 8px;
}

.close-menu {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 0 8px;
  transition: all var(--transition-fast) var(--ease-smooth);
}

.close-menu:active {
  transform: scale(0.9);
}

.menu-section {
  margin-bottom: 20px;
}

.menu-section .section-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 600;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 8px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-fast) var(--ease-smooth);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.menu-item:hover {
  background: rgba(0, 229, 255, 0.05);
  color: var(--text-primary);
}

.menu-item:active {
  transform: scale(0.97);
}

.menu-item i {
  width: 24px;
  text-align: center;
  color: var(--neon-cyan);
  font-size: 16px;
}

.menu-item .badge-menu {
  margin-left: auto;
  background: var(--badge-bg);
  color: var(--neon-cyan);
  font-size: 10px;
  padding: 2px 10px;
  border-radius: 20px;
  border: 1px solid var(--badge-border);
}

.menu-item.active {
  background: rgba(0, 229, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--badge-border);
}

.menu-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 12px 0;
}

/* ========== CONTENEDOR PRINCIPAL ========== */
.neo-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1100px;
  padding: 20px 16px 30px;
  border-radius: 32px;
  background: var(--bg-glass);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  border: 1px solid var(--glass-border);
  box-shadow:
    -10px -10px 24px var(--shadow-light),
    14px 14px 40px var(--shadow-dark),
    0 30px 80px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transition: all 0.4s ease;
}

/* ========== VISTAS ========== */
.view-section {
  width: 100%;
  display: none;
  position: relative;
  z-index: 10;
}

.view-section.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== FORMULARIO ========== */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 20px;
  border-radius: 28px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: 18px;
  letter-spacing: 6px;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 24px;
  transition: color 0.3s ease;
}

.form-group {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
}

label {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

input[type="text"], input[type="number"], input[type="password"], input[type="email"], input[type="tel"], select, textarea {
  font-family: 'Inter', sans-serif;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast) var(--ease-smooth);
  box-shadow:
    -3px -3px 8px var(--shadow-light),
    4px 4px 12px var(--shadow-dark);
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--input-focus);
  background: var(--input-bg);
}

textarea {
  resize: vertical;
  min-height: 70px;
}

select option {
  background: var(--bg-body);
  color: var(--text-primary);
}

.file-label {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 60px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: var(--bg-glass);
  color: var(--text-secondary);
  transition: all var(--transition-fast) var(--ease-smooth);
  box-shadow:
    -3px -3px 8px var(--shadow-light),
    4px 4px 12px var(--shadow-dark);
}

.file-label:active {
  transform: scale(0.95);
}

input[type="file"] { display: none; }

#preview {
  max-width: 100%;
  max-height: 120px;
  border-radius: 12px;
  display: none;
  margin-top: 10px;
  object-fit: contain;
  background: var(--input-bg);
}

.btn-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 60px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.15);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-medium) var(--ease-smooth);
  box-shadow:
    -5px -5px 12px var(--shadow-light),
    6px 6px 18px var(--shadow-dark),
    0 0 20px rgba(0, 229, 255, 0.04) inset;
  margin-top: 8px;
}

.btn-submit:active {
  transform: scale(0.97);
}

.btn-submit:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ========== VITRINA ========== */
.vitrina-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.vitrina-header h2 {
  margin: 0;
}

.vitrina-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.vitrina-controls .btn-sm {
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 11px;
  border: 1px solid var(--glass-border);
  background: var(--bg-glass);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast) var(--ease-smooth);
  display: flex;
  align-items: center;
  gap: 6px;
}

.vitrina-controls .btn-sm:active {
  transform: scale(0.94);
}

.status-msg {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  padding: 30px 0;
  letter-spacing: 2px;
}

.grid-vitrina {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  padding: 6px 0;
}

/* ========== TARJETA PRODUCTO ========== */
.card-producto {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 14px;
  border: 1px solid var(--card-border);
  box-shadow:
    -4px -4px 12px var(--shadow-light),
    6px 6px 18px var(--shadow-dark);
  transition: all var(--transition-fast) var(--ease-smooth);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.card-producto:active {
  transform: scale(0.96);
}

.img-container {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--input-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow:
    -3px -3px 8px var(--shadow-light),
    4px 4px 12px var(--shadow-dark) inset;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.info-producto h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.info-producto .detalles {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 11px;
  color: var(--text-muted);
  margin: 2px 0;
  line-height: 1.4;
}

.info-producto .detalles strong {
  color: var(--text-secondary);
  font-weight: 400;
}

.badge-seccion {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 40px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--bg-glass);
  color: var(--text-secondary);
  margin-top: 6px;
  border: 1px solid var(--glass-border);
  width: fit-content;
  transition: all 0.3s ease;
}

.precio-tag {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: var(--neon-cyan);
  margin-top: 4px;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.08);
  transition: color 0.3s ease;
}

.precio-tag .moneda-label {
  font-size: 10px;
  font-weight: 300;
  color: var(--text-muted);
}

.card-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.btn-cart {
  flex: 1;
  padding: 6px 8px;
  border: none;
  border-radius: 40px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.10);
  color: var(--neon-cyan);
  cursor: pointer;
  transition: all var(--transition-fast) var(--ease-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-cart:active {
  transform: scale(0.94);
}

.btn-cart.whatsapp {
  background: rgba(37, 211, 102, 0.08);
  border-color: rgba(37, 211, 102, 0.10);
  color: #25d366;
}

.card-hint {
  margin-top: 6px;
  font-size: 8px;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--glass-border);
  padding-top: 6px;
  opacity: 0.6;
}

/* ========== ADMIN ========== */
.admin-panel {
  display: none;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--glass-border);
  margin-top: 16px;
  transition: all 0.3s ease;
}

.admin-panel.open {
  display: block;
}

.admin-header-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 16px;
}

.admin-header-panel h3 {
  color: var(--neon-cyan);
  font-weight: 300;
  letter-spacing: 2px;
  font-size: 16px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.admin-card {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast) var(--ease-smooth);
}

.admin-card:active {
  transform: scale(0.95);
}

.admin-card:hover {
  border-color: rgba(0, 229, 255, 0.20);
}

.admin-card .icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.admin-card h4 {
  color: var(--text-primary);
  font-size: 12px;
  margin-bottom: 2px;
}

.admin-card p {
  color: var(--text-muted);
  font-size: 9px;
}

.admin-item-list {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 12px;
}

.admin-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--glass-border);
  font-size: 12px;
}

.admin-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--neon-cyan);
  cursor: pointer;
}

.admin-item .name {
  flex: 1;
  color: var(--text-primary);
}

.admin-item .cat {
  font-size: 10px;
  color: var(--text-muted);
}

.admin-item .btn-edit {
  padding: 2px 12px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 10px;
  cursor: pointer;
  transition: all var(--transition-fast) var(--ease-smooth);
}

.admin-item .btn-edit:active {
  transform: scale(0.92);
}

.admin-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.admin-actions button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 40px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-fast) var(--ease-smooth);
}

.admin-actions button:active {
  transform: scale(0.95);
}

.admin-actions .btn-danger {
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.admin-actions .btn-primary {
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.10);
  color: var(--neon-cyan);
}

/* ========== INFO ========== */
.info-section {
  max-width: 700px;
  margin: 0 auto;
}

.info-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--glass-border);
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.info-card h3 {
  color: var(--neon-cyan);
  font-weight: 300;
  letter-spacing: 2px;
  font-size: 16px;
  margin-bottom: 12px;
}

.info-card p, .info-card li {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.info-card .contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--glass-border);
}

.info-card .contact-item i {
  width: 24px;
  color: var(--neon-cyan);
}

.social-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.social-grid a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 40px;
  border: 1px solid var(--glass-border);
  background: var(--bg-glass);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: all var(--transition-fast) var(--ease-smooth);
}

.social-grid a:active {
  transform: scale(0.95);
}

.social-grid a:hover {
  border-color: rgba(0, 229, 255, 0.20);
  color: var(--text-primary);
}

.faq-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--glass-border);
}

.faq-item .question {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-size: 14px;
}

.faq-item .answer {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

/* ========== FAB ========== */
.fab-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  color: var(--neon-cyan);
  font-size: 22px;
  cursor: pointer;
  transition: all var(--transition-medium) var(--ease-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    -6px -6px 16px var(--shadow-light),
    10px 10px 30px var(--shadow-dark);
  position: relative;
}

.fab-btn:active {
  transform: scale(0.92);
}

.fab-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-body);
}

.fab-btn .badge.hidden {
  display: none;
}

.fab-btn.whatsapp {
  color: #25d366;
}

.fab-hide {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 9997;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  padding: 6px 12px;
  font-size: 10px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast) var(--ease-smooth);
  display: none;
}

.fab-hide:active {
  transform: scale(0.92);
}

.fab-hide.visible {
  display: block;
}

/* ========== CARRITO PANEL ========== */
.cart-panel {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 340px;
  max-width: 92vw;
  max-height: 55vh;
  background: var(--modal-bg);
  backdrop-filter: blur(32px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 16px;
  z-index: 9997;
  box-shadow:
    -10px -10px 30px var(--shadow-light),
    20px 20px 60px var(--shadow-dark);
  display: none;
  overflow-y: auto;
  transition: all 0.3s ease;
}

.cart-panel.open {
  display: block;
}

.cart-panel::-webkit-scrollbar { width: 3px; }
.cart-panel::-webkit-scrollbar-track { background: transparent; }
.cart-panel::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 10px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: 12px;
  color: var(--text-secondary);
}

.cart-item .qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-item .qty button {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 12px;
  transition: all var(--transition-fast) var(--ease-smooth);
}

.cart-item .qty button:active {
  transform: scale(0.9);
}

.cart-total {
  padding: 12px 0;
  font-weight: 700;
  font-size: 16px;
  text-align: right;
  border-top: 2px solid var(--glass-border);
  margin-top: 8px;
  color: var(--neon-cyan);
}

.cart-checkout {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 40px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.15);
  color: var(--neon-cyan);
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  font-size: 13px;
  transition: all var(--transition-fast) var(--ease-smooth);
}

.cart-checkout:active {
  transform: scale(0.97);
}

.cart-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.cart-actions button {
  flex: 1;
  padding: 6px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 10px;
  cursor: pointer;
  transition: all var(--transition-fast) var(--ease-smooth);
}

.cart-actions button:active {
  transform: scale(0.95);
}

/* ========== MODAL ========== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 12px;
  animation: modalFadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-content {
  max-width: 480px;
  width: 100%;
  max-height: 92vh;
  background: var(--modal-bg);
  backdrop-filter: blur(32px);
  border-radius: 28px;
  padding: 20px 20px 24px;
  border: 1px solid var(--glass-border);
  box-shadow:
    -10px -10px 30px var(--shadow-light),
    20px 20px 60px var(--shadow-dark);
  position: relative;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: all 0.3s ease;
}

.modal-content::-webkit-scrollbar { width: 3px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 10px;
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  z-index: 10;
  font-family: 'Inter', sans-serif;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.modal-close:active {
  transform: scale(0.9);
  background: var(--bg-card);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-imagen {
  width: 100%;
  max-height: 280px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--input-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow:
    -4px -4px 12px var(--shadow-light),
    8px 8px 24px var(--shadow-dark) inset;
}

.modal-imagen img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: contain;
  display: block;
}

.modal-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-info .nombre {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.modal-info .seccion-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 40px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  width: fit-content;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
}

.modal-info .precio-modal {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 26px;
  color: var(--neon-cyan);
  text-shadow: 0 0 30px rgba(0, 229, 255, 0.06);
  margin: 2px 0;
}

.modal-info .precio-modal .moneda-small {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 300;
}

.modal-info .detalle-item {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 5px 0;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-info .detalle-item strong {
  color: var(--text-primary);
  font-weight: 500;
  min-width: 90px;
}

.modal-info .descripcion-completa {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-top: 4px;
  padding: 12px 16px;
  background: var(--bg-glass);
  border-radius: 14px;
  border: 1px solid var(--glass-border);
}

.modal-info .descripcion-completa strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.modal-actions button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 40px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-fast) var(--ease-smooth);
}

.modal-actions button:active {
  transform: scale(0.95);
}

.modal-actions .btn-add-cart {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.15);
  color: var(--neon-cyan);
}

.modal-actions .btn-whatsapp {
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.15);
  color: #25d366;
}

/* ========== TOAST ========== */
#toast-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  width: 90%;
  max-width: 400px;
  pointer-events: none;
}

.toast {
  background: var(--toast-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 6px;
  box-shadow:
    -8px -8px 20px var(--shadow-light),
    12px 12px 40px var(--shadow-dark);
  color: var(--text-primary);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.4s ease forwards;
  pointer-events: all;
  transition: all 0.3s ease;
}

.toast.success { border-left: 3px solid #22c55e; }
.toast.error { border-left: 3px solid #ef4444; }
.toast.info { border-left: 3px solid var(--neon-cyan); }

.toast .toast-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  body { padding: 8px; }
  .header-main {
    padding: 8px 12px;
    border-radius: 16px;
    min-height: 58px;
  }
  .logo-text { font-size: 14px; letter-spacing: 2px; }
  .logo-icon { width: 36px; height: 36px; font-size: 16px; }
  .hamburger-btn, .cart-header-btn { width: 38px; height: 38px; font-size: 16px; }
  .hamburger-btn .bar { width: 18px; height: 2px; margin: 0; }
  .hamburger-btn .bar:nth-child(2) { width: 14px; }
  .hamburger-btn .bar:nth-child(3) { width: 10px; }
  .neo-container { padding: 14px 12px 20px; border-radius: 24px; }
  .grid-vitrina {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
  }
  .card-producto { padding: 10px; border-radius: 14px; }
  .img-container { height: 110px; border-radius: 10px; }
  .info-producto h3 { font-size: 12px; }
  .info-producto .detalles { font-size: 10px; }
  .precio-tag { font-size: 15px; }
  .badge-seccion { font-size: 7px; padding: 2px 8px; }
  .fab-container { bottom: 16px; right: 16px; }
  .fab-btn { width: 48px; height: 48px; font-size: 18px; }
  .cart-panel { width: 92vw; right: 4vw; bottom: 80px; max-height: 50vh; }
  .modal-content { padding: 14px 14px 18px; border-radius: 20px; max-height: 90vh; }
  .modal-imagen { max-height: 200px; border-radius: 14px; }
  .modal-imagen img { max-height: 200px; }
  .modal-info .nombre { font-size: 17px; }
  .modal-info .precio-modal { font-size: 22px; }
  .modal-info .detalle-item { font-size: 12px; padding: 4px 0; }
  .modal-info .detalle-item strong { min-width: 70px; }
  .modal-info .descripcion-completa { font-size: 12px; padding: 10px 12px; }
  .modal-close { width: 34px; height: 34px; font-size: 18px; }
  .form-container { padding: 16px 14px; border-radius: 20px; }
  input[type="text"], input[type="number"], input[type="password"], input[type="email"], input[type="tel"], select, textarea {
    padding: 8px 12px;
    font-size: 13px;
  }
  h2 { font-size: 15px; letter-spacing: 4px; }
  .admin-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .side-menu { width: 280px; right: -290px; }
  .fab-hide { bottom: 74px; right: 16px; font-size: 9px; padding: 4px 10px; }
}

@media (max-width: 400px) {
  .grid-vitrina { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .card-producto { padding: 8px; }
  .img-container { height: 90px; }
  .info-producto h3 { font-size: 11px; }
  .precio-tag { font-size: 13px; }
  .modal-content { padding: 10px 10px 14px; border-radius: 16px; }
  .modal-imagen { max-height: 150px; }
  .modal-imagen img { max-height: 150px; }
  .modal-info .nombre { font-size: 15px; }
  .modal-info .precio-modal { font-size: 18px; }
}
/* ========== MODAL BASE DE DATOS ========== */
.modal-db {
  max-width: 900px !important;
  width: 95% !important;
}

.db-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.db-tab {
  padding: 8px 14px;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.db-tab:hover {
  color: var(--text-primary);
}

.db-tab.active {
  background: rgba(0, 229, 255, 0.10);
  border-color: rgba(0, 229, 255, 0.30);
  color: var(--neon-cyan);
}

.db-count {
  background: rgba(0, 229, 255, 0.15);
  padding: 1px 7px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
}

.db-contenido {
  max-height: 55vh;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--input-bg);
}

.db-contenido::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.db-contenido::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 10px;
}

.db-tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: var(--text-primary);
}

.db-tabla th {
  background: rgba(0, 229, 255, 0.06);
  color: var(--neon-cyan);
  padding: 8px 10px;
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--glass-border);
}

.db-tabla td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--glass-border);
  vertical-align: middle;
  font-size: 12px;
}

.db-tabla tr:hover td {
  background: rgba(0, 229, 255, 0.03);
}

.db-tabla img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg-glass);
}

.db-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.db-acciones {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  justify-content: flex-end;
}

.btn-db-export {
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-db-export:hover {
  color: var(--neon-cyan);
  border-color: rgba(0, 229, 255, 0.30);
}

@media (max-width: 600px) {
  .db-tabla { font-size: 11px; }
  .db-tabla th, .db-tabla td { padding: 6px 6px; }
  .db-tabla img { width: 32px; height: 32px; }
  .db-tab { font-size: 11px; padding: 6px 10px; }
}
/* ========== FILTROS BD ========== */
.db-filtros {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.db-filtros input[type="text"] {
  flex: 1;
  min-width: 150px;
  padding: 8px 14px;
  border-radius: 30px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 12px;
  outline: none;
}

.db-filtros select {
  padding: 8px 14px;
  border-radius: 30px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 12px;
  outline: none;
  cursor: pointer;
}

/* ========== SEPARADORES DE CATEGORÍA ========== */
.db-separador td {
  background: rgba(0, 229, 255, 0.08) !important;
  color: var(--neon-cyan) !important;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 12px !important;
  border-bottom: 1px solid rgba(0, 229, 255, 0.20) !important;
}

/* ========== BOTONES DE ACCIÓN POR FILA ========== */
.db-acciones-fila {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.db-btn-accion {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.db-btn-accion:hover {
  transform: scale(1.1);
}

.db-btn-accion.edit {
  color: var(--neon-cyan);
  border-color: rgba(0, 229, 255, 0.20);
}

.db-btn-accion.edit:hover {
  background: rgba(0, 229, 255, 0.10);
}

.db-btn-accion.del {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.20);
}

.db-btn-accion.del:hover {
  background: rgba(239, 68, 68, 0.10);
}

/* ========== RESPONSIVE BD ========== */
@media (max-width: 600px) {
  .db-filtros {
    flex-direction: column;
  }
  .db-filtros input,
  .db-filtros select {
    width: 100%;
  }
}