@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================
   SISTEMA DE DISEÑO - CHAVÍN MOTORS
   ========================================== */
:root {
  /* Colores Corporativos */
  --color-brand-red: #D90429;
  --color-brand-red-hover: #EF233C;
  --color-brand-red-pulse: rgba(217, 4, 41, 0.4);
  --color-brand-red-light: rgba(217, 4, 41, 0.1);
  
  /* Escala de Grises - Tema Oscuro Premium */
  --bg-main: #0B0C0E;
  --bg-surface: #131518;
  --bg-surface-hover: #1B1E22;
  --bg-surface-glass: rgba(19, 21, 24, 0.75);
  
  /* Escala de Grises - Para Contrastes y Elementos Claros */
  --bg-light: #F4F5F6;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(217, 4, 41, 0.5);
  
  /* Tipografía */
  --text-main: #FFFFFF;
  --text-secondary: #E4E6EB;
  --text-muted: #9AA0A6;
  --text-dark: #121416;
  
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Sombras y Efectos */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--color-brand-red-pulse);
  
  /* Transiciones y Bordes */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

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

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

button {
  cursor: pointer;
}

/* ==========================================
   COMPONENTES DE DISEÑO COMUNES
   ========================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 6rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 4rem 0;
  }
}

/* Títulos y Subtítulos */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.section-header h2 span {
  color: var(--color-brand-red);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 2rem;
  }
}

/* Botones Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-title);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--color-brand-red);
  color: var(--text-main);
  box-shadow: 0 4px 15px rgba(217, 4, 41, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-brand-red-hover);
  box-shadow: 0 6px 20px rgba(217, 4, 41, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text-main);
  transform: translateY(-2px);
}

.btn-pulse {
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 var(--color-brand-red-pulse);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(217, 4, 41, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(217, 4, 41, 0);
  }
}

/* ==========================================
   CABECERA (NAVBAR)
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header-scrolled {
  background-color: var(--bg-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: var(--transition-smooth);
}

.header-scrolled .nav-container {
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.header-scrolled .logo-img {
  height: 42px;
}

.logo-symbol {
  color: var(--color-brand-red);
  font-size: 1.8rem;
  font-weight: 900;
}

.logo-text span {
  color: var(--color-brand-red);
}

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

.nav-link {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-brand-red);
  transition: var(--transition-smooth);
}

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

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Menú Móvil Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

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

@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 2.5rem 2rem 2.5rem;
    gap: 2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
    overflow-y: auto; /* Permite desplazamiento en pantallas bajas o modo horizontal */
    z-index: 1000;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-cta {
    display: none; /* Se integra en el menú lateral o se quita en móvil */
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
  }
}

/* ==========================================
   SECCIÓN HERO (PRINCIPAL)
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(11, 12, 14, 0.95) 40%, rgba(217, 4, 41, 0.08) 100%);
}

.hero-bg-accent {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, rgba(217, 4, 41, 0.15) 0%, rgba(0,0,0,0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-brand-red-light);
  color: var(--color-brand-red-hover);
  border: 1px solid rgba(217, 4, 41, 0.2);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero-badge span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--color-brand-red);
  border-radius: 50%;
  animation: pulse-indicator 1.5s infinite;
}

@keyframes pulse-indicator {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-content h1 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-content h1 span {
  color: var(--color-brand-red);
  display: block;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  border-top: none;
  padding-top: 0;
}

.stat-item {
  background: rgba(15, 16, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.stat-item:hover {
  border-color: var(--color-brand-red);
  transform: translateY(-4px);
  background: rgba(25, 27, 30, 0.9);
  box-shadow: 0 8px 30px rgba(217, 4, 41, 0.15);
}

.stat-item h3 {
  font-size: 1.8rem;
  color: var(--color-brand-red);
  font-weight: 800;
  margin-bottom: 0.35rem;
  letter-spacing: -0.5px;
}

.stat-item p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1.3;
  margin-bottom: 0;
  font-family: var(--font-title);
  font-weight: 600;
}

/* Gráfico / Imagen en Hero */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual-card {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  z-index: 2;
}

.visual-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background-color: var(--color-brand-red);
  color: var(--text-main);
  font-family: var(--font-title);
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.visual-details {
  margin-top: 1.5rem;
}

.visual-details h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.visual-details p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.visual-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-brand-red);
  font-weight: 600;
  font-size: 0.9rem;
}

.visual-link:hover {
  color: var(--color-brand-red-hover);
}

.visual-img-placeholder {
  width: 100%;
  height: 250px;
  background: linear-gradient(45deg, #1b1e22 0%, #2a2e35 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 3rem;
  position: relative;
}

.visual-img-placeholder::after {
  content: '⚡';
  font-size: 4rem;
  opacity: 0.3;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }
  
  .hero-badge {
    margin: 0 auto 1.5rem auto;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .hero-visual {
    display: none; /* Ocultar representación pesada en móvil */
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2.2rem; /* Se ajusta el tamaño en móviles pequeños para evitar cortes */
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
  }
}

/* ==========================================
   SECCIÓN SERVICIOS PILARES (CON PESTAÑAS)
   ========================================== */
.services-section {
  background-color: var(--bg-surface);
  position: relative;
}

.services-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
  color: var(--text-main);
  background-color: var(--color-brand-red-light);
  border: 1px solid rgba(217, 4, 41, 0.2);
}

.tab-btn-icon {
  font-size: 1.4rem;
  color: var(--color-brand-red);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
  display: block;
}

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

.service-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.service-info h3 {
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.service-scope {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.service-scope.nacional {
  background-color: var(--color-brand-red-light);
  border-color: rgba(217, 4, 41, 0.3);
  color: var(--color-brand-red-hover);
}

.service-info p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.service-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.feature-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background-color: var(--color-brand-red-light);
  border-radius: 50%;
  color: var(--color-brand-red);
  font-size: 0.8rem;
  font-weight: bold;
}

/* Gráficos de Servicios */
.service-visual-wrapper {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 380px;
  position: relative;
  box-shadow: var(--shadow-md);
}

.service-visual-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #181b1f 0%, #0d0e10 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.service-visual-img::before {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background-color: var(--color-brand-red);
  filter: blur(80px);
  opacity: 0.15;
}

.service-visual-icon {
  font-size: 6rem;
  color: var(--color-brand-red);
  z-index: 1;
  opacity: 0.85;
}

@media (max-width: 992px) {
  .services-tabs {
    flex-direction: column;
    border-bottom: none;
    padding-bottom: 0;
    gap: 0.5rem;
  }
  
  .tab-btn {
    width: 100%;
    justify-content: center;
  }
  
  .service-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .service-visual-wrapper {
    height: 280px;
    order: -1;
  }
  
  .service-features {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

/* Componente Deslizador Antes / Después (Planchado y Pintura) */
.before-after-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  user-select: none;
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.ba-image-label {
  position: absolute;
  bottom: 1rem;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--text-main);
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-family: var(--font-title);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  z-index: 3;
}

.ba-before .ba-image-label {
  left: 1rem;
}

.ba-after .ba-image-label {
  right: 1rem;
}

.ba-before {
  z-index: 1;
  background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1619642751034-765dfdf7c58e?auto=format&fit=crop&w=800&q=80'); /* Auto abollado / taller */
}

.ba-after {
  z-index: 2;
  background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1617886322168-72b886573c3c?auto=format&fit=crop&w=800&q=80'); /* Auto deportivo pintado y reluciente */
  width: 50%; /* Se modifica dinámicamente con JS */
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%; /* Se modifica con JS */
  width: 4px;
  background-color: var(--color-brand-red);
  z-index: 10;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background-color: var(--color-brand-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  box-shadow: 0 0 10px rgba(219, 4, 41, 0.5);
  font-size: 1.1rem;
  font-weight: 900;
}

/* ==========================================
   ASISTENTE DE COTIZACIÓN (INTERACTIVO)
   ========================================== */
.quote-section {
  background-color: var(--bg-main);
}

.quote-wrapper {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .quote-wrapper {
    padding: 2rem 1.5rem;
  }
}

.quote-step {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.quote-step.active {
  display: block;
}

.quote-step h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.quote-step h3 span {
  color: var(--color-brand-red);
}

.quote-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .quote-options-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.option-card {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.option-card:hover {
  border-color: var(--color-brand-red);
  transform: translateY(-4px);
  background-color: rgba(255,255,255,0.01);
}

.option-card.selected {
  border-color: var(--color-brand-red);
  background-color: var(--color-brand-red-light);
  box-shadow: 0 0 15px rgba(217, 4, 41, 0.15);
}

.option-card-icon {
  font-size: 2.5rem;
  color: var(--color-brand-red);
}

.option-card h4 {
  font-size: 1.1rem;
  text-transform: uppercase;
}

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

/* Campos de entrada del Cotizador */
.quote-inputs {
  max-width: 500px;
  margin: 0 auto 2.5rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-size: 0.9rem;
  font-family: var(--font-title);
  text-transform: uppercase;
  color: var(--text-secondary);
}

.input-field {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  width: 100%;
}

.input-field:focus {
  border-color: var(--color-brand-red);
  box-shadow: 0 0 10px rgba(219, 4, 41, 0.15);
}

/* Botones de navegación */
.quote-nav-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Paso final: Resumen */
.quote-summary {
  text-align: center;
  max-width: 550px;
  margin: 0 auto;
}

.quote-summary-icon {
  font-size: 4rem;
  color: #2EC4B6; /* Color de éxito */
  margin-bottom: 1.5rem;
}

.quote-summary-details {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0 2.5rem 0;
  text-align: left;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row span:first-child {
  color: var(--text-muted);
}

.summary-row span:last-child {
  font-weight: 600;
}

/* Barra de progreso */
.progress-bar-container {
  width: 100%;
  height: 6px;
  background-color: var(--bg-main);
  border-radius: var(--radius-full);
  margin-bottom: 3rem;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 33.33%;
  background-color: var(--color-brand-red);
  transition: var(--transition-smooth);
}

/* ==========================================
   SECCIÓN DE GRÚAS Y AUXILIO VIAL 24/7
   ========================================== */
.emergency-section {
  background: linear-gradient(135deg, #1D1F23 0%, #0F1012 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.emergency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.emergency-content h2 {
  font-size: 2.8rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.emergency-content h2 span {
  color: var(--color-brand-red);
}

.emergency-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.emergency-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.phone-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
}

.phone-card-icon {
  font-size: 2rem;
  color: var(--color-brand-red);
}

.phone-card-details span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.phone-card-details a {
  font-size: 1.4rem;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text-main);
}

.phone-card-details a:hover {
  color: var(--color-brand-red);
}

/* Mapa e Ilustración de Grúa */
.emergency-visual {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.visual-title-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.visual-status-dot {
  width: 12px;
  height: 12px;
  background-color: #2EC4B6;
  border-radius: 50%;
  animation: pulse-indicator 1.5s infinite;
}

.visual-title-box h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
}

.map-placeholder {
  background: radial-gradient(circle, #1F2226 0%, #131518 100%);
  height: 250px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
}

.map-grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

.map-marker {
  position: absolute;
  font-size: 2rem;
  color: var(--color-brand-red);
  animation: bounce 2s infinite;
}

.map-marker.huaraz {
  top: 45%;
  left: 35%;
}

.map-route-line {
  position: absolute;
  top: 48%;
  left: 38%;
  width: 30%;
  height: 2px;
  background-color: var(--color-brand-red);
  opacity: 0.4;
  transform: rotate(20deg);
}

.map-marker.nacional {
  top: 55%;
  left: 68%;
  color: var(--text-main);
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 992px) {
  .emergency-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .emergency-content h2 {
    font-size: 2.2rem;
  }
}

/* ==========================================
   SECCIÓN TESTIMONIOS Y CONFIANZA
   ========================================== */
.testimonials-section {
  background-color: var(--bg-surface);
}

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

@media (max-width: 992px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.15);
}

.stars {
  color: #FFB703;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.testimonial-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.author-avatar {
  width: 45px;
  height: 45px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-brand-red);
}

.author-details h4 {
  font-size: 1rem;
}

.author-details p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0;
}

/* ==========================================
   PORTAL B2B / CORPORATIVO (`corporativo.html`)
   ========================================== */
.corporate-hero {
  background: linear-gradient(135deg, rgba(15, 16, 18, 0.98) 30%, rgba(217, 4, 41, 0.05) 100%), 
              url('https://images.unsplash.com/photo-1518175005833-c41993301ae1?auto=format&fit=crop&w=1200&q=80'); /* Estilo industrial metalizado */
  background-size: cover;
  background-position: center;
}

.corporate-intro-section {
  background-color: var(--bg-main);
}

.corporate-grid,
.licitaciones-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.licitaciones-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.corporate-features-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.corp-feat-card {
  display: flex;
  gap: 1.25rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.corp-feat-card:hover {
  transform: translateX(6px);
  border-color: var(--color-brand-red);
}

.corp-feat-icon {
  font-size: 2.2rem;
  color: var(--color-brand-red);
  flex-shrink: 0;
}

.corp-feat-info h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.corp-feat-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 992px) {
  .corporate-grid,
  .licitaciones-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Formulario Licitación / Cotización B2B */
.b2b-form-section {
  background-color: var(--bg-surface);
}

.b2b-form-wrapper {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .b2b-form-wrapper {
    padding: 2rem 1.5rem;
  }
}

.b2b-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .b2b-form-grid {
    grid-template-columns: 1fr;
  }
}

.b2b-form-full {
  grid-column: 1 / -1;
}

/* Área de arrastre de archivos */
.file-upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.01);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.file-upload-area:hover, .file-upload-area.dragover {
  border-color: var(--color-brand-red);
  background-color: var(--color-brand-red-light);
}

.file-upload-icon {
  font-size: 2.5rem;
  color: var(--color-brand-red);
}

.file-upload-area p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.file-upload-area span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.file-selected-info {
  display: none;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-top: 1rem;
}

.file-selected-name {
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.file-remove-btn {
  color: var(--color-brand-red);
  font-size: 1.2rem;
  cursor: pointer;
}

/* Alerta de Feedback del Formulario */
.form-feedback {
  display: none;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.feedback-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.feedback-text {
  flex-grow: 1;
  line-height: 1.5;
  color: inherit;
}

.form-feedback.success {
  background-color: rgba(46, 196, 182, 0.1);
  border: 1px solid rgba(46, 196, 182, 0.3);
  color: #2EC4B6;
}

.form-feedback.error {
  background-color: var(--color-brand-red-light);
  border: 1px solid rgba(217, 4, 41, 0.2);
  color: var(--color-brand-red-hover);
}

/* ==========================================
   PIE DE PÁGINA (FOOTER)
   ========================================== */
.footer {
  background-color: #08090A;
  border-top: 1px solid var(--border-color);
  padding-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.footer-about h3 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.footer-about h3 span {
  color: var(--color-brand-red);
}

.footer-about p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

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

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.social-btn:hover {
  background-color: var(--color-brand-red);
  color: var(--text-main);
  transform: translateY(-3px);
  border-color: var(--color-brand-red);
}

.footer-links h4 {
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-brand-red);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text-main);
  padding-left: 5px;
}

.footer-contact h4 {
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-brand-red);
}

.footer-contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-contact-icon {
  color: var(--color-brand-red);
  font-size: 1.1rem;
  margin-top: 0.15rem;
}

.footer-contact a:hover {
  color: var(--text-main);
}

/* Mapa incrustado interactivo */
.footer-map-container {
  height: 180px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.footer-map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.9) contrast(1.2);
}

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

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a:hover {
  color: var(--text-main);
}

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
