/* ============================================
   Nicometal Brasil - HTML/CSS/JS/PHP Version
   Base Styles
   ============================================ */

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

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

:root {
  --primary: #191e4c;
  --primary-light: #2a3070;
  --foreground: #191e4c;
  --background: #f8f9fb;
  --card: #ffffff;
  --secondary: #eef1f6;
  --muted: #ebeef3;
  --muted-foreground: #64748b;
  --border: #dde2ea;
  --accent: #191e4c;
  --success: #25D366;
  --gray-icon: #646464;
  --shadow-soft: 0 4px 20px -4px rgba(25, 30, 76, 0.15);
  --shadow-elevated: 0 12px 40px -8px rgba(25, 30, 76, 0.25);
  --radius: 0.75rem;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  word-wrap: break-word;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

ul, ol { list-style: none; }

/* Container */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* Section Padding */
.section-padding {
  padding: 3rem 0;
}
@media (min-width: 768px) { .section-padding { padding: 5rem 0; } }
@media (min-width: 1024px) { .section-padding { padding: 7rem 0; } }

/* =====================
   Buttons
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  white-space: nowrap;
}
.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}
.btn-xl {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}
.btn-whatsapp {
  background-color: var(--success);
  color: #fff;
}
.btn-whatsapp:hover {
  background-color: #1fb855;
  transform: translateY(-1px);
}
.btn-primary {
  background-color: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--primary-light);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--foreground);
}
.btn-outline:hover {
  background: var(--secondary);
}
.btn-full { width: 100%; }

/* =====================
   Header
   ===================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s;
  padding: 1rem 0;
}
.header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  padding: 0.5rem 0;
}
.header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header .logo img {
  height: 82px;
  width: auto;
  transition: all 0.3s;
}
.header.scrolled .logo img {
  height: 44px;
  filter: brightness(0);
}

/* Desktop Nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 1024px) { .nav-desktop { display: flex; } }

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.9);
  transition: all 0.3s;
  cursor: pointer;
  background: none;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.1); }
.header.scrolled .nav-link { color: var(--foreground); }
.header.scrolled .nav-link:hover { background: var(--secondary); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 50;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}
.dropdown-content {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-elevated);
  border: 1px solid #e5e7eb;
  padding: 0.5rem;
  min-width: 12rem;
}
.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  color: #1f2937;
  font-weight: 500;
  font-size: 0.875rem;
  transition: background 0.2s;
}
.dropdown-item:hover { background: #f3f4f6; }

/* Phone dropdown */
.phone-dropdown-content {
  min-width: 14rem;
  right: 0;
  left: auto;
}
.phone-dropdown-content .dropdown-menu {
  right: 0;
  left: auto;
}
.phone-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  transition: background 0.2s;
}
.phone-item:hover { background: #f3f4f6; }
.phone-label { font-size: 0.75rem; color: var(--muted-foreground); }
.phone-number { font-weight: 500; color: #1f2937; }

/* Header CTA */
.header-cta {
  display: none;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 1024px) { .header-cta { display: flex; } }

/* Mobile Menu */
.mobile-toggle {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
}
.header.scrolled .mobile-toggle { color: var(--foreground); }
@media (min-width: 1024px) { .mobile-toggle { display: none; } }

.mobile-menu {
  display: none;
  background: var(--card);
  border-top: 1px solid var(--border);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 1rem;
}
.mobile-menu.open { display: block; }
.mobile-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  color: var(--foreground);
  transition: background 0.2s;
}
.mobile-link:hover { background: var(--secondary); }
.mobile-sub-link {
  display: block;
  padding: 0.5rem 1rem 0.5rem 2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  border-radius: 0.5rem;
  transition: background 0.2s;
}
.mobile-sub-link:hover { background: var(--secondary); }

/* Light background pages header */
.header.light-bg .nav-link { color: var(--foreground); }
.header.light-bg .nav-link:hover { background: var(--secondary); }
.header.light-bg .mobile-toggle { color: var(--foreground); }
.header.light-bg .logo img { filter: brightness(0); }

/* =====================
   Hero Section
   ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(25,30,76,0.95), rgba(25,30,76,0.80), rgba(25,30,76,0.60));
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
}
.hero-pattern div {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 6rem;
  padding-bottom: 3rem;
}
@media (min-width: 768px) { .hero-content { padding-top: 8rem; padding-bottom: 4rem; } }
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  margin-top: 2rem;
}
@media (min-width: 768px) { .hero-badge { margin-top: 0; } }
.hero-badge .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}
.hero-badge span {
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  font-weight: 500;
}
@media (min-width: 640px) { .hero-badge span { font-size: 0.875rem; } }

.hero h1 {
  font-size: 1.875rem;
  color: #fff;
  line-height: 1.1;
}
@media (min-width: 640px) { .hero h1 { font-size: 2.25rem; } }
@media (min-width: 768px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  max-width: 36rem;
}
@media (min-width: 768px) { .hero-desc { font-size: 1.125rem; } }

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-benefit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.875rem;
}
.hero-benefit svg { width: 1rem; height: 1rem; flex-shrink: 0; }
@media (min-width: 768px) {
  .hero-benefits { gap: 1rem; }
  .hero-benefit { font-size: 1rem; }
  .hero-benefit svg { width: 1.25rem; height: 1.25rem; }
}

.hero-phones {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.75rem;
}
@media (min-width: 640px) {
  .hero-phones { flex-direction: row; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; }
}
.hero-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  transition: color 0.3s;
}
.hero-phone:hover { color: rgba(255,255,255,0.8); }
.hero-phone svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* Lead Form */
.lead-form-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-elevated);
  width: 100%;
  max-width: 28rem;
}
@media (min-width: 1024px) { .lead-form-card { justify-self: end; } }
.lead-form-card h3 {
  font-size: 1.25rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}
.lead-form-card .form-desc {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-input, .form-select {
  width: 100%;
  height: 3rem;
  padding: 0 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus {
  border-color: var(--primary);
}
.form-privacy {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
  margin-top: 1rem;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}
.scroll-pill {
  width: 1.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.5rem;
}
.scroll-dot {
  width: 0.375rem;
  height: 0.75rem;
  background: rgba(255,255,255,0.5);
  border-radius: 9999px;
  animation: pulse 2s infinite;
}

/* =====================
   Products Section
   ===================== */
.products-section {
  background: var(--secondary);
}
.section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 1024px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3rem;
  }
}
.section-label {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
@media (min-width: 640px) { .section-label { font-size: 0.875rem; } }
.section-title {
  font-size: 1.5rem;
  color: var(--foreground);
  margin-top: 0.5rem;
}
@media (min-width: 640px) { .section-title { font-size: 1.875rem; } }
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }
.section-desc {
  color: var(--muted-foreground);
  font-size: 1rem;
  margin-top: 0.5rem;
  max-width: 42rem;
}
@media (min-width: 768px) { .section-desc { font-size: 1.125rem; } }

/* Product Cards Carousel */
.products-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: none;
}
.products-carousel::-webkit-scrollbar { display: none; }
.product-card {
  flex: 0 0 85%;
  scroll-snap-align: start;
  background: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-elevated); }
@media (min-width: 640px) {
  .product-card {
    flex: 0 0 48%;
    flex-direction: row;
  }
}
.product-card-img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  background: var(--muted);
  transition: transform 0.3s;
}
@media (min-width: 640px) {
  .product-card-img { width: 12rem; height: auto; min-height: 12rem; }
}
.product-card:hover .product-card-img { transform: scale(1.1); }
.product-card-img-wrap {
  overflow: hidden;
  flex-shrink: 0;
}
@media (min-width: 640px) { .product-card-img-wrap { width: 12rem; } }
.product-card-body {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card-subtitle {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}
.product-card-title {
  font-size: 1.25rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}
@media (min-width: 768px) { .product-card-title { font-size: 1.5rem; } }
.product-card:hover .product-card-title { color: var(--primary); }
.product-card-desc {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.product-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--secondary);
  color: var(--foreground);
}
.product-card-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.875rem;
  transition: gap 0.3s;
}
.product-card:hover .product-card-link { gap: 0.75rem; }
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.carousel-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.carousel-btn:hover { background: var(--secondary); }

/* =====================
   Segments Section
   ===================== */
.segments-section { background: var(--background); }
.segments-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .segments-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .segments-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
@media (min-width: 768px) { .segments-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .segments-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.segment-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.segment-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-0.5rem);
}
.segment-icon {
  width: 3rem;
  height: 3rem;
  background: var(--gray-icon);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.segment-icon svg, .segment-icon img {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
}
@media (min-width: 768px) {
  .segment-icon { width: 3.5rem; height: 3.5rem; }
  .segment-icon svg, .segment-icon img { width: 1.75rem; height: 1.75rem; }
}
.segment-title {
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.segment-desc {
  font-size: 0.875rem;
  color: rgba(25,30,76,0.8);
  line-height: 1.6;
}

/* =====================
   Clients Section
   ===================== */
.clients-section { background: var(--muted); padding: 4rem 0; }
.clients-header { text-align: center; margin-bottom: 2.5rem; }
.clients-header h3 {
  font-size: 1.25rem;
  color: var(--foreground);
}
.clients-header p {
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}
.clients-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
@media (min-width: 768px) { .clients-logos { gap: 4rem; } }
.client-logo {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s;
}
@media (min-width: 768px) { .client-logo { height: 3rem; } }
.client-logo:hover {
  filter: grayscale(0);
  opacity: 1;
}
.stats-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) { .stats-bar { grid-template-columns: repeat(4, 1fr); } }
.stat-item { text-align: center; padding: 1.5rem; }
.stat-item svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary);
  margin: 0 auto 1rem;
  display: block;
}
.stat-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

/* =====================
   Blog Section
   ===================== */
.blog-section { background: var(--background); }
.blog-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card {
  background: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-elevated); }
.blog-card-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.blog-card:hover .blog-card-img { transform: scale(1.05); }
.blog-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--primary);
  color: #fff;
}
.blog-card-body { padding: 1.5rem; }
.blog-card-title {
  font-size: 1.125rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}
.blog-card:hover .blog-card-title { color: var(--primary); }
.blog-card-excerpt {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1rem;
}
.blog-tag {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  background: var(--secondary);
  color: var(--foreground);
}
.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.blog-meta-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.blog-read-more {
  color: var(--primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.blog-read-more:hover { text-decoration: underline; }

/* Section Header Centered (for product pages) */
.section-header-center {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 2rem;
}
@media (min-width: 768px) { .section-header-center { margin-bottom: 3rem; } }
.section-header-center .section-label {
  display: block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
@media (min-width: 640px) { .section-header-center .section-label { font-size: 0.875rem; } }
.section-header-center h2 {
  font-size: 1.75rem;
  color: var(--foreground);
  margin-top: 0.75rem;
}
@media (min-width: 768px) { .section-header-center h2 { font-size: 2.25rem; } }
.section-header-center p {
  color: var(--muted-foreground);
  font-size: 1rem;
  margin-top: 0.75rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-content {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 28rem;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-elevated);
}
.modal-content h3 {
  font-size: 1.25rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}
.modal-content .modal-desc {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--muted-foreground);
  line-height: 1;
}
.modal-close:hover { color: var(--foreground); }

/* Blog Post Article Styles */
.blog-post-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}
@media (min-width: 768px) { .blog-post-content h2 { font-size: 1.875rem; } }
.blog-post-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}
.blog-post-content p {
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.blog-post-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
}
.blog-post-content ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.blog-post-content strong { color: var(--foreground); }
.blog-post-content a { color: var(--primary); font-weight: 500; }
.blog-post-content a:hover { text-decoration: underline; }
.highlight-box {
  background: rgba(25,30,76,0.05);
  border: 1px solid rgba(25,30,76,0.15);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}
.highlight-box h4, .content-box h4, .content-box h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}
.content-box {
  background: var(--secondary);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}
.warning-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}
.warning-box h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}
.blog-post-excerpt {
  font-size: 1.25rem;
  color: var(--foreground);
  font-weight: 500;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}
.blog-post-tags {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.blog-post-cta {
  margin-top: 3rem;
  background: var(--primary);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
}
.blog-post-cta h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.blog-post-cta p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

/* CTA Complementar */
.cta-complementar {
  margin-top: 2.5rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* =====================
   Footer
   ===================== */
.footer { background: var(--primary); color: #fff; }
.footer-cta {
  background: var(--secondary);
  padding: 3rem 0;
  text-align: center;
}
.footer-cta h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .footer-cta h3 { font-size: 1.875rem; } }
.footer-cta p {
  color: rgba(25,30,76,0.8);
  margin-bottom: 1.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.footer-main { padding: 4rem 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.footer-logo { height: 77px; width: auto; margin-bottom: 1rem; }
@media (min-width: 768px) { .footer-logo { height: 98px; } }
.footer-desc {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  color: #fff;
}
.footer-social a:hover { background: var(--accent); }
.footer h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  transition: color 0.3s;
}
.footer-links a:hover { color: #9ca3af; }

.footer-contact { display: flex; flex-direction: column; gap: 1rem; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(255,255,255,0.8);
}
.footer-contact-item svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--primary);
}
.footer-contact-label {
  font-weight: 500;
  color: #fff;
}
.footer-contact-value {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s;
}
.footer-contact-value:hover { color: #9ca3af; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0 1.5rem;
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}
@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    font-size: 0.875rem;
    padding: 0.5rem 0;
  }
}
.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
@media (min-width: 768px) { .footer-bottom-links { gap: 1.5rem; } }
.footer-bottom-links a { color: rgba(255,255,255,0.6); transition: color 0.3s; }
.footer-bottom-links a:hover { color: #9ca3af; }

/* =====================
   WhatsApp Float Button
   ===================== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37,211,102,0.4);
  transition: transform 0.3s;
  color: #fff;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 1.75rem; height: 1.75rem; }

/* =====================
   Animations
   ===================== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-25%); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp 0.6s ease-out forwards; }

/* =====================
   SVG Icons inline
   ===================== */
.icon { display: inline-block; vertical-align: middle; }

/* =====================
   Product Pages
   ===================== */
.product-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary), #334155);
  overflow: hidden;
}
.product-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  padding-top: 8rem;
  padding-bottom: 4rem;
}
@media (min-width: 1024px) {
  .product-hero-inner { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.product-hero-text h1 {
  font-size: 2.25rem;
  color: #fff;
  line-height: 1.1;
}
@media (min-width: 768px) { .product-hero-text h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .product-hero-text h1 { font-size: 3.75rem; } }
.product-hero-text h1 span {
  display: block;
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  margin-top: 0.5rem;
}
@media (min-width: 768px) { .product-hero-text h1 span { font-size: 1.75rem; } }
.product-hero-text p {
  color: rgba(255,255,255,0.8);
  font-size: 1.125rem;
  max-width: 36rem;
  margin-top: 1.5rem;
}
.product-hero-image {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.product-hero-image img {
  max-height: 400px;
  width: auto;
  border-radius: 1rem;
  box-shadow: var(--shadow-elevated);
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}
.hero-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.hero-phones a {
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  transition: color 0.3s;
}
.hero-phones a:hover { color: #fff; }
.btn-outline-light {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
}
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

/* Key Features */
.key-features {
  padding: 3rem 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.features-grid {
  display: grid;
  gap: 1.5rem;
}
.features-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.features-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .features-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
}
.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}
.feature-icon.bg-gray { background: var(--gray-icon); color: #fff; }
.feature-icon.bg-blue { background: var(--primary); color: #fff; }
.feature-item strong { display: block; color: var(--foreground); }
.feature-item span { font-size: 0.8125rem; color: var(--muted-foreground); }

/* Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 1024px) { .specs-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.specs-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}
.specs-card h3 {
  font-size: 1.5rem;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  text-align: center;
}
.specs-table {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--muted);
  border-radius: 0.5rem;
  gap: 1rem;
}
.spec-row span { color: var(--muted-foreground); font-weight: 500; }
.spec-row strong { color: var(--foreground); }
.specs-note {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  text-align: center;
  margin-bottom: 1rem;
}

/* Info Cards */
.info-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.info-card {
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
}
.info-card.blue {
  background: linear-gradient(135deg, var(--primary), rgba(25,30,76,0.8));
  color: #fff;
}
.info-value { font-size: 1.875rem; font-weight: 700; }
.info-label { font-size: 0.8125rem; opacity: 0.8; margin-top: 0.25rem; }

/* Tab Buttons */
.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.tab-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--foreground);
  transition: all 0.3s;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Colors Grid */
.colors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .colors-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .colors-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .colors-grid { grid-template-columns: repeat(6, 1fr); } }
.color-swatch {
  background: var(--card);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: all 0.3s;
}
.color-swatch:hover { box-shadow: var(--shadow-elevated); }
.color-block { height: 5rem; transition: transform 0.3s; }
.color-swatch:hover .color-block { transform: scale(1.05); }
.color-name { font-weight: 500; font-size: 0.8125rem; text-align: center; padding: 0.5rem 0.25rem 0; color: var(--foreground); }
.color-code { font-size: 0.75rem; text-align: center; padding-bottom: 0.5rem; color: var(--muted-foreground); }
.disclaimer-text {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 1.5rem;
  font-style: italic;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) { .benefits-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .benefits-grid { grid-template-columns: repeat(4, 1fr); } }
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--secondary);
  border-radius: 0.75rem;
  font-weight: 500;
  color: var(--foreground);
}
.benefit-check {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgba(25, 30, 76, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Product Scroll Cards */
.product-cards-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #191e4c #e2e8f0;
}
.product-cards-scroll::-webkit-scrollbar { height: 8px; }
.product-cards-scroll::-webkit-scrollbar-track { background: #e2e8f0; border-radius: 4px; }
.product-cards-scroll::-webkit-scrollbar-thumb { background: #191e4c; border-radius: 4px; }
.product-cards-scroll::-webkit-scrollbar-thumb:hover { background: #2a3a6c; }
/* Scroll navigation arrows */
.scroll-nav { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; margin-top: 0.75rem; }
.scroll-nav button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.scroll-nav button:hover { background: #191e4c; color: white; border-color: #191e4c; }
.scroll-nav button:hover svg { stroke: white; }
.product-scroll-card {
  flex-shrink: 0;
  width: 280px;
  background: var(--muted);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: all 0.3s;
}
@media (min-width: 768px) { .product-scroll-card { width: 320px; } }
.product-scroll-card:hover { border-color: rgba(25,30,76,0.3); box-shadow: var(--shadow-soft); }
.scroll-card-specs { display: flex; flex-direction: column; gap: 0.75rem; margin: 1rem 0; }
.scroll-card-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  background: rgba(255,255,255,0.5);
  border-radius: 0.75rem;
}
.scroll-card-row span { font-size: 0.875rem; color: var(--muted-foreground); }
.scroll-card-row strong { color: var(--foreground); }

/* Badges */
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.badge-accent { background: rgba(25,30,76,0.1); color: var(--primary); border: 1px solid rgba(25,30,76,0.2); }
.badge-muted { background: rgba(100,116,139,0.1); color: var(--muted-foreground); border: 1px solid rgba(100,116,139,0.2); }

/* Backgrounds */
.bg-light { background: var(--muted); }
.text-center { text-align: center; }

/* Section Header centered */
.section-header h2 {
  font-size: 1.75rem;
  color: var(--foreground);
  margin-top: 0.5rem;
}
@media (min-width: 768px) { .section-header h2 { font-size: 2.25rem; } }

/* Primer description */
.primer-description {
  color: var(--muted-foreground);
  line-height: 1.8;
}
.primer-description p {
  margin-bottom: 1.25rem;
}
.primer-description strong {
  color: var(--foreground);
}

/* Products Listing Grid */
.products-listing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .products-listing-grid { grid-template-columns: 1fr 1fr; } }
.product-listing-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem 2.5rem;
  transition: all 0.3s;
}
.product-listing-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-0.5rem);
}
.product-listing-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.product-listing-icon {
  width: 4rem;
  height: 4rem;
  background: var(--gray-icon);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-listing-icon img { width: 2rem; height: 2rem; object-fit: contain; }
.arrow-icon {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s;
}
.product-listing-card:hover .arrow-icon { transform: translateX(0.5rem); }
.product-listing-card h2 { font-size: 1.5rem; color: var(--primary); margin-bottom: 0.25rem; }
.product-listing-subtitle { font-size: 0.875rem; color: var(--primary); font-weight: 500; margin-bottom: 0.75rem; }
.product-listing-desc { color: var(--muted-foreground); font-size: 0.875rem; margin-bottom: 1rem; line-height: 1.6; }
.product-listing-features { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.feature-tag {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  background: var(--gray-icon);
  color: #fff;
}

/* Responsive fixes */
@media (max-width: 767px) {
  .specs-grid { grid-template-columns: 1fr; }
  .features-grid.cols-3 { grid-template-columns: 1fr; }
  .segments-grid { grid-template-columns: 1fr; }
  .info-cards-grid { grid-template-columns: 1fr 1fr; }
}
