:root {
  --teal: #4ebab7;
  --ocean: #1a94d2;
  --deep: #1779a9;
  --sky: #1789c3;
  --slate: #0d1321;
  --neutral: #f7f9fc;
  --card: #ffffff;
  font-family: "Poppins", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--slate);
  background: var(--neutral);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(90vw, 1400px);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid rgba(10, 18, 33, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.hero.section {
  margin-top: 40px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--deep);
}

.brand img {
  height: 88px;
  width: auto;
  display: block;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--deep);
}

.header-phones {
  display: flex;
  gap: 1rem;
  font-weight: 600;
  color: #1779a9;
  font-size: 0.9375rem;
  align-items: center;
}

.header-phones svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  margin-right: 0.35rem;
}

.header-phones a {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  transition: color 0.25s ease;
}

.header-phones a:hover {
  color: #4ebab7;
}

.nav-toggle {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  gap: 0.25rem;
  flex-direction: column;
  padding: 0;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--slate);
  border-radius: 999px;
  display: block;
}

.hero {
  padding: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
  width: min(100%, 1459px);
  margin: 0 auto;
}

.hero-visual {
  perspective: 1200px;
  position: relative;
  border-radius: 32px;
  background: transparent;
}

.hero-image {
  min-height: 420px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(26, 148, 210, 0.3);
  background-image: url("IMG/imgmaquinaacrilico.gif");
  background-size: cover;
  background-position: center;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: linear-gradient(
    90deg,
    rgba(26, 148, 210, 0.35) 0%,
    rgba(26, 148, 210, 0.28) 30%,
    rgba(78, 185, 182, 0.22) 55%,
    rgba(78, 185, 182, 0.12) 75%,
    rgba(78, 185, 182, 0) 100%
  );
  pointer-events: none;
}

.hero-image p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-image .heroshape {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.2);
  top: -20%;
  right: -5%;
  filter: blur(0.5px);
  animation: float 6s ease-in-out infinite;
}

.hero-image .heroshape.secondary {
  width: 90px;
  height: 90px;
  bottom: -20%;
  left: -5%;
  top: auto;
  animation-delay: 1.2s;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

.hero-content h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  color: var(--slate);
  margin-bottom: 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  color: var(--deep);
  margin-bottom: 0.5rem;
}

.lead {
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--deep);
  color: #fff;
  box-shadow: 0 12px 25px rgba(23, 121, 169, 0.3);
}

.btn.ghost {
  border-color: rgba(23, 121, 169, 0.4);
  color: var(--deep);
}

.btn:hover {
  transform: translateY(-2px);
}

.about {
  background: #fff;
  margin-top: 3rem;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 2rem auto;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.section-heading p {
  color: rgba(13, 19, 33, 0.7);
  line-height: 1.7;
}

.slider-inner {
  width: min(100%, 1459px);
  margin: 2.5rem auto;
}

.gallery .slider {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(13, 19, 33, 0.18);
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  height: 380px;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide.low-opacity img {
  opacity: 0.5;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
}

.slider-btn.prev {
  left: 1rem;
}

.slider-btn.next {
  right: 1rem;
}

.services {
  background: #e2e6ef;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(13, 19, 33, 0.08);
  border: 1px solid rgba(13, 19, 33, 0.04);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(23, 121, 169, 0.1);
}

.service-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.service-card p {
  margin: 0;
  line-height: 1.6;
  color: rgba(13, 19, 33, 0.7);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(23, 121, 169, 0.1);
  color: var(--deep);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.service-card.complementary {
  opacity: 0.85;
}

.final-cta {
  background: var(--sky);
  color: #fff;
}

.final-cta .eyebrow {
  color: #fff;
}

.final-cta-inner {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.6fr);
  gap: 2rem;
  align-items: center;
}

.final-cta-copy {
  max-width: 600px;
}

.final-cta-deco {
  width: 100%;
  min-height: 300px;
  border-radius: 28px;
  background-image: linear-gradient(
      120deg,
      rgba(23, 121, 169, 0) 0%,
      rgba(23, 121, 169, 0.6) 60%,
      rgba(23, 121, 169, 0.9) 100%
    ),
    url("IMG/Imgfondo.png");
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 1) 40%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 1) 40%);
}

.final-cta h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.final-cta p {
  max-width: 540px;
  line-height: 1.7;
}

.site-footer {
  background: #0b1221;
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0;
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.brand-footer {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.4em;
}

.footer-contact,
.footer-socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-contact a {
  color: #fff;
  font-weight: 600;
}

.footer-socials span {
  padding: 0.25rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.small {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.45);
  z-index: 100;
}

.whatsapp-float img {
  width: 60%;
  height: auto;
  display: block;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: 2;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .final-cta-inner {
    grid-template-columns: 1fr;
  }

  .final-cta-deco {
    display: none;
  }

  .hero-visual {
    background-image: linear-gradient(135deg, rgba(23, 121, 169, 0.2), rgba(23, 121, 169, 0.01)),
      url("IMG/imgmaquinaacrilico.gif");
    mask-image: linear-gradient(90deg, transparent 0%, black 50%, black 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 50%, black 100%);
  }

  .hero-visual::after {
    background: linear-gradient(120deg, rgba(247, 249, 252, 0) 0%, rgba(247, 249, 252, 0.7) 60%, rgba(247, 249, 252, 1) 100%);
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.5rem 2rem;
    border-bottom: 1px solid rgba(13, 19, 33, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-toggle {
    display: flex;
  }

  .header-phones {
    flex-direction: column;
    font-size: 0.95rem;
  }
}

@media (max-width: 540px) {
  .hero-actions .btn {
    justify-content: center;
  }

  .final-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

