
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,body {
    overflow-x: hidden;
    background-color: #fef9e7;
}

.barra-encabezado {
    background-color: #192851;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 100vw;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);

}

.contenedor-logo img {
   height: 200px;
}

.bienvenida-encabezado {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px; 
  background-color: #192851;
  color: #cdbea1; 
  font-size: 2.2em; 
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: salir-vehiculo 4s ease forwards;
  animation-delay: 0.9s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
}


.franja-amarilla {
  background-color: transparent;
  padding: 0;
  display: inline-block;
  border-radius: 0;
}

.texto-bienvenida {
  font-size: 1.8rem;
  font-weight: bold;
  color: #cdbea1;
  opacity: 0;
  animation:
    aparecer-texto 0.3s ease-in 0.2s forwards,
    desaparecer-texto 0.4s ease-out 1.3s forwards;
}





.contenido-principal {
    padding-top: 220px; 
}


.barra-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
}

.barra-links a {
    text-decoration: none;
      color: #0033a0;
       
    font-size: 23px;
    transition: color 0.3s ease;
    font-family: Arial, Helvetica, sans-serif;
    font-style: oblique;
   text-shadow: #cdbea1;;
   font-style: bold;
   
  
}

.barra-links a:hover {
    color: #192851;
}


.btn-prestamo {
    background-color: #192851;
    color: #cdbea1;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-prestamo:hover {
    background-color: #cdbea1;
    color: #192851;
    border: 1px solid blue;
}


.contenedor-interno {
    display: flex;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
  
    
}

.cuadro-izquierdo h2 {
    font-size: 2.8rem; 
    font-weight: bold;
    color: #cdbea1;
    text-shadow: 1px 1px 2px #ffffff71, -1px -1px 2px #ffffff71;
    margin-bottom: 20px;
}

.cuadro-izquierdo p {
    color: #ffffff;
    text-shadow: 1px 1px 2px #ffffff;
    font-size: 1.6rem;
}


.cuadro-derecho .boton-aplique {
    margin-top: 30px; 
}


.cuadro-derecho .advertencia {
    margin-top: 15px;
    font-size: 13px;
    color: #e0e0e0;
    text-shadow: 0.5px 0.5px 1px #000000;
}

.cuadro,
.imagen-centro {
    flex: 1 1 33%;
    padding: 30px 30px;
    margin: 0;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 5px;
}


.imagen-centro {
    align-items: center;
    justify-content: center;
    background-color: #192851;
}

.imagen-centro img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 10%;
}

.cuadro-derecho h2 {
    font-size: 2.8rem; 
    font-weight: bold;
    color: #cdbea1;
    text-shadow: 1px 1px 2px #ffffff71, -1px -1px 2px #ffffff71;
    margin-bottom: 20px;
}

.cuadro-derecho p {
    color: #ffffff;
    text-shadow: 1px 1px 2px #ffffff;
    font-size: 1.6rem;
}



.boton-aplique {
    background-color: blue;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 10px;
    align-self: flex-start;
}

.boton-aplique:hover {
    background-color: white;
    color: blue;
    border: 1px solid blue;
}


.advertencia {
    font-size: 12px;
    color: #ffffff;
    margin-top: 10px;
}




.whatsapp-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.whatsapp-button {
  background-color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  cursor: pointer;
}

.whatsapp-button img {
  width: 35px;
  height: 35px;
}

.whatsapp-chat {
  display: none;
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 250px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  font-family: Arial, sans-serif;
}

.chat-header {
  background-color: #25D366;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.chat-header button {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.chat-body {
  padding: 15px;
  font-size: 14px;
}

.chat-body .iniciar-chat {
  display: inline-block;
  margin-top: 10px;
  background-color: #25D366;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.chat-body .iniciar-chat:hover {
  background-color: #128C7E;
}


.beneficios {
  padding: 60px 20px;
  background-color: #ffedca00;
  text-align: center;
}

.beneficios h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: #192851;
}

.beneficios {
  padding: 60px 40px; /* Aumenté el padding lateral */
  background-color: #ffedca00;
  text-align: center;
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1000px; /* Puedes reducir un poco si quieres centrar mejor visualmente */
  margin: 0 auto;
  justify-content: center; /* Este ayuda si los elementos no llenan el contenedor */
}
.beneficio {
  background-color: rgb(255, 243, 217);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.beneficio:hover {
  transform: translateY(-5px);
}

.beneficio img {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.beneficio p {
  font-size: 16px;
    color: #000000;
       text-shadow: 1px 1px 2px #ffffff38, -1px -1px 2px #ffffff38;
  font-weight: 500;
}
.beneficio i {
  font-size: 40px; 
  color: #192851; 
  margin-bottom: 15px; 
  text-shadow: 1px 1px 3px #ffffffa1; 
}

.footer {
  background-color: #192851;
  color: white;
  padding: 40px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-imagen {
  background-image: url('/Imagenes/Inicio/capitall.jpeg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center left;
  height: 150px;
  flex: 1 1 300px;
  min-width: 250px;
}

.footer-info {
  flex: 1 1 400px;
  padding: 20px;
  text-align: left;
}

.footer-info h3 {
  margin-bottom: 10px;
  font-size: 1.8em;
}

.footer-info p {
  font-size: 1.2em;
  margin: 6px 0;
}

.footer-info a {
  color: #00c3ff;
  text-decoration: none;
}

.footer-info a:hover {
  text-decoration: underline;
}
 .aparecer {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
  }
  
  .aparecer.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #192851;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    font-size: 24px;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 46px;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4 ease, transform 0.3 ease;
    z-index: 1000;
  }

  .scroll-top:hover {
transform: scale(1.1);
background-color: #00c3ff;
color: #192851;
border-color: #00c3ff;

  }

  body.scrolled .scroll-top{
    opacity: 1;
    pointer-events: auto;
  }


@keyframes aparecer-texto {
  to { opacity: 1; }
}

@keyframes desaparecer-texto {
  to { opacity: 0; }
}

@keyframes desvanecer-franja {
  to { background-color: transparent; }
}

 
@keyframes salir-vehiculo {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}