/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary:      #e61c24;
  --primary-dark: #c4161e;
  --accent:       #ffd000;
  --accent-dark:  #e6ba00;
  --dark:         #0d1b2a;
  --gray:         #5a6a7a;
  --border:       #e8d0d0;
  --light:        #fdf2f2;
  --white:        #ffffff;
  --whatsapp:     #25d366;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ========== HEADER / NAV ========== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  border-bottom: none;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: white;
  white-space: nowrap;
}
.logo img { height: 38px; border-radius: 8px; }
.nav-inner .logo { font-size: 1.1rem; }
.nav-inner .logo img { height: 56px; }
nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  transition: background .2s, color .2s;
}
nav a:hover, nav a.active { background: rgba(255,255,255,.15); color: white; }
nav a.active { font-weight: 700; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-whatsapp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--whatsapp);
  color: white;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity .2s;
}
.btn-whatsapp-header:hover { opacity: .9; }
.social-links { display: flex; gap: 8px; }
.social-links a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}
.social-links a:hover { background: rgba(255,255,255,.15); border-color: white; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; }

/* ========== MOBILE MENU ========== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
}
.mobile-menu.open { display: block; }
.mobile-menu-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: white;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 12px;
}
.mobile-menu-panel a {
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 500;
  transition: background .2s;
}
.mobile-menu-panel a:hover { background: var(--light); }

/* ========== HERO ========== */
.hero {
  color: white;
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-content { position: relative; max-width: 760px; margin: 0 auto; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  opacity: .9;
  margin-bottom: 36px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.stat { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: .8rem; opacity: .8; margin-top: 4px; }

/* ========== ACCENT YELLOW HIGHLIGHTS ========== */
.hero-badge { background: rgba(255,208,0,.2); border-color: rgba(255,208,0,.5); }
.stat-number { color: var(--accent); }
.catalog-group-title { border-color: var(--accent); }
.catalog-group-title span { background: var(--accent); color: var(--dark); }

/* ========== BUTTONS ========== */
.btn-primary {
  background: var(--accent);
  color: var(--dark);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .2s, box-shadow .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,208,0,.4); background: var(--accent-dark); }
.btn-outline {
  border: 2px solid rgba(255,255,255,.6);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, border-color .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: white; }
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: white;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 700;
  transition: opacity .2s;
}
.btn-wa:hover { opacity: .9; }
.btn-wa-big {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--dark);
  padding: 16px 36px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  transition: transform .2s, box-shadow .2s;
}
.btn-wa-big:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,208,0,.4); background: var(--accent-dark); }

/* ========== SECTION HEADER ========== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}
.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.section-header p { color: var(--gray); font-size: .95rem; }

/* ========== PRODUCT CARDS ========== */
.products { padding: 80px 24px; background: var(--light); }
.products-inner { max-width: 1200px; margin: 0 auto; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 4px solid var(--primary);
  box-shadow: 0 0 0 4px var(--accent), 0 4px 16px rgba(230,28,36,.12);
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(230,28,36,.15); }
.product-img {
  height: 220px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 24px;
}
.product-img img { width: 100%; height: 100%; object-fit: contain; }
.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--primary);
  color: white;
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}
.product-info { padding: 18px; }
.product-info h3 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.product-info p { font-size: .82rem; color: var(--gray); margin-bottom: 14px; }
.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: .82rem;
  font-weight: 600;
  transition: gap .2s;
}
.product-cta:hover { gap: 12px; }

/* ========== STATS SECTION ========== */
.stats-section {
  background: var(--primary);
  padding: 56px 24px;
}
.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.stats-item { color: white; }
.stats-number {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}
.stats-label {
  font-size: .95rem;
  opacity: .9;
  margin-top: 8px;
}
@media (max-width: 600px) {
  .stats-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ========== ABOUT SECTION ========== */
.about { padding: 80px 24px; background: var(--white); }
.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  align-items: center;
}
.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.25; margin-bottom: 16px; }
.about-text p { color: var(--gray); margin-bottom: 14px; font-size: .95rem; }
.about-img { background: transparent; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.about-img img { width: 55%; height: auto; display: block; margin: 0 auto; }
.about-features-row {
  max-width: 1200px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-card { background: var(--light); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.feature-icon { width: 40px; height: 40px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.feature-card h4 { font-size: .9rem; font-weight: 700; }
.feature-card p { font-size: .8rem; color: var(--gray); }
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-features-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .about-features-row { grid-template-columns: 1fr 1fr; }
}

/* ========== SERVICES ========== */
.services { padding: 80px 24px; background: var(--white); }
.services-inner { max-width: 1200px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.service-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.service-card:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(230,28,36,.12); }
.service-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary), #f55b5b);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}
.service-icon img { height: 48px; object-fit: contain; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: .88rem; color: var(--gray); margin-bottom: 20px; }
.btn-service { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: .85rem; font-weight: 600; }

/* ========== CTA BANNER ========== */
.cta-banner { color: white; padding: 72px 24px; text-align: center; }
.cta-banner-inner { max-width: 700px; margin: 0 auto; }
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 16px; }
.cta-banner p { opacity: .9; margin-bottom: 32px; font-size: .95rem; }

/* ========== PAGE HERO (subpages) ========== */
.page-hero {
  background: linear-gradient(135deg, rgba(160,10,15,.92) 0%, rgba(230,28,36,.92) 100%), var(--light);
  color: white;
  padding: 90px 24px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: 14px; }
.page-hero p { font-size: clamp(.9rem, 2vw, 1.1rem); opacity: .9; max-width: 600px; margin: 0 auto 28px; }

/* ========== CONTENT SECTIONS ========== */
.content-section { padding: 80px 24px; }
.content-inner { max-width: 1200px; margin: 0 auto; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }
.content-text .section-label { display: block; margin-bottom: 10px; }
.content-text h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 14px; }
.content-text p { color: var(--gray); margin-bottom: 14px; font-size: .95rem; }
.content-img { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.1); }
.content-img img { width: 100%; height: 400px; object-fit: cover; }

/* ========== GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }

/* ========== FOOTER ========== */
footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 60px 24px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { color: white; margin-bottom: 14px; }
.footer-brand p { font-size: .85rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: white; font-size: .9rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: .85rem; transition: color .2s; }
.footer-col ul li a:hover { color: white; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-item { display: flex; align-items: center; gap: 10px; font-size: .85rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .8rem; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); }

/* ========== WHATSAPP FLUTUANTE ========== */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
  transition: transform .25s, box-shadow .25s;
  animation: wa-pulse 2.5s infinite;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37,211,102,.6);
  animation: none;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float-tooltip {
  position: absolute;
  right: 72px;
  background: var(--dark);
  color: white;
  font-size: .8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.wa-float-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: var(--dark);
}
.wa-float:hover .wa-float-tooltip { opacity: 1; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,.5); }
  50%       { box-shadow: 0 6px 32px rgba(37,211,102,.8), 0 0 0 10px rgba(37,211,102,.1); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .content-grid { grid-template-columns: 1fr; gap: 32px; }
  .content-grid.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  nav, .social-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .btn-whatsapp-header span { display: none; }
  .hero { padding: 56px 20px; }
  .products, .services, .about, .content-section { padding: 56px 20px; }
}

/* ========== PRODUCT DETAIL PAGE ========== */
.product-detail-hero {
  position: relative;
  min-height: 320px;
  background: var(--dark);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.product-detail-hero img.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .35;
}
.product-detail-hero .hero-content {
  position: relative; z-index: 1;
  width: 100%; max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 48px;
}
.product-detail-hero .breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .85rem; color: rgba(255,255,255,.7);
  margin-bottom: 12px;
}
.product-detail-hero .breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.product-detail-hero .breadcrumb a:hover { color: var(--accent); }
.product-detail-hero .breadcrumb span { color: rgba(255,255,255,.4); }
.product-detail-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}
.product-detail-hero .category-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.product-detail-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 40px;
}
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.product-detail-gallery {
  display: grid;
  gap: 12px;
}
.product-detail-gallery .main-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.product-detail-gallery .extra-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.product-detail-gallery .extra-photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .2s, opacity .2s;
  border: 2px solid transparent;
}
.product-detail-gallery .extra-photos img:hover,
.product-detail-gallery .extra-photos img.active {
  border-color: var(--primary);
  transform: scale(1.04);
}

.product-detail-info { display: flex; flex-direction: column; gap: 28px; }
.product-detail-info h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}
.product-detail-info .description {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.75;
}
.product-specs {
  background: var(--light);
  border-radius: 12px;
  padding: 20px 24px;
}
.product-specs h4 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  margin-bottom: 14px;
}
.product-specs table { width: 100%; border-collapse: collapse; }
.product-specs td {
  padding: 7px 0;
  font-size: .9rem;
  border-bottom: 1px solid var(--border);
}
.product-specs td:first-child { color: var(--gray); width: 50%; }
.product-specs td:last-child { font-weight: 600; color: var(--dark); }
.product-specs tr:last-child td { border-bottom: none; }

.product-detail-cta { display: flex; flex-direction: column; gap: 12px; }
.btn-orcamento {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--whatsapp);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 16px rgba(37,211,102,.3);
}
.btn-orcamento:hover { background: #1fb55a; transform: translateY(-2px); }
.btn-orcamento svg { flex-shrink: 0; }
.btn-orcamento-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: all .2s;
}
.btn-orcamento-secondary:hover { background: var(--primary); color: #fff; }

.related-products { background: var(--light); padding: 64px 40px; }
.related-products .section-header { max-width: 1200px; margin: 0 auto 40px; }
.related-products h2 { font-size: 1.8rem; font-weight: 800; color: var(--dark); }
.related-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* Gallery lightbox effect */
.product-detail-gallery .main-photo { cursor: zoom-in; }

@media (max-width: 900px) {
  .product-detail-layout { grid-template-columns: 1fr; gap: 40px; }
  .product-detail-hero h1 { font-size: 2rem; }
  .product-detail-section { padding: 48px 20px; }
  .related-grid { grid-template-columns: repeat(2,1fr); }
  .related-products { padding: 48px 20px; }
}
@media (max-width: 600px) {
  .product-detail-hero .hero-content { padding: 28px 20px 36px; }
  .product-detail-hero h1 { font-size: 1.6rem; }
  .product-detail-gallery .extra-photos { grid-template-columns: repeat(3,1fr); }
  .related-grid { grid-template-columns: repeat(2,1fr); gap: 16px; }
}
