/* e-buhos - Surgical 4K DataMatrix Reader & MOPA Laser Workstation Styles */
:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --accent: #06b6d4;
  --success: #10b981;
  --dark-bg: #070c18;
  --dark-card: #0e172a;
  --dark-border: #1e293b;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --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);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.75rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

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

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.25rem 0;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 9999px;
  padding: 0.25rem;
  border: 1px solid #e2e8f0;
}

.lang-btn {
  padding: 0.25rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.btn-outline {
  background: transparent;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
}

.btn-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: var(--primary);
}

.btn-youtube {
  background: #dc2626;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.btn-youtube:hover {
  background: #b91c1c !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #334155;
}

/* HERO SECTION */
.hero {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.08) 0%, transparent 60%),
              linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 4rem 0 4.5rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}

.hero-intro {
  max-width: 860px;
  margin: 0 auto 3rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  border: 1px solid #bae6fd;
}

.hero-title {
  font-size: 2.875rem;
  color: #091e42;
  margin-bottom: 1.125rem;
  letter-spacing: -0.025em;
}

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

.hero-subtitle {
  font-size: 1.125rem;
  color: #475569;
  line-height: 1.7;
}

/* Two Big Product Access Cards */
.hero-product-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1040px;
  margin: 0 auto;
}

.hero-prod-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  text-align: left;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-prod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -5px rgba(2, 132, 199, 0.15);
  border-color: #38bdf8;
}

.prod-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.tag-reader {
  background: #e0f2fe;
  color: #0369a1;
}

.tag-laser {
  background: #fef3c7;
  color: #b45309;
}

.hero-prod-card h3 {
  font-size: 1.625rem;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.hero-prod-card p {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

/* Badges strip */
.badges-strip {
  background: #ffffff;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.badges-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 600;
}

.trust-badge svg {
  color: var(--primary);
}

/* PRODUCT BLOCK SECTIONS */
.product-block {
  padding: 5.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.block-reader {
  background: #ffffff;
}

.block-laser {
  background: #f8fafc;
}

.block-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 3.5rem;
}

.block-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.block-title {
  font-size: 2.5rem;
  color: #0f172a;
  margin-bottom: 1rem;
}

.block-desc {
  font-size: 1.125rem;
  color: #64748b;
  line-height: 1.7;
}

/* Main Visual & Key Highlights Grid */
.product-showcase-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.product-showcase-grid.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.showcase-media {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 15px 35px -5px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease;
}

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



.color-selector-wrap {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.color-swatches {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.color-swatch-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1.5px #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-swatch-btn:hover {
  transform: scale(1.15);
}

.color-swatch-btn.active {
  box-shadow: 0 0 0 2.5px var(--primary);
  transform: scale(1.12);
}

.swatch-negro { background-color: #1e293b; }
.swatch-azul { background-color: #2563eb; }
.swatch-verde { background-color: #4ade80; }
.swatch-cobalto { background-color: #78533e; }
.swatch-rojo { background-color: #991b1b; }

.color-name-label {
  font-size: 0.8125rem;
  color: #64748b;
  font-weight: 600;
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
}

/* Reader Action Showcase Banner */
.reader-action-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 1px solid #dcfce7;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px -10px rgba(34, 197, 94, 0.12), var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.25rem;
  margin-bottom: 3.5rem;
}

.reader-action-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.reader-action-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

.reader-action-media:hover .reader-action-img {
  transform: scale(1.02);
}

.reader-action-info {
  display: flex;
  flex-direction: column;
}

.reader-action-info h3 {
  font-size: 1.625rem;
  color: #0f172a;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.reader-action-info p {
  color: #475569;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.reader-action-points {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.action-point {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.point-bullet {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 3px;
}

.action-point strong {
  display: block;
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 0.15rem;
}

.action-point p {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.5;
}

/* 6 Detailed Features Grid */
.block-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 4rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: #0284c7;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.12);
}

.feature-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.feature-card h4 {
  font-size: 1.1875rem;
  color: #0f172a;
  margin-bottom: 0.65rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.6;
}

/* Dedicated Product Specs Box */
.product-specs-box {
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
  max-width: 1000px;
  margin: 0 auto;
}

.product-specs-box h4 {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-align: center;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid #1e293b;
}

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

.specs-table td {
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
}

.specs-table td.param {
  width: 38%;
  color: #94a3b8;
  font-weight: 600;
}

.specs-table td.value {
  width: 62%;
  color: #f1f5f9;
}

.block-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ========================================== */
/* SOFTWARE SECTION (EBUHO CONTROLLER SUITE)  */
/* ========================================== */
.software-section {
  padding: 5.5rem 0;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.sw-workstation-showcase {
  margin-bottom: 3.5rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.14);
  border: 1px solid #e2e8f0;
  background: #0f172a;
}

.sw-workstation-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sw-workstation-showcase:hover .sw-workstation-img {
  transform: scale(1.015);
}

.sw-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.sw-feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.35rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sw-feature-card:hover {
  transform: translateY(-3px);
  border-color: #0284c7;
  box-shadow: 0 12px 24px -6px rgba(2, 132, 199, 0.12);
}

.sw-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  flex-shrink: 0;
}

.sw-feature-card h4 {
  font-size: 1.0625rem;
  color: #0f172a;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.sw-feature-card p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .sw-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sw-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* CONTACT / QUOTE SECTION */
.contact-section {
  padding: 5.5rem 0;
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
}

.contact-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px -5px rgba(0,0,0,0.06);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid #cbd5e1;
  font-family: inherit;
  font-size: 0.9375rem;
  color: #0f172a;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

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

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: #64748b;
  cursor: pointer;
}

.form-status {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
}

.form-status.success {
  display: block;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.info-box h3 {
  font-size: 1.25rem;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.contact-meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.contact-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.meta-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: #e0f2fe;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.meta-text span {
  display: block;
  font-size: 0.8125rem;
  color: #64748b;
  font-weight: 500;
}

.meta-text strong, .meta-text a {
  font-size: 0.9375rem;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
}

.meta-text a:hover {
  color: var(--primary);
}

/* FOOTER */
.footer {
  background: #070c18;
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 360px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-product-cards {
    grid-template-columns: 1fr;
  }
  .product-showcase-grid, .product-showcase-grid.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .reader-action-banner {
    grid-template-columns: 1fr;
    padding: 1.75rem;
    gap: 1.75rem;
  }
  .block-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .software-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 4.75rem;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.show {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .block-title {
    font-size: 2rem;
  }
  .block-features-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .lightbox-nav {
    display: none;
  }
  .cookie-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-actions button {
    width: 100%;
    text-align: center;
  }
}

/* ========================================== */
/* COOKIES BANNER & LEGAL MODALS              */
/* ========================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 880px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  padding: 1.5rem 1.75rem;
  color: #cbd5e1;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-content {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.cookie-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(2, 132, 199, 0.2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-text h4 {
  font-size: 1.0625rem;
  color: #ffffff;
  margin-bottom: 0.375rem;
}

.cookie-text p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #94a3b8;
}

.cookie-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-cookie-accept {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cookie-accept:hover {
  background: var(--primary-hover);
}

.btn-cookie-necessary {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cookie-necessary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.btn-cookie-settings {
  background: transparent;
  color: #94a3b8;
  border: none;
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.btn-cookie-settings:hover {
  color: #ffffff;
}

/* Legal Modals */
.legal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 12, 24, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.legal-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.legal-modal-card {
  background: #ffffff;
  color: #0f172a;
  width: 100%;
  max-width: 740px;
  max-height: 88vh;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-modal-overlay.active .legal-modal-card {
  transform: scale(1);
}

.legal-modal-header {
  padding: 1.25rem 1.75rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-modal-header h3 {
  font-size: 1.25rem;
  color: #0f172a;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.legal-modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  line-height: 1.65;
  font-size: 0.9375rem;
  color: #334155;
}

.legal-modal-body h4 {
  color: #0f172a;
  font-size: 1.0625rem;
  margin: 1.25rem 0 0.5rem;
}

.legal-modal-body h4:first-child {
  margin-top: 0;
}

.legal-modal-body p {
  margin-bottom: 1rem;
}

.legal-modal-body a {
  color: var(--primary);
  text-decoration: underline;
}

/* Cookie Table */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.8125rem;
}

.cookie-table th, .cookie-table td {
  padding: 0.65rem 0.85rem;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.cookie-table th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 600;
}

.cookie-table tr:nth-child(even) {
  background: #f8fafc;
}

/* Cookie Preference Items */
.cookie-pref-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 0.85rem 0;
}

.cookie-pref-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.cookie-pref-header strong {
  font-size: 0.9375rem;
  color: #0f172a;
}

.cookie-badge-locked {
  font-size: 0.75rem;
  font-weight: 600;
  color: #059669;
  background: #d1fae5;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}

.cookie-pref-desc {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 0;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.legal-modal-footer {
  padding: 1.15rem 1.75rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Footer Legal Links */
.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.legal-link-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color 0.2s ease;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-link-btn:hover {
  color: #ffffff;
}

.legal-separator {
  color: #475569;
  font-size: 0.8125rem;
}
