* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html, body{
  margin: 0;
  padding: 0;
  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;
}


.servicio-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  border-bottom: 1px solid #ddd;
  background: #ffffff00;
}

.text-block {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  padding: 20px;
}

.text-block h2 {
  font-size: 3.0em;
  color: #004b8d;
  margin-bottom: 15px;
}

.text-block p {
font-size:1.8em;

}


.text-block h3 {
  font-size: 2.0em;
  color: #006bb3;
  margin-top: 20px;
}

.text-block ul {
  padding-left: 20px;
  font-size: 1.8em;
}

.imagen-block {
  flex: 1;
  max-width: 400px;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
  margin: 20px;
}

.imagen-block img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.text-block h4 {
  font-size: 1.8em;
  color: #0072c6;
  margin-top: 20px;
}

.text-block h5 {
  font-size: 1.6em;
  color: #2e2e2e;
  margin-top: 15px;
  font-weight: bold;
}

.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);
  }

@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;
  }
}

.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;
}

.scroll-top-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999;
  background-color: #004aad;
  color: white; 
  border: none;
  padding: 10px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.scroll-top-btn:hover {
  background-color: #003580;
}
