/* ==========================================================================
   DESIGN TOKENS & SYSTEM VARIABLES
   ========================================================================== */
:root {
  --primary: #00a859;
  --primary-rgb: 0, 168, 89;
  --primary-neon: #00e676;
  --primary-neon-rgb: 0, 230, 118;
  --bg-dark: #0c0d0e;
  --bg-charcoal: #101112;
  --bg-card: #14171a;
  --bg-input: #1a1e22;
  --text-white: #f0f2f5;
  --text-gray: #9abbc7;
  --text-muted: #666666;
  --border-color: #22272e;
  
  --shadow-neon: 0 0 15px rgba(0, 230, 118, 0.3);
  --shadow-neon-strong: 0 0 25px rgba(0, 230, 118, 0.6);
  --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.5);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  
  --container-max: 1200px;
  --header-height: 80px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
  border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-neon);
  box-shadow: var(--shadow-neon);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title span {
  color: var(--primary-neon);
  text-shadow: 0 0 10px rgba(0, 255, 85, 0.2);
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  height: 70px;
  background-color: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid rgba(0, 255, 85, 0.2);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-container {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  cursor: pointer;
}

.logo-divider {
  width: 1px;
  height: 28px;
  background-color: rgba(255, 255, 255, 0.2);
}

.deutz-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.deutz-header-img {
  width: 58px;
  height: auto;
  display: block;
  object-fit: contain;
}

.deutz-footer-img {
  width: 54px;
  height: auto;
  display: block;
  object-fit: contain;
}

.provine-logo-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.provine-text-brand {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1.2px;
}

.provine-text-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-neon);
  letter-spacing: 1.8px;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-gray);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-neon);
  box-shadow: var(--shadow-neon);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-white);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary);
  color: var(--text-white);
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: var(--shadow-dark);
}

.cta-button:hover {
  background-color: transparent;
  color: var(--primary-neon);
  border-color: var(--primary-neon);
  box-shadow: var(--shadow-neon);
  transform: translateY(-2px);
}

.cta-button.whatsapp-btn {
  background-color: #25d366;
  border-color: #25d366;
}

.cta-button.whatsapp-btn:hover {
  background-color: transparent;
  color: #25d366;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

/* Burger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-white);
  transition: var(--transition);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark);
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.35) 0%,
    rgba(10, 10, 10, 0.5) 45%,
    rgba(10, 10, 10, 0.88) 100%
  );
  z-index: 2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  animation: kenburns 20s infinite alternate ease-in-out;
}

@keyframes kenburns {
  0% { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.1) translate(-1%, -1%); }
}

.hero .container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-content {
  max-width: 700px;
}

.hero-tag {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 3.5px;
  color: var(--primary-neon);
  text-transform: uppercase;
  border-left: 4px solid var(--primary-neon);
  padding-left: 14px;
  margin-bottom: 24px;
  text-shadow: 0 0 12px rgba(0, 255, 85, 0.4);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-title span {
  color: var(--primary-neon);
  text-shadow: 0 0 15px rgba(0, 255, 85, 0.3);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-gray);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--primary);
  color: var(--text-white);
  padding: 16px 36px;
  font-weight: 800;
  border-radius: 4px;
  border: 2px solid var(--primary);
  box-shadow: 0 0 20px rgba(0, 168, 89, 0.4);
}

.hero-btn-primary:hover {
  background-color: var(--primary-neon);
  border-color: var(--primary-neon);
  color: var(--bg-dark);
  box-shadow: var(--shadow-neon-strong);
  transform: translateY(-3px);
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: transparent;
  color: var(--text-white);
  padding: 16px 36px;
  font-weight: 800;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-btn-secondary:hover {
  border-color: var(--text-white);
  transform: translateY(-3px);
}

/* ==========================================================================
   CATEGORY CAROUSEL & MODERN CATALOG
   ========================================================================== */
.catalog-main-desc {
  text-align: center;
  color: var(--text-gray);
  max-width: 750px;
  margin: -20px auto 40px auto;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Wrapper contenedor para flechas laterales */
.categories-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 35px;
  gap: 14px;
}

.carousel-arrow-btn {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00a859 0%, #008738 100%);
  border: 1px solid var(--primary-neon);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 230, 118, 0.25);
  z-index: 5;
}

.carousel-arrow-btn:hover {
  background: var(--primary-neon);
  color: #0c0d0e;
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.5);
  transform: scale(1.1);
}

.carousel-arrow-btn:active {
  transform: scale(0.95);
}

.categories-carousel-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 4px 18px 4px;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

@media (max-width: 1200px) {
  .categories-carousel-track {
    grid-template-columns: repeat(4, 290px);
  }
}

@media (max-width: 640px) {
  .categories-carousel-wrapper {
    gap: 8px;
  }
  
  .carousel-arrow-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
  
  .categories-carousel-track {
    grid-template-columns: repeat(4, 260px);
  }
}

.category-card {
  background: linear-gradient(145deg, #171b21 0%, #121519 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: var(--transition);
  z-index: 3;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 230, 118, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(0, 230, 118, 0.12);
}

.category-card.active {
  border-color: var(--primary-neon);
  background: linear-gradient(145deg, #1b2229 0%, #13171c 100%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 20px rgba(0, 230, 118, 0.2);
}

.category-card.active::before {
  background: var(--primary-neon);
  box-shadow: var(--shadow-neon);
}

/* Image preview container for category card */
.cat-card-img-box {
  width: 100%;
  height: 145px;
  border-radius: 6px;
  overflow: hidden;
  background: #111417;
  margin-bottom: 14px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.03);
}

.cat-card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-card:hover .cat-card-img-box img,
.category-card.active .cat-card-img-box img {
  transform: scale(1.04);
}

.cat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

/* Prominent CV Badge */
.cat-card-hp-badge {
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.18) 0%, rgba(0, 168, 89, 0.25) 100%);
  border: 1px solid var(--primary-neon);
  color: var(--primary-neon);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.15);
}

.cat-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: 0.2px;
}

.cat-card-profile {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.45;
  margin-bottom: 14px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-neon);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cat-card-footer svg {
  transition: transform 0.3s ease;
}

.category-card:hover .cat-card-footer svg,
.category-card.active .cat-card-footer svg {
  transform: translateX(4px);
}

/* Models View Container */
.models-view-container {
  margin-top: 25px;
  background-color: rgba(14, 16, 19, 0.75);
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: 12px;
  padding: 30px;
  scroll-margin-top: 100px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

@keyframes fadeInModels {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.models-view-container.animating {
  animation: fadeInModels 0.4s ease-out forwards;
}

.models-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 15px;
}

.category-active-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cat-pill-icon {
  font-size: 1.8rem;
  background-color: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  display: inline-flex;
}

.cat-eyebrow {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 1px;
}

.cat-active-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-white);
  margin: 0;
}

.cat-active-profile {
  font-size: 0.95rem;
  color: var(--text-gray);
  max-width: 500px;
  line-height: 1.5;
  margin: 0;
}

/* Compact Product Card Styling */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 20px;
}

.product-card {
  background-color: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 230, 118, 0.4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(0, 230, 118, 0.12);
}

.product-img-wrapper {
  position: relative;
  padding-top: 62%; /* Relación equilibrada y uniforme */
  overflow: hidden;
  background: #0f1215;
}

.product-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  transition: all 0.35s ease;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.04);
}

.product-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(5px);
  border: 1px solid var(--primary-neon);
  color: var(--primary-neon);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
}

.product-info {
  padding: 18px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: var(--text-white);
  line-height: 1.3;
}

/* Badges rápidos */
.card-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.card-quick-badge {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  padding: 3px 7px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
}

.card-quick-badge.highlight {
  background-color: rgba(0, 230, 118, 0.12);
  border-color: rgba(0, 230, 118, 0.35);
  color: var(--primary-neon);
}

/* Botones Principales: Características y Cotizar (WhatsApp) */
.product-actions-primary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.btn-toggle-specs {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  border: 1px solid var(--border-color);
  padding: 9px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-toggle-specs:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--text-white);
}

.btn-toggle-specs .chevron-icon {
  transition: transform 0.3s ease;
}

.btn-toggle-specs.active {
  background-color: rgba(0, 230, 118, 0.15);
  border-color: var(--primary-neon);
  color: var(--primary-neon);
}

.btn-toggle-specs.active .chevron-icon {
  transform: rotate(180deg);
}

.btn-quote-wa {
  background-color: #25d366;
  color: #0c0d0e;
  padding: 9px 12px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  border: 1px solid #25d366;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.btn-quote-wa:hover {
  background-color: #1ebd5a;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

.btn-open-specs {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-open-specs:hover {
  background-color: rgba(0, 230, 118, 0.12);
  border-color: var(--primary-neon);
  color: var(--primary-neon);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.2);
  transform: translateY(-2px);
}

.modal-download-btn {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: var(--text-white);
  border: 1.5px solid var(--primary-neon);
  padding: 14px 20px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.modal-download-btn:hover {
  background-color: var(--primary-neon);
  color: #0c0d0e;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.4);
  transform: translateY(-2px);
}

/* ==========================================================================
   MODAL DIALOG (PRODUCT DETAILS)
   ========================================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 20px;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--bg-charcoal);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 255, 85, 0.05);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.modal.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.modal-close:hover {
  background-color: var(--primary-neon);
  color: var(--bg-dark);
  border-color: var(--primary-neon);
  box-shadow: var(--shadow-neon);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.modal-img-col {
  background-color: #0a0a0a;
  position: relative;
  min-height: 350px;
}

.modal-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info-col {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.modal-category {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-neon);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.modal-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.modal-desc {
  color: var(--text-gray);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.modal-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 35px;
}

.modal-specs-table tr {
  border-bottom: 1px solid var(--border-color);
}

.modal-specs-table tr:last-child {
  border-bottom: none;
}

.modal-specs-table td {
  padding: 10px 0;
  font-size: 0.95rem;
}

.modal-specs-table td.spec-name {
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.modal-specs-table td.spec-val {
  text-align: right;
  font-weight: 700;
  color: var(--text-white);
}

.modal-footer {
  margin-top: auto;
  display: flex;
  gap: 16px;
}

.modal-whatsapp-btn {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #25d366;
  color: var(--text-white);
  padding: 15px 24px;
  border-radius: 4px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.2);
}

.modal-whatsapp-btn:hover {
  background-color: #20ba5a;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

/* ==========================================================================
   POSTVENTA, REPUESTOS Y SERVICIOS
   ========================================================================== */
.posventa-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(0, 135, 56, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(0, 255, 85, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: 6px;
  transition: var(--transition);
  box-shadow: var(--shadow-dark);
}

.service-card:hover {
  border-color: var(--primary-neon);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 85, 0.05);
}

.service-icon-box {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 135, 56, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary-neon);
  border: 1px solid rgba(0, 255, 85, 0.2);
}

.service-card:hover .service-icon-box {
  background-color: var(--primary-neon);
  color: var(--bg-dark);
  border-color: var(--primary-neon);
  box-shadow: var(--shadow-neon);
}

.service-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.service-desc {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   QUIÉNES SOMOS & UBICACIÓN & TEAM
   ========================================================================== */
.dealership-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.dealership-info-col {
  padding-right: 20px;
}

.dealership-tagline {
  font-size: 1.15rem;
  color: var(--primary-neon);
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.dealership-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.dealership-desc {
  color: var(--text-gray);
  margin-bottom: 30px;
}

.dealership-details {
  list-style: none;
  margin-bottom: 40px;
}

.dealership-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.detail-icon {
  color: var(--primary-neon);
  margin-top: 4px;
}

.detail-text h4 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.detail-text p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* Team section */
.team-container {
  margin-top: 50px;
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
}

.team-title {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 24px;
  letter-spacing: 1px;
  color: var(--text-white);
  border-left: 3px solid var(--primary-neon);
  padding-left: 12px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.team-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.team-card:hover {
  border-color: rgba(0, 255, 85, 0.3);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.team-name {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.8rem;
  color: var(--primary-neon);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.team-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-top: auto;
}

.team-contact:hover {
  color: #25d366;
}

/* Map Column */
.dealership-map-col {
  position: relative;
}

.map-wrapper {
  width: 100%;
  height: 480px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-dark);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(90%); /* Dark map trick */
}

/* ==========================================================================
   CONTACT FORM & FOOTER
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-info-col {
  padding-right: 40px;
}

.contact-form-col {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 50px;
  border-radius: 8px;
  box-shadow: var(--shadow-dark);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-gray);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  padding: 14px 18px;
  border-radius: 4px;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-neon);
  box-shadow: 0 0 10px rgba(0, 255, 85, 0.2);
  background-color: rgba(255, 255, 255, 0.03);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 45px;
  background-color: #12161a;
  color: #ffffff;
}

select.form-control option {
  background-color: #12161a !important;
  color: #ffffff !important;
  padding: 10px 14px;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-submit-btn {
  width: 100%;
  background-color: var(--primary);
  color: var(--text-white);
  padding: 16px 24px;
  border-radius: 4px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: var(--shadow-dark);
  transition: var(--transition);
}

.form-submit-btn:hover {
  background-color: var(--primary-neon);
  color: var(--bg-dark);
  box-shadow: var(--shadow-neon-strong);
  transform: translateY(-2px);
}

/* Footer structure */
.footer {
  background-color: #050505;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-slogan {
  text-align: center;
  flex: 1;
  min-width: 260px;
}

.footer-slogan span {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffffff 0%, var(--primary-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
  padding: 6px 18px;
  border-radius: 20px;
  background-color: rgba(0, 230, 118, 0.05);
  border: 1px solid rgba(0, 230, 118, 0.18);
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.08);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover {
  border-color: var(--primary-neon);
  color: var(--primary-neon);
  box-shadow: var(--shadow-neon);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link:hover {
  color: var(--primary-neon);
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(37, 211, 102, 0.3);
  z-index: 999;
  cursor: pointer;
  animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
  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);
  }
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .section {
    padding: 80px 0;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dealership-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .dealership-info-col {
    padding-right: 0;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-info-col {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 58px;
  }
  
  .section {
    padding: 45px 0;
  }
  
  .container {
    padding: 0 14px;
  }

  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transition: left 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .header-cta-btn {
    display: none;
  }
  
  .hero {
    min-height: auto;
    padding: 95px 0 45px 0;
  }

  .hero-tag {
    font-size: 0.95rem;
    letter-spacing: 2.5px;
    padding: 4px 14px;
    border-left-width: 3.5px;
  }

  .hero-title {
    font-size: 1.65rem;
    line-height: 1.25;
    margin-bottom: 12px;
  }
  
  .hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 20px;
  }
  
  .section-tag {
    font-size: 0.72rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    line-height: 1.25;
  }

  .catalog-main-title {
    font-size: 1.22rem !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
    text-align: center;
  }

  .catalog-main-desc {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin: 0 auto 18px auto !important;
    padding: 0 8px;
  }

  .section-desc {
    font-size: 0.85rem;
    margin-bottom: 22px;
    line-height: 1.5;
  }
  
  /* Carrusel categorías en móviles (al menos 2 visibles) */
  .categories-carousel-wrapper {
    position: relative;
    gap: 0;
    margin: 0 -8px 24px -8px;
    padding: 0;
    display: flex;
    align-items: center;
  }

  .carousel-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: rgba(0, 168, 89, 0.95);
    backdrop-filter: blur(4px);
    z-index: 25;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  }

  .carousel-arrow-btn svg {
    width: 15px;
    height: 15px;
  }

  .carousel-arrow-btn.prev-arrow,
  .carousel-arrow-btn.prev-btn {
    left: 2px !important;
    right: auto !important;
  }

  .carousel-arrow-btn.next-arrow,
  .carousel-arrow-btn.next-btn {
    right: 2px !important;
    left: auto !important;
  }

  .categories-carousel-track {
    grid-template-columns: repeat(4, calc(46vw - 8px));
    scroll-snap-type: x mandatory;
    gap: 8px;
    padding: 6px 12px 12px 12px;
    width: 100%;
  }

  .category-card {
    scroll-snap-align: start;
    padding: 10px;
    border-radius: 6px;
  }

  .cat-card-img-box {
    height: 90px;
    margin-bottom: 8px;
    border-radius: 4px;
  }

  .cat-card-title {
    font-size: 0.88rem;
    margin-bottom: 4px;
    line-height: 1.2;
  }

  .cat-card-hp-badge {
    font-size: 0.68rem;
    padding: 2px 6px;
    font-weight: 700;
  }

  .cat-card-profile {
    font-size: 0.74rem;
    margin-bottom: 8px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }

  .category-card .btn-primary-outline {
    font-size: 0.72rem;
    padding: 6px 8px;
  }

  /* Catálogo de modelos: 2 arriba y 2 abajo (o 2 arriba y 1 abajo) */
  .models-view-header {
    margin-bottom: 14px;
    padding-bottom: 10px;
    gap: 8px;
  }

  .category-active-badge {
    gap: 8px;
  }

  .cat-pill-icon {
    width: 32px;
    height: 32px;
  }

  .cat-pill-icon svg {
    width: 16px;
    height: 16px;
  }

  .cat-eyebrow {
    font-size: 0.65rem;
  }

  .cat-active-title {
    font-size: 1.05rem;
  }

  .cat-active-profile {
    font-size: 0.78rem;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .product-card.compact-card {
    border-radius: 6px;
  }

  .product-img-wrapper {
    padding-top: 58%;
  }

  .product-tag {
    top: 4px;
    right: 4px;
    font-size: 0.58rem;
    padding: 2px 5px;
    border-radius: 3px;
  }

  .compact-card .product-info {
    padding: 8px 6px 8px 6px;
  }

  .compact-card .product-title {
    font-size: 0.76rem;
    line-height: 1.2;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 28px;
  }

  .compact-card .card-badges-row {
    gap: 3px;
    margin-bottom: 6px;
  }

  .card-quick-badge {
    font-size: 0.56rem;
    padding: 1px 4px;
    border-radius: 2px;
  }

  .product-actions-primary {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: auto;
  }

  .btn-open-specs, .btn-quote-wa {
    padding: 6px 4px;
    font-size: 0.68rem;
    gap: 3px;
    width: 100%;
    justify-content: center;
  }

  .btn-open-specs svg, .btn-quote-wa svg {
    width: 12px;
    height: 12px;
  }

  .btn-open-specs svg, .btn-quote-wa svg {
    width: 14px;
    height: 14px;
  }

  /* Sección Posventa & Servicios: Cards compactas con margen */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 16px;
    max-width: 420px;
    margin: 0 auto;
  }

  .service-card {
    padding: 12px 14px;
    border-radius: 6px;
  }

  .service-icon-box {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    border-radius: 4px;
  }

  .service-icon-box svg {
    width: 17px;
    height: 17px;
  }

  .service-title {
    font-size: 0.88rem;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
  }

  .service-desc {
    font-size: 0.74rem;
    line-height: 1.4;
  }

  /* Sección Nosotros */
  .dealership-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .dealership-tagline {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }

  .dealership-title {
    font-size: 1.45rem;
    margin-bottom: 14px;
  }

  .dealership-details {
    margin-bottom: 18px;
  }

  .dealership-detail-item {
    margin-bottom: 10px;
    gap: 10px;
  }

  .detail-icon svg {
    width: 20px;
    height: 20px;
  }

  .detail-text h4 {
    font-size: 0.86rem;
    margin-bottom: 2px;
  }

  .detail-text p {
    font-size: 0.78rem;
  }

  .team-container {
    margin-top: 18px;
    padding-top: 16px;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .team-card {
    padding: 10px;
  }

  .team-name {
    font-size: 0.84rem;
    margin-bottom: 2px;
  }

  .team-role {
    font-size: 0.68rem;
    margin-bottom: 6px;
  }

  .team-contact {
    font-size: 0.72rem;
  }

  .map-wrapper {
    height: 240px;
    border-radius: 6px;
  }

  /* Modal Detalles Responsive */
  .modal-content {
    max-width: 95vw;
    margin: 8px;
    max-height: 94vh;
    border-radius: 6px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }
  
  .modal-img-col {
    min-height: 180px;
    max-height: 210px;
  }
  
  .modal-info-col {
    padding: 16px 14px;
  }

  .modal-category {
    font-size: 0.74rem;
    margin-bottom: 4px;
  }

  .modal-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }

  .modal-desc {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }

  .modal-specs-table {
    margin-bottom: 16px;
  }

  .modal-specs-table td {
    padding: 5px 0;
    font-size: 0.78rem;
  }

  .modal-specs-table td.spec-name {
    font-size: 0.68rem;
  }

  .modal-footer {
    flex-direction: column;
    gap: 8px;
  }

  .modal-download-btn, .modal-whatsapp-btn {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.82rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-heading-title {
    font-size: 1.35rem !important;
    margin-bottom: 8px !important;
  }

  .contact-subdesc {
    font-size: 0.84rem !important;
    line-height: 1.45 !important;
    margin-bottom: 16px !important;
  }

  .contact-email-link {
    color: var(--text-white);
    font-size: 0.76rem !important;
    word-break: break-all;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .contact-phone-link {
    color: var(--text-white);
    font-size: 0.85rem !important;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .contact-email-link:hover, .contact-phone-link:hover {
    color: var(--primary-neon);
  }

  .contact-form-col {
    padding: 18px 14px;
    border-radius: 6px;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .form-label {
    font-size: 0.8rem;
    margin-bottom: 4px;
  }

  .form-control {
    padding: 9px 10px;
    font-size: 0.84rem;
  }

  .form-submit-btn {
    padding: 12px 18px;
    font-size: 0.85rem;
  }
  
  .footer {
    padding: 40px 0 20px;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    margin-bottom: 24px;
  }

  .footer-slogan span {
    font-size: 0.85rem;
    padding: 4px 12px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    font-size: 0.75rem;
  }
  
  .footer-links {
    justify-content: center;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  
  .hero-btn-primary, .hero-btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    font-size: 0.85rem;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .categories-carousel-track {
    grid-template-columns: repeat(4, calc(47vw - 8px));
  }
  
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 46px;
    height: 46px;
  }
}
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
}
