/* ==========================================================================
   NEXXIS® Tap — BASE SYSTEM & RESPONSIVE ARCHITECTURE
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..800;1,9..144,400..800&family=Inter:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  background-color: #F8FAFC;
  color: #0F172A;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* TOP FLOATING MODEL SWITCHER BAR */
.nexxis-floating-model-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: #0B0F19;
  color: #FFFFFF;
  z-index: 10000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 0.74rem;
}

.switcher-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.switcher-hub-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  font-weight: 700;
  white-space: nowrap;
}

.switcher-brand-icon {
  width: 20px;
  height: 20px;
}

.switcher-models-list {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.switcher-models-list::-webkit-scrollbar { display: none; }

.switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: #CBD5E1;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.switcher-btn:hover, .switcher-btn.active {
  background: #2563EB;
  color: #FFFFFF;
}

.viewport-badge {
  background: rgba(255,255,255,0.12);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  color: #94A3B8;
  font-family: monospace;
}

/* ==========================================================================
   HEADER OFICIAL (TRANSPARENTE -> SÓLIDO EN SCROLL)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 38px;
  left: 0;
  right: 0;
  z-index: 5000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.header-transparent {
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.site-header.header-solid {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  color: #0F172A;
}

.header-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.header-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-header.header-transparent .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.site-header.header-transparent .nav-link:hover,
.site-header.header-transparent .nav-link.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.18);
}

.site-header.header-solid .nav-link {
  color: #475569;
}

.site-header.header-solid .nav-link:hover,
.site-header.header-solid .nav-link.active {
  color: #0F172A;
  background: #F1F5F9;
}

.cart-count-badge {
  background: #2563EB;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 10px;
}

.nav-btn-share {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.nav-btn-share:hover {
  background: rgba(255,255,255,0.2);
}
.site-header.header-solid .nav-btn-share:hover {
  background: #0F172A;
  color: #FFFFFF;
}

/* BOTÓN INSTALAR APP HEADER */
.nav-btn-install {
  background: #2563EB;
  border: 1px solid transparent;
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.nav-btn-install:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.site-header.header-transparent .nav-btn-install {
  background: rgba(255, 255, 255, 0.92);
  color: #0F172A;
}
.site-header.header-transparent .nav-btn-install:hover {
  background: #FFFFFF;
}

/* BOTÓN INSTALAR APP FOOTER */
.footer-pwa-container {
  margin-bottom: 20px;
}
.footer-btn-install {
  background: #1E293B;
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.footer-btn-install:hover {
  background: #334155;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* MODAL GUÍA DE INSTALACIÓN iOS */
.pwa-ios-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}
.pwa-ios-modal-overlay.active {
  opacity: 1;
}
.pwa-ios-modal-card {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  padding: 28px 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 1px solid #E2E8F0;
  box-sizing: border-box;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}
@keyframes modalScaleUp {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.pwa-ios-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.pwa-ios-modal-icon {
  font-size: 2rem;
  line-height: 1;
}
.pwa-ios-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
}
.pwa-ios-modal-desc {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 16px;
}
.pwa-ios-steps {
  margin: 0 0 24px;
  padding-left: 20px;
  color: #1E293B;
  font-size: 0.9rem;
  line-height: 1.6;
}
.pwa-ios-steps li {
  margin-bottom: 10px;
}
.ios-share-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #EFF6FF;
  color: #2563EB;
  padding: 2px 6px;
  border-radius: 6px;
  vertical-align: middle;
}
.pwa-ios-modal-footer {
  display: flex;
  justify-content: flex-end;
}
.btn-ios-modal-close {
  background: #0F172A;
  color: #FFFFFF;
  border: none;
  padding: 10px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-ios-modal-close:hover {
  background: #334155;
}

/* TOAST */
.nexxis-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0F172A;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  white-space: nowrap;
}

.nexxis-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   HOME HERO CON ROTADOR SUAVE DE TEXTOS
   ========================================================================== */
#nexxis-app-root {
  min-height: 100vh;
}

.home-hero {
  position: relative;
  min-height: 82vh;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px;
  color: #FFFFFF;
  text-align: center;
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.88) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 3px 12px rgba(0,0,0,0.5);
}

.hero-tagline-rotator {
  position: relative;
  min-height: 54px;
  margin: 0 auto 28px;
  max-width: 720px;
}

.hero-rotator-item {
  position: absolute;
  inset: 0;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 400;
  color: #E2E8F0;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.hero-rotator-item.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.btn-hero-primary {
  background: #2563EB;
  color: #FFFFFF;
  padding: 14px 34px;
  border-radius: 30px;
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  transition: all 0.2s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.6);
}

.home-content-wrapper {
  max-width: 1360px;
  margin: 0 auto;
  padding: 50px 20px 80px;
}

.home-summary-section {
  margin-bottom: 60px;
}

.summary-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 32px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.summary-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.summary-text {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.65;
}

.home-section {
  margin-bottom: 60px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748B;
  margin-bottom: 4px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
}

.section-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: #2563EB;
}

.products-grid-home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.catalog-entry-cta {
  text-align: center;
  margin-top: 36px;
}

.btn-catalog-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0F172A;
  color: #FFFFFF;
  padding: 12px 28px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-catalog-cta:hover {
  background: #2563EB;
}

.home-info-section {
  margin-bottom: 50px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.info-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.info-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 0.9rem;
  color: #64748B;
  line-height: 1.5;
  margin-bottom: 12px;
}

.info-map-link {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2563EB;
}

.social-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-pill {
  font-size: 0.84rem;
  color: #334155;
  font-weight: 600;
}

.hours-text {
  white-space: pre-line;
}

/* ==========================================================================
   FOOTER CON BRANDING DESTACADO DE NEXXIS® TAP
   ========================================================================== */
.nexxis-official-footer {
  border-top: 2px solid #E2E8F0;
  padding: 44px 20px 32px;
  text-align: center;
  background: #FFFFFF;
  border-radius: 16px;
  margin-top: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.footer-brand-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  padding: 8px 16px;
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border: 1px solid #E2E8F0;
}

.footer-official-logo {
  width: 168px;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 640px) {
  .footer-brand-container {
    padding: 6px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
  }
  .footer-official-logo {
    width: 138px;
  }
}

.footer-slogan {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.footer-subtext {
  font-size: 0.9rem;
  color: #64748B;
  max-width: 580px;
  margin: 0 auto 14px;
  line-height: 1.5;
}

.footer-cta-link {
  display: inline-block;
  color: #2563EB;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.footer-cta-link:hover {
  background: #EFF6FF;
  color: #1D4ED8;
}

/* ==========================================================================
   VISTA CATÁLOGO
   ========================================================================== */
.catalog-page-wrapper {
  max-width: 1360px;
  margin: 0 auto;
  padding: 100px 20px 80px;
}

.catalog-featured-slider-section {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
  position: relative;
}

.slider-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.slider-header-text {
  flex: 1;
}

.slider-eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #2563EB;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.slider-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0F172A !important;
  margin: 0;
}

.slider-outer-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, opacity 0.2s ease;
  user-select: none;
  touch-action: manipulation;
}

.slider-arrow-prev {
  left: -16px;
}

.slider-arrow-next {
  right: -16px;
}

.slider-arrow:hover:not(:disabled) {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
}

.slider-arrow:active:not(:disabled) {
  transform: translateY(-50%) scale(0.95);
}

.slider-arrow:disabled {
  opacity: 0;
  pointer-events: none;
  cursor: default;
}

.nexxis-smooth-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding: 8px 4px 14px;
  width: 100%;
}

.nexxis-smooth-slider::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

/* Composición Desktop: 3 productos completos + ~20% del 4to producto (aprox 3.22 cards) */
.slider-item-minimal {
  flex: 0 0 calc((100% - 60px) / 3.22);
  min-width: 230px;
  display: flex;
}

@media (max-width: 1024px) {
  .slider-item-minimal {
    flex: 0 0 calc((100% - 30px) / 2.3);
    min-width: 200px;
  }
  .slider-arrow-prev { left: -10px; }
  .slider-arrow-next { right: -10px; }
}

@media (max-width: 640px) {
  .slider-item-minimal {
    flex: 0 0 calc((100% - 20px) / 1.3);
    min-width: 160px;
  }
  .slider-arrow {
    width: 38px;
    height: 38px;
  }
  .slider-arrow-prev { left: -6px; }
  .slider-arrow-next { right: -6px; }
}

.slider-card-minimal {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.slider-card-minimal:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: #CBD5E1;
}

.slider-card-minimal .card-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #F8FAFC;
  overflow: hidden;
}

.slider-card-minimal .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.slider-card-minimal:hover .card-img {
  transform: scale(1.04);
}

.slider-card-minimal .card-body-minimal {
  padding: 12px 14px 16px;
  text-align: center;
}

.slider-card-minimal .card-title-minimal {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A !important;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-main-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.catalog-categories-sidebar {
  position: sticky;
  top: 100px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 20px;
}

.categories-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.cat-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.cat-btn.active {
  background: #0F172A;
  color: #FFFFFF;
  font-weight: 700;
}

.cat-count {
  background: rgba(0,0,0,0.06);
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 0.75rem;
}
.cat-btn.active .cat-count {
  background: rgba(255,255,255,0.2);
  color: #FFF;
}

.catalog-toolbar {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.catalog-search-wrapper {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
}

.catalog-search-input {
  width: 100%;
  padding: 10px 38px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 0.9rem;
}

.catalog-search-input:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #94A3B8;
  cursor: pointer;
}

.catalog-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748B;
}

.catalog-sort-select {
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}

.catalog-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.no-results-box {
  grid-column: 1 / -1;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
}

.btn-clear-search {
  margin-top: 12px;
  background: #2563EB;
  color: #FFF;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

/* ==========================================================================
   TARJETA DE PRODUCTO CON ENCUADRE ÓPTIMO EN DESKTOP
   ========================================================================== */
.nexxis-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nexxis-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.card-img-wrapper {
  position: relative;
  height: 200px;
  background: #F8FAFC;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
}

.nexxis-card:hover .card-img, .featured-showcase-card:hover .card-img {
  transform: scale(1.04);
}

.featured-showcase-card {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.featured-showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.featured-eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: #2563EB;
}

.card-badge, .featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
  white-space: nowrap;
}

.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 4px;
  cursor: pointer;
}

.card-desc {
  font-size: 0.82rem;
  color: #64748B;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-pricing-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  border-top: 1px solid #F1F5F9;
  padding-top: 8px;
}

.card-price {
  font-size: 1.15rem;
  font-weight: 800;
}

.card-price small {
  font-size: 0.72rem;
  color: #64748B;
  font-weight: normal;
}

.card-subtotal {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2563EB;
}

.card-quote-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: #D97706;
}

.card-controls-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nexxis-stepper {
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  border-radius: 6px;
  padding: 2px;
}

.nexxis-stepper-btn {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #FFFFFF;
  color: #0F172A;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.nexxis-stepper-val {
  padding: 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  min-width: 50px;
  text-align: center;
  white-space: nowrap;
}

.btn-add-card {
  flex: 1;
  background: #0F172A;
  color: #FFFFFF;
  border: none;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-add-card:hover {
  background: #2563EB;
}

.btn-consult-card {
  width: 100%;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #2563EB;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   VISTA INDIVIDUAL DEL PRODUCTO
   ========================================================================== */
.product-detail-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 20px 80px;
}

.btn-back-cat {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748B;
  margin-bottom: 20px;
}

.btn-back-cat:hover {
  color: #0F172A;
}

.product-detail-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  padding: 32px;
  margin-bottom: 50px;
}

.product-detail-img-box {
  position: relative;
  height: 380px;
  background: #F1F5F9;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-detail-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #0F172A;
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
}

.product-detail-cat {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748B;
  margin-bottom: 6px;
}

.product-detail-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}

.product-detail-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 24px;
}

.product-detail-pricing-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 24px;
}

.price-row-detail {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.price-base-detail {
  font-size: 1.6rem;
  font-weight: 800;
}

.subtotal-detail {
  font-size: 1.1rem;
  font-weight: 800;
  color: #2563EB;
}

.detail-stepper-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.detail-stepper .nexxis-stepper-btn {
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
}
.detail-stepper .nexxis-stepper-val {
  font-size: 0.95rem;
  min-width: 80px;
}

.btn-add-detail {
  flex: 1;
  background: #2563EB;
  color: #FFFFFF;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.btn-consult-link {
  background: transparent;
  border: 1px solid #CBD5E1;
  color: #334155;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  width: 100%;
  cursor: pointer;
}

.btn-consult-detail {
  width: 100%;
  background: #2563EB;
  color: #FFF;
  padding: 14px 20px;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.related-products-section {
  margin-top: 40px;
}

.related-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
}

/* ==========================================================================
   VISTA CARRITO (PÁGINA PROPIA)
   ========================================================================== */
.cart-page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 20px 80px;
}

.cart-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.cart-page-title {
  font-size: 1.8rem;
  font-weight: 800;
}

.btn-continue-shopping-top {
  font-size: 0.9rem;
  font-weight: 700;
  color: #2563EB;
}

.cart-page-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

.cart-items-list-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-page-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F1F5F9;
}
.cart-page-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-page-thumb {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-page-item-info {
  flex: 1;
  min-width: 0;
}

.cart-page-item-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.cart-page-item-unit-price {
  font-size: 0.78rem;
  color: #64748B;
  margin-bottom: 6px;
}

.cart-page-item-stepper-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-page-item-subtotal {
  font-size: 0.95rem;
  font-weight: 800;
}

.cart-page-item-remove {
  background: #FEE2E2;
  color: #DC2626;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cart-summary-side-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.summary-side-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E2E8F0;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: #475569;
}

.summary-line.total-line {
  border-top: 2px solid #E2E8F0;
  padding-top: 12px;
  margin-top: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
}

.alert-min-order, .alert-closed-notice {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  color: #92400E;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin: 14px 0;
}
.alert-closed-notice {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #991B1B;
}

.cart-page-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.btn-checkout-primary {
  background: #2563EB;
  color: #FFFFFF;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-checkout-primary.disabled {
  background: #CBD5E1;
  color: #64748B;
  cursor: not-allowed;
}

.btn-continue-shopping {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748B;
  padding: 8px;
}

.cart-empty-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 60px 20px;
  text-align: center;
}
.cart-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

/* ==========================================================================
   VISTA CHECKOUT
   ========================================================================== */
.checkout-page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 20px 80px;
}

.checkout-header {
  margin-bottom: 24px;
}

.checkout-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-top: 8px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: start;
}

.checkout-form-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 24px;
}

.form-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #F1F5F9;
}
.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.nexxis-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 0.9rem;
}
.nexxis-input:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.radio-group-checkout {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
}

.radio-card input {
  margin-top: 3px;
}

.radio-card-content strong {
  display: block;
  font-size: 0.9rem;
}
.radio-card-content small {
  color: #64748B;
  font-size: 0.78rem;
}

.checkout-summary-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.checkout-items-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  max-height: 220px;
  overflow-y: auto;
}

.checkout-item-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.checkout-totals-box {
  margin-bottom: 16px;
}

.whatsapp-bubble-card {
  background: #DCF8C6;
  border: 1px solid #C4E4A2;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 18px;
}

.bubble-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #1F2937;
  margin-bottom: 6px;
}

.bubble-pre {
  font-family: inherit;
  font-size: 0.8rem;
  color: #111827;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(255,255,255,0.7);
  padding: 8px;
  border-radius: 6px;
  max-height: 160px;
  overflow-y: auto;
}

.btn-whatsapp-send-order {
  background: #25D366;
  color: #FFFFFF;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}

.btn-whatsapp-send-order:hover {
  background: #1EBE5D;
}

/* ==========================================================================
   RESPONSIVE COMPREHENSIVE RULES (1440px, 1024px, 768px, 390px)
   ========================================================================== */

@media (max-width: 1024px) {
  .products-grid-home {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalog-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-detail-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .product-detail-img-box {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-rotator-item {
    font-size: 1rem;
  }
  .home-hero {
    min-height: 65vh;
    padding: 90px 16px 40px;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .catalog-main-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .catalog-categories-sidebar {
    position: static;
    padding: 12px;
  }
  .categories-title {
    display: none;
  }
  .categories-list {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .categories-list::-webkit-scrollbar { display: none; }
  .cat-btn {
    white-space: nowrap;
    width: auto;
    padding: 8px 14px;
  }

  .cart-page-layout, .checkout-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .site-header {
    top: 38px;
  }
  .header-container {
    padding: 6px 8px;
    gap: 4px;
  }
  .header-brand {
    font-size: 0.88rem;
    max-width: 125px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-nav {
    gap: 2px;
  }
  .nav-link {
    font-size: 0.74rem;
    padding: 3px 4px;
    white-space: nowrap;
  }
  .nav-btn-share, .nav-btn-install {
    padding: 4px 6px;
    font-size: 0.72rem;
  }
  .nav-btn-share span, .nav-btn-install span {
    display: none;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .products-grid-home, .catalog-products-grid {
    grid-template-columns: 1fr;
  }
  .slider-item {
    flex: 0 0 260px;
  }
}

/* ==========================================================================
   NEXXIS® Tap — FORMULARIOS Y COMPONENTES DE ADMINISTRACIÓN COMPARTIDOS
   ========================================================================== */

.form-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
}

.card-header-clean {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
}

.card-title-clean {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.card-subtitle-clean {
  font-size: 0.85rem;
  color: #64748B;
  margin-top: 4px;
  line-height: 1.4;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 6px;
}

.form-control,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0F172A;
  background-color: #FFFFFF;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #2563EB;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-control:disabled,
.form-control[readonly] {
  background-color: #F8FAFC;
  border-color: #E2E8F0;
  color: #64748B;
  cursor: not-allowed;
}

.form-textarea {
  min-height: 90px;
  resize: vertical;
}

.form-help {
  display: block;
  font-size: 0.8rem;
  color: #64748B;
  margin-top: 5px;
  line-height: 1.35;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.panel-grid-split {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 24px;
  align-items: start;
}

.table-container {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.btn-admin-primary,
.btn-panel-primary {
  background: #2563EB;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease;
  text-decoration: none;
}

.btn-admin-primary:hover,
.btn-panel-primary:hover {
  background: #1D4ED8;
}

.btn-admin-secondary,
.btn-panel-secondary {
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #CBD5E1;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-admin-secondary:hover,
.btn-panel-secondary:hover {
  background: #E2E8F0;
  color: #0F172A;
}

@media (max-width: 1024px) {
  .panel-grid-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .form-card {
    padding: 20px 16px;
  }
  .form-actions {
    flex-direction: column-reverse;
    width: 100%;
  }
  .form-actions > * {
    width: 100%;
    justify-content: center;
  }
}
