:root {
  --primary: #1f6db6;
  --primary-dark: #15508a;
  --accent: #abe1fa;
  --text: #1f2937;
  --muted: #6b7280;
  --surface: #f5f7fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(31, 109, 182, 0.12);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
}
.header__inner {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .85rem 0;
}
.header__logo img { max-height: 52px; }
.nav { margin-left: auto; width: 100%; }
.nav__links { display: flex; flex-wrap: wrap; gap: .35rem; }
.nav__link {
  padding: .55rem .9rem; border-radius: 999px;
  color: var(--primary); font-weight: 600;
}
.nav__link:hover, .nav__link.is-active {
  background: var(--primary); color: var(--white);
}
.nav__contact {
  margin-top: .75rem; padding-top: .75rem; border-top: 1px solid #e5e7eb;
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .92rem; color: var(--muted);
}
.nav__toggle {
  display: none; margin-left: auto; border: 0; background: none; cursor: pointer;
}
.nav__toggle span {
  display: block; width: 24px; height: 2px; background: var(--primary); margin: 5px 0;
}

.hero { background: var(--surface); }
.hero__slider { position: relative; overflow: hidden; }
.hero__slide { position: relative; }
.hero__slide img { width: 100%; max-height: 520px; object-fit: cover; }
.hero__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2rem; color: var(--white);
  background: linear-gradient(transparent, rgba(21,80,138,.92));
}
.hero__caption h2 { margin: 0 0 .5rem; font-size: clamp(1.4rem, 3vw, 2rem); color: #fff; }
.hero__caption p { margin: 0; max-width: 60ch; }

.section { padding: 4rem 0; }
.section--alt { background: var(--surface); }
.section--brand {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}
.section--brand h2, .section--brand .eyebrow { color: #fff; }
.section--brand .prose, .section--brand p { color: rgba(255,255,255,.92); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--primary);
  margin-bottom: .5rem;
}
.split {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: center;
}
.split--reverse { grid-template-columns: 1.2fr 1fr; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); }

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem;
}
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__link { color: inherit; display: block; height: 100%; }
.card__image { aspect-ratio: 4/3; background: #e5e7eb; overflow: hidden; }
.card__image img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1rem 1.1rem 1.25rem; }
.card__title { margin: 0 0 .35rem; font-size: 1.05rem; color: var(--primary); }
.card__lead { margin: 0; font-size: .92rem; color: var(--muted); }

.btn {
  display: inline-block; margin-top: 1rem; padding: .7rem 1.2rem;
  border-radius: 999px; background: var(--primary); color: #fff !important; font-weight: 600;
  border: 2px solid var(--primary);
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn--light { background: #fff; color: var(--primary) !important; }
.btn--outline { background: transparent; color: var(--primary) !important; }

.page { padding: 2.5rem 0 4rem; }
.page h1 { color: var(--primary); margin-top: 0; }
.lead { font-size: 1.1rem; color: var(--muted); }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 1.5rem; }
.intro { margin-bottom: 2rem; }

.detail {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; margin-bottom: 2rem;
}
.detail__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.prose p { margin: 0 0 1rem; }

.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem;
}
.gallery__item img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem;
}
.form label { display: block; margin-bottom: 1rem; font-weight: 600; }
.form input, .form textarea {
  width: 100%; margin-top: .35rem; padding: .7rem .85rem;
  border: 1px solid #d1d5db; border-radius: 10px; font: inherit;
}
.contact-info h3 { margin: 1.25rem 0 .35rem; color: var(--primary); }
.contact-info h3:first-child { margin-top: 0; }

.footer {
  background: var(--surface); border-top: 4px solid var(--primary); margin-top: 3rem;
}
.footer__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem; padding: 2.5rem 0;
}
.footer__logo { max-width: 180px; }
.footer h3 { margin: 0 0 .75rem; color: var(--primary); }
.footer__bottom {
  border-top: 1px solid #e5e7eb; padding: 1rem 0; font-size: .9rem; color: var(--muted);
}

.distribuidora-cta {
  text-align: center; max-width: 640px; margin-inline: auto;
}
.distribuidora-cta h2 { margin-top: 0; }
.distribuidora-cta p { color: var(--muted); }

.whatsapp-float {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .75rem 1.2rem .75rem .9rem;
  min-height: 48px;
  background: #25d366;
  color: #fff !important;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 6px 24px rgba(0,0,0,.28);
  transition: transform .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.34);
}
.whatsapp-float__icon {
  display: flex;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}
.whatsapp-float__icon svg { width: 100%; height: 100%; display: block; }
.whatsapp-float__label { white-space: nowrap; }

@media (max-width: 900px) {
  .split, .split--reverse, .detail, .contact-grid { grid-template-columns: 1fr; }
  .nav__toggle { display: block; }
  .nav__links, .nav__contact { display: none; }
  .nav.is-open .nav__links, .nav.is-open .nav__contact { display: flex; }
  .nav.is-open .nav__links { flex-direction: column; }
  .footer { padding-bottom: 4.5rem; }
  .whatsapp-float {
    padding: .85rem 1.35rem .85rem 1rem;
    font-size: 1.05rem;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    right: max(.85rem, env(safe-area-inset-right, 0px));
  }
  .whatsapp-float__icon { width: 30px; height: 30px; }
}
