/* =====================================================
   CLIMAXA — Sistema de diseño global
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand palette */
  --brand-900: #0a3060;
  --brand-800: #0e4490;
  --brand-700: #1255b0;
  --brand-600: #1a72cc;
  --brand-500: #2391e0;
  --brand-400: #41aff0;
  --brand-300: #72c8f4;
  --brand-200: #a8dcf8;
  --brand-100: #d6eefb;
  --brand-50:  #edf7fe;

  --ink-900: #07131f;
  --ink-800: #112232;
  --ink-700: #253648;
  --ink-600: #3e5268;

  --accent-500: #ff5722;
  --accent-600: #e64a19;
  --accent-400: #ff7043;

  --success: #16a34a;
  --warning: #f59e0b;
  --danger:  #dc2626;
  --info:    #2563eb;

  /* Surfaces */
  --bg:        #f2f7fc;
  --surface:   #ffffff;
  --surface-2: #e6f0f8;
  --border:    #dae4ef;
  --border-strong: #b4c8dc;

  /* Text */
  --text:       #07131f;
  --text-muted: #546a80;
  --text-soft:  #8ba0b4;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    ui-monospace, 'JetBrains Mono', monospace;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(7,19,31,.06);
  --shadow-sm: 0 2px 8px rgba(7,19,31,.08), 0 1px 3px rgba(7,19,31,.05);
  --shadow:    0 6px 20px rgba(7,19,31,.10), 0 2px 6px rgba(7,19,31,.06);
  --shadow-lg: 0 16px 40px rgba(7,19,31,.13), 0 4px 12px rgba(7,19,31,.07);
  --shadow-xl: 0 28px 64px rgba(7,19,31,.18), 0 8px 20px rgba(7,19,31,.09);
  --shadow-brand:    0 8px 28px rgba(26,114,204,.38);
  --shadow-brand-lg: 0 18px 44px rgba(26,114,204,.50);

  /* Gradients */
  --grad-brand:   linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);
  --grad-brand-v: linear-gradient(180deg,  var(--brand-800) 0%, var(--brand-500) 100%);
  --grad-cyan:    linear-gradient(135deg, var(--brand-500) 0%, var(--brand-300) 100%);
  --grad-dark:    linear-gradient(135deg, #07131f 0%, #1a2d3e 100%);

  /* Radii */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl:28px;

  /* Transitions */
  --t-fast:   0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --t:        0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow:   0.45s cubic-bezier(0.4, 0, 0.2, 1);
  --t-spring: 0.5s  cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-expo:   0.6s  cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink-900);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.1rem; }

a { color: var(--brand-600); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand-500); }
img { max-width: 100%; display: block; }

/* ============ LOGO ============ */
.climaxa-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
}

.climaxa-mark {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  box-shadow: 0 2px 8px rgba(7,19,31,.12);
}
.climaxa-mark img { width: 100%; height: 100%; object-fit: contain; }

.climaxa-text { display: flex; flex-direction: column; line-height: 1; }
.climaxa-text strong {
  font-size: 1.3rem; font-weight: 800;
  color: var(--ink-900); letter-spacing: 0.02em;
}
.climaxa-text span {
  font-size: 0.58rem; font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.18em;
  text-transform: uppercase; margin-top: 3px;
}

/* ============ NAVBAR ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  /* positioning context for mobile dropdown */
  isolation: isolate;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid rgba(218,228,239,0.7);
  transition: box-shadow var(--t), background var(--t);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 4px 28px rgba(7,19,31,.10);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius);
  color: var(--ink-700);
  font-weight: 500;
  font-size: 0.92rem;
  transition: all var(--t-fast);
  position: relative;
}
.nav-links a:hover { background: var(--brand-50); color: var(--brand-700); }
.nav-links a.active {
  background: var(--brand-700);
  color: white;
  box-shadow: 0 2px 10px rgba(18,85,176,.32);
}

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

/* hamburger — visible solo en mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--t-fast);
}
.nav-hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink-700);
  border-radius: 2px;
  transition: all var(--t);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.cart-btn {
  position: relative;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--t-fast);
  color: var(--ink-700);
}
.cart-btn:hover {
  background: var(--brand-50);
  border-color: var(--brand-200);
  color: var(--brand-700);
  transform: scale(1.04);
  box-shadow: var(--shadow-sm);
}

.cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--accent-500);
  color: white;
  font-size: 0.65rem; font-weight: 800;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  display: grid; place-items: center;
  border: 2px solid var(--bg);
  box-shadow: 0 2px 8px rgba(255,87,34,.45);
  animation: badgePop 0.3s var(--t-spring);
}
@keyframes badgePop { 0% { transform: scale(0); } 100% { transform: scale(1); } }

/* ============ BOTONES ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
}
.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active { transform: scale(0.97) !important; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--grad-brand);
  color: white;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover:not(:disabled) {
  box-shadow: var(--shadow-brand-lg);
  transform: translateY(-2px);
  color: white;
  filter: brightness(1.07);
}

.btn-cyan {
  background: var(--grad-cyan);
  color: white;
  box-shadow: 0 4px 16px rgba(65,175,240,.32);
}
.btn-cyan:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(65,175,240,.48);
  color: white;
  filter: brightness(1.06);
}

.btn-dark { background: var(--ink-900); color: white; border-color: var(--ink-900); }
.btn-dark:hover:not(:disabled) { background: var(--ink-800); color: white; transform: translateY(-1px); }

.btn-accent { background: var(--accent-500); color: white; box-shadow: 0 4px 16px rgba(255,87,34,.32); }
.btn-accent:hover:not(:disabled) { background: var(--accent-600); color: white; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--border-strong);
}
.btn-outline:hover:not(:disabled) {
  background: var(--ink-900);
  color: white;
  border-color: var(--ink-900);
  box-shadow: var(--shadow);
}

.btn-ghost { background: transparent; color: var(--text); border-color: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); }

.btn-danger { background: var(--danger); color: white; box-shadow: 0 4px 14px rgba(220,38,38,.28); }
.btn-danger:hover:not(:disabled) { background: #b91c1c; color: white; transform: translateY(-1px); }

.btn-whatsapp { background: #25d366; color: white; box-shadow: 0 4px 16px rgba(37,211,102,.38); }
.btn-whatsapp:hover:not(:disabled) { background: #20bb5a; color: white; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.50); }

.btn-sm  { padding: 7px 14px; font-size: 0.82rem; }
.btn-lg  { padding: 14px 30px; font-size: 0.98rem; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }

/* ============ FORMULARIOS ============ */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
  font-family: var(--font-display);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: all var(--t-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(35,145,224,.13);
  background: var(--surface);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-soft); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============ CARDS ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--t);
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-200);
}
.card-glass {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.6);
}

/* ============ BADGES ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-display);
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-info    { background: #dbeafe; color: #1e40af; }
.badge-cyan    { background: var(--brand-100); color: var(--brand-800); }
.badge-purple  { background: #f3e8ff; color: #6b21a8; }
.badge-gray    { background: #e5e7eb; color: #374151; }

/* ============ TABLAS ============ */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table { width: 100%; border-collapse: collapse; }
.table thead { background: var(--surface-2); }
.table th {
  text-align: left;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
}
.table td { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--t-fast); }
.table tbody tr:hover { background: var(--brand-50); }

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,19,31,.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  z-index: 1000;
  animation: fadeIn var(--t) ease;
  padding: 20px;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  max-width: 600px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUp var(--t-expo) forwards;
  border: 1px solid var(--border);
}
.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { margin: 0; }
.modal-close {
  background: none; border: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--t-fast);
}
.modal-close:hover { background: var(--surface-2); color: var(--ink-900); }
.modal-body { padding: 28px; }
.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ============ TOAST ============ */
.toast-container {
  position: fixed;
  top: 20px; right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--ink-900);
  color: white;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(7,19,31,.35);
  animation: toastIn 0.4s var(--t-expo) forwards;
  border-left: 4px solid var(--brand-400);
}
.toast.success { border-left-color: #4ade80; }
.toast.error   { border-left-color: #f87171; }
.toast.warning { border-left-color: #fbbf24; }
.toast-content { flex: 1; font-size: 0.88rem; color: rgba(255,255,255,0.9); }
.toast-content strong { display: block; margin-bottom: 2px; color: white; font-weight: 700; font-family: var(--font-display); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(24px) scale(0.96); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* ============ LOADER ============ */
.loader {
  width: 32px; height: 32px;
  border: 3px solid var(--brand-100);
  border-top-color: var(--brand-500);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.loader-page { display: grid; place-items: center; min-height: 50vh; }

/* ============ SKELETON LOADER ============ */
.skeleton {
  background: linear-gradient(90deg,
    var(--surface-2) 25%,
    var(--border) 50%,
    var(--surface-2) 75%
  );
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: var(--radius);
}

.skeleton-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.skeleton-img {
  aspect-ratio: 4/3;
}

.skeleton-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-line           { height: 12px; border-radius: 6px; }
.skeleton-line.w-30      { width: 30%; }
.skeleton-line.w-60      { width: 60%; }
.skeleton-line.w-80      { width: 80%; }
.skeleton-line.w-full    { width: 100%; }
.skeleton-line.h-20      { height: 20px; }
.skeleton-line.h-28      { height: 28px; }

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

/* ============ EMPTY STATE ============ */
.empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border-radius: 50%;
  color: var(--text-soft);
  border: 2px solid var(--border);
}
.empty h4 { color: var(--ink-900); margin-bottom: 8px; }

/* ============ WHATSAPP FLOTANTE ============ */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 90;
  width: 62px; height: 62px;
  display: grid; place-items: center;
  background: #25d366;
  color: white;
  border-radius: 50%;
  box-shadow: 0 8px 28px rgba(37,211,102,.58);
  cursor: pointer;
  transition: all var(--t);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 14px 36px rgba(37,211,102,.68);
  color: white;
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.45);
  animation: pulseRing 2.2s ease-out infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ============ ANIMACIONES ============ */
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp  { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes pulse    { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes float    { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes shimmer  { from { background-position: -400px 0; } to { background-position: 400px 0; } }

/* Partículas hero */
@keyframes particleRise {
  0%   { transform: translateY(0) translateX(0);              opacity: 0; }
  8%   { opacity: 1; }
  90%  { opacity: 0.7; }
  100% { transform: translateY(-110vh) translateX(var(--drift, 40px)); opacity: 0; }
}

/* Orbs de fondo para secciones oscuras */
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -20px) scale(1.08); }
  66%  { transform: translate(-20px, 15px) scale(0.95); }
}

/* Borde shimmer en tarjetas especiales */
@keyframes borderShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============ REVEAL SCROLL ============ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--t-expo), transform 0.7s var(--t-expo);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

.fade-in { animation: fadeIn var(--t) ease; }

/* ============ UTILIDADES ============ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.1rem; }
.font-bold { font-weight: 700; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }

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

/* ============ CART SIDEBAR ============ */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: white;
  box-shadow: var(--shadow-xl);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform var(--t-expo);
  display: flex;
  flex-direction: column;
}
.cart-sidebar.open { transform: translateX(0); }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 31, 51, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1099;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-header h3 { font-size: 1.15rem; font-family: var(--font-display); }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 24px; }

.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }

.cart-item-thumb {
  width: 70px; height: 70px; flex-shrink: 0;
  background: var(--brand-50);
  border-radius: var(--radius);
  display: grid; place-items: center;
  overflow: hidden;
}
.cart-item-thumb svg { width: 75%; }
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info strong {
  display: block; font-size: 0.9rem; color: var(--ink-900);
  margin-bottom: 4px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.cart-item-info .marca {
  font-size: 0.72rem; color: var(--brand-600);
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
}

.cart-qty {
  display: inline-flex; align-items: center;
  background: var(--surface-2); border-radius: var(--radius-sm); margin-top: 6px;
}
.cart-qty button {
  width: 26px; height: 26px; display: grid; place-items: center;
  background: none; border: none; cursor: pointer;
  color: var(--text); font-weight: 600;
}
.cart-qty button:hover { color: var(--brand-600); }
.cart-qty span { min-width: 24px; text-align: center; font-size: 0.85rem; font-weight: 600; }

.cart-item-price {
  font-family: var(--font-display); font-size: 1rem;
  font-weight: 800; color: var(--ink-900); white-space: nowrap;
}

.cart-item-remove {
  background: none; border: none; cursor: pointer;
  color: var(--text-soft); padding: 4px; transition: color var(--t-fast);
}
.cart-item-remove:hover { color: var(--danger); }

.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); background: var(--surface-2); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cart-total-label { font-size: 0.9rem; color: var(--text-muted); }
.cart-total-amount {
  font-family: var(--font-display); font-size: 1.5rem;
  font-weight: 800; color: var(--ink-900); letter-spacing: -0.02em;
}

@media (max-width: 600px) { .cart-sidebar { width: 100vw; } }

/* ============ HERO PARTICLE ============ */
.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109,197,232,0.85) 0%, rgba(65,175,240,0.3) 100%);
  pointer-events: none;
  animation: particleRise var(--dur, 14s) ease-in var(--delay, 0s) infinite;
  filter: blur(0.5px);
}

/* ============ WAVE DIVIDER ============ */
.wave-divider {
  display: block;
  line-height: 0;
  overflow: hidden;
}
.wave-divider svg { display: block; width: 100%; }

/* ============ ICON GLOW (para botones de acción destacados) ============ */
.btn-glow {
  box-shadow: 0 0 0 0 rgba(35,145,224,.5);
  animation: glowPulse 2.4s ease-out infinite;
}
@keyframes glowPulse {
  0%   { box-shadow: 0 0 0 0    rgba(35,145,224,.5); }
  70%  { box-shadow: 0 0 0 12px rgba(35,145,224,.0); }
  100% { box-shadow: 0 0 0 0    rgba(35,145,224,.0); }
}

/* ============ USER DROPDOWN ============ */
.user-dropdown {
  position: relative;
}

.user-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  background: transparent;
  border: 1.5px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.user-toggle-btn:hover {
  background: var(--brand-50);
  border-color: var(--border);
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(26,114,204,.35);
}

.user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 1000;
  animation: dropdownIn var(--t) both;
}
.user-menu.open { display: block; }

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.user-menu-header {
  padding: 16px;
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
}
.user-menu-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-900);
}
.user-menu-email {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.user-menu a:hover { background: var(--surface-2); color: var(--brand-700); }

.user-menu-logout {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 11px 16px;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--danger);
  cursor: pointer;
  text-align: left;
  transition: background var(--t-fast);
}
.user-menu-logout:hover { background: #fef2f2; }

/* ============ MOBILE MENU ANIMATION ============ */
@keyframes mobileMenuSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .navbar-inner { padding: 10px 16px; gap: 8px; }
  .container { padding: 0 18px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 2px solid var(--brand-200);
    box-shadow: 0 16px 48px rgba(7,19,31,.16), 0 4px 16px rgba(7,19,31,.08);
    z-index: 200;
    padding: 10px 12px 18px;
    animation: mobileMenuSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: var(--radius-lg);
    font-size: 1.08rem;
    font-weight: 600;
    font-family: var(--font-display);
    color: var(--ink-700);
    width: 100%;
    letter-spacing: -0.01em;
    transition: background var(--t-fast), color var(--t-fast);
    background: none;
  }
  .nav-links.open a:hover { background: var(--brand-50); color: var(--brand-700); }
  .nav-links.open a.active {
    background: var(--brand-700) !important;
    color: white !important;
    box-shadow: 0 2px 12px rgba(18,85,176,.30);
  }
  .nav-hamburger { display: flex; }
  .nav-actions { gap: 6px; }
  .user-name { display: none; }
  .user-toggle-btn { padding: 5px 7px; gap: 5px; }
  .form-row { grid-template-columns: 1fr; }
  .table th, .table td { padding: 10px 12px; font-size: 0.84rem; }
  .climaxa-text strong { font-size: 1.1rem; }
  .climaxa-text span { display: none; }
  .climaxa-mark { width: 38px; height: 38px; }
  .whatsapp-float { width: 54px; height: 54px; bottom: 18px; right: 18px; }
  /* Modal like bottom sheet */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal { border-radius: var(--radius-xl) var(--radius-xl) 0 0; max-width: 100%; max-height: 92vh; }
  .modal-body { padding: 22px 20px; }
  .modal-header, .modal-footer { padding: 18px 20px; }
  /* Toasts full width */
  .toast-container { left: 12px; right: 12px; max-width: 100%; top: 12px; }
}

@media (max-width: 480px) {
  /* Hide login button text label, show only icon */
  .btn-label-full { display: none; }
  .nav-login-btn { width: 36px; height: 36px; padding: 0; border-radius: var(--radius); }
  /* Smaller cart button */
  .cart-btn { width: 36px; height: 36px; }
  /* Nav hamburger tighter */
  .nav-hamburger { width: 32px; height: 32px; }
  /* Table: allow horizontal scroll */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { min-width: 480px; }
}
