:root {
  --bg: #e8edf2;
  --bg-soft: #f7f9fc;
  --ink: #0f1827;
  --ink-soft: #27374f;
  --brand-main: #f28b20;
  --brand-alt: #16839b;
  --white: #ffffff;
  --muted: #7f8da3;
  --border: rgba(16, 24, 39, 0.12);
  --shadow: 0 16px 35px rgba(9, 18, 34, 0.18);
  --radius: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: none !important;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 20%, #f7fbff, var(--bg));
  overflow-x: hidden;
  cursor: auto;
  scroll-snap-type: none !important;
}

main,
section {
  scroll-snap-type: none !important;
  scroll-snap-align: none !important;
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.02em;
  margin: 0 0 0.8rem;
}

p {
  margin: 0 0 1rem;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--brand-main);
}

.section-head {
  margin-bottom: 1.8rem;
}

.section-head h2 {
  font-size: clamp(1.45rem, 2vw, 2.25rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  padding: 0.8rem 1.15rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(130deg, var(--brand-main), #f06a2e);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(242, 139, 32, 0.32);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: inherit;
  background: transparent;
}

.topbar {
  --nav-drop: 0px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1200;
  background: linear-gradient(90deg, rgba(10, 18, 30, 0.84), rgba(10, 18, 30, 0.45));
  transform: translateY(var(--nav-drop));
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.topbar.is-scrolled {
  background: rgba(10, 18, 30, 0.86);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 30px rgba(6, 11, 22, 0.3);
  backdrop-filter: blur(12px);
}

.nav-container {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  margin-right: auto;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  padding: 0.35rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy span {
  font-size: 0.75rem;
  opacity: 0.82;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-links a {
  position: relative;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 0.72rem;
  border-radius: 999px;
  overflow: hidden;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 5px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-main), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s ease;
}

.nav-links a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
  background: rgba(242, 139, 32, 0.22);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.top-social {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.top-social a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.top-social a:hover {
  transform: translateY(-2px);
  background: rgba(242, 139, 32, 0.18);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  min-height: 100vh;
  padding-top: 84px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: linear-gradient(90deg, #131d2d 0 50%, #f1f3f7 50% 100%);
}

.hero-panel {
  padding: clamp(2rem, 4vw, 4.2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text {
  color: var(--white);
}

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.hero-text > p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 60ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.stats-grid {
  margin-top: 1.8rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card {
  border-radius: 16px;
  padding: 1rem 1rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card h3 {
  font-size: 1.4rem;
  color: #ffd7b5;
  margin-bottom: 0.35rem;
}

.stat-card p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.84);
}

.hero-media {
  color: var(--ink);
  padding: 0;
  overflow: hidden;
  display: block;
}

.media-slot,
.image-slot {
  border-radius: var(--radius);
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #dbe4ef;
}

.hero-media .media-slot {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 84px);
  border: 0;
  border-radius: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.slot-image {
  width: 100%;
  height: 100%;
  min-height: 340px;
  display: block;
  object-fit: cover;
}

.hero-media .slot-image {
  min-height: 100%;
}

.carousel-section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: linear-gradient(180deg, var(--bg-soft), #dbe3ec);
}

.carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
}

.carousel-stage {
  position: relative;
  height: clamp(250px, 36vw, 420px);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0f1827;
  box-shadow: var(--shadow);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.carousel-slide .image-slot {
  min-height: 100%;
  border: none;
  border-radius: 0;
}

.image-slot.dark {
  background: #0f1827;
}

.carousel-btn {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.carousel-btn:hover {
  background: var(--brand-main);
  transform: scale(1.05);
}

.carousel-dots {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.carousel-dots button {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 24, 39, 0.24);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.carousel-dots button.active {
  background: var(--brand-main);
  transform: scale(1.2);
}

.parallax-band {
  min-height: 320px;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.parallax-one {
  background-image: linear-gradient(120deg, rgba(7, 13, 23, 0.8), rgba(7, 13, 23, 0.58)), url("../assets/img/parallax/parallax-01.jpg");
}

.parallax-two {
  background-image: linear-gradient(120deg, rgba(22, 131, 155, 0.78), rgba(15, 24, 39, 0.72)), url("../assets/img/parallax/parallax-02.jpg");
}

.parallax-overlay {
  text-align: center;
  color: var(--white);
  width: min(760px, 90%);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.about,
.products,
.services,
.brands,
.contact {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.about {
  background: var(--bg-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}

.about-card {
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(11, 19, 33, 0.07);
  padding: 1.5rem;
}

.about-card.dark {
  background: linear-gradient(135deg, #101827, #1e2a3f);
  color: var(--white);
}

.about-card.dark p {
  color: rgba(255, 255, 255, 0.88);
}

.products {
  background: linear-gradient(180deg, #dce5ef, #ebf1f8);
}

.equal-height {
  grid-auto-rows: 1fr;
}

.equal-height > * {
  height: 100%;
}

.product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flip-card {
  min-height: 270px;
  perspective: 1200px;
}

.flip-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s ease;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(7, 16, 30, 0.08);
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  backface-visibility: hidden;
}

.flip-front i {
  font-size: 1.8rem;
  color: var(--brand-alt);
  margin-bottom: 0.6rem;
}

.flip-front p {
  color: var(--muted);
  font-size: 0.88rem;
}

.flip-back {
  transform: rotateY(180deg);
  background: linear-gradient(145deg, var(--ink), #26344a);
  color: var(--white);
}

.flip-back p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.services {
  background: var(--bg-soft);
}

.service-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  border-radius: var(--radius);
  padding: 1.4rem;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(5, 12, 25, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgba(5, 12, 25, 0.14);
}

.service-icon {
  color: var(--brand-main);
  font-size: 1.8rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-icon {
  color: var(--brand-alt);
  transform: translateY(-8px) scale(1.06);
}

.brands {
  background: linear-gradient(180deg, #eef4fb, #e1e9f3);
}

.brand-marquee {
  display: flex;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
}

.brand-track {
  flex-shrink: 0;
  display: flex;
  gap: 0.9rem;
  padding: 1rem;
  min-width: 100%;
  animation: marquee 24s linear infinite;
}

.brand-item {
  white-space: nowrap;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px dashed rgba(22, 131, 155, 0.5);
  background: rgba(22, 131, 155, 0.08);
  font-weight: 700;
  font-size: 0.88rem;
}

.contact {
  background: var(--bg-soft);
}

.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.contact-card {
  border-radius: var(--radius);
  padding: 1.4rem;
  border: 1px solid var(--border);
  background: var(--white);
}

.contact-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer {
  background: #0f1827;
  color: rgba(255, 255, 255, 0.9);
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 0.8fr 1fr 1.4fr;
}

.footer-col h3 {
  color: #ffd7b5;
  margin-bottom: 0.9rem;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.9);
}

.footer-social {
  margin-top: 0.8rem;
  display: inline-flex;
  gap: 0.45rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.map-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.map-wrap iframe {
  width: 100%;
  height: 260px;
  border: 0;
}

.map-btn {
  margin-top: 0.8rem;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: 2rem;
  padding: 1rem 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(130deg, var(--brand-main), #f06a2e);
  box-shadow: 0 10px 25px rgba(242, 139, 32, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  z-index: 1200;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    background: linear-gradient(180deg, #131d2d 0 75%, #f1f3f7 53% 100%);
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid .about-card:first-child {
    grid-column: 1 / -1;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid .map-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 90px;
    left: 4%;
    right: 4%;
    border-radius: 18px;
    padding: 0.8rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(9, 17, 30, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  .nav-links.open {
    display: flex;
  }

  .top-social {
    margin-left: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-copy {
    display: none;
  }

  .hero {
    padding-top: 84px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .carousel {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    justify-self: center;
  }

  .about-grid,
  .product-grid,
  .service-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .parallax-band {
    background-attachment: scroll;
  }
}

/* Parallax reusable bands */
:root {
  --parallax-img-1: url("../assets/img/parallax/parallax-01.webp");
  --parallax-img-2: url("../assets/img/parallax/parallax-02.webp");
  --parallax-img-3: url("../assets/img/parallax/parallax-03.jpg");
}

.parallax-band {
  position: relative;
  min-height: 260px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.parallax-one { background-image: var(--parallax-img-1); }
.parallax-two { background-image: var(--parallax-img-2); }
.parallax-three { background-image: var(--parallax-img-3); }

/* Fallback mobile (iOS suele romper fixed) */
@media (max-width: 768px) {
  .parallax-band {
    background-attachment: scroll;
  }
}
.parallax-band {
  position: relative;
  isolation: isolate;
}

.parallax-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 45, 0.45);
  z-index: 0;
}

.parallax-band > * {
  position: relative;
  z-index: 1;
}

.parallax-band h1,
.parallax-band h2 {
  color: #ffffff !important;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.6);
}
.brands-track,
.brands-grid,
.brands-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.brand-item {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 130px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid #d8e0ea !important;
  border-radius: 16px !important;
  overflow: hidden;
  text-align: center;
  box-sizing: border-box;
}

.brand-item .brand-logo,
.brand-item img {
  display: block;
  width: 100%;
  max-width: 140px;
  height: 70px;
  object-fit: contain !important;
  object-position: center;
  margin: 0 auto;
  background: transparent !important;
}

.brand-item .brand-name {
  position: static !important;
  display: block;
  margin: 0;
  color: #1c2b3f !important;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .brands-track,
  .brands-grid,
  .brands-list {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .brand-item .brand-logo,
  .brand-item img {
    max-width: 120px;
    height: 60px;
  }
}
/* Brand strip cleanup: square logos + no white container + infinite track support */
body .brand-name {
  display: none !important;
}

body .brands-viewport {
  position: relative;
  width: 100%;
  overflow: hidden !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body .brands-infinite-track.brands-infinite-track {
  display: flex !important;
  align-items: center;
  gap: 16px;
  width: max-content;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  background: transparent !important;
  animation: brands-marquee var(--brand-scroll-duration, 24s) linear infinite;
  will-change: transform;
}

body .brands-infinite-track .brand-item.brand-item,
body .brand-square.brand-square {
  width: 150px !important;
  height: 150px !important;
  flex: 0 0 150px !important;
  padding: 10px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 14px !important;
  background: transparent !important;
  border: 1px solid rgba(12, 31, 66, 0.18) !important;
  box-shadow: none !important;
  overflow: hidden;
}

body .brands-infinite-track .brand-item img,
body .brand-square img,
body .brands-infinite-track .brand-logo,
body .brand-square .brand-logo {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center;
  background: transparent !important;
}

@keyframes brands-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--brand-scroll-distance, 800px)));
  }
}

@media (max-width: 768px) {
  body .brands-infinite-track .brand-item.brand-item,
  body .brand-square.brand-square {
    width: 120px !important;
    height: 120px !important;
    flex-basis: 120px !important;
  }
}
/* Fix loop cut in brands infinite scroll */
body .brands-infinite-track {
  animation-name: brands-marquee-stable !important;
  animation-timing-function: linear !important;
  animation-iteration-count: infinite !important;
}

body .brands-infinite-track > .brand-item,
body .brands-infinite-track > .brand-square {
  flex-shrink: 0 !important;
}

@keyframes brands-marquee-stable {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
/* Catalog CTA */
.catalogo-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 18px 0;
}

.btn-catalogo {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  background: #ff7a00;
  color: #ffffff;
  border: 1px solid transparent;
}

.btn-catalogo:hover {
  opacity: 0.92;
}

.btn-catalogo-sec {
  background: #0b1b3a;
}

.catalogo-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 999;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

@media (max-width: 768px) {
  .catalogo-float {
    right: 10px;
    bottom: 10px;
    padding: 11px 14px;
    font-size: 0.92rem;
  }
}
/* Catalog floating button visual fix */
body a.catalogo-float {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 46px;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  background: #ff7a00 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  line-height: 1 !important;
  white-space: nowrap;
  border: 0 !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2) !important;
}

body a.catalogo-float::before,
body a.catalogo-float::after {
  content: none !important;
  display: none !important;
}

body a.catalogo-float:hover {
  transform: translateY(-1px);
  opacity: 1 !important;
}
/* Keep catalog + go-top buttons side by side */
body a.catalogo-float {
  right: 86px !important;
  bottom: 16px !important;
}

body #goTop,
body #scrollTopBtn,
body #backToTop,
body #button-up,
body .go-top,
body .back-to-top,
body .btn-up {
  right: 16px !important;
  bottom: 16px !important;
  z-index: 1000 !important;
}

@media (max-width: 768px) {
  body a.catalogo-float {
    right: 78px !important;
    bottom: 10px !important;
  }

  body #goTop,
  body #scrollTopBtn,
  body #backToTop,
  body #button-up,
  body .go-top,
  body .back-to-top,
  body .btn-up {
    right: 10px !important;
    bottom: 10px !important;
  }
}
/* Safe responsive fixes */
html,
body {
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

.product-inline-img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

@media (max-width: 992px) {
  .parallax-band {
    background-attachment: scroll !important;
  }
}

@media (max-width: 768px) {
  body a.catalogo-float {
    display: none !important;
  }
}

@media (max-width: 992px) {
  body.mobile-menu-open {
    overflow: hidden;
  }

  header nav ul,
  .nav-links,
  .mobile-menu,
  .navbar-menu {
    display: none !important;
  }

  body.mobile-menu-open header nav ul,
  body.mobile-menu-open .nav-links,
  body.mobile-menu-open .mobile-menu,
  body.mobile-menu-open .navbar-menu,
  header nav ul.is-open,
  .nav-links.is-open,
  .mobile-menu.is-open,
  .navbar-menu.is-open {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
  }

  header nav ul.is-open,
  header nav ul.open,
  header nav ul.active,
  header nav ul.show,
  .mobile-menu.is-open,
  .mobile-menu.open,
  .mobile-menu.active,
  .mobile-menu.show,
  .nav-links.is-open,
  .nav-links.open,
  .nav-links.active,
  .nav-links.show {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* Hero panel mobile overflow fix */
@media (max-width: 768px) {
  .hero,
  .hero-section,
  .hero-wrapper,
  .hero-container {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    grid-template-columns: 1fr !important;
  }

  .hero-panel {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box;
  }

  .hero-panel *,
  .hero-panel *::before,
  .hero-panel *::after {
    box-sizing: border-box;
    max-width: 100%;
  }

  .hero-panel .hero-content,
  .hero-panel .hero-grid,
  .hero-panel .hero-main,
  .hero-panel .hero-stats,
  .hero-panel .stats-grid {
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: 1fr !important;
    display: grid;
    gap: 10px;
  }

  .hero-panel .stat-card,
  .hero-panel .hero-stat,
  .hero-panel .kpi-card {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .hero-panel .hero-image,
  .hero-panel .panel-image,
  .hero-panel .right-image {
    width: 100% !important;
    min-height: 200px !important;
    height: auto !important;
  }
}
