/* VARIABLES DE COLOR */
:root {
  --red-primary: #e61919;
  --red-dark: #800000;
  --bg-dark: #0a0a0a;
  --bg-card: rgba(20, 20, 20, 0.9);
  --bg-header: #111111;
  --text-light: #ffffff;
  --text-gray: #b3b3b3;
  --whatsapp-green: #25d366;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 110px; 
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Arial Black', Impact, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.5;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(20, 20, 20, 0.95) 100%);
  border-bottom: 2px solid rgba(230, 25, 25, 0.85);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 96px;
  padding: 0.2rem 1.5rem;
}

.brand-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* LOGO INTEGRADO Y OPTIMIZADO */
.logo-mp-img {
  height: 150px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
  clip-path: inset(15% 5% 15% 5%);
  margin: -16px 0;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 12px 24px rgba(230, 25, 25, 0.22));
}

.logo-mp-img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--red-primary);
}

.btn-nav-urgencia {
  background-color: var(--red-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}

/* MENÚ HAMBURGUESA MÓVIL */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  border-radius: 2px;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 170px 1.5rem 90px 1.5rem;
  background-image: url('images/maquinas.jpeg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-bottom: 3px solid var(--red-primary);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10,10,10,0.82) 0%, rgba(10,10,10,0.68) 46%, rgba(10,10,10,0.94) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  padding: 1.5rem 0;
}

.badge-urgencia {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(230, 25, 25, 0.18);
  border: 1px solid var(--red-primary);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: var(--red-primary);
  margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(230, 25, 25, 0.12);
}

.pulse-red {
  width: 10px;
  height: 10px;
  background-color: var(--red-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--red-primary);
}

.hero-content h1 {
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-content h1 span {
  color: var(--red-primary);
}

.hero-content h2 {
  font-size: 1.4rem;
  color: var(--text-light);
  margin-bottom: 0.8rem;
  font-weight: normal;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-gray);
  margin-bottom: 1.8rem;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #22d562 0%, #18b957 100%);
  color: #fff;
  padding: 1rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2rem;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 30px rgba(37, 211, 102, 0.45);
}

/* MARCAS */
.brands-bar {
  background: linear-gradient(90deg, #1f0505 0%, #3d0a0a 50%, #1f0505 100%);
  border-bottom: 1px solid var(--red-primary);
  padding: 1rem;
  text-align: center;
}

.brands-wrapper {
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.separator {
  color: var(--red-primary);
  margin: 0 0.5rem;
}

/* GALERÍA DE IMÁGENES */
.image-gallery {
  padding: 50px 1.5rem;
  background-color: #0f0f0f;
  border-bottom: 1px solid #222222;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid #282828;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  border-color: var(--red-primary);
  box-shadow: 0 8px 20px rgba(230, 25, 25, 0.25);
}

.gallery-item img {
  max-width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
  filter: brightness(0.8);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.92) 100%);
  color: var(--text-light);
  padding: 1rem 0.75rem 0.8rem;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-align: center;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-caption strong {
  font-size: 0.95rem;
  color: var(--text-light);
}

.gallery-caption span {
  font-size: 0.78rem;
  color: var(--text-gray);
  font-family: sans-serif;
}

/* SERVICIOS CON BOTONES */
.services-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 1.5rem;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
}

.section-title span {
  color: var(--red-primary);
}

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

.service-card {
  background-color: var(--bg-card);
  border: 1px solid #282828;
  border-top: 3px solid var(--red-primary);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-icon-svg {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem auto;
}

.card-icon-svg svg {
  fill: var(--red-primary);
  width: 100%;
  height: 100%;
}

.service-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.service-card p {
  color: var(--text-gray);
  font-size: 0.9rem;
  font-family: sans-serif;
  margin-bottom: 1.5rem;
}

.card-btn {
  display: inline-block;
  background-color: transparent;
  border: 1px solid var(--red-primary);
  color: var(--text-light);
  padding: 0.6rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background-color 0.2s;
}

.card-btn:hover {
  background-color: var(--red-primary);
}

.card-btn.btn-urgent {
  background-color: var(--red-primary);
}

/* COBERTURA */
.coverage-section {
  background-color: #0f0f0f;
  padding: 50px 1.5rem;
  text-align: center;
  border-top: 1px solid #222;
}

.coverage-box h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.coverage-box h3 span {
  color: var(--red-primary);
}

.coverage-box p {
  font-family: sans-serif;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.coverage-box ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.coverage-box li {
  background-color: rgba(20, 20, 20, 0.9);
  border: 1px solid var(--red-primary);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
}

/* FOOTER & REDES SOCIALES */
.footer-site {
  background-color: var(--bg-header);
  border-top: 2px solid var(--red-primary);
  padding: 30px 1.5rem 15px 1.5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-brand h2 span {
  color: var(--red-primary);
}

.footer-brand p {
  font-family: sans-serif;
  color: var(--text-gray);
  font-size: 0.9rem;
}

.footer-action-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.footer-social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
}

.footer-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: sans-serif;
  font-weight: bold;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  transition: all 0.2s ease;
}

/* COLORES ESPECÍFICOS DE REDES SOCIALES */
.footer-social-links a.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.footer-social-links a.btn-instagram:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.4);
}

.footer-social-links a.btn-facebook {
  background-color: #1877f2;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.footer-social-links a.btn-facebook:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.footer-social-links svg {
  fill: #ffffff;
  transition: fill 0.2s ease;
}

.btn-whatsapp-footer {
  display: inline-block;
  background-color: var(--whatsapp-green);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #222;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-gray);
  font-family: sans-serif;
}

/* BOTÓN FLOTANTE WHATSAPP */
.floating-wa {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background-color: var(--whatsapp-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  z-index: 999;
  transition: transform 0.2s;
}

.floating-wa:hover {
  transform: scale(1.1);
}

.floating-wa svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

/* RESPONSIVE (MÓVIL) */
@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: 85px; 
  }

  .nav-container {
    min-height: 74px;
    padding: 0.3rem 1rem;
  }

  .logo-mp-img {
    height: 105px;
    clip-path: inset(15% 5% 15% 5%);
    margin: -8px 0;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(17,17,17,0.98), rgba(17,17,17,0.96));
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 2px solid var(--red-primary);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
  }

  .nav-links.active {
    display: flex;
  }

  .hero-section {
    min-height: 560px;
    padding: 125px 1rem 60px 1rem;
    background-position: center center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  .hero-content h2 {
    font-size: 1.08rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .image-gallery {
    padding: 30px 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr; 
    gap: 1.2rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}