/* =========================
   HEADER / H1 (NO SE MUEVE)
========================= */
.header-index {
  position: relative;
  z-index: 5;
}

.h1-rojo-index {
  color: #ed343b;
  text-align: left;
  padding-left: 5%;
  margin: 20px 0;
}

.h1-rojo-index span {
  font-size: 0.6em;
  display: block;
}

/* =========================
   HERO
========================= */
.contenedor-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   VENTANA DE ANIMACIÓN
   MISMO LUGAR DESKTOP / MOBILE
========================= */
.contenedor-creditos {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 260px;
  overflow: hidden;
  z-index: 10;
}

/* =========================
   TRACK
========================= */
.creditos-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* =========================
   BLOQUES (UNO POR VEZ)
========================= */
.credito {
  position: absolute;
  inset: 0;

  background-color: #085056;
  padding: 32px;
  text-align: right;

  opacity: 0;
  transform: translateY(-100%);
  animation: bajar 12s infinite;
}

/* =========================
   SECUENCIA
========================= */
.credito:nth-child(1) { animation-delay: 0s; }
.credito:nth-child(2) { animation-delay: 3s; }
.credito:nth-child(3) { animation-delay: 6s; }
.credito:nth-child(4) { animation-delay: 9s; }

/* =========================
   ANIMACIÓN
========================= */
@keyframes bajar {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(0);
  }
  60% {
    opacity: 0;
    transform: translateY(100%);
  }
  100% {
    opacity: 0;
    transform: translateY(100%);
  }
}

/* =========================
   TEXTO Y BOTÓN
========================= */
.credito h2 {
  color: #e5eef1;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.credito p {
  color: #e5eef1;
  font-size: 1rem;
  margin-bottom: 16px;
}

.credito .pd-btn {
  display: inline-block;
  padding: 14px 28px;
  background-color: #ed343b;
  color: #e5eef1;
  text-decoration: none;
  font-weight: 700;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .contenedor-creditos {
    width: 260px;
    height: 180px;
    right: 12px;
  }

  .credito {
    padding: 16px;
  }

  .credito h2 {
    font-size: 1.2rem;
  }

  .credito p {
    font-size: 0.85rem;
  }
}
/* FEATURES · ICONOS 50x50 · SOLO ESTE BLOQUE */
.pd-col-3 .pd-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pd-col-3 .pd-feature img {
  width: 50px;
  height: 50px;
  max-width: 50px;
  max-height: 50px;
  flex-shrink: 0;
  object-fit: contain;
}

.pd-col-3 .pd-feature p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

/* =========================
   CLIENTES / LOGOS - CORREGIDO
========================= */
.clientes-section {
  padding: 80px 0;
  background-color: var(--fondo-pag); /* Aseguramos el fondo según tu instrucción */
}

.clientes-section h2 {
  text-align: center;
  margin-bottom: 56px;
  color: var(--azul-corp); /* Color institucional para el H2 */
}

/* El H1 específico para index.php como solicitaste */
h1 {
  color: #ed343b !important; 
}

.clientes-grid {
  display: grid;
  /* Usamos minmax para que nunca desborde el contenedor */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  gap: 40px;
  align-items: center;
  justify-items: center;
}

.cliente-logo {
  width: 100%;       /* Ocupa el ancho de la columna */
  max-width: 220px;  /* Tamaño máximo visual más equilibrado */
  aspect-ratio: 1 / 1; /* Mantiene el cuadrado sin forzar pixeles fijos */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #ffffff; /* Fondo blanco para resaltar el logo */
  border-radius: 8px;  /* Opcional: suaviza las esquinas del recuadro del logo */
}

.cliente-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.hero-dual {
  display: flex;
  width: 100%;
  min-height: 420px;
}

.hero-bloque {
  width: 50%;
  display: flex;
  align-items: center;
  padding: 60px;
  box-sizing: border-box;
  color: #e5eef1;
}

.hero-inner {
  max-width: 520px;
}

.hero-bloque h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.hero-bloque p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* ELÉCTRICO */
.hero-electrico {
  background:
    linear-gradient(rgba(8,80,86,0.85), rgba(8,80,86,0.85)),
    url("../images/hero-electrico.jpg") center/cover no-repeat;
}

/* RENTAL */
.hero-rental {
  background:
    linear-gradient(rgba(22,35,43,0.85), rgba(22,35,43,0.85)),
    url("../images/hero-rental.jpg") center/cover no-repeat;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-dual {
    flex-direction: column;
  }

  .hero-bloque {
    width: 100%;
    padding: 40px 24px;
  }
}

/* =========================
   RESPONSIVE CLIENTES
========================= */
@media (max-width: 1024px) {
  .clientes-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .clientes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .clientes-grid {
    grid-template-columns: 1fr;
  }
  .cliente-logo {
    max-width: 180px;
  }
}/* ==================================================
   RESPONSIVE HEADER RENTAL-TORRE
================================================== */
@media (max-width: 768px) {
  
  /* Forzar header en columna única */
  .header-index .pd-col-2 {
    display: block !important;
    padding: 0;
  }
  
  .header-index .pd-col-2 > div {
    margin-bottom: 32px;
    width: 100%;
  }
  
  /* H1 ajustado para mobile */
  .header-index h1 {
    font-size: 1.8rem !important;
    line-height: 1.3;
    margin-bottom: 16px;
  }
  
  /* Texto descriptivo */
  .header-index p {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  
  /* Contenedor de botones apilados */
  .header-index .pd-col-2 .pd-col-2 {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
  }
  
  /* Botones del header */
  .header-index .pd-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 24px;
  }
}