:root {
  --primary: #10284b;
  --primary-2: #0b3a63;
  --accent: #0f5d9c;
  --azul-claro: #057ada;
  --gold: #febc64;
  --bg: #f4f7fb;
  --white: #ffffff;
  --text: #15202b;
  --muted: #627181;
  --border: rgba(12, 36, 61, 0.08);
  --shadow: 0 20px 50px rgba(6, 35, 63, 0.12);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --insta: linear-gradient(to right, #833ab4, #fd1d1d, #fcb045);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--primary);
  font-weight: 400;
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}


.header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  background: rgba(16, 40, 75, 0.92);
}

.header__main {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
}

.header__main--custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/*.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__text img {
  max-height: 72px;
  width: auto;
  display: block;
}*/

.navbar {
  width: 100%;
  overflow: visible;
}

.navbar__links {
  list-style: none;
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
  overflow: visible;
}

.navbar__links > li {
  position: relative;
  overflow: visible;
}

.navbar__links li:hover {
  color: var(--azul-claro);
}

.has-submenu {
  position: relative;
}

.submenu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.submenu-arrow {
  font-size: 0.8rem;
  transition: transform 0.25s ease;
}

.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 190px;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(6, 35, 63, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 2000;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.submenu li {
  width: 100%;
}

.submenu li a {
  display: block;
  width: 100%;
  padding: 10px 16px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

.submenu li a:hover {
  background: rgba(15, 93, 156, 0.08);
  color: var(--accent);
}

.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.has-submenu:hover .submenu-arrow {
  transform: rotate(180deg);
}


.quick-categories {
  width: 100%;
  padding: 0;
  margin: 0;
  background: var(--primary);
}

.quick-categories .section-heading {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 32px 0 20px;
}

.quick-categories .eyebrow {
  margin-bottom: 0;
  color: var(--gold);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--white);
}

.section-heading p {
  max-width: 780px;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
}

.hero-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: all 0.25s ease;
}

.hero-slider__btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.hero-slider__btn--prev {
  left: 24px;
}

.hero-slider__btn--next {
  right: 24px;
}

.hero-slider__btn i {
  font-size: 1.3rem;
  line-height: 1;
}

.hero-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  border-radius: 999px;
  background: #ffffff;
}

.mega-menu-preview,
.featured-products,
.institutional,
.contact-location,
.instagram-gallery {
  padding: 88px 0;
}

.category-card,
.product-card,
.service-card,
.mega-card,
.contact-card,
.location-card,
.highlight-box,
.parts-section__content,
.parts-section__form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.mega-card {
  padding: 28px;
}

.mega-span {
  color: var(--gold);
}

.mega-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.mega-card li {
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(10, 35, 66, 0.1);
}

/* PRODUCTS */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(6, 35, 63, 0.16);
}

.product-card__image {
  height: 220px;
  background: linear-gradient(135deg, #eff5fb, #dbe7f2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
}

.product-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(15, 93, 156, 0.08);
  width: 150px;
}

.product-card h3 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.product-card p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 16px;
}

.product-card__bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

/* SERVICES */
.services-band {
  padding: 0 0 88px;
}

.services-band__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  padding: 30px;
}

.service-card span {
  font-size: 1.8rem;
  display: inline-block;
  margin-bottom: 16px;
}

/* INSTAGRAM */
.instagram-gallery {
  background: var(--primary);
}

.instagram-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.instagram-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(12, 36, 61, 0.08);
  box-shadow: 0 20px 40px rgba(6, 35, 63, 0.10);
  background: var(--primary);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.instagram-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(6, 35, 63, 0.16);
}

.instagram-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.instagram-gallery__footer {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.instagram-gallery__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease;
}

.instagram-gallery__button:hover {
  transform: translateY(-2px);
  background: var(--accent);
}

/* INSTITUTIONAL / CONTACT */
.institutional__grid,
.contact-location__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.institutional__content p {
  color: var(--muted);
  margin-top: 14px;
  max-width: 720px;
}

.institutional__highlight {
  display: grid;
  gap: 16px;
}

.highlight-box {
  padding: 22px;
}

.highlight-box strong {
  font-size: 1.2rem;
  margin-bottom: 14px;
  display: block;
}

.highlight-box p {
  line-height: 1.7;
}

.contact-location__grid {
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
}

.contact-location__extra {
  margin-top: 24px;
}

.contact-card,
.location-card {
  padding: 30px;
  height: 100%;
}

.contact-card--full {
  width: 100%;
}

.contact-card ul,
.location-card ul {
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--muted);
  margin-top: 12px;
}

.contact-card p {
  color: var(--muted);
  margin-top: 8px;
}

/* PARTS */
.parts-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.parts-section__content,
.parts-section__form {
  padding: 30px;
}

.parts-section__content h2 {
  color: var(--primary);
  margin-bottom: 14px;
}

.parts-section__content p {
  color: var(--muted);
  margin-bottom: 14px;
}

.parts-guidelines {
  margin: 18px 0;
  padding: 18px 20px;
  background: rgba(15, 93, 156, 0.06);
  border: 1px solid rgba(15, 93, 156, 0.1);
  border-radius: 16px;
}

.parts-guidelines p {
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 700;
}

.parts-guidelines ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.parts-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
}

.parts-form {
  display: grid;
  gap: 18px;
}

.parts-form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.parts-form__group label {
  font-weight: 600;
  color: var(--primary);
}

.parts-form__group input,
.parts-form__group textarea {
  width: 100%;
  border: 1px solid rgba(12, 36, 61, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.parts-form__group input:focus,
.parts-form__group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 93, 156, 0.08);
}

.parts-form__group textarea {
  resize: vertical;
  min-height: 160px;
}

.parts-form__button {
  border: none;
  border-radius: 14px;
  background: var(--primary);
  color: var(--white);
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.parts-form__button:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

/* WHATSAPP */
.whatsapp-chatbox {
  position: fixed;
  right: 20px;
  bottom: 104px;
  width: 340px;
  max-width: calc(100vw - 24px);
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(12, 36, 61, 0.08);
  box-shadow: 0 24px 50px rgba(6, 35, 63, 0.18);
  overflow: hidden;
  z-index: 99998;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.whatsapp-chatbox.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.whatsapp-chatbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(155deg, var(--accent) 0%, var(--primary) 100%);
  color: #fff;
}

.whatsapp-chatbox__profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-chatbox__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.whatsapp-chatbox__avatar i {
  font-size: 1.05rem;
}

.whatsapp-chatbox__info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.whatsapp-chatbox__info strong {
  font-size: 0.96rem;
  font-weight: 700;
}

.whatsapp-chatbox__info span {
  margin-top: 4px;
  font-size: 0.78rem;
  opacity: 0.9;
}

.whatsapp-chatbox__close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.whatsapp-chatbox__close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.whatsapp-chatbox__body {
  padding: 16px;
  background: #f7fafc;
}

.whatsapp-chatbox__message {
  max-width: 85%;
  background: #ffffff;
  color: var(--text);
  border-radius: 16px 16px 16px 6px;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(6, 35, 63, 0.08);
  font-size: 0.92rem;
  line-height: 1.5;
}

.whatsapp-chatbox__footer {
  padding: 14px 16px 16px;
  background: #f7fafc;
}

.whatsapp-chatbox__button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease;
}

.whatsapp-chatbox__button:hover {
  transform: translateY(-1px);
  background: #1ebe5d;
}

.whatsapp-chatbox__button i {
  font-size: 1.05rem;
}

/* FOOTER */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 28px 0;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVO */
@media (max-width: 1080px) {
  .mega-grid,
  .products-grid,
  .instagram-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .institutional__grid,
  .contact-location__grid,
  .services-band__grid,
  .parts-section {
    grid-template-columns: 1fr;
  }

  .header__main--custom {
    gap: 20px;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .header__main--custom {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand__text img {
    max-height: 60px;
  }

  .navbar {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.35s ease, padding-top 0.35s ease;
  }

  .navbar.open {
    max-height: 700px;
    padding-top: 12px;
  }

  .navbar__links {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-top: 0;
  }

  .navbar__links > li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .navbar__links > li > a,
  .submenu-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
  }

  .has-submenu .submenu {
    position: static;
    min-width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0 0 0 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .has-submenu.open .submenu {
    max-height: 220px;
    padding-bottom: 10px;
  }

  .has-submenu .submenu li a {
    padding: 10px 0;
    font-size: 0.95rem;
    background: transparent;
    color: var(--white);
  }

  .has-submenu .submenu li a:hover {
    background: transparent;
    color: var(--azul-claro);
  }

  .has-submenu.open .submenu-arrow {
    transform: rotate(180deg);
  }

  .hero-slider {
    height: 400px;
  }

  .hero-slider__btn {
    width: 44px;
    height: 44px;
  }

  .quick-categories .section-heading {
    padding: 24px 0 14px;
  }

  .contact-card,
  .location-card,
  .parts-section__content,
  .parts-section__form,
  .highlight-box,
  .mega-card,
  .service-card {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, var(--container));
  }

  .mega-grid,
  .products-grid,
  .instagram-gallery__grid,
  .institutional__highlight,
  .contact-location__grid {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    height: 300px;
  }

  .hero-slider__btn {
    display: none;
  }

  .hero-slider__dots {
    bottom: 14px;
  }

  .quick-categories .section-heading {
    padding: 20px 0 12px;
  }

  .product-card__image {
    height: 200px;
  }

  .highlight-box,
  .contact-card,
  .location-card,
  .mega-card,
  .parts-section__content,
  .parts-section__form {
    padding: 22px;
  }

  .whatsapp-chatbox {
    right: 12px;
    bottom: 92px;
    width: calc(100vw - 24px);
  }

  .footer__content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .hero-slider {
    height: 240px;
  }

  .product-card__image {
    height: 180px;
  }

  .whatsapp-chatbox__message {
    max-width: 100%;
  }

  .section-heading h2 {
    font-size: 1.55rem;
  }

  .mega-card,
  .contact-card,
  .location-card,
  .parts-section__content,
  .parts-section__form,
  .highlight-box {
    padding: 18px;
  }
}