/* === THE MECHANIC WORKSHOP - RACING RED & CARBON DESIGN === */

:root {
  --primary: #E61C24;
  --primary-dark: #B91C1C;
  --primary-light: #FF4D56;
  --primary-glow: rgba(230, 28, 36, 0.4);
  --dark: #0A0A0A;
  --dark-secondary: #121212;
  --dark-tertiary: #1C1C1E;
  --dark-card: rgba(24, 24, 27, 0.7);
  --text: #ffffff;
  --text-muted: #a3a3a3;
  --border: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(230, 28, 36, 0.3);
  --accent-red: #E61C24;
  --accent-green: #22c55e;
  --font-main: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-glow: 0 10px 30px rgba(230, 28, 36, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* === HEADER === */
header {
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

header nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 45px;
  border-radius: 8px;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  transition: 0.3s;
  padding: 0.5rem 0;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(13,13,13,0.95) 0%, rgba(26,26,26,0.9) 100%),
              url('logo.png') center/contain no-repeat;
  padding: 120px 2rem 80px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(230, 28, 36, 0.12);
  color: var(--primary-light);
  border: 1px solid var(--border-glow);
  padding: 0.6rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(230, 28, 36, 0.15);
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero h1 span {
  background: linear-gradient(135deg, #FF4D56 0%, #E61C24 50%, #B91C1C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 650px;
}

.hero .btn, .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #E61C24 0%, #B91C1C 100%);
  color: #ffffff;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(230, 28, 36, 0.35);
}

.hero .btn:hover, .btn-primary:hover {
  background: linear-gradient(135deg, #FF4D56 0%, #E61C24 100%);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(230, 28, 36, 0.55);
}

/* === SECTIONS === */
.section {
  padding: 80px 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

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

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

/* === SERVICES GRID === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--dark-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(230, 28, 36, 0.15);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card .icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.service-card:hover .icon {
  transform: scale(1.15) rotate(3deg);
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === FILTERS === */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: var(--dark-tertiary);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 600;
}

.filter-btn:hover, .filter-btn.active {
  background: linear-gradient(135deg, #E61C24 0%, #B91C1C 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(230, 28, 36, 0.35);
}

/* === ABOUT === */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat {
  background: var(--dark-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* === TRACKING SECTION === */
.seguimiento-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.seguimiento-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

#form-seguimiento {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

#placa-seguimiento {
  background: var(--dark-secondary);
  border: 2px solid var(--border);
  color: var(--text);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  width: 300px;
  outline: none;
  transition: 0.3s;
}

#placa-seguimiento:focus {
  border-color: var(--primary);
}

.seguimiento-resultado {
  margin-top: 2rem;
  background: var(--dark-secondary);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border);
}

.estado-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  margin: 1rem 0;
}

.estado-recibido { background: #6366f1; color: white; }
.estado-diagnostico { background: #f59e0b; color: black; }
.estado-espera { background: #ef4444; color: white; }
.estado-reparacion { background: #3b82f6; color: white; }
.estado-entrega { background: #22c55e; color: white; }

/* === CONTACT === */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item .icon {
  font-size: 2rem;
}

.contact-item h4 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.contact-item p, .contact-item a {
  color: var(--text-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  background: var(--dark-secondary);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-form .btn {
  background: var(--primary);
  color: var(--dark);
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form .btn:hover {
  background: var(--primary-dark);
}

/* === FOOTER === */
footer {
  background: var(--dark-secondary);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.footer-section h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  font-size: 1.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
}

/* === AUTH MODAL === */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal.hidden { display: none; }

.modal-content {
  background: var(--dark-secondary);
  border-radius: 16px;
  padding: 2rem;
  max-width: 450px;
  width: 90%;
  border: 1px solid var(--border);
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--primary);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--dark);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  background: var(--primary);
  color: var(--dark);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--dark-tertiary);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--border);
}

/* === SYSTEM (ADMIN) STYLES === */
.system-container {
  display: none;
  padding-top: 80px;
}

.system-sidebar {
  position: fixed;
  left: 0;
  top: 80px;
  width: 250px;
  height: calc(100vh - 80px);
  background: var(--dark-secondary);
  border-right: 1px solid var(--border);
  padding: 1.5rem;
}

.system-sidebar ul {
  list-style: none;
}

.system-sidebar li {
  margin-bottom: 0.5rem;
}

.system-sidebar a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--text-muted);
  transition: 0.3s;
}

.system-sidebar a:hover,
.system-sidebar a.active {
  background: var(--dark-tertiary);
  color: var(--primary);
}

.system-main {
  margin-left: 250px;
  padding: 2rem;
}

.section-system {
  display: none;
}

.section-system.active {
  display: block;
}

/* === MOTOS GRID === */
.motos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.moto-card {
  background: var(--dark-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: 0.3s;
}

.moto-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.moto-placa {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.moto-marca {
  color: var(--text-muted);
  margin: 0.5rem 0;
}

.moto-card .btn {
  width: 100%;
  margin-top: 1rem;
}

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

/* === TIMELINE === */
.estado-timeline {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  position: relative;
}

.estado-timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.timeline-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark-tertiary);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.timeline-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.timeline-item.active .timeline-icon {
  border-color: var(--primary);
  background: var(--primary);
}

.timeline-item.completed .timeline-icon {
  border-color: var(--accent-green);
  background: var(--accent-green);
}

/* === FOTO MODAL === */
#modal-foto-grande {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

#modal-foto-grande.hidden { display: none; }

#modal-foto-grande img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

#modal-foto-grande .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
/* === MAP === */
.map-container {
  max-width: 1200px;
  margin: 0 auto 3rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-container iframe {
  display: block;
}

/* === UTILITIES === */
.hidden {
  display: none !important;
}

/* === NUESTROS TRABAJOS (CAROUSEL & PORTFOLIO) === */
.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding: 1rem 0;
}
.carousel-track-container {
  overflow: hidden;
  width: 100%;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
}
.work-card {
  flex: 0 0 100%;
  padding: 0 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
/* Responsive sizes: */
@media (min-width: 768px) {
  .work-card {
    flex: 0 0 50%;
  }
}
@media (min-width: 1024px) {
  .work-card {
    flex: 0 0 33.333%;
  }
}

.work-card-inner {
  background: var(--dark-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: border-color 0.3s ease, transform 0.3s ease;
  position: relative;
}
.work-card-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.work-card:hover .work-card-inner {
  transform: translateY(-5px);
  border-color: var(--primary);
}
.work-card:hover .work-card-inner::after {
  opacity: 1;
}
.work-img-container {
  position: relative;
  padding-top: 66.666%; /* 3:2 Aspect Ratio */
  overflow: hidden;
  background: #000;
}
.work-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.work-card:hover .work-img {
  transform: scale(1.05);
}
.work-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(13, 13, 13, 0.85);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
}
.work-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.work-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}
.work-moto {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.work-service {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}
.work-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1rem;
  flex-grow: 1;
}
.work-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.work-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid var(--border);
  color: var(--text);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  outline: none;
}
.carousel-arrow:hover {
  background: var(--primary);
  color: var(--dark);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(255,215,0,0.5);
}
.carousel-arrow-prev {
  left: 10px;
}
.carousel-arrow-next {
  right: 10px;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-dot.active {
  background: var(--primary);
  width: 25px;
  border-radius: 5px;
}

/* Grid & Portfolio Page */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Page header & intro */
.portfolio-header {
  text-align: center;
  padding: 120px 1rem 2rem;
  background: linear-gradient(180deg, var(--dark-secondary) 0%, var(--dark) 100%);
  border-bottom: 1px solid var(--border);
}
.portfolio-header h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}
.portfolio-header h1 span {
  color: var(--primary);
}
.portfolio-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Filters Placeholder */
.portfolio-filters-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  background: var(--dark-secondary);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.filter-select {
  background: var(--dark-tertiary);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
}
.filter-select:hover, .filter-select:focus {
  border-color: var(--primary);
}
.filter-badge-info {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Load More button */
.load-more-container {
  text-align: center;
  margin: 3rem auto;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--dark);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}
.btn-outline:disabled {
  border-color: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: transparent;
}

/* Lightbox Modal styling */
.lightbox {
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 2100;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(26,26,26,0.5);
}
.lightbox-close:hover {
  color: var(--primary);
  background: rgba(26,26,26,0.8);
}
.lightbox-content-container {
  position: relative;
  max-width: 85%;
  max-height: 75vh;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  border-radius: 8px;
  overflow: hidden;
}
.lightbox-content {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}
.lightbox-caption {
  margin: 1.5rem auto 0;
  text-align: center;
  color: #fff;
  font-size: 1rem;
  max-width: 80%;
}
.lightbox-caption h3 {
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.lightbox-caption p {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-weight: bold;
  font-size: 24px;
  transition: 0.3s ease;
  border-radius: 50%;
  user-select: none;
  cursor: pointer;
  width: 50px;
  height: 50px;
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2050;
}
.lightbox-nav:hover {
  background: var(--primary);
  color: var(--dark);
  border-color: var(--primary);
}
.lightbox-prev {
  left: 30px;
}
.lightbox-next {
  right: 30px;
}
.lightbox-counter {
  position: absolute;
  top: 25px;
  left: 25px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(26,26,26,0.5);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}
@media (max-width: 768px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 18px; }
}

/* === LUXURY SHOWROOM & DEALERSHIP EXTENSION (INDEX ONLY) === */
.showroom-header {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(230, 28, 36, 0.2);
}

.logo-img-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(230, 28, 36, 0.1);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img-wrapper img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-system-access {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(230, 28, 36, 0.45);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 0 12px rgba(230, 28, 36, 0.15);
}

.btn-system-access:hover {
  background: rgba(230, 28, 36, 0.18);
  border-color: #FF4D56;
  box-shadow: 0 0 20px rgba(230, 28, 36, 0.4);
  transform: translateY(-2px);
}

.btn-header-cta {
  background: linear-gradient(135deg, #E61C24 0%, #B91C1C 100%);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(230, 28, 36, 0.35);
  transition: all 0.3s ease;
}

.btn-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230, 28, 36, 0.55);
}

/* --- HERO SHOWROOM --- */
.showroom-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 10%, rgba(230, 28, 36, 0.18) 0%, rgba(10, 10, 10, 0.98) 75%),
              linear-gradient(180deg, #0A0A0A 0%, #0F0F10 100%);
  padding: 130px 1.5rem 80px;
  overflow: hidden;
}

.hero-ambient-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, rgba(230, 28, 36, 0.25) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 1.2rem;
  color: #FFFFFF;
  text-transform: uppercase;
}

.gradient-text {
  background: linear-gradient(135deg, #FF4D56 0%, #E61C24 50%, #B91C1C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #E61C24;
  border-radius: 50%;
  box-shadow: 0 0 10px #E61C24;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230, 28, 36, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(230, 28, 36, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230, 28, 36, 0); }
}

/* TELEMETRY GRID */
.hero-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin: 2.5rem 0;
  text-align: left;
}

.telemetry-card {
  background: rgba(24, 24, 27, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: all 0.3s ease;
}

.telemetry-card:hover {
  background: rgba(28, 28, 32, 0.85);
  border-color: rgba(230, 28, 36, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 15px rgba(230, 28, 36, 0.15);
}

.telemetry-icon {
  font-size: 2.2rem;
  width: 54px;
  height: 54px;
  background: rgba(230, 28, 36, 0.1);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.telemetry-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.telemetry-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.btn-hero-main {
  font-size: 1.1rem !important;
  padding: 1.1rem 2.8rem !important;
}

.btn-hero-sub {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 1.1rem 2.5rem !important;
  border-radius: var(--radius-full) !important;
  font-weight: 700 !important;
  transition: all 0.3s ease !important;
}

.btn-hero-sub:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

/* BRANDS BAR */
.showroom-brands-bar {
  background: #0D0D0E;
  border-y: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(230, 28, 36, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.2rem 1.5rem;
}

.brands-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.brands-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary-light);
}

.brands-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.brand-tag:hover {
  color: #fff;
  border-color: var(--primary);
  background: rgba(230, 28, 36, 0.1);
}

/* TRACKER CARD */
.section-seguimiento {
  padding: 70px 1.5rem;
}

.seguimiento-card-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(24, 24, 27, 0.9) 0%, rgba(18, 18, 20, 0.95) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(230, 28, 36, 0.1);
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary);
  background: rgba(230, 28, 36, 0.1);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.tracker-form {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.input-glow-group input {
  background: #0A0A0A;
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 1rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  width: 320px;
  max-width: 100%;
  outline: none;
  transition: all 0.3s ease;
}

.input-glow-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(230, 28, 36, 0.3);
}

.btn-track {
  padding: 1rem 2rem !important;
  font-size: 1rem !important;
}

.section-header-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

.section-dark-accent {
  background: #0E0E10;
}

/* SHOWROOM FORM */
.showroom-form {
  background: var(--dark-tertiary);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
}

.btn-submit-contact {
  width: 100%;
  padding: 1.1rem !important;
  font-size: 1.05rem !important;
  margin-top: 1rem;
}

/* FOOTER */
.showroom-footer {
  background: #080808;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3rem 1.5rem;
  text-align: center;
}

.footer-brand {
  margin-bottom: 1.2rem;
}

.footer-logo-text {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--primary);
  display: block;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .hero-title { font-size: 3rem; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 2.2rem; }
  .btn-header-cta, .btn-system-access { font-size: 0.75rem; padding: 0.45rem 0.8rem; }
}

/* ABOUT & FEATURES SHOWROOM STYLING */
.about-content-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.about-p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.stat-card {
  background: var(--dark-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.8rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(230, 28, 36, 0.15);
}

.stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #FF4D56, #E61C24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.3rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

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

.feature-card {
  background: var(--dark-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.35s ease;
  position: relative;
}

.feature-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 20px rgba(230, 28, 36, 0.12);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

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

.cobertura-card {
  background: var(--dark-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  text-align: center;
  transition: all 0.3s ease;
}

.cobertura-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.cobertura-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.cobertura-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}

.cobertura-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 992px) {
  .about-content-wrapper { grid-template-columns: 1fr; gap: 2rem; }
  .about-stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 576px) {
  .about-stats-grid { grid-template-columns: 1fr; }
}

/* CONTACT SHOWROOM CARD */
.contact-card-showroom {
  background: var(--dark-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  height: 100%;
}

.contact-card-showroom .contact-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.contact-card-showroom .icon {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  background: rgba(230, 28, 36, 0.1);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-showroom h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}

.contact-card-showroom p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.link-maps, .link-wa {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-top: 0.4rem;
  transition: all 0.3s ease;
}

.link-maps:hover, .link-wa:hover {
  color: #fff;
  text-decoration: underline;
}

.badge-tag-sm {
  display: inline-block;
  background: rgba(230, 28, 36, 0.1);
  color: var(--primary);
  border: 1px solid var(--border-glow);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-top: 0.4rem;
}


