/* ==========================================================================
   VISCOMED DESIGN SYSTEM & STYLES (Mobile-First & Ultra-Responsive)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Color Tokens */
  --color-brand-primary: #0a2540;
  --color-brand-secondary: #0077b6;
  --color-brand-accent: #00b4d8;
  --color-brand-emerald: #059669;
  --color-brand-glow: rgba(0, 180, 216, 0.15);
  
  /* Neutral Palette */
  --color-bg-main: #f8fafc;
  --color-bg-card: #ffffff;
  --color-bg-subtle: #f1f5f9;
  --color-text-main: #0f172a;
  --color-text-muted: #475569;
  --color-text-light: #94a3b8;
  --color-border: #e2e8f0;
  --color-border-hover: #cbd5e1;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout & Uniform Border Radius */
  --max-width: 1280px;
  --header-height: 72px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Elevation Shadows */
  --shadow-subtle: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 8px 24px -4px rgba(15, 23, 42, 0.07);
  --shadow-hover: 0 16px 32px -8px rgba(0, 119, 182, 0.15);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Mobile-First Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

body.body-locked {
  overflow: hidden;
}

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

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: 20px;
  max-width: 420px;
  margin: 0 auto;
  background: var(--color-brand-primary);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 9999;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid var(--color-brand-accent);
  transform: translateY(120px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

@media (min-width: 640px) {
  .toast-notification {
    left: auto;
    right: 24px;
    bottom: 24px;
  }
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   HEADER & NAVIGATION (Desktop & Mobile-First)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: clamp(30px, 4vw, 36px);
  width: auto;
  display: block;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
  margin: 0 auto 12px auto;
  filter: brightness(0) invert(1);
  opacity: 0.65;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(12px, 2vw, 28px);
}

.nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-brand-secondary);
  background: var(--color-bg-subtle);
}

.mobile-nav-cta {
  display: none;
}

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

.btn-quote-trigger {
  background: var(--color-brand-primary);
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-quote-trigger:hover {
  background: var(--color-brand-secondary);
}

.cart-count {
  background: var(--color-brand-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

/* Hamburger Toggle Button */
.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  z-index: 1002;
  padding: 0;
  transition: var(--transition-fast);
}

.nav-toggle-btn .hamburger-bar {
  width: 20px;
  height: 2px;
  background: var(--color-brand-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle-btn.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle-btn.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle-btn.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

/* ==========================================================================
   HERO SECTION (Responsive Mobile-First)
   ========================================================================== */

.hero-section {
  padding-top: calc(var(--header-height) + clamp(20px, 4vw, 40px));
  padding-bottom: clamp(40px, 6vw, 70px);
}

.hero-header-box {
  text-align: center;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}

.hero-title {
  font-family: 'Outfit', var(--font-body), sans-serif;
  font-size: clamp(1.45rem, 3.5vw, 2.45rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-brand-primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero-title .highlight {
  color: var(--color-brand-secondary);
  font-weight: 600;
}

.hero-subtitle {
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  color: var(--color-text-muted);
  max-width: 880px;
  margin: 0 auto 24px auto;
  font-weight: 400;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* HERO FULL WIDTH CONTAINER IMAGE BANNER */
.hero-banner-full {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  position: relative;
  margin-top: 24px;
  background: #f1f5f9;
}

.hero-banner-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.hero-banner-full img {
  width: 100%;
  max-height: clamp(280px, 38vw, 520px);
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-banner-link:hover img {
  transform: scale(1.03);
}

.hero-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 37, 64, 0.96) 0%, rgba(10, 37, 64, 0.75) 60%, transparent 100%);
  padding: clamp(16px, 3vw, 30px) clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  flex-wrap: wrap;
  gap: 16px;
  z-index: 2;
  transition: background 0.3s ease;
}

.hero-banner-link:hover .hero-banner-overlay {
  background: linear-gradient(to top, rgba(10, 37, 64, 0.98) 0%, rgba(10, 37, 64, 0.85) 65%, rgba(10, 37, 64, 0.2) 100%);
}

.hero-banner-cta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-brand-secondary);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.hero-banner-link:hover .hero-banner-cta-tag {
  background: #0284c7;
  transform: translateX(4px);
}

.hero-banner-overlay h3 {
  color: #ffffff;
  font-family: var(--font-heading);
}

.banner-stat-group {
  display: flex;
  gap: clamp(16px, 3vw, 40px);
}

.banner-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--color-brand-accent);
}

.banner-stat span {
  font-size: clamp(0.75rem, 1.2vw, 0.85rem);
  color: #cbd5e1;
}

/* ==========================================================================
   ABSTRACT VECTOR DECORATIONS
   ========================================================================== */

.section-with-deco {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.svg-bg-deco {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  pointer-events: none;
  z-index: 0;
}

.svg-refined-light {
  opacity: 0.80;
}

.svg-refined-tech {
  opacity: 0.95;
}

.svg-chevron-deco {
  opacity: 0.32;
}

.svg-bg-desktop {
  display: block;
}

.svg-bg-mobile {
  display: none;
}

@media (max-width: 768px) {
  .svg-bg-desktop {
    display: none !important;
  }
  .svg-bg-mobile {
    display: block !important;
  }
}

.section-content-relative {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   BUTTONS (TOUCH FRIENDLY & UNIFORM RADIUS)
   ========================================================================== */

.btn-primary {
  background: var(--color-brand-secondary);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  text-align: center;
}

.btn-primary:hover {
  background: var(--color-brand-primary);
}

.btn-secondary {
  background: #fff;
  color: var(--color-brand-primary);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  text-align: center;
}

.btn-secondary:hover {
  border-color: var(--color-brand-accent);
  color: var(--color-brand-secondary);
}

/* ==========================================================================
   SECTION TITLES & DESCRIPTIONS
   ========================================================================== */

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 3.2vw, 2.2rem);
  font-weight: 700;
  color: var(--color-brand-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.section-description {
  font-size: clamp(0.9rem, 1.5vw, 1.02rem);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   CATEGORY CARDS (HOMEPAGE)
   ========================================================================== */

.categories-section {
  padding: clamp(50px, 7vw, 90px) 0;
  background: #ffffff;
  border: none;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(24px, 4vw, 40px);
}

.category-card {
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-brand-accent);
}

.category-card-img {
  height: clamp(190px, 24vw, 250px);
  object-fit: cover;
  object-position: center;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  display: block;
}

.category-card-body {
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category-card-body h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--color-brand-primary);
  margin-bottom: 10px;
}

.category-card-body p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.6;
}

/* ==========================================================================
   PRODUCTS CATALOG GRID (catalogo.html)
   ========================================================================== */

.search-box-wrap {
  width: 100%;
  max-width: 600px;
  margin: 0 auto clamp(20px, 3vw, 28px) auto;
  position: relative;
}

.search-box-wrap input {
  width: 100%;
  padding: 13px 18px 13px 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: 0.95rem;
  background: #fff;
  box-shadow: var(--shadow-subtle);
  outline: none;
  transition: var(--transition-fast);
}

.search-box-wrap input:focus {
  border-color: var(--color-brand-accent);
  box-shadow: 0 0 0 3px var(--color-brand-glow);
}

.search-box-wrap svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-light);
  pointer-events: none;
}

/* Filter Tab Pills (Horizontal Touch Scroll on Mobile) */
.category-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: clamp(24px, 4vw, 40px);
  overflow-x: auto;
  padding: 4px 4px 10px 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-btn:hover {
  border-color: var(--color-brand-secondary);
  color: var(--color-brand-secondary);
}

.tab-btn.active {
  background: var(--color-brand-secondary);
  color: #fff;
  border-color: var(--color-brand-secondary);
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.25);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: clamp(16px, 3vw, 28px);
}

.product-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.card-image-wrap {
  height: clamp(180px, 22vw, 220px);
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-brand-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.card-body {
  padding: clamp(16px, 2.5vw, 20px);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-brand-secondary);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.product-title {
  font-family: var(--font-heading);
  font-size: clamp(1.08rem, 1.8vw, 1.2rem);
  font-weight: 700;
  color: var(--color-brand-primary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.product-short-desc {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
  line-height: 1.55;
}

.card-actions {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.btn-details {
  flex: 1 1 120px;
  background: var(--color-bg-subtle);
  color: var(--color-brand-primary);
  border: 1px solid var(--color-border);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  text-align: center;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-details:hover {
  background: #e2e8f0;
}

.btn-add-quote {
  flex: 1 1 140px;
  background: var(--color-brand-secondary);
  color: #fff;
  border: none;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
}

.btn-add-quote:hover {
  background: var(--color-brand-primary);
}

/* ==========================================================================
   TECHNICAL SPECS MODAL (#product-modal)
   ========================================================================== */

dialog.product-modal {
  border: none;
  border-radius: var(--radius-md);
  padding: 0;
  max-width: 680px;
  width: min(94vw, 680px);
  max-height: 88vh;
  margin: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  overflow-y: auto;
  background: #fff;
}

dialog::backdrop {
  background: rgba(10, 37, 64, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-single-column {
  padding: clamp(18px, 4vw, 28px);
  display: flex;
  flex-direction: column;
}

.modal-top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-close-btn {
  background: var(--color-bg-subtle);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: bold;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-media-carousel {
  margin: 12px 0 20px 0;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.carousel-main-display {
  min-height: 200px;
  max-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 10px;
}

.carousel-main-display img {
  max-height: 300px;
  max-width: 100%;
  object-fit: contain;
}

.carousel-thumbs {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border-top: 1px solid var(--color-border);
  overflow-x: auto;
}

.thumb-item {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  opacity: 0.7;
}

.thumb-item.active {
  border-color: var(--color-brand-secondary);
  opacity: 1;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.specs-table {
  width: 100%;
  margin: 14px 0;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.specs-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--color-border);
}

.specs-table td.spec-name {
  color: var(--color-text-muted);
  font-weight: 600;
  width: 42%;
}

.specs-table td.spec-val {
  color: var(--color-brand-primary);
  font-weight: 700;
}

/* ==========================================================================
   MATERIALS & SCIENCE TECH SECTION (#tecnologia)
   ========================================================================== */

.tech-section {
  padding: clamp(60px, 8vw, 100px) 0;
  background: radial-gradient(circle at 75% 25%, #0f3057 0%, #0a2540 65%, #05192d 100%);
  border: none;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.tech-section .section-title {
  color: #ffffff;
}

.tech-section .section-description {
  color: #ffffff;
  opacity: 0.92;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(24px, 4vw, 40px);
}

.tech-card {
  background: rgba(255, 255, 255, 0.08);
  padding: clamp(24px, 4vw, 36px) clamp(18px, 3vw, 28px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  transition: var(--transition-normal);
}

.tech-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-brand-accent);
}

.tech-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  color: #fff;
  margin-bottom: 12px;
}

.tech-card p {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.tech-card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tech-card li {
  font-size: 0.86rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-card li::before {
  content: "✓";
  color: var(--color-brand-accent);
  font-weight: bold;
}

/* ==========================================================================
   QUOTE DRAWER OVERLAY
   ========================================================================== */

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 37, 64, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.quote-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(100%, 440px);
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 32px rgba(10, 37, 64, 0.2);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  z-index: 2001;
}

.drawer-overlay.open .quote-drawer {
  transform: translateX(0);
}

.drawer-header {
  padding: 18px 20px;
  background: var(--color-brand-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #fff;
}

.btn-close-drawer {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #cbd5e1;
  cursor: pointer;
  padding: 4px 8px;
}

.drawer-body {
  padding: 20px;
  flex-grow: 1;
  overflow-y: auto;
}

.quote-form-wrap {
  position: relative;
  border-top: 1px solid var(--color-border);
  padding-top: 18px;
  margin-top: 18px;
}

.form-locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(2px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  border-radius: var(--radius-sm);
}

.form-locked-overlay span {
  font-size: 2rem;
  margin-bottom: 8px;
}

.form-locked-overlay p {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-brand-primary);
}

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

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.btn-whatsapp-send {
  width: 100%;
  background: #25d366;
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE FIRST COMPREHENSIVE SYSTEM)
   ========================================================================== */

/* Tablets & Mobile Navigation Menu (<= 860px) */
@media (max-width: 860px) {
  :root {
    --header-height: 66px;
  }

  .nav-toggle-btn {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 2px solid var(--color-border);
    box-shadow: 0 16px 32px rgba(10, 37, 64, 0.12);
    padding: 16px 20px 24px 20px;
    flex-direction: column;
    gap: 16px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    z-index: 999;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .main-nav.mobile-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--color-bg-subtle);
    border-left-color: var(--color-brand-secondary);
  }

  .mobile-nav-cta {
    display: block;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
    width: 100%;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(10, 37, 64, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 998;
  }

  .nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Small Tablets & Large Phones (<= 640px) */
@media (max-width: 640px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100%;
  }

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

  .btn-quote-trigger {
    padding: 8px 12px;
  }

  .category-tabs {
    justify-content: flex-start;
  }

  .hero-banner-overlay {
    padding: 14px 16px;
    gap: 10px;
  }

  .banner-stat-group {
    gap: 20px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .category-card-img {
    height: clamp(170px, 48vw, 220px);
  }

  .svg-chevron-deco {
    opacity: 0.18;
  }
}

/* Small Phones (<= 420px) */
@media (max-width: 420px) {
  .logo-img {
    height: 28px;
  }

  .btn-quote-trigger {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .cart-count {
    padding: 1px 5px;
  }

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

  .btn-details,
  .btn-add-quote {
    width: 100%;
  }
}

/* ==========================================================================
   ALMOFADAS DE MESA CIRÚRGICA (Dedicated Page Styles)
   ========================================================================== */

.pad-hero-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px auto;
}

.pad-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 132, 199, 0.1);
  color: var(--color-brand-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.pad-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.pad-spec-card {
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pad-spec-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: rgba(2, 132, 199, 0.4);
}

.pad-spec-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(2, 132, 199, 0.08);
  color: var(--color-brand-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.pad-spec-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-brand-primary);
  margin-bottom: 8px;
}

.pad-spec-card p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.pad-highlight-box {
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.03) 0%, rgba(2, 132, 199, 0.06) 100%);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: var(--radius-md);
  padding: 36px;
  margin: 40px 0;
}

.pad-guarantee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.pad-guarantee-card {
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
}

.pad-guarantee-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-brand-primary);
  margin-bottom: 4px;
}

.pad-guarantee-card span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

