/* Paginas de Emergencia y Repatriacion (remake uxui fases 12 y 13).
   La foto del hero se define por pagina con la variable --emg-foto en .emg-hero */

/* Hero: foto visible con velo morado hacia el lado del texto */
.emg-hero{
  position: relative;
  display: flex;
  align-items: center;
  min-height: 560px;
  padding: 64px 0px;
  background-image:
    linear-gradient(to left, rgba(74, 50, 114, .94) 0%, rgba(92, 65, 138, .82) 42%, rgba(92, 65, 138, .25) 75%, rgba(92, 65, 138, .05) 100%),
    var(--emg-foto);
  background-position: center left;
  background-size: cover;
  background-repeat: no-repeat;
  color: #FFFFFF;
}
.emg-hero-texto{
  max-width: 520px;
  margin-left: auto;
  font-family: Poppins;
}
.emg-antetitulo{
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, .15);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.emg-antetitulo::before{
  content: '';
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background-color: #7CE0B5;
  box-shadow: 0 0 0 0 rgba(124, 224, 181, .6);
  animation: emg-pulso 2.4s ease-out infinite;
}
@keyframes emg-pulso{
  0%   { box-shadow: 0 0 0 0 rgba(124, 224, 181, .6); }
  70%  { box-shadow: 0 0 0 10px rgba(124, 224, 181, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 224, 181, 0); }
}
.emg-hero h1{
  margin-bottom: 12px;
  font-family: Poppins;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
}
.emg-hero p{
  margin-bottom: 28px;
  font-size: 19px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .92);
}
.emg-acciones{
  display: flex;
  flex-wrap: wrap;
  margin: -6px;
}
.emg-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 6px;
  padding: 14px 24px;
  border-radius: 14px;
  font-family: Poppins;
  font-size: 16px;
  font-weight: 600;
  transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.emg-btn i{
  margin-right: 10px;
}
.emg-btn:hover,
.emg-btn:focus{
  text-decoration: none;
  transform: translateY(-2px);
}
.emg-btn-llamar{
  background-color: #FFFFFF;
  color: #5C418A;
  font-size: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.emg-btn-llamar:hover,
.emg-btn-llamar:focus{
  color: #5C418A;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .22);
}
.emg-btn-whatsapp{
  border: 2px solid rgba(255, 255, 255, .8);
  color: #FFFFFF;
}
.emg-btn-whatsapp:hover,
.emg-btn-whatsapp:focus{
  background-color: rgba(255, 255, 255, .12);
  color: #FFFFFF;
}
/* Entrada al cargar: es la primera seccion, por eso no depende de data-reveal */
.emg-entrada{
  opacity: 0;
  animation: emg-aparecer .9s ease forwards;
}
.emg-entrada-2{ animation-delay: .15s; }
.emg-entrada-3{ animation-delay: .3s; }
.emg-entrada-4{ animation-delay: .45s; }
@keyframes emg-aparecer{
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* Como te acompanamos */
.emg-pasos{
  padding: 56px 0px 24px;
}
.emg-titulo{
  margin-bottom: 8px;
  font-family: Poppins;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
  color: #5C418A;
  text-align: center;
}
.emg-subtitulo{
  max-width: 520px;
  margin: 0px auto 32px;
  font-family: Poppins;
  font-size: 15px;
  color: #607D8B;
  text-align: center;
}
.emg-paso{
  height: 100%;
  padding: 28px 24px;
  border-radius: 16px;
  background-color: #F7F4FB;
  font-family: Poppins;
  text-align: center;
}
.emg-paso-icono{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background-color: #5C418A;
  color: #FFFFFF;
  font-size: 22px;
}
.emg-paso-numero{
  position: absolute;
  top: -4px;
  right: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid #F7F4FB;
  border-radius: 50%;
  background-color: #7FCBC4;
  font-size: 11px;
  font-weight: 700;
}
.emg-paso h3{
  margin-bottom: 6px;
  font-family: Poppins;
  font-size: 17px;
  font-weight: 700;
  color: #455A64;
}
.emg-paso p{
  margin-bottom: 0px;
  font-size: 14px;
  line-height: 1.6;
  color: #607D8B;
}
.emg-pasos .col-md-4{
  margin-bottom: 16px;
}

/* Contacto y formulario */
.emg-contacto{
  padding: 40px 0px 64px;
  background-color: #F5F8F9;
}
.emg-canal{
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 20px;
  border-radius: 16px;
  background-color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(92, 65, 138, .10);
  font-family: Poppins;
  transition: transform .3s ease, box-shadow .3s ease;
}
.emg-canal:hover,
.emg-canal:focus{
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(92, 65, 138, .16);
}
.emg-canal-icono{
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-right: 16px;
  border-radius: 50%;
  background-color: #EFEAF6;
  color: #5C418A;
  font-size: 20px;
}
.emg-canal-principal .emg-canal-icono{
  background-color: #5C418A;
  color: #FFFFFF;
}
.emg-canal small{
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #5C418A;
}
.emg-canal strong{
  display: block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: #455A64;
}
.emg-canal-texto span{
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #455A64;
}
.emg-form{
  padding: 28px;
  border-radius: 16px;
  background-color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(92, 65, 138, .10);
}
.emg-form h2{
  margin-bottom: 4px;
  font-family: Poppins;
  font-size: 24px;
  font-weight: 700;
  color: #5C418A;
  text-align: left;
}
.emg-form .emg-form-ayuda{
  margin-bottom: 20px;
  font-family: Poppins;
  font-size: 14px;
  color: #607D8B;
}
.emg-form label{
  margin-bottom: 6px;
  font-family: Poppins;
  font-size: 13px;
  font-weight: 500;
  color: #607D8B;
}
.emg-form .form-control{
  height: auto;
  padding: 10px 14px;
  border: 1px solid #DCD5E6;
  border-radius: 12px;
  background-color: #FCFBFE;
  font-family: Poppins;
  font-size: 14px;
  color: #455A64;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.emg-form .form-control:focus{
  border-color: #5C418A;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(92, 65, 138, .15);
  outline: none;
}
.emg-form .buttons{
  width: 100%;
  padding: 12px;
  border-radius: 12px;
}
.emg-form .alert{
  border-radius: 12px;
}

@media (max-width: 991.98px){
  .emg-hero{
    min-height: 0px;
    padding: 48px 0px;
    background-image:
      linear-gradient(rgba(92, 65, 138, .78), rgba(74, 50, 114, .9)),
      var(--emg-foto);
  }
  .emg-hero-texto{
    max-width: none;
    margin: 0px;
  }
  .emg-hero h1{
    font-size: 36px;
  }
  .emg-hero p{
    font-size: 17px;
  }
  .emg-contacto .emg-canales{
    margin-bottom: 24px;
  }
}
@media (max-width: 575.98px){
  .emg-btn{
    width: 100%;
  }
  .emg-form{
    padding: 20px 16px;
  }
}

.emg-pasos.reveal-ready .col-md-4,
.emg-contacto.reveal-ready .emg-anim{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.emg-pasos.reveal-ready .col-md-4:nth-child(2){ transition-delay: .15s; }
.emg-pasos.reveal-ready .col-md-4:nth-child(3){ transition-delay: .3s; }
.emg-contacto.reveal-ready .emg-anim-2{ transition-delay: .15s; }
.emg-pasos.reveal-ready.is-visible .col-md-4,
.emg-contacto.reveal-ready.is-visible .emg-anim{
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce){
  .emg-entrada{
    opacity: 1;
    animation: none;
  }
  .emg-antetitulo::before{
    animation: none;
  }
}
