/* =========================================
   VARIABLES Y RESET
   ========================================= */
.container{
    width:100%;
    max-width:1400px;
    margin:auto;
    padding: 0 clamp(16px, 4vw, 40px);
}

:root{
--white:#ffffff;
--red:#d72638;
--navy:#001f3f;
--beige-light:#fdf5e6;
--font-main:'Poppins',sans-serif;

/* 🔥 NUEVO: variable para header */
--header-height:107px;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  font-family: var(--font-main);
  background: linear-gradient(180deg, #ffffff, #f4f6f8);
  color: var(--navy);
  line-height: 1.7;
  padding-top: var(--header-height);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* =========================================
   TITULO
   ========================================= */
.section-title {
  font-size:42px;
  color: var(--red);
  margin-bottom: 2px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
  margin-top:64px;
}

/* =========================================
   BLOQUE PRINCIPAL
   ========================================= */
.corporate-block.highlighted {
  background: var(--white);
  border-radius: 18px;
  padding-left: 50px;
  padding-right: 50px;
  padding-top: 7px;
  border-left: 6px solid var(--red);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  margin-top: 18px;
  margin-bottom: 50px;
  transition: all 0.3s ease;
  min-height: 90vh;
}

.corporate-block.highlighted:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

/* =========================================
   IMAGEN FLOTA (🔥 FIX AQUÍ)
   ========================================= */
.fleet-image {
  margin-bottom: 0px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;

  /* 🔥 AJUSTE CLAVE */
  height: calc(100vh - var(--header-height));
}

.fleet-image img {
  width: 124%;
  height: 60vh;
  object-fit: fill;   
  transition: transform 0.6s ease;
}

.fleet-image:hover img {
  transform: scale(1.05);
}

/* =========================================
   BOTONES
   ========================================= */
.fleet-buttons-outside {
  display: flex;
  justify-content: center;
  gap: 88px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.btn-truck {
  background: var(--red);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(215, 38, 56, 0.2);
}

.btn-truck:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 25px rgba(215, 38, 56, 0.35);
}

/* =========================================
   TEXTO
   ========================================= */
.corporate-block h2 {
  font-size: 26px;
  margin-bottom: 15px;
}

.corporate-block p {
  color: #444;
  font-size: 15.5px;
  text-align: justify;
}

/* =========================================
   LISTA PROFESIONAL
   ========================================= */
.custom-list { 
  list-style: none; 
  margin-top: 25px; 
}

.custom-list li {
  position: relative;
  padding-left: 55px;
  margin-bottom: 18px;
  font-size: 15px;
}

.custom-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width:75px;
  height:26px;
  background: url('../img/logolista.png') no-repeat center;
  background-size: contain;
  opacity: 0.9;
}

/* =========================================
   MODAL PRO (AJUSTADO)
   ========================================= */
.truck-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.truck-box {
  background: white;
  border-radius: 20px;
  max-width: 1200px;
  width: 95%;
  max-height: 85vh;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  animation: modalFade 0.4s ease;
}

.truck-content {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.truck-img {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.truck-img img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.truck-info { 
  flex: 1;
  padding: 25px;
  overflow-y: auto;
}

#truckTitle {
  font-size: 34px;
  color: var(--red);
  margin-bottom: 20px;
}

.specs-list {
  list-style: none;
  margin: 20px 0;
}

.specs-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.specs-list li::before {
  content: "•";
  color: var(--red);
  position: absolute;
  left: 0;
  font-size: 20px;
}

.specs-description {
  border-top: 1px solid #eee;
  padding-top: 15px;
  font-style: italic;
  color: #555;
}

.truck-box button {
  display: block;
  margin: 25px 30px 30px auto;
  padding: 12px 35px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.truck-box button:hover {
  background: #003366;
  transform: translateY(-2px);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media(max-width: 768px) {

  .section-title {
    font-size: 32px;
  }

  .corporate-block.highlighted {
    padding: 30px;
  }

  .fleet-buttons-outside {
    gap: 12px;
  }

  .btn-truck {
    padding: 10px 22px;
    font-size: 13px;
  }

  .truck-box {
    flex-direction: column;
    max-height: 90vh;
  }

  .truck-content {
    flex-direction: column;
  }

  .truck-img {
    aspect-ratio: 4 / 3;
    padding: 10px;
  }

  .truck-img img {
    max-height: 40vh;
  }

  .truck-info {
    padding: 20px;
    overflow-y: auto;
  }

  /* 🔥 FIX MOBILE */
  .fleet-image {
    height: calc(100vh - var(--header-height));
  }
}

.close-modal {
  position: absolute;
  top: 40px;
  right: 40px;
  font-size: 50px;
  font-weight: bold;
  color: red;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--red);
}

@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.truck-box button {
  display: none !important;
}

