/* 
    DERECHOS RESERVADOS: LUMIERES ADS.

    DESARROLLADORES:
        - FULL-STACK: ING. GABRIEL ALEGRÍA.
        - FRONT-END: MTS. ING. RAÚL PORTILLO.

    RECURSO: CONFIGURACIÓN GLOBAL, ESTILOS, LETRA, COLORES PARA EL SITIO WEB (HOME-ABOUT_US).

    PROHÍBIDO LA DISTRIBUCIÓN DE ESTE APLICATIVO O SOLUCIONES CÓDIFICADAS.
*/

/* --- Subsección 2.1: Renta de Vehículos Seguros y de Alta Gama --- */
.rental-intro-section {
  padding: 50px 0; /* Más padding para que destaque */
  background-color: #ffffff; /* Fondo blanco */
  color: var(--text-color);
}

.rental-intro-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 40px; /* Espacio entre el contenido y la imagen */
}

.rental-content {
  flex: 1; /* El contenido ocupará el espacio restante */
  max-width: 700px; /* Limita el ancho del texto */
  text-align: left;
}

.rental-title {
  font-family: "Montserrat", sans-serif;
  font-size: 3.4em; /* Tamaño de fuente grande para el título principal */
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
  /* Aplicar el degradado al texto */
  background-image: linear-gradient(
    90deg,
    rgba(26, 63, 122, 1) 0%,
    rgba(48, 116, 224, 1) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rental-location {
  font-family: "Montserrat", sans-serif;
  font-size: 1.8em;
  color: var(--secondary-color-blue);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px; /* Espacio entre el ícono y el texto */
  font-weight: regular;
}

.rental-location i {
  color: var(
    --primary-color-pink
  ); /* Color del icono, usando el color del botón */
}

.rental-subtitle {
  font-family: "Montserrat", sans-serif;
  font-weight: regular;
  font-size: 1.8em;
  color: var(--primary-color-pink); /* Color secundario como en la imagen */
  margin-bottom: 35px;
  text-transform: uppercase;
}

.submit-button-view-vehicles {
  background: #c43c75;
  background: linear-gradient(
    90deg,
    rgba(196, 60, 117, 1) 0%,
    rgba(26, 63, 122, 1) 78%
  );
  color: var(--primary-color-light);
  flex-grow: 1;
  border: none;
  padding: 12px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.submit-button-view-vehicles:hover {
  background: #1a3f7a;
  background: linear-gradient(
    90deg,
    rgba(26, 63, 122, 1) 0%,
    rgba(196, 60, 117, 1) 78%
  );
  color: white;
}

.rental-description {
  font-family: "Montserrat", sans-serif;
  font-weight: regular;
  font-size: 1.2em;
  text-align: justify;
  line-height: 1.8;
  color: var(--text-color);
}

.rental-image-wrapper {
  flex-shrink: 0; /* Evita que la imagen se encoja */
  width: 45%; /* La imagen ocupará un porcentaje del ancho */
  max-width: 600px; /* Ancho máximo para la imagen */
  height: 300px; /* Altura fija para la imagen */
  border-radius: 10px;
  overflow: hidden; /* Asegura que la imagen no se salga de los bordes redondeados */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.rental-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Asegura que la imagen cubra el espacio sin distorsionarse */
  display: block; /* Elimina espacio extra debajo de la imagen */
}

/* --- Responsive Design para Subsección 2.1 --- */

/* Laptops (e.g., 1024px to 1440px) */
@media (min-width: 1024px) and (max-width: 1440px) {
  .rental-intro-section {
    padding: 60px 0;
  }
  .rental-intro-container {
    padding: 0 30px;
    gap: 30px;
  }
  .rental-title {
    font-size: 3em;
  }
  .rental-location {
    font-size: 1.6em;
    font-weight: regular;
    justify-content: flex-start; /* Alinea los elementos a la izquierda */
  }
  .rental-subtitle {
    font-size: 1.6em;
    font-weight: regular;
  }
  .rental-description {
    font-weight: regular;
    line-height: 1.8;
    font-size: 1.1em;
  }
  .rental-image-wrapper {
    width: 40%;
    height: 250px;
  }
}

/* Tablets (e.g., 768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .rental-intro-section {
    padding: 50px 0;
  }
  .rental-intro-container {
    flex-direction: column; /* Apila el contenido y la imagen en tablets */
    text-align: center;
    padding: 0 20px;
    gap: 30px;
  }
  .rental-content {
    max-width: 100%;
  }
  .rental-title {
    font-size: 2.6em;
  }
  .rental-location {
    justify-content: flex-start; /* Alinea los elementos a la izquierda */ /* Centra el icono y texto de ubicación */
    font-weight: regular;
    font-size: 1.4em;
  }
  .rental-subtitle {
    font-size: 1.4em;
    font-weight: regular;
  }
  .rental-description {
    font-size: 1em;
    line-height: 1.8;
    font-weight: regular;
  }
  .rental-image-wrapper {
    width: 80%; /* La imagen ocupa más espacio en el centro */
    max-width: 450px;
    height: 280px;
  }
}

/* Smartphones (e.g., up to 767px) */
@media (max-width: 767px) {
  .rental-intro-section {
    padding: 30px 0;
  }
  .rental-intro-container {
    flex-direction: column; /* Asegura que se apilen */
    padding: 0 15px;
    gap: 20px;
  }
  .rental-title {
    font-size: 2.2em;
    margin-bottom: 10px;
  }
  .rental-location {
    font-size: 1.2em;
    font-weight: regular;
    margin-bottom: 15px;
    justify-content: flex-start; /* Alinea los elementos a la izquierda */
  }
  .rental-subtitle {
    font-size: 1.2em;
    font-weight: regular;
    margin-bottom: 20px;
  }
  .rental-description {
    font-size: 0.9em;
    line-height: 1.6;
  }
  .rental-image-wrapper {
    width: 95%; /* La imagen ocupa casi todo el ancho */
    height: 200px;
  }
}
