: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;
  padding-top: 110px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}


/* 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; 
}

/* Top Bar */
.top-bar {
  background: #000000;
  border-bottom: 2px solid #000000;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  padding: 8px 0;
  font-size: 14px;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.2s ease;
}

.top-bar-link:hover {
  opacity: 0.8;
}

.top-bar-icon {
  font-size: 16px;
}

.top-bar-separator {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 4px;
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border-radius: 4px;
}

.social-link:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* WhatsApp específico: verde y más grande */
.social-link[href*="wa.me"] {
  color: #25D366;
}

.social-link[href*="wa.me"] svg {
  width: 26px;
  height: 26px;
}

.nav { 
  background: #ffffff;
  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);
}

/* Navbar con top bar arriba */
body:has(.top-bar) .nav {
  top: 40px;
}

.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);
}

/* Ajustar padding del body para compensar header de dos niveles (solo en archivos con top bar) */
body:has(.top-bar) {
  padding-top: 110px;
}

/* Archivos sin top bar */
body:not(:has(.top-bar)) {
  padding-top: 70px;
}

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

/* Responsive: Ajustar top bar en móvil */
@media (max-width: 900px) {
  .top-bar {
    padding: 6px 0;
    font-size: 12px;
  }
  
  .top-bar-inner {
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .top-bar-contact {
    gap: 8px;
  }
  
  .top-bar-link {
    font-size: 12px;
    gap: 4px;
  }
  
  .top-bar-icon {
    font-size: 14px;
  }
  
  .top-bar-separator {
    margin: 0 2px;
  }
  
  .top-bar-social {
    gap: 8px;
  }
  
  .social-link {
    width: 24px;
    height: 24px;
  }
  
  .social-link svg {
    width: 18px;
    height: 18px;
  }
  
  body:has(.top-bar) .nav {
    top: 36px;
  }
  
  body:has(.top-bar) {
    padding-top: 106px;
  }
}

/* Breakpoint móvil - 768px */
@media (max-width: 768px) {
  .top-bar {
    padding: 6px 0;
    font-size: 11px;
  }
  
  .top-bar-inner {
    gap: 10px;
  }
  
  .top-bar-contact {
    gap: 6px;
  }
  
  .top-bar-link {
    font-size: 11px;
    gap: 4px;
  }
  
  .top-bar-icon {
    font-size: 13px;
  }
  
  .top-bar-social {
    gap: 6px;
  }
  
  .social-link {
    width: 22px;
    height: 22px;
  }
  
  .social-link svg {
    width: 16px;
    height: 16px;
  }
  
  body:has(.top-bar) .nav {
    top: 34px;
  }
  
  body:has(.top-bar) {
    padding-top: 104px;
  }
}

/* Breakpoint móvil - 428px */
@media (max-width: 428px) {
  .top-bar {
    padding: 5px 0;
    font-size: 10px;
  }
  
  .top-bar-inner {
    gap: 8px;
    padding: 0 12px;
  }
  
  .top-bar-contact {
    gap: 4px;
    flex: 1;
    min-width: 0;
  }
  
  .top-bar-link span:last-child {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .top-bar-link {
    font-size: 10px;
    gap: 3px;
  }
  
  .top-bar-icon {
    font-size: 12px;
    flex-shrink: 0;
  }
  
  .top-bar-separator {
    margin: 0 2px;
    font-size: 10px;
  }
  
  .top-bar-social {
    gap: 6px;
    flex-shrink: 0;
  }
  
  .social-link {
    width: 20px;
    height: 20px;
  }
  
  .social-link svg {
    width: 14px;
    height: 14px;
  }
  
  body:has(.top-bar) .nav {
    top: 32px;
  }
  
  body:has(.top-bar) {
    padding-top: 102px;
  }
}

/* Breakpoint móvil - 390px */
@media (max-width: 390px) {
  .top-bar {
    padding: 4px 0;
    font-size: 9px;
  }
  
  .top-bar-inner {
    gap: 6px;
    padding: 0 10px;
  }
  
  .top-bar-contact {
    gap: 3px;
  }
  
  .top-bar-link span:last-child {
    font-size: 9px;
  }
  
  .top-bar-link {
    font-size: 9px;
    gap: 3px;
  }
  
  .top-bar-icon {
    font-size: 11px;
  }
  
  .top-bar-separator {
    margin: 0 1px;
    font-size: 9px;
  }
  
  .top-bar-social {
    gap: 5px;
  }
  
  .social-link {
    width: 18px;
    height: 18px;
  }
  
  .social-link svg {
    width: 12px;
    height: 12px;
  }
  
  body:has(.top-bar) .nav {
    top: 30px;
  }
  
  body:has(.top-bar) {
    padding-top: 100px;
  }
}

/* Breakpoint móvil - 375px */
@media (max-width: 375px) {
  .top-bar {
    padding: 4px 0;
    font-size: 8px;
  }
  
  .top-bar-inner {
    gap: 5px;
    padding: 0 8px;
  }
  
  .top-bar-contact {
    gap: 2px;
  }
  
  .top-bar-link span:last-child {
    font-size: 8px;
  }
  
  .top-bar-link {
    font-size: 8px;
    gap: 2px;
  }
  
  .top-bar-icon {
    font-size: 10px;
  }
  
  .top-bar-separator {
    margin: 0 1px;
    font-size: 8px;
  }
  
  .top-bar-social {
    gap: 4px;
  }
  
  .social-link {
    width: 16px;
    height: 16px;
  }
  
  .social-link svg {
    width: 11px;
    height: 11px;
  }
  
  body:has(.top-bar) .nav {
    top: 28px;
  }
  
  body:has(.top-bar) {
    padding-top: 98px;
  }
}

  [id] {
    scroll-margin-top: 70px;
  }
  
  section[id],
  div[id].product-cards-section,
  div[id].category-cards-section {
    scroll-margin-top: 80px;
  }
  
  section[id],
  .product-cards-section[id],
  .category-cards-section[id] {
    scroll-margin-top: 70px;
  }
}

.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;
  min-height: 70px;
  min-width: 200px;
  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: 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-sublink .menu-icon {
  font-size: 18px;
  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-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: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #0a5db5;
  border-radius: 0 4px 4px 0;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.menu-sublink: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-sublink:hover::before {
  transform: scaleX(1);
}

.menu-sublink.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.12);
}

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

.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: 14px 24px;
  min-height: 44px;
  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;
  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: 18px;
  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-sublist-nested a:focus {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.menu-sublist-nested a::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-sublist-nested a: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-sublist-nested a:hover::before {
  transform: scaleX(1);
}

.menu-sublist-nested a.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.12);
}

.menu-sublist-nested a.active::before {
  transform: scaleX(1);
}

/* 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-link .cart-text-full {
  margin-left: 4px;
}

.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: 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);
}

/* Filter Wrapper para responsive */
.filter-wrapper {
  position: relative;
  margin: 32px 0;
}

.filter-toggle {
  display: none;
  width: 100%;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.02em;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
}

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

.filter-toggle:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  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);
}

.filter-toggle:active {
  transform: scale(0.98);
}

.filter-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--muted);
}

.filter-toggle[aria-expanded="true"] .filter-arrow {
  transform: rotate(180deg);
  color: var(--brand);
}

.filter-toggle[aria-expanded="true"] {
  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);
}

.filter-menu {
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.3s ease;
}

/* En pantallas grandes, el menú siempre está visible */
@media (min-width: 601px) {
  .filter-menu {
    display: grid !important;
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
  }
}

/* HERO SECTION - Nueva sección con imagen de fondo */
.hero-section {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  overflow: hidden;
  height: 626px;
  aspect-ratio: 1920 / 626;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  box-sizing: border-box;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  aspect-ratio: 1920 / 626;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  color: white;
  padding-bottom: 3%;
  height: 100%;
}

.hero-text {
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin: 0 0 1rem 0;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin: 0;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.hero-buttons .btn {
  min-width: 160px;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
}

.hero-buttons .btn.primary {
  background: var(--brand);
  color: white;
  border: 2px solid var(--brand);
}

.hero-buttons .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.4);
}

.hero-buttons .btn.secondary {
  background: white;
  color: var(--text);
  border: 2px solid white;
}

.hero-buttons .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive - Laptop */
@media (min-width: 1025px) and (max-width: 1366px) {
  .hero-section {
    max-width: 1366px;
    height: 445px;
    aspect-ratio: 1366 / 445;
  }
}

/* Responsive - Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-section {
    height: 626px;
  }
  
  .hero-content {
    padding: 0 40px;
  }
}

/* Responsive - Móvil */
/* Breakpoint móvil - 428px (iPhone Pro Max y similares) */
@media (max-width: 428px) {
  /* Asegurar que main y body no causen overflow */
  body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  
  #main-content {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
  }
  
  .hero-section {
    max-width: 100vw !important;
    width: 100vw !important;
    height: 400px;
    aspect-ratio: 300 / 400;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    position: relative;
    left: 0;
    right: 0;
  }
  
  .hero-background {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }
  
  .hero-image {
    width: 100vw !important;
    height: 400px !important;
    max-width: 100vw !important;
    max-height: 400px;
    aspect-ratio: 300 / 400;
    object-fit: cover;
    display: block;
  }
  
  .hero-content {
    padding: 0 20px;
    padding-bottom: 10%;
  }
  
  .hero-text {
    margin-bottom: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.875rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
    padding: 14px 32px;
    font-size: 1rem;
  }
}

/* Breakpoint móvil - 390px (iPhone 12/13/14 estándar y Pro) */
@media (max-width: 390px) {
  .hero-content {
    padding: 0 18px;
    padding-bottom: 10%;
  }
  
  .hero-buttons {
    gap: 0.75rem;
  }
  
  .hero-buttons .btn {
    max-width: 280px;
    padding: 13px 28px;
    font-size: 0.95rem;
  }
}

/* Breakpoint móvil - 375px (iPhone SE/iPhone 12 mini) */
@media (max-width: 375px) {
  .hero-content {
    padding: 0 16px;
    padding-bottom: 10%;
  }
  
  .hero-buttons {
    gap: 0.625rem;
  }
  
  .hero-buttons .btn {
    max-width: 260px;
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

/* HERO CAROUSEL - Estructura básica (mantenido para compatibilidad) */
.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  overflow: hidden;
  height: 626px;
  aspect-ratio: 1920 / 626;
  box-sizing: border-box;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1920 / 626;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Imagen del slide - Opción 1: <img> con object-fit */
.slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  aspect-ratio: 1920 / 626;
  display: block;
}

/* Opción 2: background-image con zona segura */
.slide-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-clip: padding-box;
  aspect-ratio: 1920 / 626;
}


/* Controles */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  transition: background 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

/* Indicadores */
.carousel-indicators {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
}

.indicator.active {
  background: rgba(255, 255, 255, 0.95);
}

/* Responsive - Laptop */
@media (min-width: 1025px) and (max-width: 1366px) {
  .hero-carousel {
    max-width: 1366px;
    height: 445px;
    aspect-ratio: 1366 / 445;
  }
}

/* Responsive - Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-carousel {
    height: 626px;
  }
  
}

/* Breakpoint móvil - 428px (iPhone Pro Max y similares) - Carrusel */
@media (max-width: 428px) {
  .hero-carousel {
    max-width: 100vw !important;
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 400px;
    aspect-ratio: 300 / 400;
    overflow: hidden;
    position: relative;
    left: 0 !important;
    right: 0 !important;
  }
  
  .carousel-container {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }
  
  .carousel-slide {
    width: 100vw !important;
    max-width: 100vw !important;
    aspect-ratio: 300 / 400;
    left: 0 !important;
    right: 0 !important;
  }
  
  .slide-image {
    width: 100vw !important;
    height: 400px !important;
    aspect-ratio: 300 / 400;
    max-width: 100vw !important;
    max-height: 400px;
    object-fit: cover;
    display: block;
  }
  
  .slide-image-bg {
    width: 100vw !important;
    max-width: 100vw !important;
    aspect-ratio: 300 / 400;
  }
}
  
  .carousel-btn {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }
  
  .carousel-prev {
    left: 14px;
  }
  
  .carousel-next {
    right: 14px;
  }
  
  .carousel-indicators {
    bottom: 18px;
  }
  
  /* Asegurar que la imagen no corte contenido en móvil */
  .slide-image {
    object-fit: cover;
    object-position: center center;
  }
  
  .slide-image-bg {
    background-size: cover;
    background-position: center center;
  }
  
  /* Imágenes móviles para el carrusel */
  .carousel-slide[data-slide="1"] .slide-image-bg {
    background-image: url('IMG/Index/slider/Carrusel1-Movil.jpg') !important;
  }
  
  .carousel-slide[data-slide="2"] .slide-image-bg {
    background-image: url('IMG/Index/slider/Carrusel2-Movil.jpg') !important;
  }
  
  .carousel-slide[data-slide="3"] .slide-image-bg {
    background-image: url('IMG/Index/slider/Carrusel3-Movil.jpg') !important;
  }
}

/* Breakpoint móvil - 390px (iPhone 12/13/14 estándar y Pro) - Carrusel */
@media (max-width: 390px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .carousel-prev {
    left: 12px;
  }
  
  .carousel-next {
    right: 12px;
  }
  
  .carousel-indicators {
    bottom: 16px;
  }
}

/* Breakpoint móvil - 375px (iPhone SE/iPhone 12 mini) - Carrusel */
@media (max-width: 375px) {
  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  
  .carousel-prev {
    left: 10px;
  }
  
  .carousel-next {
    right: 10px;
  }
  
  .carousel-indicators {
    bottom: 14px;
  }
}

@media (max-width: 480px) {
  .hero-carousel {
    min-height: 50vh;
    height: 50vh;
    max-height: 50vh;
  }
  
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .carousel-prev {
    left: 8px;
  }
  
  .carousel-next {
    right: 8px;
  }
  
  .carousel-indicators {
    bottom: 12px;
  }
  
  /* Asegurar que la imagen no corte contenido en pantallas pequeñas */
  .slide-image {
    object-fit: cover;
    object-position: center center;
  }
  
  .slide-image-bg {
    background-size: cover;
    background-position: center center;
  }
}

.main-carousel-slide { 
  position: relative; 
  min-height: 58vh;
  height: 58vh;
  max-height: 58vh;
  display: none; 
  align-items: center; 
  color: #ffffff; 
  background: #0b1324;
  width: 100%;
  max-width: 100%;
  contain: layout style paint;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.main-carousel-slide.main-carousel-active { 
  display: grid;
  opacity: 1;
}
.main-carousel-slide::before { 
  content: ""; 
  position: absolute; 
  inset: 0; 
  background-image: var(--bg); 
  background-size: cover; 
  background-position: center center; 
  background-repeat: no-repeat;
  filter: brightness(1); 
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-origin: center center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.main-carousel-slide:nth-child(odd)::before {
  background-position: center center;
  background-size: cover;
  object-fit: cover;
}

.main-carousel-slide:nth-child(even)::before {
  background-position: center center;
  background-size: cover;
  object-fit: cover;
}
.main-carousel-slide::after { 
  content: ""; 
  position: absolute; 
  inset: 0; 
  background: linear-gradient(135deg, rgba(10, 77, 110, 0.85) 0%, rgba(13, 107, 148, 0.80) 25%, rgba(14, 123, 168, 0.75) 50%, rgba(10, 93, 122, 0.80) 75%, rgba(8, 61, 82, 0.85) 100%);
  background-size: 400% 400%;
  animation: waveBg 15s ease infinite;
  z-index: 1; 
}

@keyframes waveBg {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.main-carousel-slide::after::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
  animation: particles 20s ease infinite;
}

@keyframes particles {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.6; }
  33% { transform: translateY(-20px) translateX(10px); opacity: 0.8; }
  66% { transform: translateY(20px) translateX(-10px); opacity: 0.7; }
}

.slide-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 80px;
}

.slide-content {
  max-width: 600px;
  color: white;
}

.slide-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 8px 0;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  letter-spacing: -0.5px;
}

.slide-subtitle {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 600;
  margin: 0 0 24px 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  letter-spacing: -0.3px;
}

.slide-description {
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 40px 0;
  opacity: 0.95;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  max-width: 500px;
}

.slide-button {
  display: inline-block;
  background: #ff6b35;
  color: white;
  padding: clamp(14px, 2vw, 18px) clamp(36px, 5vw, 48px);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(255,107,53,0.4);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slide-button:hover {
  background: #ff5722;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,53,0.5);
}

.slide-button:active {
  transform: translateY(0);
}
.main-carousel-slide > .container { 
  position: relative; 
  z-index: 1; 
  padding: 0; 
  width: 100%; 
  max-width: 100%; 
  display: none;
}
.main-carousel-slide h1, .main-carousel-slide h2 { 
  margin: 0 0 16px; 
  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;
  line-height: 1.2;
}
@media (min-width: 768px) and (max-width: 1024px) {
  .main-carousel-slide h1, .main-carousel-slide h2 { 
    font-size: clamp(32px, 4.5vw, 40px); 
    margin: 0 0 14px;
  }
  .main-carousel-slide > .container {
    padding: 80px 0 56px 0;
  }
}
@media (min-width: 1025px) {
  .main-carousel-slide h1, .main-carousel-slide h2 { 
    font-size: clamp(42px, 5vw, 56px); 
    margin: 0 0 18px;
  }
}
.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: center center;
  background-repeat: no-repeat;
  filter: brightness(1);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-origin: center center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Tablet optimizations (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .main-carousel-section {
    min-height: 55vh;
    height: 55vh;
    max-height: 55vh;
  }
  
  .main-carousel-slide {
    min-height: 55vh;
    height: 55vh;
    max-height: 55vh;
  }
  
  .main-carousel-slide::before {
    background-size: cover;
    background-position: center center;
    filter: brightness(1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
  }
  
  .main-carousel-slide > .container {
    padding: 0;
    display: none;
  }
  
  .slide-overlay {
    padding: 0 60px;
  }
  
  .slide-title {
    font-size: clamp(40px, 5.5vw, 56px);
  }
  
  .slide-subtitle {
    font-size: clamp(32px, 4.5vw, 42px);
  }
  
  .slide-description {
    font-size: clamp(18px, 2.2vw, 20px);
  }
  
  .slide-button {
    padding: 16px 40px;
    font-size: 18px;
  }
  
  .main-carousel-controls button {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    font-size: 26px;
  }
  
  .main-carousel-indicators {
    bottom: 20px;
  }
}

@media (max-width: 768px) {
  .main-carousel-section {
    min-height: 50vh;
    height: 50vh;
    max-height: 50vh;
  }
  
  .main-carousel-slide {
    min-height: 50vh;
    height: 50vh;
    max-height: 50vh;
  }
  
  /* Mejorar visualización de imágenes en móvil */
  .main-carousel-slide::before {
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    filter: brightness(1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
  }
  
  .main-carousel-slide:nth-child(odd)::before,
  .main-carousel-slide:nth-child(even)::before {
    background-position: center center;
    background-size: cover;
  }
  
  /* Ajustes específicos para slides en móvil */
  .main-carousel-slide:nth-child(1)::before {
    background-position: center center;
    background-size: cover;
  }
  
  .main-carousel-slide:nth-child(4)::before {
    background-position: center center;
    background-size: cover;
  }
  
  /* 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: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    display: none !important;
  }
  
  .slide-overlay {
    padding: 0 24px !important;
  }
  
  .slide-content {
    max-width: 100% !important;
  }
  
  .slide-title {
    font-size: clamp(28px, 7vw, 40px) !important;
    margin-bottom: 6px !important;
  }
  
  .slide-subtitle {
    font-size: clamp(22px, 5.5vw, 32px) !important;
    margin-bottom: 16px !important;
  }
  
  .slide-description {
    font-size: clamp(14px, 3.5vw, 16px) !important;
    margin-bottom: 24px !important;
    max-width: 100% !important;
  }
  
  .slide-button {
    padding: 12px 28px !important;
    font-size: 14px !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 ocultos en móvil */
  .main-carousel-indicators {
    display: none;
  }
}

@media (max-width: 480px) {
  .main-carousel-section {
    min-height: 50vh;
    height: 50vh;
    max-height: 50vh;
  }
  
  .main-carousel-slide {
    min-height: 50vh;
    height: 50vh;
    max-height: 50vh;
  }
  
  /* Optimizar imágenes para pantallas muy pequeñas */
  .main-carousel-slide::before {
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    filter: brightness(1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
  }
  
  .main-carousel-slide:nth-child(odd)::before,
  .main-carousel-slide:nth-child(even)::before {
    background-position: center center;
    background-size: cover;
  }
  
  /* Ajustes específicos para slides en pantallas muy pequeñas */
  .main-carousel-slide:nth-child(1)::before {
    background-position: center center;
    background-size: cover;
  }
  
  .main-carousel-slide:nth-child(4)::before {
    background-position: center center;
    background-size: cover;
  }
  
  .main-carousel-slide .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .main-carousel-slide > .container {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: none !important;
  }
  
  .slide-overlay {
    padding: 0 16px !important;
  }
  
  .slide-title {
    font-size: clamp(24px, 8vw, 32px) !important;
    margin-bottom: 4px !important;
  }
  
  .slide-subtitle {
    font-size: clamp(18px, 6vw, 24px) !important;
    margin-bottom: 12px !important;
  }
  
  .slide-description {
    font-size: clamp(12px, 3.5vw, 14px) !important;
    margin-bottom: 20px !important;
  }
  
  .slide-button {
    padding: 10px 24px !important;
    font-size: 13px !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 ocultos en pantallas muy pequeñas */
  .main-carousel-indicators {
    display: none;
  }
}

/* HERO */
.hero { 
  position: relative; 
  overflow: hidden; 
  display: flex;
  background: #ffffff;
}

/* Sección Soporte y Asesoría - Unificada */
.support-section {
  position: relative;
  overflow: hidden;
  display: flex;
  background: #ffffff;
  margin-bottom: 0;
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
}

.support-section .slide {
  position: relative;
  height: 626px;
  aspect-ratio: 1920 / 626;
  display: grid;
  align-items: center;
  justify-items: center;
  color: #ffffff;
  background: #0b1324;
  flex: 1;
  width: 100%;
}

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

.support-section .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;
}

.support-section .slide > .container {
  position: relative;
  z-index: 1;
  padding: 50px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.support-section .slide h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 5vw, 32px);
  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;
}

.support-section .slide p {
  max-width: 600px;
  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(14px, 2vw, 16px);
  text-align: center;
  margin: 0;
  line-height: 1.6;
}

/* Responsive - Laptop para Support Section */
@media (min-width: 1025px) and (max-width: 1366px) {
  .support-section {
    max-width: 1366px;
  }
  
  .support-section .slide {
    height: 445px;
    aspect-ratio: 1366 / 445;
  }
}

/* Mostrar en desktop por defecto */
.slider { position: relative; }
.slide { position: relative; min-height: 58vh; height: 58vh; max-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; min-height: 44px; }
.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; }

/* Sección de productos/marcas para móvil - oculta por defecto */
.products-brands-mobile {
  display: none;
  padding: 40px 0;
  background: #ffffff;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  margin-top: 0;
  margin-bottom: 0;
  min-height: 140px;
}

.products-brands-mobile .container {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Mostrar solo en desktop si es necesario (opcional) */
@media (min-width: 761px) {
  .products-brands-mobile {
    display: none;
  }
}

.brands-grid {
  display: grid;
  min-height: 140px;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 16px;
  justify-items: center;
  justify-content: center;
  max-width: 100%;
  overflow-x: auto;
  padding: 20px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 93, 181, 0.3) transparent;
}

.brands-grid::-webkit-scrollbar {
  height: 4px;
}

.brands-grid::-webkit-scrollbar-track {
  background: transparent;
}

.brands-grid::-webkit-scrollbar-thumb {
  background: rgba(10, 93, 181, 0.3);
  border-radius: 2px;
}

.brands-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(10, 93, 181, 0.5);
}

.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  min-width: 80px;
  width: 100%;
  max-width: 100%;
}

.brand-item:hover {
  transform: translateY(-4px);
}

.brand-circle {
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  max-width: 80px;
  max-height: 80px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  margin-bottom: 8px;
}

.brand-item:hover .brand-circle {
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(10, 93, 181, 0.2);
}

.brand-circle img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  padding: 12px;
  image-rendering: -webkit-optimize-contrast;
  aspect-ratio: 1 / 1;
  image-rendering: auto;
}

.brand-name {
  font-size: 12px;
  font-weight: 600;
  color: #0a5db5;
  text-align: center;
  line-height: 1.3;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.01em;
  margin-top: 4px;
}

.brand-item:hover .brand-name {
  color: var(--brand-600);
}

/* Sección de Proveedores - Carrusel Automático */
.providers-section {
  background: #fff;
  padding: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60px;
}

.providers-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100px;
}

.providers-track {
  display: flex;
  width: fit-content;
  animation: scroll-providers 40s linear infinite;
}

.providers-section:hover .providers-track {
  animation-play-state: paused;
}

.providers-slide {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 40px;
  padding: 0;
  flex-shrink: 0;
  height: 80px; /* Altura igual a los contenedores para centrado perfecto */
}

.provider-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px; /* Altura uniforme para todos los contenedores */
  width: 120px; /* Ancho uniforme para todos los contenedores */
  flex-shrink: 0;
  box-sizing: border-box;
  aspect-ratio: 120 / 80;
}

.provider-logo {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.provider-logo-container:hover .provider-logo {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.70);
}

/* Animación del carrusel */
@keyframes scroll-providers {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive para proveedores */
@media (max-width: 768px) {
  .providers-section {
    padding: 0;
    min-height: 50px;
  }
  
  .providers-slide {
    gap: 30px;
    height: 70px; /* Altura igual a los contenedores */
  }
  
  .provider-logo-container {
    height: 70px;
    width: 100px;
    aspect-ratio: 100 / 70;
  }
  
  .provider-logo {
    max-width: 100px;
    max-height: 50px;
  }
  
  .providers-track {
    animation-duration: 35s;
  }
}

@media (max-width: 480px) {
  .providers-section {
    padding: 0;
    min-height: 40px;
  }
  
  .providers-slide {
    gap: 24px;
    height: 60px; /* Altura igual a los contenedores */
  }
  
  .provider-logo-container {
    height: 60px;
    width: 80px;
    aspect-ratio: 80 / 60;
  }
  
  .provider-logo {
    max-width: 80px;
    max-height: 40px;
  }
  
  .providers-track {
    animation-duration: 30s;
  }
}

/* SECTIONS */
.section { 
  padding: 70px 0 80px 0; 
  position: relative;
}

.section.product-detail-section {
  padding: 0 !important;
}
.section h1 { 
  font-size: clamp(36px, 5vw, 48px); 
  margin: 0 0 16px; 
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.8px;
  line-height: 1.15;
  font-family: "Inter", sans-serif;
  text-align: center;
}
.section h2 { 
  font-size: 24px; 
  margin: 0 0 20px; 
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.8px;
  line-height: 1.15;
  font-family: "Inter", sans-serif;
}
.section p.muted {
  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;
}


/* 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;
  text-align: left;
}

/* Mostrar texto adicional en desktop */
.desktop-only {
  display: inline;
}

/* Estilos para desktop - texto completo y alineado a la izquierda */
@media (min-width: 601px) {
  .section.products p.muted {
    text-align: left;
  }
  
  .section.products h1 {
    text-align: left;
  }
}
@media (min-width: 900px) {
  .section h2 { font-size: 28px; }
}

/* Scroll offset se define dinámicamente según si hay top bar o no (ver reglas más abajo) */

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

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

.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;
}

/* Categories List (Horizontal) */
.categories-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 0;
  margin-top: 48px;
  margin-bottom: 48px;
  border: none;
  border-radius: 16px;
  background: transparent;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.category-item {
  text-decoration: none;
  color: var(--text);
  padding: 32px 28px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: #fff;
  position: relative;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.category-item:nth-child(4n) {
  border-right: none;
}

/* Media queries para categories-list */
@media (max-width: 1200px) {
  .categories-list {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .category-item:nth-child(4n) {
    border-right: 1px solid rgba(0, 0, 0, 0.06);
  }
  
  .category-item:nth-child(3n) {
    border-right: none;
  }
}

@media (max-width: 900px) {
  .categories-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .category-item:nth-child(3n) {
    border-right: 1px solid rgba(0, 0, 0, 0.06);
  }
  
  .category-item:nth-child(2n) {
    border-right: none;
  }
}

.category-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0d7377, #14a085);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-item:hover {
  background: linear-gradient(to bottom, rgba(13, 115, 119, 0.02), rgba(13, 115, 119, 0.05));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 115, 119, 0.12);
  z-index: 1;
}

.category-item:hover::before {
  transform: scaleX(1);
}

.category-item img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.category-item:hover img {
  transform: scale(1.05) translateY(-4px);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
}

.category-item .category-image-placeholder {
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #e9ecef;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.category-item .category-image-placeholder::before {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, rgba(13, 115, 119, 0.1), rgba(20, 160, 133, 0.1));
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.category-item .category-image-placeholder::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, rgba(13, 115, 119, 0.15), rgba(20, 160, 133, 0.15));
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.category-item:hover .category-image-placeholder {
  border-color: rgba(13, 115, 119, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  transform: scale(1.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-item h2 {
  margin: 0 0 6px 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.3px;
  transition: color 0.3s ease;
}

.category-item:hover h2 {
  color: #0d7377;
}

.category-item .category-subtitle {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  font-size: 12px;
  opacity: 0.8;
}

.category-divider {
  display: none;
}

/* Product Subcategory Styles */
.product-subcategory {
  margin-top: 32px;
  margin-bottom: 32px;
}

.product-subcategory:first-child {
  margin-top: 0;
}

.subcategory-title {
  font-size: 20px;
  font-weight: 600;
  color: #0d7377;
  margin: 0 0 16px 0;
  letter-spacing: -0.2px;
  background: none;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  border-radius: 8px;
  font-family: inherit;
}

.subcategory-title:hover {
  background: rgba(13, 115, 119, 0.05);
  color: #0a5d61;
}

.subcategory-title:focus {
  outline: 2px solid #0d7377;
  outline-offset: 2px;
}

.subcategory-title span:first-child {
  flex: 1;
}

.subcategory-icon {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 14px;
  margin-left: 12px;
  color: #0d7377;
}

.subcategory-title[aria-expanded="false"] .subcategory-icon {
  transform: rotate(-90deg);
}

.subcategory-content {
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
  opacity: 1;
  margin-bottom: 0;
  padding: 0;
}

.subcategory-title[aria-expanded="false"] + .subcategory-content {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  padding: 0;
  overflow: hidden;
}

.product-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}

.product-link {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 15px;
  line-height: 1.5;
  border: 1px solid transparent;
  background: #f8f9fa;
}

.product-link:hover {
  background: linear-gradient(to right, rgba(13, 115, 119, 0.08), rgba(13, 115, 119, 0.04));
  color: #0d7377;
  border-color: rgba(13, 115, 119, 0.2);
  transform: translateX(4px);
  padding-left: 20px;
}

/* Product Detail Page Styles */
body.product-page {
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f5f5f5 !important; /* Color temporal para verificar que el CSS se está aplicando */
}

body.product-page main {
  flex: 1;
  margin-top: 0 !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
  background: #ffffff !important;
  display: block !important;
  min-height: 400px !important;
  height: auto !important;
  padding-top: 36px !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important;
}

body.product-page main > section {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.product-page .site-footer {
  margin-top: auto;
  flex-shrink: 0;
}

.product-detail-section {
  padding: 0 !important;
  margin: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  background: transparent;
  width: 100%;
  display: block;
  position: relative;
  min-height: auto !important;
  height: auto !important;
  line-height: 0;
}

.product-detail-section > * {
  line-height: normal;
}

.product-detail-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(13, 115, 119, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(20, 160, 133, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.product-detail-section .container {
  width: 100% !important;
  max-width: 1400px !important;
  display: block;
  padding: 0 20px 20px 20px !important;
  margin: 0 auto !important;
  position: relative;
  z-index: 1;
  padding-top: 0 !important;
  margin-top: 0 !important;
  line-height: 0;
}

.product-detail-section .container > * {
  line-height: normal;
}

.product-detail-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  background: #fff;
  padding: 0 40px 30px 40px;
  border-radius: 20px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.02);
  width: 100%;
  margin: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  position: relative;
  overflow: visible;
}

.product-detail-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0d7377 0%, #14a085 50%, #0d7377 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.product-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 400px;
}

.product-image::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: linear-gradient(135deg, rgba(13, 115, 119, 0.05) 0%, rgba(20, 160, 133, 0.05) 100%);
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-image:hover::before {
  opacity: 1;
}

.product-image img {
  width: 330px;
  height: 330px;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #fafbfc 0%, #f5f7fa 100%);
  padding: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-image:hover img {
  transform: translateY(-4px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.product-detail-wrapper .product-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
}

.product-detail-wrapper .product-info h1 {
  font-size: 36px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
  letter-spacing: -1px;
  line-height: 1.2;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-detail-wrapper .product-series {
  font-size: 14px;
  font-weight: 700;
  color: #0d7377;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: inline-block;
  padding: 6px 14px;
  background: rgba(13, 115, 119, 0.08);
  border-radius: 8px;
  width: fit-content;
  border: 1px solid rgba(13, 115, 119, 0.15);
}

.product-detail-wrapper .product-type {
  font-size: 15px;
  color: #64748b;
  margin: 0 0 8px 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-detail-wrapper .product-type::before {
  content: '📦';
  font-size: 18px;
}

.product-specs {
  margin: 0;
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.product-specs h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: #0f172a;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-specs h2::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, #0d7377 0%, #14a085 100%);
  border-radius: 2px;
}

.product-specs ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-specs li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  font-size: 15px;
  display: flex;
  align-items: center;
  transition: padding-left 0.2s ease;
}

.product-specs li:hover {
  padding-left: 6px;
}

.product-specs li:last-child {
  border-bottom: none;
}

.product-specs strong {
  color: #0d7377;
  font-weight: 700;
  display: inline-block;
  min-width: 140px;
  letter-spacing: -0.2px;
}

.product-specs li span:not(strong) {
  color: #475569;
  font-weight: 500;
}

.product-actions {
  display: flex;
  gap: 12px;
  margin: 8px 0 0 0;
  flex-wrap: wrap;
}

.product-actions .btn {
  flex: 1;
  min-width: 200px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.product-actions .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.product-actions .btn:hover::before {
  width: 300px;
  height: 300px;
}

.product-actions .btn.primary {
  background: linear-gradient(135deg, #0d7377 0%, #14a085 100%);
  border: none;
  color: #fff;
  box-shadow: 
    0 4px 16px rgba(13, 115, 119, 0.3),
    0 2px 8px rgba(13, 115, 119, 0.2);
}

.product-actions .btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(13, 115, 119, 0.4),
    0 4px 12px rgba(13, 115, 119, 0.3);
}

.product-actions .btn:not(.primary) {
  background: #fff;
  border: 2px solid #e2e8f0;
  color: #475569;
}

.product-actions .btn:not(.primary):hover {
  border-color: #0d7377;
  color: #0d7377;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Nuevo diseño de página de producto estilo Franklin Water */
.product-page-container {
  width: 100%;
  padding: 0;
  margin: 0;
  background: #ffffff;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
  min-height: 400px;
}

.product-page-container .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 24px;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
  position: relative;
  z-index: 1;
}

.product-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid #e2e8f0;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
}

.product-header h1 {
  font-size: 42px;
  font-weight: 800;
  color: #0f172a !important;
  margin: 0 0 16px 0;
  letter-spacing: -1px;
  line-height: 1.2;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
}

.product-intro {
  font-size: 18px;
  line-height: 1.7;
  color: #475569 !important;
  margin: 0;
  max-width: 900px;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
}

.product-content {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 60px;
  align-items: start;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 1;
}

.product-image-section {
  position: sticky;
  top: 100px;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
}

.product-image-wrapper {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  width: 330px;
  box-sizing: border-box;
}

.product-image-wrapper img {
  width: 100%;
  height: 330px;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Estilos para lista de subcategorías debajo de la imagen */
.product-image-section .product-subcategory {
  margin-top: 24px;
}

.product-image-section .product-subcategory .subcategory-title {
  background: #f5f5f5;
  color: #333;
  font-size: 18px;
  font-weight: 600;
  padding: 12px 16px;
  margin: 0 0 8px 0;
  border-radius: 4px;
  cursor: default;
  border: none;
  width: 100%;
  text-align: left;
}

.product-image-section .product-subcategory .product-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-image-section .product-subcategory .product-link {
  display: block;
  padding: 10px 16px;
  color: #0d7377;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  font-size: 15px;
}

.product-image-section .product-subcategory .product-link:hover {
  background: rgba(13, 115, 119, 0.08);
  color: #0a5d61;
  padding-left: 20px;
}

.product-info-section {
  min-width: 0;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
}

/* Tabs de navegación */
.product-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab-button {
  background: transparent;
  border: none;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
  position: relative;
  margin-bottom: -2px;
}

.tab-button:hover {
  color: #0d7377;
  background: rgba(13, 115, 119, 0.05);
}

.tab-button.active {
  color: #0d7377;
  border-bottom-color: #0d7377;
}

.tab-button:focus {
  outline: 3px solid rgba(13, 115, 119, 0.3);
  outline-offset: 2px;
}

/* Paneles de contenido */
.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-panel h2 {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 24px 0;
  letter-spacing: -0.5px;
}

.tab-panel h3 {
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
  margin: 32px 0 16px 0;
  letter-spacing: -0.3px;
}

.tab-panel h3:first-child {
  margin-top: 0;
}

/* Lista de características */
.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  padding: 12px 0;
  padding-left: 28px;
  position: relative;
  font-size: 16px;
  line-height: 1.7;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #0d7377;
  font-weight: 700;
  font-size: 18px;
}

/* Panel de descripción */
.description-panel {
  line-height: 1.8;
  color: #475569;
}

.description-panel p {
  font-size: 16px;
  line-height: 1.8;
  color: #475569;
  margin: 0 0 20px 0;
}

.description-panel p:last-child {
  margin-bottom: 0;
}

.description-panel strong {
  color: #0f172a;
  font-weight: 600;
}

.description-panel ul,
.description-panel ol {
  margin: 20px 0;
  padding-left: 24px;
  color: #475569;
}

.description-panel li {
  margin: 12px 0;
  line-height: 1.8;
  font-size: 16px;
}

.description-panel h3 {
  color: #0f172a;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 20px;
}

.description-panel h3:first-child {
  margin-top: 0;
}

.description-panel blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-left: 4px solid #0d7377;
  border-radius: 8px;
  font-style: italic;
  color: #64748b;
}

.description-panel hr {
  border: none;
  border-top: 2px solid #e2e8f0;
  margin: 32px 0;
}

/* Tabla de especificaciones */
.specs-table-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 600px;
  margin: 24px 0;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  position: relative;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Ocultar scrollbar pero mantener funcionalidad en algunos navegadores */
.specs-table-wrapper::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.specs-table-wrapper::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.specs-table-wrapper::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.specs-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 14px;
  table-layout: auto;
}

.specs-table thead {
  background: linear-gradient(135deg, #0d7377 0%, #14a085 100%);
  color: #ffffff;
}

.specs-table th {
  padding: 16px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.specs-table th:last-child {
  border-right: none;
}

.specs-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.2s ease;
}

.specs-table tbody tr:hover {
  background-color: #f8fafc;
}

.specs-table tbody tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: 14px 12px;
  color: #475569;
  border-right: 1px solid #f1f5f9;
}

.specs-table td:last-child {
  border-right: none;
}

/* Estilos para tablas de especificaciones sin thead (solo tbody) */
.specs-table tbody th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: #0f172a;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-right: 1px solid #e2e8f0;
  width: 40%;
  position: sticky;
  left: 0;
  z-index: 10;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
}

.specs-table tbody th:last-child {
  border-right: none;
}

/* Hacer que la primera fila se quede fija al hacer scroll vertical */
.specs-table tbody tr:first-child th {
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.specs-table tbody tr:first-child th:first-child {
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.table-note {
  margin-top: 16px;
  font-size: 13px;
  color: #64748b;
  font-style: italic;
}

/* Lista de aplicaciones */
.applications-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.applications-list li {
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 15px;
  color: #475569;
  font-weight: 500;
  transition: all 0.2s ease;
}

.applications-list li:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-color: #0d7377;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 115, 119, 0.1);
}

/* Sección de descargas */
.downloads-section {
  margin-top: 24px;
}

.downloads-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.downloads-list li {
  margin-bottom: 12px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  color: #0d7377;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 400px;
}

.download-link::before {
  content: '📄';
  font-size: 20px;
}

.download-link:hover {
  background: linear-gradient(135deg, rgba(13, 115, 119, 0.05) 0%, rgba(13, 115, 119, 0.02) 100%);
  border-color: #0d7377;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(13, 115, 119, 0.15);
}

/* Botones de catálogo con icono PDF */
.catalog-download-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  color: #0d7377;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  margin-bottom: 12px;
}

.catalog-download-link::before {
  content: '📄';
  font-size: 20px;
  color: #DD4027;
  flex-shrink: 0;
}

.catalog-download-link:hover {
  background: linear-gradient(135deg, rgba(221, 64, 39, 0.05) 0%, rgba(221, 64, 39, 0.02) 100%);
  border-color: #DD4027;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(221, 64, 39, 0.15);
  color: #DD4027;
}

/* Botones de acción del producto */
.product-actions {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid #e2e8f0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.product-actions .btn {
  flex: 1;
  min-width: 200px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive para página de producto */
@media (max-width: 1200px) {
  .product-content {
    grid-template-columns: 330px 1fr;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .product-page-container .container {
    padding: 13.5px 20px;
  }

  .product-header h1 {
    font-size: 26px;
  }

  .product-intro {
    font-size: 16px;
  }

  .product-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-image-section {
    position: static;
  }

  .product-image-wrapper {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }

  .product-image-wrapper img {
    width: 100%;
    height: 250px;
  }

  .product-tabs {
    flex-direction: column;
    border-bottom: none;
    border-left: 2px solid #e2e8f0;
    margin-bottom: 24px;
    gap: 0;
  }

  .tab-button {
    white-space: normal;
    padding: 16px 20px;
    font-size: 15px;
    text-align: left;
    border-bottom: none;
    border-left: 3px solid transparent;
    margin-bottom: 0;
    margin-left: -2px;
    border-radius: 0;
    width: 100%;
  }

  .tab-button.active {
    border-bottom-color: transparent;
    border-left-color: #0d7377;
    background: rgba(13, 115, 119, 0.05);
  }

  .tab-button:hover {
    background: rgba(13, 115, 119, 0.08);
  }

  .specs-table-wrapper {
    margin-left: -20px;
    margin-right: -20px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .applications-list {
    grid-template-columns: 1fr;
  }

  .product-actions {
    flex-direction: column;
  }

  .product-actions .btn {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 900px) {
  body.product-page main {
    margin-top: 70px;
  }
  
  .product-detail-section {
    padding: 0;
  }
  
  .product-detail-section .container {
    padding: 15px 15px;
  }
  
  .product-detail-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
    align-items: flex-start;
    border-radius: 16px;
  }
  
  .product-detail-wrapper::before {
    height: 3px;
  }
  
  .product-image {
    min-height: 300px;
    width: 100%;
  }
  
  .product-image img {
    width: 100%;
    max-width: 330px;
    height: 330px;
    padding: 15px;
    object-fit: contain;
  }
  
  .product-detail-wrapper .product-info {
    text-align: left;
    align-items: flex-start;
    gap: 20px;
  }
  
  .product-detail-wrapper .product-series {
    margin: 0;
  }
  
  .product-detail-wrapper .product-info h1 {
    font-size: 24px;
    letter-spacing: -0.8px;
    margin-bottom: 8px;
  }
  
  .product-detail-wrapper .product-type {
    margin-bottom: 8px;
  }
  
  .product-specs {
    padding: 20px;
    width: 100%;
  }
  
  .product-specs h2 {
    font-size: 18px;
    margin-bottom: 16px;
  }
  
  .product-specs li {
    padding: 10px 0;
  }
  
  .product-specs strong {
    min-width: 100px;
    font-size: 14px;
  }
  
  .product-actions {
    justify-content: flex-start;
    flex-direction: column;
    margin-top: 8px;
    gap: 12px;
  }
  
  .product-actions .btn {
    width: 100%;
    max-width: 100%;
    min-width: auto;
    padding: 14px 24px;
  }
}

.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/ui/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 {
  margin-top: 0;
  position: relative;
}

.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: #ffffff;
  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: transparent;
  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;
}

body.product-page .footer-grid {
  gap: 16px;
  padding: 32px 20px 24px;
}

.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;
}

body.product-page .footer-logo-img {
  height: 60px;
}

body.product-page .footer-logo {
  margin-bottom: 12px;
}

.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;
}

body.product-page .site-footer p {
  font-size: 13px;
  line-height: 1.5;
}

.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: #ffffff;
}

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

body.product-page .legal {
  padding: 16px 20px;
}

body.product-page .legal small {
  font-size: 11px;
  line-height: 1.4;
}

/* 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;
  }
  
  /* Breakpoint móvil - 428px (iPhone Pro Max y similares) - Navegación */
  @media (max-width: 428px) {
    .menu-toggle {
      padding: 9px 12px;
      font-size: 12px;
      gap: 5px;
      min-width: auto;
    }
    
    .nav-actions {
      gap: 5px;
    }
    
    .nav-actions a {
      font-size: 11px;
      padding: 7px 10px;
    }
    
    .nav-actions a.cart-link::before {
      margin-right: 3px;
      font-size: 13px;
    }
    
    /* Cambiar "Carro de cotización" a "Carro cotización" */
    .cart-link .cart-text-full {
      font-size: 0;
      margin-left: 0;
    }
    
    .cart-link .cart-text-full::after {
      content: " cotización";
      font-size: 11px;
      margin-left: 0;
    }
    
    .cart-count {
      min-width: 19px;
      height: 19px;
      padding: 0 5px;
      font-size: 9px;
      margin-left: 4px;
      border-width: 1.5px;
      border-radius: 10px;
      font-weight: 800;
    }
    
    .menu-panel {
      width: 300px;
      max-width: 85vw;
    }
    
    .logo-img {
      height: 50px;
      min-width: 140px;
      max-width: 140px;
    }
    
    .nav-inner {
      padding: 10px 0;
      gap: 8px;
    }
    
    .container {
      padding-left: 10px;
      padding-right: 10px;
    }
  }
  
  /* Breakpoint móvil - 390px (iPhone 12/13/14 estándar y Pro) - Navegación */
  @media (max-width: 390px) {
    .menu-toggle {
      padding: 9px 12px;
      font-size: 12px;
      gap: 5px;
      min-width: auto;
    }
    
    .nav-actions {
      gap: 5px;
    }
    
    .nav-actions a {
      font-size: 11px;
      padding: 7px 10px;
    }
    
    .nav-actions a.cart-link::before {
      margin-right: 3px;
      font-size: 13px;
    }
    
    /* Cambiar "Carro de cotización" a "Carro cotización" */
    .cart-link .cart-text-full {
      font-size: 0;
      margin-left: 0;
    }
    
    .cart-link .cart-text-full::after {
      content: " cotización";
      font-size: 11px;
      margin-left: 0;
    }
    
    .cart-count {
      min-width: 19px;
      height: 19px;
      padding: 0 5px;
      font-size: 9px;
      margin-left: 4px;
    }
    
    .menu-panel {
      width: 280px;
      max-width: 85vw;
    }
    
    .logo-img {
      height: 50px;
      min-width: 130px;
      max-width: 130px;
    }
    
    .nav-inner {
      padding: 10px 0;
      gap: 8px;
    }
    
    .container {
      padding-left: 10px;
      padding-right: 10px;
    }
  }
  
  /* Breakpoint móvil - 375px (iPhone SE/iPhone 12 mini) - Navegación */
  @media (max-width: 375px) {
    .menu-toggle {
      padding: 9px 12px;
      font-size: 12px;
      gap: 5px;
    }
    
    .nav-actions {
      gap: 4px;
    }
    
    .nav-actions a {
      font-size: 10px;
      padding: 8px 8px;
    }
    
    .nav-actions a.cart-link {
      padding: 8px 10px;
    }
    
    .nav-actions a.cart-link::before {
      margin-right: 2px;
      font-size: 12px;
    }
    
    /* Cambiar "Carro de cotización" a "Carro cotización" */
    .cart-link .cart-text-full {
      font-size: 0;
      margin-left: 0;
    }
    
    .cart-link .cart-text-full::after {
      content: " cotización";
      font-size: 10px;
      margin-left: 0;
    }
    
    .cart-count {
      min-width: 18px;
      height: 18px;
      padding: 0 4px;
      font-size: 8px;
      margin-left: 3px;
    }
    
    .menu-panel {
      width: 260px;
      max-width: 90vw;
    }
    
    .logo-img {
      height: 50px;
      min-width: 120px;
      max-width: 120px;
    }
    
    .nav-inner {
      padding: 10px 0;
      gap: 6px;
    }
    
    .container {
      padding-left: 12px;
      padding-right: 12px;
    }
  }
  
  /* Breakpoint móvil - 428px (iPhone Pro Max y similares) - Menú Sidebar */
  @media (max-width: 428px) {
    .menu-link,
    .menu-sublink,
    .menu-sublist-nested a {
      padding: 12px 18px;
      font-size: 15px;
    }
    
    .menu-header {
      padding: 20px 22px;
    }
    
    .menu-header h2 {
      font-size: 19px;
    }
  }
  
  /* Breakpoint móvil - 390px (iPhone 12/13/14 estándar y Pro) - Menú Sidebar */
  @media (max-width: 390px) {
    .menu-link,
    .menu-sublink,
    .menu-sublist-nested a {
      padding: 10px 16px;
      font-size: 14px;
    }
    
    .menu-header {
      padding: 18px 20px;
    }
    
    .menu-header h2 {
      font-size: 18px;
    }
  }
  
  /* Breakpoint móvil - 375px (iPhone SE/iPhone 12 mini) - Menú Sidebar */
  @media (max-width: 375px) {
    .menu-link {
      padding: 9px 14px;
      font-size: 13px;
    }
    
    .menu-sublink {
      padding: 9px 14px;
      font-size: 13px;
    }
    
    .menu-sublist-nested a {
      padding: 9px 14px;
      font-size: 13px;
    }
    
    .menu-header {
      padding: 16px 18px;
    }
    
    .menu-header h2 {
      font-size: 17px;
    }
  }
  
  /* Los estilos de menu-sublink y menu-sublist-nested a ya están unificados arriba */

  .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; }
  
  /* Mostrar sección de categorías primero en móvil */
  .products-brands-mobile {
    display: block;
    margin-top: 0;
    margin-bottom: 0;
    min-height: auto;
    padding: 20px 0;
    overflow: visible;
    display: flex;
    align-items: center;
  }
  
  /* Mostrar sección hero después de categorías en móvil */
  #hero.hero {
    display: flex;
    margin-top: 0;
    margin-bottom: 0;
    flex-direction: column;
  }
  
  #hero.hero .slide {
    width: 100% !important;
    height: 53vh;
    min-height: 53vh;
    max-height: 53vh;
    overflow: hidden;
    display: flex;
    align-items: center;
  }
  
  #hero.hero .slide > .container {
    padding: 30px 20px 30px 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    height: 100%;
  }
  
  #hero.hero .slide h1 {
    font-size: 0 !important;
    text-align: center !important;
    position: relative;
  }
  
  #hero.hero .slide h1::after {
    content: "Bombas de Agua";
    font-size: 20px !important;
    display: block;
  }
  
  #hero.hero .slide p {
    font-size: 0 !important;
    text-align: center !important;
    max-width: 100% !important;
    position: relative;
  }
  
  #hero.hero .slide p::after {
    content: "materiales de primera para el del medio ambiente";
    font-size: 14px !important;
    display: block;
  }
  
  #hero.hero .hero-ctas {
    flex-direction: column;
    gap: 10px;
    width: 50%;
    margin-top: 2cm !important;
    margin-bottom: 0;
    align-self: center;
  }
  
  #hero.hero .hero-ctas .btn:first-child {
    display: none !important;
  }
  
  #hero.hero .hero-ctas .btn {
    width: 100%;
    min-height: 22px;
    font-size: 12px;
    padding: 5px 8px;
  }
  
  /* Eliminar todas las separaciones blancas en móvil */
  .main-carousel-section {
    margin-top: 0;
    margin-bottom: 0;
  }
  
  .main-carousel-section::before,
  .main-carousel-section::after {
    display: none;
  }
  
  /* Mostrar sección de soporte en móvil */
  .support-section {
    display: flex;
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  /* Breakpoint móvil - 428px (iPhone Pro Max y similares) - Soporte */
  @media (max-width: 428px) {
    .support-section {
      max-width: 100%;
      width: 100%;
      margin: 0;
    }
    
    .support-section .slide {
      width: 100% !important;
      max-width: 100% !important;
      height: 400px !important;
      aspect-ratio: 300 / 400 !important;
    }
    
    .support-section .slide > .container {
      width: 100% !important;
      max-width: 100% !important;
      padding: 40px 20px !important;
      box-sizing: border-box !important;
    }
    
    /* Imagen móvil para Soporte y Asesoría - WebP con fallback PNG */
    .support-section .slide::before {
      background-image: 
        image-set(
          url('IMG/Index/Asesoria/Asesoria-Movil.webp') type('image/webp'),
          url('IMG/Index/Asesoria/Asesoria-Movil.png') type('image/png')
        ) !important;
      /* Fallback para navegadores antiguos */
      background-image: url('IMG/Index/Asesoria/Asesoria-Movil.png') !important;
    }
  }
  
  /* Breakpoint móvil - 390px (iPhone 12/13/14 estándar y Pro) - Soporte */
  @media (max-width: 390px) {
    .support-section .slide > .container {
      padding: 36px 18px !important;
    }
  }
  
  /* Breakpoint móvil - 375px (iPhone SE/iPhone 12 mini) - Soporte */
  @media (max-width: 375px) {
    .support-section .slide > .container {
      padding: 32px 16px !important;
    }
  }
  
  /* Sin separación en contacto en móvil */
  .contact {
    margin-top: 0;
  }
  
  .contact::after {
    display: none;
  }
  
  .section {
    margin-top: 0;
  }
  
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 12px 12px;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    height: 100%;
    display: grid;
    align-items: center;
  }
  
  .brand-item {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  
  .brand-circle {
    width: 85px;
    height: 85px;
    min-width: 85px;
    min-height: 85px;
    max-width: 85px;
    max-height: 85px;
  }
  
  .brand-name {
    font-size: 11px;
    word-wrap: break-word;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  /* Ajustes adicionales para sección de categorías en pantallas pequeñas */
  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 16px 12px;
    max-width: 100%;
    overflow-x: auto;
    width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  
  .brand-item {
    min-width: 70px;
    width: 100%;
    max-width: 100%;
    scroll-snap-align: start;
  }
  
  .brand-circle {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    max-width: 70px;
    max-height: 70px;
  }
  
  .brand-name {
    font-size: 10px;
    word-wrap: break-word;
    max-width: 100%;
    line-height: 1.2;
  }
  
  /* Ajustar altura de sección móvil en pantallas pequeñas */
  .products-brands-mobile {
    padding: 16px 0;
    min-height: auto;
  }
  
  /* Pestañas en lista vertical para móvil */
  .product-tabs {
    flex-direction: column;
    border-bottom: none;
    border-left: 2px solid #e2e8f0;
    margin-bottom: 20px;
    gap: 0;
  }

  .tab-button {
    white-space: normal;
    padding: 14px 18px;
    font-size: 14px;
    text-align: left;
    border-bottom: none;
    border-left: 3px solid transparent;
    margin-bottom: 0;
    margin-left: -2px;
    border-radius: 0;
    width: 100%;
  }

  .tab-button.active {
    border-bottom-color: transparent;
    border-left-color: #0d7377;
    background: rgba(13, 115, 119, 0.05);
  }

  .tab-button:hover {
    background: rgba(13, 115, 119, 0.08);
  }
  
  .product-cards-section { grid-template-columns: 1fr; }
  .category-cards-section { grid-template-columns: 1fr; }
  
  /* Categories List en móvil */
  .categories-list {
    grid-template-columns: 1fr;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    gap: 0;
    padding: 0;
  }
  
  .category-item {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0;
    margin-bottom: 0;
    padding: 24px 20px;
  }
  
  .category-item:nth-child(2n),
  .category-item:nth-child(3n),
  .category-item:nth-child(4n) {
    border-right: none;
  }
  
  .category-item:last-child {
    border-bottom: none;
  }
  
  .category-item::before {
    display: none;
  }
  
  .category-item:hover {
    transform: translateY(0);
  }
  
  /* Product Subcategory Styles en móvil */
  .product-list {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .product-link {
    padding: 10px 14px;
    font-size: 14px;
  }
  
  .product-link:hover {
    transform: translateX(2px);
    padding-left: 16px;
  }
  
  .subcategory-title {
    font-size: 18px;
    padding: 10px 14px;
  }
  
  .category-item img,
  .category-item .category-image-placeholder {
    width: 100px;
    height: 100px;
  }
  
  .category-item h2 {
    font-size: 17px;
  }
  
  .category-divider {
    display: none;
  }
  
  /* Botón de filtro visible en móvil */
  .filter-toggle {
    display: flex;
    margin-bottom: 0;
  }
  
  /* Menú de filtros oculto por defecto en móvil */
  .filter-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0;
    grid-template-columns: 1fr;
    gap: 10px;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.3s ease;
  }
  
  /* Menú de filtros visible cuando está abierto */
  .filter-menu.open {
    max-height: 800px;
    opacity: 1;
    margin-top: 14px;
    margin-bottom: 22px;
  }
  
  /* Ajustar margen del wrapper en móvil */
  .filter-wrapper {
    margin: 14px 0 22px;
  }
  
  .filter-toggle {
    margin-bottom: 0;
  }
  
  .catalog-index {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .catalog-index .btn {
    padding: 14px 18px;
    font-size: 14px;
  }
  
  /* Títulos de categorías en móvil */
  .category-info h2 {
    font-size: 24px !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  /* Títulos h2 en secciones de productos - centrados en móvil */
  .section.products h2,
  .product-cards-section h2,
  .section h2[style*="grid-column"],
  .product-cards-section h2[style*="grid-column"] {
    font-size: 24px !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  /* Ocultar texto adicional solo para desktop en móvil */
  .desktop-only {
    display: none !important;
  }
  
  /* Mantener texto centrado en móvil */
  .section.products p.muted {
    text-align: center !important;
  }
  
  /* Mantener h1 centrado en móvil */
  .section.products h1 {
    text-align: center !important;
  }
  
  /* Ocultar texto " de cotización" en móvil, mostrar solo "Carro" */
  .cart-link .cart-text-full {
    display: inline !important;
  }
}

/* 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);
}

.modal .actions .btn.primary:disabled,
.modal .actions .btn.primary[disabled] {
  background: #cbd5e1;
  border-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}

.modal .actions .btn.primary:disabled:hover,
.modal .actions .btn.primary[disabled]:hover {
  background: #cbd5e1;
  border-color: #cbd5e1;
  transform: none;
  box-shadow: none;
}
.cart-table { 
  width: 100%; 
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  box-sizing: border-box;
}
.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;
  white-space: nowrap;
}

.cart-table th:nth-child(2) {
  text-align: center;
  padding: 16px 12px;
}
.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 td:first-child {
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 0;
}

.cart-table td:nth-child(2) {
  text-align: center;
  padding: 20px 12px;
}
.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: 22px;
  font-weight: 700;
  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;
  padding: 0;
  margin: 0;
  text-align: center;
}

.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-backdrop {
    padding: 10px;
    overflow-x: hidden;
  }
  
  .modal {
    width: 100%;
    max-width: 100%;
    max-height: 95vh;
    border-radius: 16px;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .modal header {
    padding: 20px 16px;
    overflow-x: hidden;
  }
  
  .modal .content {
    padding: 20px 16px;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
  }
  
  .modal .content table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    overflow-x: hidden;
  }
  
  .modal .actions {
    padding: 16px 20px;
    flex-direction: column;
  }
  
  .modal .actions .btn {
    width: 100%;
  }
  
  .cart-table {
    font-size: 14px;
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    overflow-x: hidden;
  }
  
  .cart-table th,
  .cart-table td {
    padding: 12px 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
  }
  
  .cart-table th {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
  }
  
  .cart-table th:nth-child(2) {
    text-align: center;
    padding: 12px 6px;
    font-size: 12px;
  }
  
  /* Hacer columna Cantidad más pequeña en móvil */
  .cart-table th:nth-child(2),
  .cart-table td:nth-child(2) {
    width: 25%;
    max-width: 120px;
    padding: 12px 4px;
  }
  
  .cart-table td:nth-child(2) {
    text-align: center;
  }
  
  /* Ajustar ancho de columnas */
  .cart-table th:first-child,
  .cart-table td:first-child {
    width: 45%;
    padding-left: 12px;
    padding-right: 8px;
  }
  
  .cart-table th:last-child,
  .cart-table td:last-child {
    width: 30%;
    padding-right: 12px;
  }
  
  .cart-table td:first-child {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  .cart-qty-wrapper {
    gap: 4px !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  .cart-qty-number {
    min-width: 28px !important;
    font-size: 14px !important;
    text-align: center !important;
  }
  
  .cart-qty-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    font-size: 18px;
    font-weight: 700;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
  }
  
  .cart-delete-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  /* Ajustes para categorías en pantallas muy pequeñas */
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px 8px;
  }
  
  .brand-circle {
    width: 65px;
    height: 65px;
    min-width: 65px;
    min-height: 65px;
    max-width: 65px;
    max-height: 65px;
  }
  
  .brand-name {
    font-size: 9px;
    line-height: 1.1;
  }
  
  .products-brands-mobile {
    padding: 12px 0;
  }
  
  .modal-backdrop {
    padding: 8px;
    overflow-x: hidden;
  }
  
  .modal {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .modal .content {
    padding: 16px 12px;
    overflow-x: hidden;
  }
  
  .cart-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    overflow-x: hidden;
  }
  
  .cart-table th {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
  }
  
  .cart-table th:nth-child(2) {
    text-align: center;
    padding: 10px 4px;
    font-size: 11px;
  }
  
  .cart-table th,
  .cart-table td {
    padding: 10px 4px;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .cart-table td:nth-child(2) {
    text-align: center;
  }
  
  .cart-table th:first-child,
  .cart-table td:first-child {
    padding-left: 12px;
    padding-right: 6px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  
  .cart-table th:last-child,
  .cart-table td:last-child {
    padding-right: 12px;
  }
  
  /* Columna Cantidad aún más pequeña en pantallas muy pequeñas */
  .cart-table th:nth-child(2),
  .cart-table td:nth-child(2) {
    width: 22%;
    max-width: 100px;
    padding: 10px 2px;
  }
  
  .cart-qty-wrapper {
    gap: 3px !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  .cart-qty-number {
    min-width: 24px !important;
    font-size: 12px !important;
    text-align: center !important;
  }
  
  .cart-qty-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    font-size: 16px;
    font-weight: 700;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
  }
}

/* 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;
}

/* Botón flotante de contacto */
.floating-contact-btn-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.floating-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #ffffff;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  padding: 16px 20px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  white-space: nowrap;
  min-width: 64px;
  height: 64px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  font-family: inherit;
}

.floating-contact-btn:hover,
.floating-contact-btn-wrapper:hover .floating-contact-btn {
  background: #20BA5A;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
  min-width: 240px;
  padding: 16px 24px;
}

.floating-contact-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
}

.floating-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.floating-contact-btn-wrapper:hover .floating-btn-icon {
  transform: scale(1.1);
}

.floating-btn-text {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  margin-left: 0;
  transition: opacity 0.3s ease, max-width 0.3s ease, margin-left 0.3s ease;
  font-size: 15px;
  font-weight: 600;
}

.floating-contact-btn-wrapper:hover .floating-btn-text {
  opacity: 1;
  max-width: 180px;
  margin-left: 12px;
}

/* Menú de opciones de contacto */
.floating-contact-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, max-height 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  min-width: 240px;
}

.floating-contact-btn-wrapper:hover .floating-contact-menu {
  opacity: 1;
  max-height: 300px;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  color: #1f2937;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.floating-contact-item:hover {
  background: #f9fafb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateX(-4px);
}

.contact-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.contact-text {
  flex: 1;
  white-space: nowrap;
}

/* Mobile: solo mostrar ícono y abrir contacto directamente */
@media (max-width: 768px) {
  .floating-contact-btn-wrapper {
    bottom: 20px;
    right: 20px;
  }

  .floating-contact-btn {
    min-width: 56px;
    height: 56px;
    padding: 14px;
    border-radius: 50%;
  }

  .floating-contact-btn-wrapper:hover .floating-contact-btn {
    min-width: 56px;
    padding: 14px;
    transform: translateY(-2px);
  }

  .floating-btn-text {
    display: none;
  }

  .floating-btn-icon {
    width: 28px;
    height: 28px;
  }

  .floating-contact-menu {
    min-width: 200px;
  }
}

/* Tablet: comportamiento intermedio */
@media (min-width: 769px) and (max-width: 1024px) {
  .floating-contact-btn-wrapper {
    bottom: 20px;
    right: 20px;
  }
}

/* Asegurar que no interfiera con otros elementos */
@media (max-width: 480px) {
  .floating-contact-btn-wrapper {
    bottom: 16px;
    right: 16px;
  }

  .floating-contact-btn {
    min-width: 52px;
    height: 52px;
    padding: 12px;
  }

  .floating-btn-icon {
    width: 24px;
    height: 24px;
  }

  .floating-contact-menu {
    min-width: 180px;
  }
}