/*-------------------------
	Simple reset
--------------------------*/


*{
	margin:0;
	padding:0;
}


/*-------------------------
	General Styles
--------------------------*/
.recuperar_txt{ color: #FFFFFF; position: relative; top: 10px; padding: 10px 20px; text-align: center; font-weight: bold; font-size: 15px;}

html{
	background: url("/assets/images/agency_bg5.jpg?v=1.0.0") no-repeat top center fixed;
	
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover; 

	width: 100vw;
	overflow: hidden;
}

body{
	font:14px/1.3 Helvetica,Arial,sans-serif;
	height: calc(100vh - 45px);
	padding-top: 100px;
	overflow: hidden;
}

@media (max-width: 720px) {
	body{
		padding-top: 10%;
	}
}

a, a:visited {
	text-decoration:none;
	outline:none;
	color:#54a6de;
}

a:hover{
	text-decoration:underline;
}

section, footer{
	display: block;
}


/*----------------------------
	Styling the forms
-----------------------------*/


#formContainer{
	-moz-perspective: 800px;
	-webkit-perspective: 800px;
	backdrop-filter: blur(3px);
	height:380px;
	left: 120px;
	margin:0 auto;
	perspective: 800px;
	position:absolute;
	top: 130px;
	width:320px;
	z-index:1;
}

#formContainer form{
	background: rgba(0,0,0,0.1);
	border: 1px solid rgba(255,255,255,0.8);
	border-radius: 15px;
	box-shadow: 2px 2px 10px;
	width:100%;
	height:100%;
	position:absolute;
	top:0;
	left:0;

	/* Enabling 3d space for the transforms */
	-moz-transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;

	/* When the forms are flipped, they will be hidden */
	-moz-backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;

	/* Enabling a smooth animated transition */
	-moz-transition:0.8s;
	-webkit-transition:0.8s;
	transition:0.8s;

	/* Configure a keyframe animation for Firefox */
	/* -moz-animation: pulse 2s infinite; */

	/* Configure it for Chrome and Safari */
	/* -webkit-animation: pulse 2s infinite; */
}


/* Firefox Keyframe Animation */
@-moz-keyframes pulse{
	0%{		box-shadow:0 0 1px #c03437;}
	50%{	box-shadow:0 0 8px #c03437;}
	100%{	box-shadow:0 0 1px #c03437;}
}

/* Webkit keyframe animation */
@-webkit-keyframes pulse{
	0%{		box-shadow:0 0 1px #c03437;}
	50%{	box-shadow:0 0 10px #c03437;}
	100%{	box-shadow:0 0 1px #c03437;}
}

#login{
	background: transparent;
	z-index:100;
}

#login .logo {
	text-align: center;	
}

#login .logo img{
  display:block;
  width:auto;
  max-width:54%;
  max-height:auto;
  margin-left: 23%;
  margin-top: 15px;
}

#restablish{
	background:url('/assets/images/login_form_bg_restaurar.png?v=1.0.0') no-repeat;
	z-index:100;
}

#recover{
	background:transparent;
	z-index:1;
	opacity:0;

	/* Rotating the recover password form by default */
	-moz-transform:rotateY(180deg);
	-webkit-transform:rotateY(180deg);
	transform:rotateY(180deg);
}

#recover .logo {
	text-align: center;	
}

#recover .logo img{
  display:block;
  width:auto;
  max-width:60%;
  max-height:auto;
  margin-left: 20%;
  margin-top: 20px;
}

#formContainer.flipped #login{

	opacity:0;

	/**
	 * Rotating the login form when the
	 * flipped class is added to the container
	 */

	-moz-transform:rotateY(-180deg);
	-webkit-transform:rotateY(-180deg);
	transform:rotateY(-180deg);
}

#formContainer.flipped #recover{

	opacity:1;

	/* Rotating the recover div into view */
	-moz-transform:rotateY(0deg);
	-webkit-transform:rotateY(0deg);
	transform:rotateY(0deg);
}


/*----------------------------
	Inputs, Buttons & Links
-----------------------------*/


#login .flipLink,
#recover .flipLink{
	/* The blue ribbon links */
	color: #FFFFFF;
	font-weight: bold;
	height: 65px;
    overflow: hidden;
    position: absolute;
    right: 0;
    text-align: center;
    top: 325px;
    width: 100%;
}

#recover .flipLink{
	right:auto;
	left:0;
}

#login:after{
	/* The "Click here" tooltip */
	width:98px;
	height:16px;
	content:'';
	background:url('/assets/images/click_here.png') no-repeat;
	position:absolute;
	right:-120px;
	top:22px;
}

input[type=text],input[type=password]{
	/* The text fields */
	font: 15px 'Segoe UI',Arial,sans-serif;
	border: 1px solid rgba(255,255,255,0.4);
	border-radius: 10px;
	background:rgba(0,0,0,0.5);
	height: 36px;
	left: 20px;
	position: absolute;
	top: 170px;
	width: 280px;
	text-indent: 8px;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
	color:#FFFFFF;
	outline:none;
}

#loginPass{
	top: 212px;
}

#recoverEmail{
	top:190px;
}

input[type=submit]{
	/* Submit button */
	background-image: linear-gradient(bottom, rgb(192,52,55) 50%, rgb(199,59,64) 50%, rgb(218,79,83) 100%);
	background-image: -o-linear-gradient(bottom, rgb(192,52,55) 50%, rgb(199,59,64) 50%, rgb(218,79,83) 100%);
	background-image: -moz-linear-gradient(bottom, rgb(192,52,55) 50%, rgb(199,59,64) 50%, rgb(218,79,83) 100%);
	background-image: -webkit-linear-gradient(bottom, rgb(192,52,55) 50%, rgb(199,59,64) 50%, rgb(218,79,83) 100%);
	background-image: -ms-linear-gradient(bottom, rgb(192,52,55) 50%, rgb(199,59,64) 50%, rgb(218,79,83) 100%);
	background-image: -webkit-gradient( linear, left bottom, left top, color-stop(0.5, rgb(192,52,55)), color-stop(0.5, rgb(199,59,64)), color-stop(1, rgb(218,79,83)) );
	opacity:1;
	position:absolute;
	top:280px;
	left:55px;
	width: 210px;
	height:36px;
	cursor:pointer;
	border-radius:10px;
	box-shadow:0 1px 1px #888;
	border:none;
	color:#fff;
	font:14px/36px 'Segoe UI Light','Segoe UI',Arial,sans-serif;

	/* CSS3 Gradients */

	border: 1px solid rgba(255,255,255,0.4);
}

input[type=submit]:hover{
	opacity:1;
}

input::-webkit-input-placeholder {
    color:#eee;
}


/*----------------------------
	The Footer
-----------------------------*/


footer{
	background-color: rgba(0,0,0,0.2);
	bottom: 0;
	box-shadow: 0 -1px 2px #111111;
	height: 20px;
	left: 0;
	position: fixed;
	width: 100%;
	z-index: 100000;
}

footer h2{
	color: #EEEEEE;
	font-size: 14px;
	font-weight: normal;
	position: absolute;
	text-align: center;
	width: 100%;
}

footer h2 i{
	font-style:normal;
	color:#888;
}

footer a.tzine,a.tzine:visited{
	color: #999999;
	font-size: 12px;
	left: 50%;
	margin: 16px 0 0 110px;
	position: absolute;
	text-decoration: none;
	top: 0;
}

footer a i{
	color:#ccc;
	font-style: normal;
}

footer a i b{
	color:#c92020;
	font-weight: normal;
}

.overlayNotify {
    background: #000000 none repeat scroll 0 0;
    bottom: 0;
    height: 100%;
    left: 0;
    opacity: 0.7;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1031;
}

.notifyBox {
    background: #ffffff none repeat scroll 0 0;
    border-radius: 6px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
    left: 45%;
    margin-left: -125px;
    margin-top: -75px;
    min-height: 110px;
    padding: 20px;
    position: fixed;
    text-align: center;
    top: 50%;
    width: 25%;
    z-index: 1032;
}

.size13 {
    font-size: 17px;
}

.size17 {
	font-size: 17px;
}

.opensans {
    /*font-family: "Open Sans";*/
}

.welcome_text {
	color: #FFFFFF;
    font-family: "Open Sans";
    margin-left: 10%;
    margin-top: 130px;
    text-align: center;
    width: 80%;
}

.notifyConten {
    padding-bottom: 15px;
}

.btn-search4 {
    /* Submit button */

	opacity:1;
	cursor:pointer;
	border-radius:10px;
	box-shadow:0 1px 1px #888;
	border:1px solid rgba(255,255,255,0.4);
	color:#fff;
	padding: 0.5px 20px;
	font:14px/36px 'Segoe UI Light','Segoe UI',Arial,sans-serif;

	/* CSS3 Gradients */

	background: rgba(255,255,255,0.1);
}

.btn-search4:hover {
    opacity:1;
}

.none {
    display: none;
}

/* ===== Contenedor / botón ===== */
.whatsapp-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.whatsapp-button img {
  width: 60px;
  height: 60px;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(0,0,0,.28);
  transition: transform .12s ease, box-shadow .12s ease;
}
.whatsapp-button img:hover { transform: translateY(-1px); }
.whatsapp-button img:active { transform: translateY(0); }

/* ===== Menú ===== */
.whatsapp-menu {
  display: none;
  position: absolute;
  bottom: 70px; /* un poco más alto para respirar sobre el botón */
  right: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 8px 8px 10px;
  box-shadow: 0 16px 32px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.1);
  min-width: 220px; /* más ancho para nombres largos */
  max-height: 56vh; /* scroll si crece */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .12s ease, transform .12s ease;
}

/* mostrar con hover del contenedor */
.whatsapp-container:hover .whatsapp-menu {
  opacity: 1;
  transform: translateY(0);
  display: flex;
}

/* ===== Encabezados de grupo ===== */
.whatsapp-type {
  position: sticky; /* se queda visible al hacer scroll */
  top: 0;
  z-index: 1;
  background: linear-gradient(#fff, #fff); /* tapa lo de atrás */
  padding: 10px 10px 8px;
  margin: 0 0 4px 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .3px;
  color: #6b7a78; /* tono neutro */
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* línea separadora antes de cada grupo excepto el primero */
.whatsapp-type + a { margin-top: 2px; }
.whatsapp-type:not(:first-of-type) {
  margin-top: 6px;
  border-top: 1px solid rgba(0,0,0,.06);
  padding-top: 12px;
}

/* ===== Items (agentes) ===== */
.whatsapp-menu a {
  display: flex;                 /* para alinear avatar opcional */
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0c3b35;
  padding: 10px 10px;
  border-radius: 10px;
  font-weight: 800;              /* prioriza el nombre */
  font-size: 15px;
  line-height: 1.2;
  min-height: 25px;              /* objetivo táctil recomendado */
  transition: background .12s ease, transform .06s ease;
}
.whatsapp-menu a:hover {
  background-color: rgba(18,140,126,.08); /* verde WhatsApp suave */
}
.whatsapp-menu a:active {
  transform: translateY(1px);
}
.whatsapp-menu a:focus {
  outline: 2px solid rgba(18,140,126,.35);
  outline-offset: 2px;
  border-radius: 12px;
}

/* ===== Avatar opcional ===== */
.icon-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  margin: 0;                /* ya no necesitamos margin-right */
  object-fit: cover;
  filter: none;             /* quita el gris si prefieres a color */
  border: 1px solid rgba(0,0,0,.08);
}

/* Si no hay icono, no pasa nada; el gap mantiene el espaciado correcto. */

/* ===== Dark mode opcional (si el sitio usa prefers-color-scheme) ===== */
@media (prefers-color-scheme: dark) {
  .whatsapp-menu {
	background: #111416;
	color: #e7eceb;
	border-color: rgba(255,255,255,.08);
	box-shadow: 0 16px 32px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.45);
  }
  .whatsapp-type {
	background: linear-gradient(#111416,#111416);
	color: #9fb2b0;
	border-color: rgba(255,255,255,.6);
  }
  .whatsapp-menu a {
	color: #d8f1ee;
  }
  .whatsapp-menu a:hover {
	background-color: rgba(18,140,126,.22);
  }
}

/* --- FIX: que el video vuelva a verse detrás de la pestaña --- */
#background-video{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0 !important;         /* antes estaba en -1 */
  pointer-events: none;           /* que no intercepte clics */
}

.notifyBox {
	position: fixed;
	top: 50%;
	left: 58%;
	transform: translate(-50%,-50%) scale(1);
	width: 30%;
	background: rgba(255,255,255,0.1) !important;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,0.45);
	border-radius: 20px;
	padding: 26px 24px 22px;
	text-align: center;
	color: #ffffff;
	box-shadow: 0 28px 80px rgba(0,0,0,0.35) !important;
	z-index: 1032;
	opacity: 1;
	transition: opacity .2s ease, transform .2s ease;
}