: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;
  padding-top: 0;
}

.top-gradient-bar {
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, #00bbb8, #0095d5);
}

.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;
  flex: 1;
  justify-content: center;
}

.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: 0.75rem;
  font-weight: 700;
  align-items: center;
}

.header-phones a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  color: var(--deep);
  font-weight: 700;
  background-color: transparent;
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--deep);
  border-radius: 50px;
  font-size: 0.95rem;
  text-decoration: none;
}

.header-phones a:hover {
  background-color: var(--deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(23, 121, 169, 0.2);
}

.header-phones i {
  font-size: 0.9rem;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .header-phones {
    display: none; /* Hide top phones on mobile to avoid clutter */
  }
}

.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-slider {
  width: 100%;
  height: 600px;
  overflow: hidden;
  position: relative;
  margin-top: 0;
}

.slider-wrapper {
  display: flex;
  width: 200%; /* 2 slides */
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

.slide {
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(23, 121, 169, 0.85), rgba(26, 148, 210, 0.85));
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2rem;
  max-width: 900px;
}

.slide-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
}

.slide-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-weight: 400;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.slider-control:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--deep);
  border-color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.slider-control.prev {
  left: 20px;
}

.slider-control.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.dot.active {
  background: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .slider-control {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .slider-control.prev { left: 10px; }
  .slider-control.next { right: 10px; }
}

.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.secondary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 12px 25px rgba(78, 186, 183, 0.3);
}

.btn.whatsapp-slider {
  background: #25d366;
  color: #fff;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  box-shadow: 0 12px 25px rgba(37, 211, 102, 0.4);
  gap: 0.5rem;
  animation: pulse-green 2s infinite;
}

.whatsapp-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.btn.whatsapp-slider:hover {
  background: #1faf53;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.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;
}

/* Masonry Gallery Styles */
.masonry-grid {
  column-count: 3;
  column-gap: 1.5rem;
  width: 100%;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  display: inline-block; /* Prevents breaking across columns in some browsers */
  width: 100%;
}

.masonry-item img {
  width: 100%;
  border-radius: 16px;
  display: block;
  box-shadow: 0 10px 30px rgba(13, 19, 33, 0.1);
  transition: transform 0.3s ease;
}

.masonry-item:hover img {
  transform: scale(1.02);
}

@media (max-width: 992px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .masonry-grid {
    column-count: 1;
  }
}

.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;
  font-size: 1.5rem;
}

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

.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 a {
  padding: 0.25rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}

.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s;
}

.social-icons a:hover {
  transform: translateY(-2px);
  text-decoration: underline;
}

.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;
  }
}

/* Features Grid in About Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  background: var(--neutral);
  border-radius: 16px;
  transition: transform 0.2s;
  border: 1px solid rgba(13, 19, 33, 0.04);
}

.feature-item:hover {
  transform: translateY(-5px);
  background: #fff;
  box-shadow: 0 10px 30px rgba(13, 19, 33, 0.08);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  color: var(--deep);
}

.feature-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--slate);
  font-weight: 600;
}

.feature-item p {
  font-size: 0.95rem;
  color: rgba(13, 19, 33, 0.75);
  line-height: 1.6;
}

/* Products Section */
.products {
  background: #fff;
}

.btn-link {
  display: inline-block;
  margin-top: auto;
  color: var(--deep);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
}
.btn-link:hover {
  text-decoration: underline;
  color: var(--teal);
}

/* CTA Banner */
.cta-banner {
  background: var(--deep);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.05) 0%, transparent 100%);
  pointer-events: none;
}

.cta-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 0.5rem 0;
  color: #fff;
}

.cta-content p {
  font-size: 1.2rem;
  opacity: 0.95;
  margin: 0;
}

/* WhatsApp Button Style */
.btn.whatsapp {
  background: #25d366;
  color: #fff;
  border: 2px solid #25d366;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

.btn.whatsapp:hover {
  background: #1ebc57;
  border-color: #1ebc57;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(37, 211, 102, 0.5);
}

.btn.whatsapp img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Vibration Animation */
@keyframes vibrate {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 1px); }
  40% { transform: translate(-1px, -2px); }
  60% { transform: translate(2px, 1px); }
  80% { transform: translate(1px, -1px); }
  100% { transform: translate(0); }
}

/* Jump Animation */
@keyframes jump {
  0%, 85%, 100% { transform: translateY(0); }
  90% { transform: translateY(-10px); }
  95% { transform: translateY(-3px); }
}

.btn.whatsapp, .whatsapp-float {
  animation: jump 3s infinite ease-in-out;
}

.btn.whatsapp:hover, .whatsapp-float:hover {
  animation: vibrate 0.4s linear infinite;
}
