/* ==========================================================================
   MAZBAR GROUP — Estilos
   ========================================================================== */

:root {
  --purple-950: #241238;
  --purple-900: #2e1657;
  --purple-800: #3a1c72;
  --purple-700: #4c249a;
  --purple-600: #5f2fc2;
  --purple-500: #7440d6;
  --purple-400: #9563e6;
  --purple-300: #b795ef;
  --purple-100: #ede4fb;
  --ink: #1c1526;
  --ink-soft: #574f66;
  --paper: #ffffff;
  --paper-tint: #f6f3fb;
  --line: #e6e0f2;
  --white: #ffffff;

  --font-display: 'Poppins', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 4px 14px rgba(46, 22, 87, 0.08);
  --shadow-md: 0 14px 34px rgba(46, 22, 87, 0.14);
  --shadow-lg: 0 26px 60px rgba(46, 22, 87, 0.22);

  --gradient-brand: linear-gradient(160deg, var(--purple-950) 0%, var(--purple-700) 55%, var(--purple-500) 100%);
  --gradient-brand-soft: linear-gradient(160deg, var(--purple-900) 0%, var(--purple-600) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-accent { color: var(--purple-300); }
.text-light { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient-brand-soft);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-md); }

.btn-light {
  background: var(--white);
  color: var(--purple-700);
  box-shadow: var(--shadow-md);
}
.btn-light:hover { box-shadow: var(--shadow-lg); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(28, 14, 51, 0.0);
  backdrop-filter: blur(0px);
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease, padding .3s ease;
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(24, 12, 46, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(20, 10, 40, 0.25);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; }
.brand-logo { height: 68px; width: auto; transition: height .3s ease; }
.site-header.scrolled .brand-logo { height: 56px; }

.main-nav ul {
  display: flex;
  gap: 30px;
}
.nav-link {
  color: var(--white);
  font-weight: 500;
  font-size: 0.96rem;
  position: relative;
  padding: 6px 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--purple-300);
  transition: width .25s ease;
}
.nav-link:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: flex; align-items: center; gap: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}
.header-phone svg { color: var(--purple-300); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 26px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Decorative corners ---------- */
.hero-decor {
  position: absolute;
  width: 90px; height: 90px;
  border: 3px solid rgba(255,255,255,.55);
  pointer-events: none;
  z-index: 1;
}
.hero-decor--tl { top: 34px; left: 24px; border-right: none; border-bottom: none; }
.hero-decor--br { bottom: 34px; right: 24px; border-left: none; border-top: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 168px 0 100px;
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 22%, rgba(184, 149, 240, .35), transparent 55%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: .03em;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  margin-bottom: .45em;
}

.hero-lead {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 46px; }

.hero-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 26px;
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.hero-stats .stat span {
  font-size: 0.85rem;
  color: rgba(255,255,255,.7);
}

.hero-media { position: relative; z-index: 2; }
.hero-media-frame {
  position: relative;
  padding-bottom: 30px;
  padding-right: 20px;
}
.hero-img--main {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/3.1;
  object-fit: cover;
}
.hero-img--sub {
  position: absolute;
  bottom: -10px;
  left: -30px;
  width: 46%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 5px solid var(--paper);
  box-shadow: var(--shadow-lg);
}

/* ---------- Sections generic ---------- */
.section { padding: 100px 0; position: relative; overflow: hidden; }
.section--light { background: var(--paper); }
.section--tint { background: var(--paper-tint); }
.section--dark {
  background: var(--gradient-brand);
  color: var(--white);
}
.section--dark p { color: rgba(255,255,255,.82); }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

.section-tag {
  display: inline-block;
  color: var(--purple-600);
  background: var(--purple-100);
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-tag--light {
  color: var(--white);
  background: rgba(255,255,255,.14);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4/3.4;
  object-fit: cover;
}
.about-content h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }

/* ---------- Certification ---------- */
.cert-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.cert-content h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); color: var(--white); }
.cert-badge {
  display: inline-block;
  font-weight: 600;
  color: var(--purple-100);
  border-left: 3px solid var(--purple-300);
  padding-left: 14px;
  margin-bottom: 18px;
}
.cert-quality {
  margin-top: 24px;
  padding: 22px 24px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-md);
}
.cert-quality h3 { color: var(--white); font-size: 1.1rem; margin-bottom: .5em; }
.cert-quality p { margin-bottom: 0; }
.cert-highlight {
  margin-top: 22px;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--white);
}
.cert-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/3.6;
  object-fit: cover;
  border: 6px solid rgba(255,255,255,.12);
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--gradient-brand-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.08rem; margin-bottom: .4em; }
.feature-card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Values / Vision ---------- */
.values-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.values-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.values-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
  margin-bottom: 40px;
}
.values-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
}
.values-list li::before {
  content: '';
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gradient-brand-soft);
  flex-shrink: 0;
}
.vision-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--purple-500);
}
.vision-box p { margin-bottom: 0; font-size: 1.02rem; }

/* ---------- Products ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 60px;
}
.product-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1/1.05;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover img { transform: scale(1.08); }
.product-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,13,54,.85) 0%, rgba(28,13,54,.15) 55%, transparent 75%);
}
.product-card h3 {
  position: absolute;
  left: 18px; bottom: 16px;
  right: 18px;
  z-index: 2;
  color: var(--white);
  font-size: 1.02rem;
  margin: 0;
}
.product-card--featured { box-shadow: 0 0 0 3px var(--purple-400), var(--shadow-md); }
.product-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 3;
  background: var(--gradient-brand-soft);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.production-strip {
  background: var(--gradient-brand-soft);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  color: var(--white);
  text-align: center;
}
.production-strip h3 { color: var(--white); }
.production-strip p { color: rgba(255,255,255,.85); max-width: 560px; margin-left: auto; margin-right: auto; }
.production-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}
.production-tags span {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
}

/* ---------- Industries ---------- */
.industries-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.industry-chip {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  transition: background .25s ease, transform .25s ease;
}
.industry-chip:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }
.industries-more {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 34px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-lead { font-size: 1.1rem; color: var(--purple-600); font-weight: 600; }
.contact-list { margin: 26px 0 30px; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.contact-list svg { width: 20px; height: 20px; color: var(--purple-500); flex-shrink: 0; }
.contact-list a:hover { color: var(--purple-600); }

.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.contact-map iframe { display: block; filter: grayscale(15%); }

.contact-form {
  background: var(--paper-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px;
}
.contact-form h3 { font-size: 1.3rem; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label {
  display: block;
  margin-bottom: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--purple-400);
  box-shadow: 0 0 0 3px rgba(116, 64, 214, .15);
}
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 14px; margin-bottom: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.9rem; font-weight: 600; margin-top: 14px; margin-bottom: 0; min-height: 1.2em; }
.form-status--ok { color: #1a8f4c; }
.form-status--error { color: #d64545; }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-950); color: rgba(255,255,255,.75); padding-top: 70px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo { height: 66px; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: 0.92rem; max-width: 300px; }
.footer-links h4, .footer-contact h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 18px;
}
.footer-links ul, .footer-contact ul { display: flex; flex-direction: column; gap: 11px; }
.footer-links a, .footer-contact a, .footer-contact li {
  color: rgba(255,255,255,.65);
  font-size: 0.92rem;
  transition: color .2s ease;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--purple-300); }

.footer-bottom { padding: 22px 0; }
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom p { margin: 0; color: inherit; }

/* ---------- Floating buttons ---------- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
  z-index: 900;
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 92px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--purple-600);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s ease;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top svg { width: 20px; height: 20px; }

/* ---------- Scroll animations ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-animate="fade-right"] { transform: translateX(-30px); }
[data-animate="fade-left"] { transform: translateX(30px); }
[data-animate].in-view {
  opacity: 1;
  transform: translate(0,0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner, .about-grid, .cert-grid, .values-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-media, .values-media { order: -1; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-phone { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(20, 10, 40, 0.97);
    backdrop-filter: blur(14px);
    padding: 10px 24px 26px;
  }
  .main-nav.open ul { flex-direction: column; gap: 4px; }
  .main-nav.open .nav-link { display: block; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }

  .hero { padding: 140px 0 70px; }
  .hero-media { margin-top: 20px; }

  .values-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 70px 0; }
  .products-grid { grid-template-columns: 1fr; gap: 14px; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { gap: 22px; }
  .production-strip { padding: 30px 22px; }
  .cert-badge { display: block; }
}
