/* ==========================================================================
   VISCOMED DESIGN SYSTEM & STYLES (Refactored Minimalist Design)
   ========================================================================== */

@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 (Matching Ficha Técnica Button) */
  --max-width: 1280px;
  --header-height: 80px;
  --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 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Toast Notification for Empty Cart */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-brand-primary);
  color: #fff;
  padding: 14px 24px;
  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(100px);
  opacity: 0;
  transition: var(--transition-normal);
}

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

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

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

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

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

.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 8px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   HERO SECTION (Full Useful Width Container Image)
   ========================================================================== */

.hero-section {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 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.75rem, 2.6vw, 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: 1.05rem;
  color: var(--color-text-muted);
  max-width: 880px;
  margin: 0 auto 20px auto;
  font-weight: 400;
  line-height: 1.6;
}

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

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

.hero-banner-full img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.hero-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 37, 64, 0.9), transparent);
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  flex-wrap: wrap;
  gap: 20px;
}

.banner-stat-group {
  display: flex;
  gap: 40px;
}

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

.banner-stat span {
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* ==========================================================================
   ABSTRACT VECTOR DECORATIONS (SUBTLE BACKGROUND CURVES & LINES)
   ========================================================================== */

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

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

/* ==========================================================================
   BUTTONS (UNIFORM RADIUS)
   ========================================================================== */

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

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

.btn-secondary {
  background: #fff;
  color: var(--color-brand-primary);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: var(--transition-fast);
}

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

/* ==========================================================================
   CATEGORY CARDS (HOMEPAGE) & CATALOG GRID
   ========================================================================== */

.categories-section {
  padding: 90px 0;
  background: #ffffff;
  border: none;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  margin-top: 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(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-brand-accent);
}

.category-card-img {
  height: 240px;
  object-fit: cover;
  width: 100%;
}

.category-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-brand-primary);
  margin-bottom: 12px;
}

.category-card-body p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* Products Grid in catalogo.html */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.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: 220px;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
}

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

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

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

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

.product-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-brand-primary);
  margin-bottom: 8px;
}

.product-short-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

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

.btn-details {
  flex: 1;
  background: var(--color-bg-subtle);
  color: var(--color-brand-primary);
  border: 1px solid var(--color-border);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
}

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

.btn-add-quote {
  background: var(--color-brand-secondary);
  color: #fff;
  border: none;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

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

dialog.product-modal {
  border: none;
  border-radius: var(--radius-md);
  padding: 0;
  max-width: 720px;
  width: 92%;
  max-height: 88vh;
  margin: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  background: #fff;
  scroll-behavior: smooth;
}

dialog.product-modal::-webkit-scrollbar {
  width: 8px;
}

dialog.product-modal::-webkit-scrollbar-track {
  background: #f1f5f9;
}

dialog.product-modal::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

dialog.product-modal::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
}

.modal-single-column {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

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

.modal-close-btn {
  background: var(--color-bg-subtle);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2rem;
}

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

.carousel-main-display {
  min-height: 240px;
  max-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 12px;
}

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

.carousel-main-display iframe {
  width: 100%;
  height: 300px;
  border: none;
}

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

.thumb-item {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  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: 16px 0;
  border-collapse: collapse;
  font-size: 0.88rem;
}

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

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

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

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

.tech-section {
  padding: 95px 0;
  background: #f1f5f9;
  border: none;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.tech-card {
  background: #ffffff;
  padding: 36px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: var(--transition-normal);
}

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

.tech-icon-wrap {
  width: 52px;
  height: 52px;
  background: rgba(0, 180, 216, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.tech-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-brand-primary);
  margin-bottom: 12px;
}

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

/* ==========================================================================
   QUOTE DRAWER & EMPTY STATE OVERLAY
   ========================================================================== */

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.quote-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 100%;
  max-width: 460px;
  height: 100%;
  background: #fff;
  z-index: 2001;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.drawer-overlay.open .quote-drawer {
  right: 0;
}

.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-bg-main);
}

.drawer-header h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-brand-primary);
}

.btn-close-drawer {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

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

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

/* Locked Form Overlay when Cart is Empty */
.form-locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(3px);
  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: 2.2rem;
  margin-bottom: 8px;
}

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

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  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: 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .banner-stat-group {
    flex-direction: column;
    gap: 12px;
  }
}
