/* =========================================================
   SINTACC.AR - CSS DESIGN SYSTEM
   Modern, Ultra-clean, Glassmorphism & High-Conversion Theme
   ========================================================= */

:root {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #d1fae5;
  --primary-gradient: linear-gradient(135deg, #10b981 0%, #047857 100%);
  --secondary: #0284c7;
  --accent-gold: #f59e0b;
  --accent-gold-light: #fef3c7;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-light: #e2e8f0;
  --border-focus: #10b981;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Announcement Bar */
.announcement-bar {
  background: #022c22;
  color: #f0fdf4;
  font-size: 0.86rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(52, 211, 153, 0.3);
  letter-spacing: 0.01em;
}

.announcement-bar strong {
  color: #6ee7b7;
  font-weight: 700;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  text-align: center;
  color: #f0fdf4;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background-color: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 10px #34d399;
  animation: pulseDot 2s infinite alternate;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 1; }
}

.top-install-btn {
  background: #059669;
  border: 1px solid #34d399;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.top-install-btn:hover {
  background: #10b981;
  border-color: #6ee7b7;
  color: #ffffff;
  transform: translateY(-1px);
}

.badge-link {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  margin-left: 6px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

/* Modern Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.brand-logo-svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.logo-title .highlight {
  color: var(--primary);
}

.logo-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

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

.nav-actions .btn {
  padding: 8px 16px;
  height: 42px;
  font-size: 0.88rem;
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  transition: var(--transition);
  user-select: none;
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
}

.btn-outline {
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-dark);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

.badge-count {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-outline .badge-count {
  background: var(--bg-subtle);
  color: var(--text-dark);
}

/* Hero Section */
.hero-section {
  padding: 60px 0 40px;
  background: radial-gradient(circle at 50% 0%, #ecfdf5 0%, #f8fafc 70%);
  text-align: center;
}

.hero-content {
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.2rem;
  letter-spacing: -1px;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, #059669 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
}

/* Search Card */
.search-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  margin-bottom: 40px;
  transition: var(--transition);
}

.search-card:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow), var(--shadow-xl);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  padding: 8px 18px;
  border: 1px solid transparent;
}

.search-input-wrapper:focus-within {
  background: #ffffff;
  border-color: var(--primary);
}

.search-icon {
  color: var(--primary);
}

.search-input-wrapper input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  color: var(--text-dark);
  font-family: inherit;
  outline: none;
}

.search-input-wrapper input::placeholder {
  color: var(--text-light);
  font-size: 0.98rem;
}

.clear-search-btn {
  color: var(--text-light);
  font-size: 1.2rem;
  padding: 4px;
  display: none;
}

.clear-search-btn.active {
  display: block;
}

.search-quick-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.tags-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.tag-pill {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.tag-pill:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  text-align: center;
}

.stat-number {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Section Categories */
.section-categories {
  padding: 30px 0 10px;
}

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

.section-title {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.filter-count {
  font-size: 0.9rem;
  color: var(--text-muted);
  background: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.categories-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.categories-bar::-webkit-scrollbar {
  height: 6px;
}

.categories-bar::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

.cat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
}

.cat-btn:hover {
  border-color: var(--primary);
  background: #f0fdf4;
}

.cat-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
}

.subfilters-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 14px;
  padding: 12px 18px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.subfilter-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.filter-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
}

.filter-checkbox input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

/* Products Grid */
.section-products {
  padding: 20px 0 60px;
}

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

/* Product Card */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #a7f3d0;
}

.card-img-container {
  width: 100%;
  height: 180px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 12px;
}

.card-prod-img {
  max-width: 100%;
  max-height: 156px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .card-prod-img {
  transform: scale(1.06);
}

.packshot-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #065f46;
  background: rgba(209, 250, 229, 0.95);
  padding: 3px 8px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-visual-badge {
  background: radial-gradient(circle at 50% 35%, #ecfdf5 0%, #f8fafc 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  min-height: 180px;
}

.visual-brand-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 2px 9px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-dark);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-center-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.visual-anmat-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.2px;
}

.pagination-container {
  display: flex;
  justify-content: center;
  margin: 36px 0 16px;
}

/* Modal Product Layout */
.modal-product-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 14px;
}

.modal-img-col {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.modal-main-img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .modal-product-layout {
    grid-template-columns: 1fr;
  }
}


.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary);
  background: #e0f2fe;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #065f46;
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.product-brand {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-title {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.35;
}

.card-meta-table {
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.meta-item strong {
  color: var(--text-dark);
  display: block;
}

.meta-item span {
  color: var(--text-muted);
  font-family: monospace;
  font-size: 0.88rem;
}

.allergens-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.allergen-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  color: var(--text-dark);
}

.allergen-chip.anmat-chip {
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

.save-btn {
  color: var(--text-muted);
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}

.save-btn:hover, .save-btn.saved {
  color: #e11d48;
  background: #ffe4e6;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-light);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hidden {
  display: none !important;
}

/* Programmatic SEO Visualizer Banner */
.section-seo-demo {
  padding: 30px 0 60px;
}

.seo-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-xl);
}

.seo-badge {
  display: inline-block;
  background: #3b82f6;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.seo-banner h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.seo-banner p {
  color: #94a3b8;
  max-width: 780px;
  margin-bottom: 24px;
  font-size: 0.98rem;
}

.seo-banner code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: #38bdf8;
}

.url-breadcrumbs-preview {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-family: monospace;
  font-size: 0.95rem;
  overflow-x: auto;
  gap: 4px;
}

.url-host {
  color: #38bdf8;
  font-weight: 700;
}

.url-part {
  color: #cbd5e1;
}

.highlight-url {
  color: #4ade80;
  font-weight: 700;
  background: rgba(74, 222, 128, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Dietéticas Affiliate Banner */
.section-dieteticas {
  padding-bottom: 60px;
}

.dieteticas-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  border: 2px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.badge-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: #b45309;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}

.dieteticas-card h2 {
  font-size: 1.8rem;
  color: #78350f;
  margin-bottom: 12px;
}

.dieteticas-card p {
  color: #92400e;
  max-width: 600px;
  margin-bottom: 16px;
}

.dieteticas-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #78350f;
}

/* FAQ Section */
.section-faq {
  padding: 50px 0 80px;
  background: #ffffff;
}

.faq-container {
  max-width: 860px;
}

.faq-header {
  text-align: center;
  margin-bottom: 40px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  background: #f8fafc;
  transition: var(--transition);
}

.faq-item[open] {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  color: var(--text-muted);
  transition: var(--transition);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  padding: 36px;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.3rem;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  transition: var(--transition);
}

.modal-close:hover {
  background: #e2e8f0;
  color: var(--text-dark);
}

/* Product Modal Content Details */
.modal-breadcrumbs {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.modal-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.modal-brand {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.modal-grid-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
}

.modal-meta-box strong {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.modal-meta-box span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: monospace;
}

.modal-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 18px 0 8px;
}

.modal-ingredients {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* Barcode Scanner Modal (Real Live Camera) */
.barcode-modal-card {
  max-width: 520px;
  text-align: center;
  padding: 24px;
}

.scanner-header {
  margin-bottom: 16px;
}

.scanner-icon {
  font-size: 2.2rem;
  margin-bottom: 4px;
}

.scanner-viewport-wrapper {
  background: #090d16;
  border-radius: var(--radius-md);
  min-height: 260px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 2px solid #1e293b;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.scanner-live-reader {
  width: 100% !important;
  min-height: 260px;
}

.scanner-live-reader video {
  width: 100% !important;
  height: auto !important;
  max-height: 320px !important;
  object-fit: cover !important;
  border-radius: var(--radius-md);
}

.scanner-overlay-guide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.scanner-target-box {
  width: 240px;
  height: 150px;
  position: relative;
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 12px;
  box-shadow: 0 0 0 4000px rgba(15, 23, 42, 0.45);
}

.corner-tl, .corner-tr, .corner-bl, .corner-br {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: #10b981;
  border-style: solid;
}

.corner-tl { top: -2px; left: -2px; border-width: 4px 0 0 4px; border-top-left-radius: 10px; }
.corner-tr { top: -2px; right: -2px; border-width: 4px 4px 0 0; border-top-right-radius: 10px; }
.corner-bl { bottom: -2px; left: -2px; border-width: 0 0 4px 4px; border-bottom-left-radius: 10px; }
.corner-br { bottom: -2px; right: -2px; border-width: 0 4px 4px 0; border-bottom-right-radius: 10px; }

.laser-line {
  position: absolute;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ef4444 20%, #f87171 50%, #ef4444 80%, transparent);
  box-shadow: 0 0 14px #ef4444, 0 0 6px #f87171;
  top: 15%;
  animation: laserScanReal 2.2s ease-in-out infinite alternate;
}

@keyframes laserScanReal {
  0% { top: 12%; }
  100% { top: 88%; }
}

.scanner-live-status {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #f1f5f9;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 12;
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 1.4s ease-in-out infinite alternate;
}

.scanner-controls-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.camera-error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.demo-barcodes {
  text-align: left;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

.demo-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.demo-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 600px) {
  .demo-buttons {
    grid-template-columns: 1fr;
  }
}

.demo-btn {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  transition: var(--transition);
  color: var(--text-dark);
}

.demo-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* Footer */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.4rem;
  color: #ffffff;
  margin: 10px 0 8px;
}

.footer-links h4 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #34d399;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 0.82rem;
  text-align: center;
}

.disclaimer {
  margin-top: 8px;
  color: #64748b;
}

/* Responsive Adjustments & Mobile Optimization */
@media (max-width: 1120px) {
  .nav-menu {
    gap: 16px;
  }
  .nav-link {
    font-size: 0.88rem;
  }
  .nav-actions .btn {
    padding: 8px 12px;
    font-size: 0.84rem;
  }
}

@media (max-width: 960px) {
  .nav-menu {
    display: none;
  }
  .nav-container {
    height: 70px;
    padding: 0 16px;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 0;
  }
  .nav-container {
    height: 62px;
    padding: 0 12px;
    gap: 8px;
  }
  .brand-logo-svg {
    width: 36px;
    height: 36px;
  }
  .logo-title {
    font-size: 1.22rem;
  }
  .logo-sub {
    display: none;
  }
  .nav-actions {
    gap: 6px;
  }
  .nav-actions .install-btn-trigger {
    display: none !important;
  }
  .nav-actions .btn {
    padding: 7px 10px;
    height: 36px;
    font-size: 0.82rem;
    gap: 5px;
  }
  .hero-section {
    padding: 32px 0 20px;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .search-card {
    padding: 12px;
    border-radius: var(--radius-md);
  }
  .search-input-wrapper {
    padding: 8px 10px;
  }
  .search-input-wrapper input {
    font-size: 0.92rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .modal-grid-meta {
    grid-template-columns: 1fr;
  }
  .modal-card {
    padding: 22px 16px;
    border-radius: var(--radius-md);
  }
  .dieteticas-card {
    padding: 22px 16px;
  }
  .dieteticas-card h2 {
    font-size: 1.35rem;
  }
  .categories-bar {
    -webkit-overflow-scrolling: touch;
  }
  .cat-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

