/* =========================================
   VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
*, *::before, *::after { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

:root {
  --red: #D72323; /* Rojo principal de Transporte Bara */
  --red-dark: #A81818; 
  --red-light: #FF3B3B;
  --white: #FFFFFF; 
  --dark: #111111; 
  --dark2: #1A1A1A;
  --accent-blue: #0d2a3a; /* Para las ventanas del camión */
}

html { 
  scroll-behavior: smooth; 
}

body { 
  font-family: 'Barlow', sans-serif; 
  background: var(--dark); 
  color: var(--white); 
  overflow-x: hidden; 
}

section { padding: 100px 80px; }
a { text-decoration: none; }

/* =========================================
   NAVEGACIÓN (HEADER)
   ========================================= */
nav { 
  position: fixed; top: 0; left: 0; right: 0; 
  z-index: 100; display: flex; align-items: center; 
  justify-content: space-between; padding: 18px 48px; 
  background: rgba(10,10,10,0.92); backdrop-filter: blur(12px); 
  border-bottom: 1px solid rgba(215,35,35,0.25); 
}
.logo { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 1.8rem; letter-spacing: 0.04em; color: var(--white); text-transform: uppercase; }
.logo span { color: var(--red); }
nav ul { list-style: none; display: flex; gap: 36px; }
nav ul a { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8A8A8A; transition: color 0.2s; }
nav ul a:hover { color: var(--red); }
.nav-cta { background: var(--red); color: var(--white) !important; padding: 10px 22px; border-radius: 2px; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--red-dark) !important; color: var(--white) !important; }

/* =========================================
   BOTONES
   ========================================= */
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; gap: 10px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 16px 32px; border-radius: 2px; transition: all 0.2s; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-secondary { border: 1px solid rgba(255,255,255,0.25); color: var(--white); font-weight: 600; }
.btn-secondary:hover { border-color: var(--red); color: var(--red); }

/* =========================================
   SECCIÓN INICIO (HERO) - Ajustes precisos
   ========================================= */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; position: relative; overflow: hidden; padding-top: 80px; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 80% 50%, rgba(215,35,35,0.12) 0%, transparent 70%), repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(255,255,255,0.015) 80px, rgba(255,255,255,0.015) 81px); pointer-events: none; }
.diagonal-accent { position: absolute; right: 0; top: 0; bottom: 0; width: 50%; background: linear-gradient(135deg, transparent 0%, rgba(215,35,35,0.06) 100%); clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%); pointer-events: none; }
.hero-content { padding: 80px 48px 80px 80px; position: relative; z-index: 2; animation: fadeUp 0.8s ease both; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(215,35,35,0.15); border: 1px solid rgba(215,35,35,0.4); color: var(--red-light); font-family: 'Barlow Condensed', sans-serif; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; padding: 7px 16px; border-radius: 2px; margin-bottom: 28px; }
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--red); border-radius: 50%; animation: pulse 1.5s infinite; }
.hero h1 { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: clamp(3.2rem, 5.5vw, 5.5rem); line-height: 0.95; text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 24px; }

/* AJUSTE CLAVE: Subrayado rojo bold como en ejemplo 1.JPG */
.hero h1 .line-red { 
  color: var(--red); 
  border-bottom: 4px solid var(--red); 
  padding-bottom: 5px; 
}

.hero p { font-size: 1.05rem; line-height: 1.65; color: rgba(255,255,255,0.65); max-width: 480px; margin-bottom: 40px; font-weight: 300; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; padding: 80px 80px 80px 40px; gap: 20px; animation: fadeUp 0.8s 0.2s ease both; }

/* Contenedor para imagen real en Hero */
.hero-img-container {
    width: 100%;
    max-width: 480px; /* Tamaño máximo de la foto en PC */
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
}
.hero-img-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   ESTADÍSTICAS E ÍCONO CAMIÓN (No se modificó)
   ========================================= */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; width: 100%; max-width: 380px; }
.stat-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); padding: 24px 20px; border-radius: 4px; transition: border-color 0.2s, background 0.2s; }
.stat-card:hover { border-color: rgba(215,35,35,0.4); background: rgba(215,35,35,0.06); }
.stat-card .num { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 2.6rem; color: var(--red); line-height: 1; margin-bottom: 6px; }
.stat-card .label { font-size: 0.78rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.truck-icon-wrap { width: 100%; max-width: 380px; background: rgba(215,35,35,0.08); border: 1px solid rgba(215,35,35,0.2); border-radius: 4px; padding: 32px; display: flex; align-items: center; justify-content: center; }
.truck-svg { width: 100%; max-width: 280px; }

/* =========================================
   SECCIONES GENERALES
   ========================================= */
.section-label { font-family: 'Barlow Condensed', sans-serif; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.section-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: clamp(2.2rem, 3.5vw, 3.2rem); text-transform: uppercase; line-height: 1.05; margin-bottom: 20px; }
.section-desc { font-size: 1rem; color: rgba(255,255,255,0.55); line-height: 1.7; max-width: 520px; font-weight: 300; }

/* =========================================
   SERVICIOS - Ajustes precisos como en ejemplo 2.JPG
   ========================================= */
.services { background: var(--dark2); }
.services-header { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 60px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }

/* AJUSTE CLAVE: Borde rojo siempre visible en la parte superior */
.service-card { 
  background: rgba(255,255,255,0.03); 
  padding: 36px 28px; 
  border-top: 3px solid var(--red); 
  transition: background 0.2s; 
  cursor: default; 
}
.service-card:hover { 
  background: rgba(215,35,35,0.07); 
}
.service-icon { 
  width: 32px; height: 32px; 
  margin-bottom: 18px; 
  display: block; 
}
/* Estilo para los iconos SVG de servicios */
.service-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--red); /* Color rojo brillante */
}
.service-card h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; color: var(--white); }
.service-card p { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.6; font-weight: 300; }

/* =========================================
   FLOTA - Ajustes para grilla de 6
   ========================================= */
.fleet-section { background: var(--dark2); padding: 100px 80px; }
.fleet-specs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; margin-bottom: 56px; }
.fleet-tag { display: inline-flex; align-items: center; gap: 7px; background: rgba(215,35,35,0.12); border: 1px solid rgba(215,35,35,0.3); color: rgba(255,255,255,0.85); font-family: 'Barlow Condensed', sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 14px; border-radius: 2px; }
.fleet-tag::before { content: '✓ '; color: var(--red); font-weight: 900; }

/* Grilla de 2 columnas para 6 camiones en PC */
.fleet-trucks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.truck-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 4px; overflow: hidden; transition: border-color 0.25s, transform 0.25s; }
.truck-card:hover { border-color: rgba(215,35,35,0.5); transform: translateY(-4px); }
.truck-img-wrap { position: relative; overflow: hidden; height: 300px; }
.truck-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.truck-card:hover .truck-img-wrap img { transform: scale(1.04); }
.truck-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,0.6) 0%, transparent 50%); pointer-events: none; }
.truck-badge { position: absolute; top: 16px; left: 16px; background: var(--red); color: var(--white); font-family: 'Barlow Condensed', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 12px; border-radius: 2px; }
.truck-info { padding: 24px 28px 28px; }
.truck-info h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; color: var(--white); }
.truck-info p { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.65; font-weight: 300; margin-bottom: 16px; }
.truck-features { display: flex; flex-wrap: wrap; gap: 8px; }
.truck-feat { font-family: 'Barlow Condensed', sans-serif; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 5px 11px; border-radius: 2px; }

/* =========================================
   NOSOTROS - Ajustes Precisos como en ejemplo 3.JPG
   ========================================= */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-visual { position: relative; }
.highlight-box { 
  background: var(--red); 
  padding: 40px; 
  border-radius: 4px; 
  animation: fadeUp 0.8s 0.2s ease both; 
}
/* AJUSTE CLAVE: Texto Bold, Rojo y Grande como en ejemplo 3.JPG */
.highlight-box p { 
  font-size: 1.4rem; 
  line-height: 1.5; 
  color: var(--white); 
  font-weight: 700; 
  font-family: 'Barlow Condensed', sans-serif; 
  text-transform: uppercase; 
  letter-spacing: 0.02em; 
}
.features-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.feature-item { display: flex; align-items: flex-start; gap: 16px; }
.feature-num { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 2rem; color: rgba(215,35,35,0.3); line-height: 1; }
.feature-text h4 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.1rem; text-transform: uppercase; margin-bottom: 4px; color: var(--white); }
.feature-text p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.6; font-weight: 300; }

/* =========================================
   CONTACTO (No se modificó)
   ========================================= */
.contact-section { background: var(--dark2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-top: 60px; }
.contact-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); padding: 32px 28px; border-radius: 4px; display: flex; align-items: center; gap: 20px; transition: border-color 0.2s, background 0.2s; cursor: pointer; }
.contact-card:hover { border-color: var(--red); background: rgba(215,35,35,0.06); }
.contact-card .c-icon { font-size: 2rem; color: var(--red); }
.contact-card .c-label { font-size: 0.78rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.contact-card .c-value { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.4rem; color: var(--white); margin: 4px 0; }
.contact-card .c-desc { font-size: 0.85rem; color: rgba(255,255,255,0.35); font-weight: 300; }

/* =========================================
   UBICACIÓN / CTA (No se modificó)
   ========================================= */
.cta-section { background: linear-gradient(135deg, #111 0%, #0A0A0A 100%); border-top: 1px solid rgba(255,255,255,0.06); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 100px 80px; }
.cta-section h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: clamp(2.2rem, 3.5vw, 3rem); text-transform: uppercase; line-height: 1; max-width: 600px; color: var(--white); }
.cta-section p { font-size: 1rem; color: rgba(255,255,255,0.5); line-height: 1.7; max-width: 420px; font-weight: 300; }
.btn-white { display: inline-flex; align-items: center; gap: 10px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 14px 28px; border-radius: 2px; transition: background 0.2s, color 0.2s; background: var(--red); color: var(--white); border: none; }
.btn-white:hover { background: var(--red-dark); transform: translateY(-2px); }

/* =========================================
   FOOTER (PIE DE PÁGINA) (No se modificó)
   ========================================= */
footer { background: #0A0A0A; padding: 48px 80px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-brand .logo { font-size: 1.5rem; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.4); line-height: 1.6; font-weight: 300; }
footer h5 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
footer ul { list-style: none; }
footer ul li { font-size: 0.88rem; color: rgba(255,255,255,0.45); padding: 5px 0; font-weight: 300; }
footer ul li a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
footer ul li a:hover { color: var(--red); }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: rgba(255,255,255,0.25); }

/* =========================================
   BANNER "COTIZAR AHORA" (NUEVO)
   ========================================= */
.cotizar-banner {
  background: linear-gradient(135deg, rgba(215,35,35,0.08) 0%, var(--dark2) 100%);
  border-top: 1px solid rgba(215,35,35,0.15);
  border-bottom: 1px solid rgba(215,35,35,0.15);
  text-align: center;
  padding: 100px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cotizar-banner-content {
  max-width: 600px;
}
.cotizar-banner h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 3rem);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--white);
}
.cotizar-banner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
  line-height: 1.6;
  font-weight: 300;
}
/* Hacemos el botón un poco más grande para que resalte más */
.btn-mega {
  font-size: 1.15rem;
  padding: 18px 100px;
  letter-spacing: 0.1em;
}

/* =========================================
   ANIMACIONES (No se modificó)
   ========================================= */
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.4); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* =========================================
   ADAPTACIÓN A MÓVILES (RESPONSIVE)
   ========================================= */
@media (max-width: 900px) {
  nav { padding: 16px 24px; } 
  nav ul { display: none; }
  section, .fleet-section { padding: 70px 24px; }
  .hero { grid-template-columns: 1fr; } 
  .hero-content { padding: 80px 24px 40px; } 
  .hero-visual { padding: 0 24px 60px; }
  .services-header { grid-template-columns: 1fr; gap: 20px; } 
  .services-grid { grid-template-columns: 1fr; gap: 20px; } /* Ajuste para móviles */
  .why { grid-template-columns: 1fr; gap: 40px; }
  .fleet-trucks { grid-template-columns: 1fr; gap: 16px; } /* Ajuste para móviles */
  .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; justify-content: center; }
  footer { grid-template-columns: 1fr; padding: 48px 24px; }
}
/* Estilo para las etiquetas de Seguimiento y Habilitación */
/* =========================================
   ETIQUETAS DE SEGUIMIENTO Y HABILITACIÓN
   ========================================= */
.info-tag {
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--red); 
  padding: 20px 28px;
  margin-top: 16px;
  border-radius: 2px;
  transition: background 0.2s, border-color 0.2s;
}

.info-tag:hover {
  background: rgba(215, 35, 35, 0.05); /* Un tinte rojizo sutil al pasar el mouse */
}

.info-tag h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 8px; /* Espacio entre el título y la descripción */
}

.info-tag p {
  font-size: 0.85rem; /* Igualado al tamaño de las descripciones 01 y 02 */
  color: rgba(255, 255, 255, 0.5); /* Igualado al color grisáceo sutil */
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}
.info-tag:hover {
  background: rgba(255, 255, 255, 0.08);
}

.info-tag p {
  font-size: 0.85rem; /* Igualado al tamaño de las descripciones 01 y 02 */
  color: rgba(255, 255, 255, 0.5); /* Igualado al color grisáceo sutil */
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}