:root {
  --brand: #0a5db5;
  --brand-600: #084e97;
  --text: #0f172a;
  --muted: #475569;
  --bg: #ffffff;
  --surface: #f1f5f9;
  --border: #e2e8f0;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-weight: 400;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--brand);
  color: #ffffff;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
  border-radius: 0 0 8px 0;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.container {
  width: min(1200px, 94%);
  margin: 0 auto;
  padding: 0 24px;
}

/* Mejoras de tipografía profesional */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-weight: 800;
  letter-spacing: -0.8px;
}

h2 {
  font-weight: 700;
  letter-spacing: -0.6px;
}

h3 {
  font-weight: 600;
  letter-spacing: -0.4px;
}

p {
  line-height: 1.75;
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0.01em;
}

strong, b {
  font-weight: 600;
  letter-spacing: -0.1px;
}

/* HEADER */
.site-header { 
  position: relative; 
  z-index: 20; 
}

.nav { 
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav.is-stuck { 
  box-shadow: 0 4px 20px rgba(2,6,23,.08), 0 2px 4px rgba(2,6,23,.04); 
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.nav-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 16px 0;
  position: relative;
  z-index: 1;
  gap: 24px;
}

.logo { 
  display: inline-flex; 
  align-items: center; 
  gap: 12px; 
  color: var(--text); 
  text-decoration: none; 
  font-weight: 700;
  font-family: "Inter", sans-serif;
  letter-spacing: -0.3px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  border: none;
  outline: none;
}

.logo:hover {
  transform: scale(1.02);
}

.logo:focus {
  outline: none;
}

.logo:focus img {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
  border-radius: 4px;
}

.logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
  border: none;
  outline: none;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: auto;
  decoding: async;
  image-rendering: crisp-edges;
}

.logo:hover .logo-img {
  transform: scale(1.02);
}

.footer-logo-img {
  height: 95px;
}

.logo-mark { 
  display: inline-grid; 
  place-items: center; 
  width: 48px; 
  height: 34px; 
  border-radius: 8px; 
  background: var(--brand); 
  color: #fff; 
  font-size: 13px; 
  font-weight: 700; 
  letter-spacing: 0.5px; 
}

.logo-text { 
  letter-spacing: .4px; 
}

/* Menú Toggle Button */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  padding: 12px 18px;
  min-height: 44px;
  min-width: 44px;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Inter", sans-serif;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  letter-spacing: 0.01em;
}

.menu-toggle:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-color: rgba(10, 93, 181, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
  color: var(--brand);
}

.menu-toggle:focus {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-color: var(--brand);
}

.menu-toggle:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Menú Sidebar */
.menu-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  pointer-events: none;
}

.menu-sidebar.open {
  display: block;
  pointer-events: all;
}

.menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-sidebar.open .menu-overlay {
  opacity: 1;
}

.menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 340px;
  max-width: 85vw;
  height: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border-right: 1px solid #e5e7eb;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.menu-sidebar.open .menu-panel {
  transform: translateX(0);
}

.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 2px solid #0a5db5;
  background: linear-gradient(135deg, #0a5db5 0%, #0d7377 100%);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(10, 93, 181, 0.15);
}

.menu-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.2px;
  line-height: 1.3;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.menu-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
  font-weight: 300;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.menu-close:focus {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.3);
}

.menu-close:active {
  transform: scale(0.95);
}

.menu-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  color: #ffffff;
}

.menu-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 0;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.menu-nav::-webkit-scrollbar {
  width: 6px;
}

.menu-nav::-webkit-scrollbar-track {
  background: transparent;
}

.menu-nav::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.menu-nav::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item {
  margin: 0;
}

.menu-link {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  min-height: 44px;
  text-decoration: none;
  color: #374151;
  font-size: 15px;
  font-weight: 600;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.5;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid transparent;
  cursor: pointer;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  margin: 2px 8px;
  border-radius: 8px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  gap: 10px;
}

.menu-icon {
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.menu-link:hover .menu-icon {
  transform: scale(1.1);
}

.menu-link.active .menu-icon {
  transform: scale(1.15);
}

.menu-link:focus {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.menu-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #0a5db5;
  border-radius: 0 4px 4px 0;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.menu-link:hover {
  background: linear-gradient(90deg, rgba(10, 93, 181, 0.08) 0%, rgba(10, 93, 181, 0.04) 100%);
  color: #0a5db5;
  transform: translateX(4px);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.menu-link:hover::before {
  transform: scaleX(1);
}

.menu-link.active {
  background: linear-gradient(90deg, rgba(10, 93, 181, 0.12) 0%, rgba(10, 93, 181, 0.06) 100%);
  color: #0a5db5;
  border-left-color: #0a5db5;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 8px rgba(10, 93, 181, 0.1);
}

.menu-link.active::before {
  transform: scaleX(1);
}

.menu-link-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-arrow {
  font-size: 16px;
  color: #9ca3af;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
  margin-left: auto;
  font-weight: 300;
}

.menu-item.has-submenu.open .menu-arrow {
  transform: rotate(90deg);
  color: #0a5db5;
}

.menu-link:hover .menu-arrow {
  color: #0a5db5;
}

.menu-sublist {
  list-style: none;
  margin: 4px 8px 8px 8px;
  padding: 8px 0;
  background: #f8fafc;
  display: none;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 3px solid #0a5db5;
  border-radius: 0 8px 8px 0;
}

.menu-item.has-submenu.open .menu-sublist {
  display: block;
  opacity: 1;
  max-height: 1000px;
}

.menu-subitem {
  margin: 0;
}

.menu-sublink {
  display: flex;
  align-items: center;
  padding: 12px 20px 12px 40px;
  min-height: 44px;
  text-decoration: none;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.5;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 3px solid transparent;
  cursor: pointer;
  margin: 2px 0;
  border-radius: 6px;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  gap: 8px;
}

.menu-sublink .menu-icon {
  font-size: 16px;
  width: 20px;
  height: 20px;
  margin-left: -4px;
}

.menu-sublink:hover .menu-icon {
  transform: scale(1.1);
}

.menu-sublink.active .menu-icon {
  transform: scale(1.15);
}

.menu-sublink:focus {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.menu-sublink::before {
  content: '•';
  position: absolute;
  left: 20px;
  color: #cbd5e1;
  font-size: 20px;
  line-height: 1;
  transition: color 0.2s ease;
}

.menu-sublink:hover {
  background: #ffffff;
  color: #0a5db5;
  border-left-color: #0a5db5;
  font-weight: 700;
  letter-spacing: -0.015em;
  transform: translateX(4px);
  box-shadow: 0 2px 6px rgba(10, 93, 181, 0.08);
}

.menu-sublink:hover::before {
  color: #0a5db5;
}

.menu-sublink.active {
  background: #ffffff;
  color: #0a5db5;
  border-left-color: #0a5db5;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 8px rgba(10, 93, 181, 0.12);
}

.menu-sublink.active::before {
  color: #0a5db5;
}

.menu-sublink-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-subitem.has-submenu-nested.open .menu-arrow {
  transform: rotate(90deg);
  color: var(--brand);
}

.menu-sublist-nested {
  list-style: none;
  margin: 4px 0 8px 0;
  padding: 8px 0;
  background: #ffffff;
  display: none;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 2px solid #0a5db5;
  border-radius: 0 6px 6px 0;
}

.menu-subitem.has-submenu-nested.open .menu-sublist-nested {
  display: block;
  opacity: 1;
  max-height: 1000px;
}

.menu-sublist-nested li {
  margin: 0;
}

.menu-sublist-nested a {
  display: flex;
  align-items: center;
  padding: 10px 20px 10px 56px;
  min-height: 44px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.005em;
  line-height: 1.5;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 2px solid transparent;
  text-decoration: none;
  margin: 2px 0;
  border-radius: 4px;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  gap: 6px;
}

.menu-sublist-nested a .menu-icon {
  font-size: 14px;
  width: 18px;
  height: 18px;
  margin-left: -2px;
}

.menu-sublist-nested a:focus {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.menu-sublist-nested a::before {
  content: '▸';
  position: absolute;
  left: 36px;
  color: #d1d5db;
  font-size: 12px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.menu-sublist-nested a:hover {
  background: #f8fafc;
  color: #0a5db5;
  border-left-color: #0a5db5;
  font-weight: 700;
  letter-spacing: -0.01em;
  transform: translateX(4px);
}

.menu-sublist-nested a:hover::before {
  color: #0a5db5;
  transform: translateX(2px);
}

.menu-sublist-nested a.active {
  background: #f0f9ff;
  color: #0a5db5;
  border-left-color: #0a5db5;
  font-weight: 800;
  letter-spacing: -0.015em;
  box-shadow: 0 1px 4px rgba(10, 93, 181, 0.1);
}

.menu-sublist-nested a.active::before {
  color: #0a5db5;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-actions a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  min-height: 44px;
  min-width: 44px;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.01em;
  position: relative;
  background: transparent;
  border: 1px solid transparent;
}

.nav-actions a.cart-link {
  position: relative;
  background: linear-gradient(135deg, rgba(10, 93, 181, 0.08) 0%, rgba(10, 93, 181, 0.04) 100%);
  border-color: rgba(10, 93, 181, 0.15);
  color: var(--brand);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-actions a.cart-link::before {
  content: '🛒';
  margin-right: 6px;
  font-size: 16px;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  margin-left: 8px;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.3px;
  opacity: 0;
  transform: scale(0) translateY(-50%);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4), 0 1px 3px rgba(220, 38, 38, 0.3);
  border: 2px solid #ffffff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cart-count.has-items {
  opacity: 1;
  transform: scale(1) translateY(0);
  animation: cartCountPulse 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cartCountPulse {
  0% {
    transform: scale(0) translateY(-50%);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) translateY(0);
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.cart-link:hover .cart-count.has-items {
  transform: scale(1.1) translateY(0);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5), 0 2px 6px rgba(220, 38, 38, 0.4);
}

.cart-count:empty {
  display: none;
}

.nav-actions a:focus {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  background: rgba(10, 93, 181, 0.1);
}

.nav-actions a:hover {
  background: linear-gradient(135deg, rgba(10, 93, 181, 0.12) 0%, rgba(10, 93, 181, 0.06) 100%);
  color: var(--brand);
  border-color: rgba(10, 93, 181, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(10, 93, 181, 0.15);
}

.nav-actions a.cart-link:hover {
  background: linear-gradient(135deg, rgba(10, 93, 181, 0.15) 0%, rgba(10, 93, 181, 0.08) 100%);
  border-color: rgba(10, 93, 181, 0.25);
  box-shadow: 0 4px 12px rgba(10, 93, 181, 0.2);
}

.nav-actions a:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(10, 93, 181, 0.1);
}

.btn { 
  display: inline-block; 
  padding: 12px 20px; 
  min-height: 44px;
  min-width: 44px;
  border-radius: 10px; 
  border:1px solid var(--border); 
  color: var(--text); 
  text-decoration: none; 
  font-weight: 600; 
  font-size: 16px;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.02em;
  background: #fff; 
  transition: all 0.25s ease;
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
}

.btn:focus {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.btn:hover { 
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--brand);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary { 
  background: var(--brand); 
  border-color: var(--brand); 
  color: #fff; 
}

.btn.primary:focus {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.btn.primary:hover { 
  background: var(--brand-600); 
  border-color: var(--brand-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 93, 181, 0.3);
}

.btn.primary:active {
  transform: translateY(0);
}

/* Catalog Index Navigation */
.catalog-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 32px 0;
  padding: 0;
}

.catalog-index .btn {
  background: #ffffff;
  color: #1e293b;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 20px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.catalog-index .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.catalog-index .btn:hover::before {
  left: 100%;
}

.catalog-index .btn:hover {
  background: #ffffff;
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 4px 12px rgba(10, 93, 181, 0.15), 0 2px 4px rgba(10, 93, 181, 0.1);
  transform: translateY(-2px);
}

.catalog-index .btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* MAIN CAROUSEL */
.main-carousel-section { 
  position: relative; 
  overflow: hidden; 
  min-height: 58vh;
  contain: layout style paint;
  margin-top: 0;
}
.main-carousel { 
  position: relative; 
  width: 100%;
  height: 100%;
}
.main-carousel-slide { 
  position: relative; 
  min-height: 58vh; 
  display: none; 
  align-items: center; 
  color: #ffffff; 
  background: #0b1324;
  width: 100%;
  contain: layout style paint;
}
.main-carousel-slide.main-carousel-active { 
  display: grid; 
}
.main-carousel-slide::before { 
  content: ""; 
  position: absolute; 
  inset: 0; 
  background-image: var(--bg); 
  background-size: cover; 
  background-position: right center; 
  background-repeat: no-repeat;
  filter: brightness(0.4); 
  image-rendering: -webkit-optimize-contrast; 
  image-rendering: auto; 
  will-change: transform;
  transform: translateZ(0);
}

.main-carousel-slide:nth-child(odd)::before {
  background-position: left center;
}

.main-carousel-slide:nth-child(even)::before {
  background-position: right center;
}
.main-carousel-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.3) 100%); z-index: 0; }
.main-carousel-slide > .container { position: relative; z-index: 1; padding: 100px 0 64px 0; }
.main-carousel-slide h1, .main-carousel-slide h2 { 
  margin: 0 0 10px; 
  font-size: clamp(28px, 5vw, 42px); 
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}
@media (min-width: 900px) {
  .main-carousel-slide h1, .main-carousel-slide h2 { font-size: clamp(42px, 5vw, 56px); }
}
.main-carousel-slide p { 
  max-width: 700px; 
  color: #ffffff;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
  font-weight: 400;
  font-size: clamp(16px, 2vw, 18px);
  margin-bottom: 12px;
  line-height: 1.6;
}

.main-carousel-slide p:last-child {
  margin-bottom: 0;
}
.main-carousel-controls { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 10px; pointer-events: none; }
.main-carousel-controls::before, .main-carousel-controls::after { content: ""; position: absolute; top: 0; bottom: 0; width: 18%; pointer-events: none; }
.main-carousel-controls::before { left: 0; background: linear-gradient(90deg, rgba(11,19,36,0.55), rgba(11,19,36,0)); }
.main-carousel-controls::after { right: 0; background: linear-gradient(270deg, rgba(11,19,36,0.55), rgba(11,19,36,0)); }
.main-carousel-controls button { 
  width: 56px; 
  height: 56px; 
  min-width: 56px;
  min-height: 56px;
  border-radius: 50%; 
  border: 2px solid rgba(255,255,255,.8); 
  background: rgba(255,255,255,.95); 
  color: var(--text); 
  font-size: 28px; 
  font-weight: 300;
  cursor: pointer; 
  display: grid; 
  place-items: center; 
  box-shadow: 0 4px 16px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.2); 
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
  user-select: none;
  -webkit-user-select: none;
  z-index: 10;
  position: relative;
}

.main-carousel-controls button:focus {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
  background: #fff;
}

.main-carousel-controls button:hover {
  background: #fff;
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(0,0,0,.4), 0 4px 12px rgba(0,0,0,.3);
  border-color: rgba(255,255,255,1);
}

.main-carousel-controls button:active {
  transform: scale(0.9);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

/* Indicadores del carrusel */
.main-carousel-indicators {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 15;
  pointer-events: none;
}

.carousel-indicator-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 1);
  width: 12px;
  height: 12px;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

.carousel-indicator-text {
  display: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .carousel-dot {
    width: 6px;
    height: 6px;
    border-width: 1.5px;
  }
  
  .carousel-dot.active {
    width: 8px;
    height: 8px;
  }
  
  .carousel-indicator-dots {
    gap: 6px;
  }
  
  .carousel-indicator-text {
    font-size: 11px;
    letter-spacing: 0.3px;
  }
  
  .main-carousel-indicators {
    gap: 10px;
  }
}

/* Logo en las imágenes del slider */
.main-carousel-slide {
  position: relative;
}

.main-carousel-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  filter: brightness(0.4);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  will-change: transform;
  transform: translateZ(0);
}

.main-carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 0;
}


@media (max-width: 768px) {
  .main-carousel-section {
    min-height: 50vh;
  }
  
  .main-carousel-slide {
    min-height: 50vh;
  }
  
  /* Anular padding del container general dentro del slider */
  .main-carousel-slide .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .main-carousel-slide > .container {
    padding: 50px 20px 35px 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
  }
  
  .main-carousel-slide h1, 
  .main-carousel-slide h2 {
    font-size: clamp(18px, 4.5vw, 24px) !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.25 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .main-carousel-slide p {
    font-size: clamp(12px, 3vw, 14px) !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .main-carousel-slide p:last-child {
    margin-bottom: 0;
  }
  
  .main-carousel-controls {
    padding: 0 16px;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 14px;
  }
  
  .main-carousel-controls::before,
  .main-carousel-controls::after {
    display: none;
  }
  
  .main-carousel-controls button {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    font-size: 24px;
    border-width: 2px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.8);
    background: rgba(255,255,255,.95);
    color: var(--text);
    box-shadow: 0 3px 12px rgba(0,0,0,.25), 0 1px 6px rgba(0,0,0,.15);
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin: 0 6px;
    font-weight: 400;
  }
  
  .main-carousel-controls button:active {
    transform: scale(0.9);
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
  }
  
  .main-carousel-controls button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
    background: #fff;
  }
  
  .main-carousel-controls button:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.2);
    border-color: rgba(255,255,255,1);
  }
  
  /* Indicadores en móvil - entre el texto y las flechas */
  .main-carousel-indicators {
    bottom: 88px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 12px;
    align-items: center;
  }
  
  .carousel-indicator-text {
    display: block;
    font-size: 11px;
    letter-spacing: 0.3px;
  }
  
  .carousel-dot {
    width: 6px;
    height: 6px;
    border-width: 1.5px;
  }
  
  .carousel-dot.active {
    width: 8px;
    height: 8px;
  }
  
  .carousel-indicator-dots {
    gap: 6px;
  }
  
  .main-carousel-indicators {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .main-carousel-section {
    min-height: 45vh;
  }
  
  .main-carousel-slide {
    min-height: 45vh;
  }
  
  .main-carousel-slide .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .main-carousel-slide > .container {
    padding: 40px 16px 30px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  
  .main-carousel-slide h1, 
  .main-carousel-slide h2 {
    font-size: clamp(16px, 4.5vw, 20px) !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.2 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  
  .main-carousel-slide p {
    font-size: clamp(11px, 2.8vw, 13px) !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  
  .main-carousel-controls {
    padding-bottom: 14px;
  }
  
  .main-carousel-controls button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 20px;
    border-width: 2px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.8);
    background: rgba(255,255,255,.95);
    color: var(--text);
    box-shadow: 0 2px 10px rgba(0,0,0,.2), 0 1px 5px rgba(0,0,0,.15);
    margin: 0 5px;
    font-weight: 400;
  }
  
  .main-carousel-controls button:active {
    transform: scale(0.9);
    box-shadow: 0 1px 5px rgba(0,0,0,.2);
  }
  
  .main-carousel-controls button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
    background: #fff;
  }
  
  .main-carousel-controls button:hover {
    background: #fff;
    transform: scale(1.08);
    box-shadow: 0 3px 14px rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.2);
    border-color: rgba(255,255,255,1);
  }
  
  /* Indicadores en pantallas muy pequeñas */
  .main-carousel-indicators {
    bottom: 88px;
    gap: 8px;
  }
  
  .carousel-dot {
    width: 5px;
    height: 5px;
    border-width: 1px;
  }
  
  .carousel-dot.active {
    width: 7px;
    height: 7px;
  }
  
  .carousel-indicator-dots {
    gap: 5px;
  }
  
  .carousel-indicator-text {
    font-size: 10px;
    letter-spacing: 0.2px;
  }
}

/* HERO */
.hero { position: relative; overflow: hidden; display: flex; }
.slider { position: relative; }
.slide { position: relative; min-height: 58vh; display: grid; align-items: center; justify-items: center; color: #ffffff; background: #0b1324; flex: 1; width: 50%; }
.slide::before { 
  content: ""; 
  position: absolute; 
  inset: 0; 
  background-image: var(--bg); 
  background-size: cover; 
  background-position: center; 
  filter: brightness(0.4);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  will-change: transform;
}
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.3) 100%); z-index: 0; }
.slide > .container { position: relative; z-index: 1; padding: 64px 0; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.slide h1, .slide h2 { 
  margin: 0 0 10px; 
  font-size: clamp(28px, 5vw, 42px); 
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.5);
  font-weight: 700;
  text-align: center;
}
@media (min-width: 900px) {
  .slide h1, .slide h2 { font-size: clamp(42px, 5vw, 56px); }
}
.slide p { 
  max-width: 700px; 
  color: #ffffff;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
  font-weight: 400;
  font-size: clamp(16px, 2vw, 18px);
  text-align: center;
  margin: 0 auto;
}
.hero-ctas { display: flex; gap: 12px; margin-top: 18px; justify-content: center; }
.slider-controls { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 10px; }
.slider-controls::before, .slider-controls::after { content: ""; position: absolute; top: 0; bottom: 0; width: 18%; pointer-events: none; }
.slider-controls::before { left: 0; background: linear-gradient(90deg, rgba(11,19,36,0.55), rgba(11,19,36,0)); }
.slider-controls::after { right: 0; background: linear-gradient(270deg, rgba(11,19,36,0.55), rgba(11,19,36,0)); }
.slider-controls button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.92); color: var(--text); font-size: 22px; cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(2,6,23,.25); }
.slider-controls button:hover { background: #fff; }

/* SECTIONS */
.section { 
  padding: 100px 0; 
  position: relative;
}
.section h1,
.section h2 { 
  font-size: clamp(32px, 4vw, 42px); 
  margin: 0 0 20px; 
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.8px;
  line-height: 1.15;
  font-family: "Inter", sans-serif;
}
.section h1 {
  font-size: clamp(36px, 5vw, 48px);
  margin-bottom: 16px;
}
.section p.muted {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 400;
  letter-spacing: 0.01em;
  max-width: 800px;
}

/* Fondo profesional para sección de productos */
.section.products {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%, #f8fafc 100%);
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.section.products::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 15% 30%, rgba(10, 93, 181, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(13, 115, 119, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(10, 93, 181, 0.02) 0%, transparent 60%);
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 0;
}

.section.products::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 100px,
      rgba(255, 255, 255, 0.02) 100px,
      rgba(255, 255, 255, 0.02) 200px
    );
  pointer-events: none;
  z-index: 0;
}

.section.products > .container {
  position: relative;
  z-index: 1;
}

.section.products h1,
.section.products h2,
.section.products p,
.section.products .catalog-index,
.section.products .product-cards-section,
.section.products .category-cards-section {
  position: relative;
  z-index: 1;
}

/* Asegurar consistencia en todas las secciones de productos */
.section.products h1 {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin: 0 0 16px;
  font-family: "Inter", sans-serif;
}

.section.products p.muted {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 400;
  letter-spacing: 0.01em;
  max-width: 800px;
}
@media (min-width: 900px) {
  .section h2 { font-size: clamp(32px, 4vw, 40px); }
}

/* Scroll offset para compensar navbar fijo */
[id] {
  scroll-margin-top: 80px;
}

/* Asegurar que los elementos principales tengan el offset */
section[id],
div[id].product-cards-section,
div[id].category-cards-section {
  scroll-margin-top: 90px;
}

/* Scroll offset para compensar navbar fijo */
[id] {
  scroll-margin-top: 80px;
}

/* Ajustar offset para secciones principales */
section[id],
.product-cards-section[id],
.category-cards-section[id] {
  scroll-margin-top: 80px;
}

.products .product-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.group { background: #fff; border:1px solid var(--border); border-radius: 12px; padding: 18px; }
.group h3 { margin: 0 0 10px; font-size: 18px; }
.links { margin: 0; padding-left: 18px; }
.links a { color: var(--brand); text-decoration: none; }
.links a:hover { text-decoration: underline; }

/* Product Cards */
.product-cards-section { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
  gap: 20px; 
  margin-top: 32px; 
  max-width: 100%; 
}
.product-card { 
  background: #fff; 
  border: none; 
  border-radius: 12px; 
  overflow: hidden; 
  display: flex; 
  flex-direction: column; 
  height: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}
.product-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}
.product-card img { 
  width: 100%; 
  height: 200px; 
  object-fit: contain; 
  background: #ffffff; 
  padding: 20px; 
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: auto;
  loading: lazy;
  decoding: async;
}
.product-info { 
  background: #0d7377; 
  color: #fff; 
  padding: 16px; 
  flex-grow: 1; 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
  min-height: 180px;
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  align-items: center;
}
.product-title { 
  font-size: 14px; 
  font-weight: 600; 
  text-transform: uppercase; 
  margin: 0;
  letter-spacing: 0.5px;
  font-family: "Inter", sans-serif;
}
.product-series { 
  font-size: 18px; 
  font-weight: 700; 
  margin: 4px 0;
  line-height: 1.2;
  letter-spacing: -0.3px;
  font-family: "Inter", sans-serif;
}
.product-material { 
  font-size: 12px; 
  opacity: 0.9; 
  margin: 0;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.3px;
  font-family: "Inter", sans-serif;
}
.product-spec { 
  font-size: 13px; 
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
  font-family: "Inter", sans-serif;
}
.btn-ver-mas { 
  background: transparent; 
  border: 1px solid #fff; 
  color: #fff; 
  padding: 8px 16px; 
  border-radius: 6px; 
  cursor: pointer; 
  font-weight: 600; 
  font-size: 14px; 
  font-family: "Inter", sans-serif;
  transition: all 0.2s ease; 
  flex: 1;
  text-align: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}
.btn-ver-mas:hover { 
  background: #fff; 
  color: #0d7377; 
}

.btn-add-cart {
  background: #fff;
  border: 1px solid #fff;
  color: #0d7377;
  padding: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 24px;
  font-family: "Inter", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  line-height: 1;
}

.btn-add-cart:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.btn-add-cart:active {
  transform: scale(0.95);
}

.btn-add-cart:focus {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .product-actions {
    gap: 6px;
  }
  
  .btn-ver-mas {
    font-size: 13px;
    padding: 10px 12px;
  }
  
  .btn-add-cart {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .product-actions {
    gap: 4px;
  }
  
  .btn-ver-mas {
    font-size: 12px;
    padding: 8px 10px;
  }
  
  .btn-add-cart {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 24px;
  }
}

/* Category Cards (Large) */
.category-cards-section { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 24px; 
  margin-top: 40px; 
}
.category-card { 
  background: #fff; 
  border: none; 
  border-radius: 12px; 
  overflow: hidden; 
  display: flex; 
  flex-direction: column; 
  text-decoration: none; 
  transition: all 0.3s ease; 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
} 
.category-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); 
} 
.category-card img { 
  width: 100%; 
  height: 300px; 
  object-fit: contain; 
  background: #ffffff; 
  padding: 32px; 
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: auto;
  loading: lazy;
  decoding: async;
} 
.category-info { 
  background: #0d7377; 
  color: #fff; 
  padding: 24px 20px; 
  flex-grow: 1; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  gap: 16px; 
  min-height: 140px;
} 
.category-info h2 { 
  margin: 0; 
  font-size: 20px; 
  font-weight: 600; 
  text-align: center; 
  letter-spacing: -0.2px;
  line-height: 1.3;
  font-family: "Inter", sans-serif;
  color: #fff;
} 
.category-card .btn-ver-mas { 
  margin-top: 0; 
  pointer-events: auto; 
  padding: 8px 16px;
  font-size: 14px;
  letter-spacing: 0.5px;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  width: 100%;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.2s ease;
  cursor: pointer;
}
.category-card .btn-ver-mas:hover {
  background: #fff;
  color: #0d7377;
}

.about .about-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 28px; }
.about .card { background: #fff; border:1px solid var(--border); border-radius: 12px; padding: 18px; }
.meta { margin: 0; padding-left: 18px; color: var(--muted); }

.blog p { color: var(--muted); }

/* Sección de Contacto */
.contact {
  position: relative;
  background-image: url('IMG/contacto.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  will-change: transform;
  background-attachment: fixed;
  color: #fff;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 93, 181, 0.35) 0%, rgba(13, 115, 119, 0.25) 100%);
  z-index: 0;
}

.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

.contact .container {
  position: relative;
  z-index: 1;
}

.contact-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  color: #fff;
}

.contact-info h2 {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 16px;
}

.contact-info p {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  margin-bottom: 12px;
}

.contact-form-wrapper {
  width: 100%;
}

.contact-form-wrapper h2 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  margin-bottom: 32px;
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.5px;
}

.contact-form-wrapper label {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  font-weight: 500;
}

.contact .contact-form { 
  background: rgba(255, 255, 255, 0.95); 
  border: 1px solid rgba(255, 255, 255, 0.8); 
  border-radius: 20px; 
  padding: 40px; 
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  margin-top: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact .contact-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.25);
}

.contact-form-wrapper label {
  color: #1f2937;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  display: block;
  letter-spacing: 0.01em;
  font-family: "Inter", sans-serif;
}

.contact h2,
.contact p {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact .fields { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 20px; 
  margin-bottom: 24px;
}

.contact .fields .full { 
  grid-column: 1 / -1; 
}

.contact input, 
.contact textarea,
.contact select { 
  width: 100%; 
  margin-top: 8px; 
  padding: 14px 18px; 
  border-radius: 12px; 
  border: 2px solid #e5e7eb; 
  font: inherit; 
  font-size: 15px;
  font-family: "Inter", sans-serif;
  background: #ffffff;
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.contact input:focus,
.contact textarea:focus,
.contact select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(10, 93, 181, 0.1), 0 2px 8px rgba(10, 93, 181, 0.15);
  transform: translateY(-1px);
}

.contact input:hover,
.contact textarea:hover,
.contact select:hover {
  border-color: #cbd5e1;
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: #9ca3af;
  opacity: 0.8;
}


.contact select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 45px;
  background-size: 12px;
}

.contact select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230a5db5' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.contact select option:disabled {
  color: var(--muted);
}

.contact textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.contact .btn.primary {
  width: 100%;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(10, 93, 181, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact .btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 93, 181, 0.4);
}

.contact .btn.primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(10, 93, 181, 0.3);
}

/* FOOTER */
.site-footer { 
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(10, 93, 181, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.footer-grid { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  gap: 28px; 
  padding: 60px 20px 40px;
  position: relative;
  z-index: 1;
}

.footer-grid > div { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  text-align: center;
  max-width: 700px;
}

.footer-logo { 
  margin-bottom: 24px; 
  justify-content: center;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-logo-img {
  height: 90px;
  width: auto;
  border: none;
  outline: none;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.footer-logo:hover .footer-logo-img {
  transform: scale(1.05);
}

.site-footer h3 { 
  margin: 0 0 8px; 
  font-size: 18px; 
  font-weight: 700;
  color: var(--text);
  font-family: "Inter", sans-serif;
  letter-spacing: -0.2px;
}

.site-footer ul { 
  margin: 0; 
  padding-left: 18px; 
}

.site-footer p { 
  text-align: center;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-family: "Inter", sans-serif;
  max-width: 600px;
}

.legal { 
  border-top: 1px solid rgba(0, 0, 0, 0.08); 
  padding: 24px 20px;
  color: var(--muted);
  text-align: center;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.6);
}

.legal small {
  font-size: 13px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-family: "Inter", sans-serif;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .about .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-inner {
    padding: 12px 0;
    gap: 12px;
  }
  
  .logo-img {
    height: 55px;
  }
  
  .footer-logo-img {
    height: 75px;
  }
  
  .menu-toggle {
    padding: 10px 14px;
    font-size: 14px;
    gap: 6px;
  }
  
  .nav-actions {
    gap: 6px;
  }
  
  .nav-actions a {
    font-size: 12px;
    padding: 8px 12px;
  }
  
  .nav-actions a.cart-link::before {
    margin-right: 4px;
    font-size: 14px;
  }
  
  .cart-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 10px;
    margin-left: 6px;
    border-width: 1.5px;
    border-radius: 10px;
    font-weight: 800;
  }
  
  .menu-panel {
    width: 280px;
  }
  
  .menu-link {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .menu-sublink {
    padding: 8px 16px 8px 32px;
    font-size: 13px;
  }
  
  .menu-sublist-nested a {
    padding: 6px 16px 6px 36px;
    font-size: 12px;
  }
  
  .menu-sublink {
    padding: 8px 16px 8px 28px;
  }

  .products .product-groups { grid-template-columns: 1fr; }
  .product-cards-section { grid-template-columns: repeat(2, 1fr); }
  .category-cards-section { grid-template-columns: repeat(2, 1fr); }
  .contact .fields { grid-template-columns: 1fr; }
  .contact-wrapper { gap: 32px; }
  .contact .contact-form {
    padding: 32px 24px;
    border-radius: 16px;
  }
  .contact-form-wrapper h2 {
    font-size: 28px;
    margin-bottom: 24px;
  }
  .footer-grid { grid-template-columns: 1fr; }
  
  .hero { 
    flex-direction: column; 
  }
  .hero .slide { 
    width: 100%; 
  }
}

@media (max-width: 600px) {
  .product-cards-section { grid-template-columns: 1fr; }
  .category-cards-section { grid-template-columns: 1fr; }
  .catalog-index {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .catalog-index .btn {
    padding: 14px 18px;
    font-size: 14px;
  }
}

/* MODAL */
.modal-backdrop { 
  position: fixed; 
  inset: 0; 
  background: rgba(2, 6, 23, 0.6); 
  backdrop-filter: blur(8px) saturate(150%); 
  display: none; 
  align-items: center; 
  justify-content: center; 
  padding: 20px; 
  z-index: 1000; 
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-backdrop.open { display: flex; }
.modal { 
  width: min(800px, 94%); 
  max-height: 90vh;
  background: #fff; 
  border: none; 
  border-radius: 20px; 
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.3), 0 8px 24px rgba(2, 6, 23, 0.2); 
  overflow: hidden; 
  transform: translateY(20px) scale(0.96); 
  opacity: 0; 
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, box-shadow 0.3s ease; 
  display: flex;
  flex-direction: column;
}
.modal-backdrop.open .modal { 
  transform: translateY(0) scale(1); 
  opacity: 1; 
}
.modal header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 24px 28px; 
  border-bottom: 1px solid rgba(0, 0, 0, 0.08); 
  background: linear-gradient(135deg, #0a5db5 0%, #0d7377 100%);
  box-shadow: 0 2px 8px rgba(10, 93, 181, 0.15);
}
.modal header h3 { 
  margin: 0; 
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  font-family: "Inter", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.modal .close { 
  background: rgba(255, 255, 255, 0.2); 
  border: none; 
  font-size: 24px; 
  color: #ffffff;
  cursor: pointer; 
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  font-weight: 300;
}
.modal .close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}
.modal .close:active {
  transform: scale(0.95);
}
.modal .content { 
  padding: 28px; 
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.modal .actions { 
  display: flex; 
  justify-content: flex-end; 
  gap: 12px; 
  padding: 20px 28px; 
  border-top: 1px solid rgba(0, 0, 0, 0.08); 
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
}

.modal .actions .btn {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.2px;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.modal .actions .btn:not(.primary) {
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.1);
  color: #374151;
}

.modal .actions .btn:not(.primary):hover {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal .actions .btn.primary {
  background: linear-gradient(135deg, #0a5db5 0%, #0d7377 100%);
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(10, 93, 181, 0.3);
}

.modal .actions .btn.primary:hover {
  background: linear-gradient(135deg, #0d7377 0%, #0a5db5 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10, 93, 181, 0.4);
}

.modal .actions .btn.primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(10, 93, 181, 0.3);
}
.cart-table { 
  width: 100%; 
  border-collapse: separate;
  border-spacing: 0;
}
.cart-table thead {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.cart-table th { 
  padding: 16px 20px; 
  border-bottom: 2px solid rgba(0, 0, 0, 0.08); 
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "Inter", sans-serif;
}
.cart-table th:first-child {
  border-top-left-radius: 12px;
}
.cart-table th:last-child {
  border-top-right-radius: 12px;
}
.cart-table td { 
  padding: 20px; 
  border-bottom: 1px solid rgba(0, 0, 0, 0.06); 
  text-align: left;
  vertical-align: middle;
  font-size: 15px;
  color: #1f2937;
  font-family: "Inter", sans-serif;
  font-weight: 500;
}
.cart-table tbody tr {
  transition: background-color 0.2s ease;
}
.cart-table tbody tr:hover {
  background-color: rgba(10, 93, 181, 0.03);
}
.cart-table tbody tr:last-child td {
  border-bottom: none;
}
.empty { 
  color: #9ca3af; 
  text-align: center;
  padding: 48px 20px !important;
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
}

.cart-qty-btn {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #0a5db5;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  line-height: 1;
}

.cart-qty-btn:hover {
  background: linear-gradient(135deg, #0a5db5 0%, #0d7377 100%);
  color: #ffffff;
  border-color: #0a5db5;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(10, 93, 181, 0.25);
}

.cart-qty-btn:active {
  transform: scale(0.95);
}

.cart-qty-btn:focus {
  outline: 3px solid rgba(10, 93, 181, 0.3);
  outline-offset: 2px;
}

.cart-delete-btn {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #dc2626;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 36px;
}

.cart-delete-btn:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  border-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.cart-delete-btn:active {
  transform: translateY(0);
}

.cart-delete-btn:focus {
  outline: 3px solid rgba(220, 38, 38, 0.3);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .modal {
    width: min(95%, 100%);
    max-height: 95vh;
    border-radius: 16px;
  }
  
  .modal header {
    padding: 20px 24px;
  }
  
  .modal .content {
    padding: 20px;
  }
  
  .modal .actions {
    padding: 16px 20px;
    flex-direction: column;
  }
  
  .modal .actions .btn {
    width: 100%;
  }
  
  .cart-table {
    font-size: 14px;
  }
  
  .cart-table th,
  .cart-table td {
    padding: 12px 8px;
  }
  
  .cart-table th {
    font-size: 11px;
  }
  
  .cart-qty-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    font-size: 18px;
  }
  
  .cart-delete-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .cart-table th,
  .cart-table td {
    padding: 10px 6px;
    font-size: 13px;
  }
  
  .cart-table th:first-child,
  .cart-table td:first-child {
    padding-left: 12px;
  }
  
  .cart-table th:last-child,
  .cart-table td:last-child {
    padding-right: 12px;
  }
}

/* Estilos de formulario dentro de modales (login) */
.modal .contact-form { border: 0; padding: 0; }
.modal .fields { display: grid; grid-template-columns: 1fr; gap: 14px; }
.modal input { width: 100%; margin-top: 6px; padding: 12px 12px; border-radius: 10px; border: 1px solid var(--border); font: inherit; background: #fff; }
.modal input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10,93,181,.12); }

/* Toggle auth (CSS fallback) */
body.auth-logged-in [data-auth-show="logged-out"] { display: none !important; }
body.auth-logged-out [data-auth-show="logged-in"] { display: none !important; }

/* Toast Notification */
.toast-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.15);
  min-width: 300px;
  max-width: 400px;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(400px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  color: #10b981;
}

.toast.error .toast-icon {
  color: #ef4444;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--text);
}

.toast-message {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.toast-close {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-close:hover {
  color: var(--text);
}

@media (max-width: 600px) {
  .toast-container {
    right: 10px;
    left: 10px;
    top: 80px;
  }
  
  .toast {
    min-width: auto;
    max-width: none;
    transform: translateY(-100px);
  }
  
  .toast.show {
    transform: translateY(0);
  }
}

/* Error states en formulario */
.contact-form .error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.contact-form .error-message {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}