/* =========================================
   GS EQUIPMENT - LANDING PAGE STYLES
   ========================================= */

:root {
  --color-dark: #0f172a;
  --color-dark-2: #1e293b;
  --color-red: #d32f2f;
  --color-red-hover: #b91c1c;
  --color-gray-light: #f8fafc;
  --color-gray-border: #e2e8f0;
  --color-text: #334155;
  --color-text-dark: #0f172a;
  --color-wa: #25d366;
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: #fff;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.text-red {
  color: var(--color-red) !important;
}
.text-white {
  color: #fff !important;
}

/* Botones */
.btn-dark {
  background: var(--color-dark);
  color: #fff;
  padding: 14px 28px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: 0.3s;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-dark:hover {
  background: var(--color-red);
}
.btn-outline {
  background: transparent;
  color: var(--color-dark);
  padding: 14px 28px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  border: 2px solid var(--color-dark);
  transition: 0.3s;
  display: inline-block;
}
.btn-outline:hover {
  background: var(--color-dark);
  color: #fff;
}
.btn-red {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-red);
  color: #fff;
  padding: 14px 24px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
}
.btn-red:hover {
  background: var(--color-red-hover);
}
.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-wa);
  color: #fff;
  padding: 14px 24px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
}

/* =========================================
   NUEVO NAVBAR SUPERIOR
   ========================================= */
.navbar {
  background: #fff;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border-bottom: none;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  height: 48px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.logo-text strong {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 16px;
  color: var(--color-dark);
  line-height: 1.1;
  letter-spacing: -0.2px;
}
.logo-text span {
  font-family: var(--font-heading);
  font-size: 10.5px;
  color: var(--color-red);
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Menu de Enlaces */
.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-menu a {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  color: var(--color-dark);
  position: relative;
  padding-bottom: 6px;
  transition: color 0.3s ease;
  text-transform: uppercase;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-red);
}
/* Efecto de línea roja inferior despegada */
.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-red);
  transition: width 0.3s ease;
}
.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-dark);
  cursor: pointer;
  padding: 0;
}

/* Hero Section */
.hero-section {
  padding: 80px 0;
  background-color: var(--color-gray-light);
}
.hero-faded {
  position: relative;
  background-image: url("../img/pesado/gal-1.webp");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  min-height: 550px;
  display: flex;
  align-items: center;
}
.hero-faded::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 40%,
    rgba(255, 255, 255, 0.8) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

.hero-faded .hero-grid {
  position: relative;
  z-index: 2;
  grid-template-columns: 0.65fr 1fr;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.badge-red {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-red);
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.badge-red .line {
  width: 30px;
  height: 2px;
  background: var(--color-red);
  display: block;
}
.hero-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(32px, 4vw, 48px);
  color: var(--color-dark);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-text {
  font-size: 15px;
  margin-bottom: 30px;
  max-width: 90%;
  color: var(--color-text);
}
.hero-buttons {
  display: flex;
  gap: 15px;
}
.hero-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

/* Stats Bar - SVGs Premium */
.stats-bar {
  border-bottom: 1px solid var(--color-gray-border);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-box {
  display: flex;
  align-items: center;
  gap: 15px;
  border-right: 1px solid var(--color-gray-border);
  padding-right: 20px;
}
.stat-box.no-border {
  border-right: none;
}
.stat-icon svg {
  color: var(--color-red);
}
.stat-info {
  display: flex;
  flex-direction: column;
}
.stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text);
}
.stat-value {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 28px;
  color: var(--color-dark);
  line-height: 1;
  margin: 2px 0;
}
.stat-value.text-medium {
  font-size: 15px;
  line-height: 1.2;
  margin-bottom: 2px;
}
.stat-desc {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  margin-top: 2px;
}

/* Catálogo de Chasis */
.chasis-section {
  padding: 80px 0;
}
.subtitle-red {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  color: var(--color-red);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 32px;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 15px;
  text-transform: uppercase;
}
.section-desc {
  font-size: 16px;
  margin-bottom: 40px;
}

/* Carrusel de la Galería */
.catalog-carousel-wrapper {
  position: relative;
  margin-bottom: 40px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-gray-border);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  background: var(--color-dark);
}
.catalog-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.catalog-carousel::-webkit-scrollbar {
  display: none;
}
.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.5s;
}
.carousel-slide:hover img {
  transform: scale(1.05);
}

/* Botones del Carrusel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.7);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  backdrop-filter: blur(4px);
}
.carousel-btn:hover {
  background: var(--color-red);
}
.left-btn {
  left: 15px;
}
.right-btn {
  right: 15px;
}

/* Grid de las Fichas */
.products-grid.text-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.product-card {
  border: 1px solid var(--color-gray-border);
  border-top: 4px solid var(--color-dark);
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}
.product-card:hover {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
  border-top-color: var(--color-red);
}
.product-content {
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-content h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  color: var(--color-dark);
  margin-bottom: 12px;
}
.product-content p {
  font-size: 14px;
  margin-bottom: 24px;
  flex-grow: 1;
  color: var(--color-text);
}
.link-arrow {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: 0.5px;
}
.link-arrow:hover {
  color: var(--color-red);
}

/* Dark Section */
.dark-section {
  background: var(--color-dark);
  color: #fff;
}
.dark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.dark-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 100%;
}
.dark-content {
  padding: 80px 60px;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}
.feature-item {
  display: flex;
  gap: 15px;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(211, 47, 47, 0.4);
  box-shadow: inset 0 0 10px rgba(211, 47, 47, 0.1);
}
.feature-icon svg {
  color: var(--color-red);
}
.feature-text h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 700;
  color: #fff;
}
.feature-text p {
  font-size: 13px;
  color: #cbd5e1;
}

/* Banner Inferior */
.bottom-cta-section {
  padding: 60px 0;
  background: var(--color-gray-light);
  border-bottom: 1px solid var(--color-gray-border);
}
.banner-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.banner-title h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 24px;
  color: var(--color-dark);
  line-height: 1.2;
}
.banner-icons {
  display: flex;
  gap: 40px;
}
.b-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  color: var(--color-dark);
  line-height: 1.3;
}
.b-icon svg {
  color: var(--color-red);
}

/* Formulario */
.form-card {
  background: #fff;
  border: 1px solid var(--color-gray-border);
  border-top: 4px solid var(--color-red);
  padding: 40px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}
.form-header {
  text-align: center;
  margin-bottom: 30px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.layout-2-1 {
  grid-template-columns: 1.4fr 0.6fr;
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.input-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-dark);
}
.input-group input,
.input-group select {
  padding: 14px;
  border: 1px solid var(--color-gray-border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border 0.3s;
}
.input-group input:focus,
.input-group select:focus {
  border-color: var(--color-red);
}
.form-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 10px;
}

/* Footer con SVG */
.mockup-footer {
  padding: 30px 0;
  background: #fff;
}
.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo img {
  height: 35px;
}
.footer-contact {
  display: flex;
  gap: 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-dark);
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact svg {
  color: var(--color-red);
}

/* Animaciones Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   LIGHTBOX / VISOR DE IMÁGENES (CLICK)
   ========================================= */
#image-modal {
  display: flex;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 17, 32, 0.9);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

#image-modal.modal-hidden {
  display: none;
  opacity: 0;
}

.modal-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  object-fit: contain;
}

#image-modal:not(.modal-hidden) .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 45px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--color-red);
}

/* Botones de Navegación del Modal */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.7);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s,
    transform 0.3s;
  backdrop-filter: blur(4px);
  font-size: 20px;
}

.modal-nav:hover {
  background: var(--color-red);
  transform: translateY(-50%) scale(1.1);
}

.modal-nav.prev {
  left: 30px;
}

.modal-nav.next {
  right: 30px;
}

/* =========================================
   RESPONSIVE MÓVIL Y TABLET
   ========================================= */
@media (max-width: 992px) {
  .hero-grid,
  .dark-grid,
  .banner-flex {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .stats-grid,
  .features-grid,
  .form-grid,
  .form-buttons {
    grid-template-columns: 1fr;
  }
  .stat-box {
    border-right: none;
    border-bottom: 1px solid var(--color-gray-border);
    padding-bottom: 20px;
  }

  /* Ajustes Navbar Móvil para evitar colisiones */
  .nav-logo img {
    height: 38px;
  }
  .logo-text strong {
    font-size: 13px;
  }
  .logo-text span {
    font-size: 9px;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  .nav-menu.active {
    display: flex;
    align-items: flex-start;
  }
  .menu-toggle {
    display: block;
  }
  .nav-actions .btn-dark {
    display: none;
  }
  .dark-content {
    padding: 40px 20px;
  }
  .banner-icons {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-flex {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-contact {
    flex-direction: column;
    gap: 10px;
  }

  /* --- HERO MÓVIL --- */
  .hero-section {
    padding: 0;
  }
  .hero-faded {
    background-position: center bottom;
    background-size: 140%;
    background-repeat: no-repeat;
    min-height: 80vh;
    align-items: flex-start;
    padding-top: 40px;
  }
  .hero-faded::before {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 1) 40%,
      rgba(255, 255, 255, 0.9) 65%,
      rgba(255, 255, 255, 0) 100%
    );
  }
  .hero-faded .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
  }
  .hero-buttons a {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
  }
}

/* AJUSTES ESPECÍFICOS PARA MÓVILES MÁS PEQUEÑOS */
@media (max-width: 768px) {
  .modal-nav {
    width: 40px;
    height: 40px;
  }
  .modal-nav.prev {
    left: 10px;
  }
  .modal-nav.next {
    right: 10px;
    left: auto;
  }
}

/* Teléfonos muy pequeños */
@media (max-width: 480px) {
  .nav-logo {
    gap: 8px;
  }
  .nav-logo img {
    height: 32px;
  }
  .logo-text strong {
    font-size: 11px;
  }
  .logo-text span {
    font-size: 7.5px;
  }
  .hero-title {
    font-size: 28px;
  }
}

/* Modificadores extra Escritorio */
@media (min-width: 860px) {
  .eq-hero {
    padding: 80px 0 60px;
  }
  .eq-stats-grid {
    justify-content: space-between;
    padding: 0 40px;
  }
  .dark-image {
    min-height: 500px;
  }

  .carousel-slide {
    flex: 0 0 25%;
    aspect-ratio: 4/3;
  }
  .products-grid.text-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}
