/* Layout for search container */
.search {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	background: rgba(18, 23, 56, 0.9);
}

.js .search {
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
}

.search::before,
.search::after {
	content: '';
	position: absolute;
	width: calc(100% + 15px);
	height: calc(100% + 15px);
	pointer-events: none;
	border: 1.5em solid #212fa0;
}

.search::before {
	top: 0;
	left: 0;
	border-right-width: 0;
	border-bottom-width: 0;
}

.search::after {
	right: 0;
	bottom: 0;
	border-top-width: 0;
	border-left-width: 0;
}

.btn--search-close {
	font-size: 2em;
	position: absolute;
	top: 1.25em;
	right: 1.25em;
	display: none;
}

.js .btn--search-close {
	display: block;
}

.search__form {
	margin: 5em 0;
}

.search__input {
	font-family: inherit;
	font-size: 10vw;
	line-height: 1;
	display: inline-block;
	box-sizing: border-box;
	width: 75%;
	padding: 0.05em 0;
	color: #d17c78;
	border-bottom: 2px solid;
}

.search__input::-webkit-input-placeholder {
	/* WebKit, Blink, Edge */
	opacity: 0.3;
	color: #060919;
}

.search__input::-moz-placeholder {
	opacity: 0.3;
	/* Mozilla Firefox 19+ */
	color: #060919;
}

.search__input:-ms-input-placeholder {
	/* Internet Explorer 10-11 */
	opacity: 0.3;
	color: #060919;
}

.search__input::-webkit-search-cancel-button,
.search__input::-webkit-search-decoration {
	-webkit-appearance: none;
}

.search__input::-ms-clear {
	display: none;
}

.search__info {
	font-size: 90%;
	font-weight: bold;
	display: block;
	width: 75%;
	margin: 0 auto;
	padding: 0.85em 0;
	text-align: right;
	color: #d17c78;
}

.search__related {
	display: flex;
	width: 75%;
	pointer-events: none;
}

.search__suggestion {
	width: 33.33%;
	text-align: left;
}

.search__suggestion:nth-child(2) {
	margin: 0 3em;
}

.search__suggestion h3 {
	font-size: 1.35em;
	margin: 0;
}

.search__suggestion h3::before {
	content: '\21FE';
	display: inline-block;
	padding: 0 0.5em 0 0;
}

.search__suggestion p {
	font-size: 1.15em;
	line-height: 1.4;
	margin: 0.75em 0 0 0;
}

/************************/
/* Transitions 			*/
/************************/

.js .search {
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.5s;
}

.js .search--open {
	pointer-events: auto;
	opacity: 1;
}

/* Border */
.search::before,
.search::after {
	transition: transform 0.5s;
}

.search::before {
	transform: translate3d(-15px, -15px, 0);
}

.search::after {
	transform: translate3d(15px, 15px, 0);
}

.search--open::before,
.search--open::after {
	transform: translate3d(0, 0, 0);
}

/* Close button */
.btn--search-close {
	opacity: 0;
	transform: scale3d(0.8, 0.8, 1);
	transition: opacity 0.5s, transform 0.5s;
}

.search--open .btn--search-close {
	opacity: 1;
	transform: scale3d(1, 1, 1);
}

/* Search form with input and description */
.js .search__form {
	opacity: 0;
	transform: scale3d(0.8, 0.8, 1);
	transition: opacity 0.5s, transform 0.5s;
}

.js .search--open .search__form {
	opacity: 1;
	transform: scale3d(1, 1, 1);
}

.search__suggestion {
	opacity: 0;
	transform: translate3d(0, -30px, 0);
	transition: opacity 0.5s, transform 0.5s;
}

.search--open .search__suggestion {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

.search--open .search__suggestion:nth-child(2) {
	transition-delay: 0.1s;
}

.search--open .search__suggestion:nth-child(3) {
	transition-delay: 0.2s;
}

@media screen and (max-width:40em) {
	.search__form {
		margin: 5em 0 1em;
	}
	.btn--search-close {
		font-size: 1.25em;
		top: 1.5em;
		right: 1.5em;
	}
	.search__info {
		text-align: left;
	}
	.search__suggestion {
		font-size: 80%;
		width: 100%;
	}
	.search__suggestion:nth-child(2),
	.search__suggestion:nth-child(3) {
		display: none;
	}
}






.footer{
	background: url('../img/footer-bg.png') no-repeat;
	background-size: cover;
}


/* Capas de humo */
.smoke-layer {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%; /* Doble ancho para que la animación sea continua */
	height: 100%;
	background: url('../img/clouds_2.png') repeat-x;
	background-size: cover;
	opacity: 0.6;
	animation: moveSmoke 60s linear infinite;
	z-index: 0;             /* Humo al fondo */
}
.footer-wrap{
	position: relative;
	z-index: 2;
}

.layer2 {
	animation-delay: 10s; /* desfase para mejorar el efecto */
	opacity: 0.4;
}

@keyframes moveSmoke {
	0% { background-position: 0 0; }
	100% { background-position: -1000px 0; } /* Ajusta velocidad/distancia */
}

.social-footer .soc-icon{
	z-index: 9;
}

















/*xx*/
#floating-button {

	width: 55px;
	height: 55px;
	border-radius: 50%;
	background: linear-gradient(90deg, #1b1b1b 0%, #003153 100%);
	position: fixed;
	bottom: 30px;
	right: 30px;
	cursor: pointer;
	box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
}

.plus {
	color: white;
	position: absolute;
	top: 0;
	display: block;
	bottom: 0;
	left: 0;
	right: 0;
	text-align: center;
	padding: 0;
	margin: 0;
	line-height: 55px;
	font-size: 38px;
	font-family: "Roboto";
	font-weight: 300;
	animation: plus-out 0.3s;
	transition: all 0.3s;
}

#container-floating {
	position: fixed;
	width: 70px;
	height: 70px;
	bottom: 30px;
	right: 30px;
	z-index: 50000;
}

#container-floating:hover {
	height: 400px;
	width: 90px;
	padding: 30px;
}

#container-floating:hover .plus {
	animation: plus-in 0.15s linear;
	animation-fill-mode: forwards;
}

.edit {
	position: absolute;
	top: 0;
	display: block;
	bottom: 0;
	left: 0;
	display: block;
	right: 0;
	padding: 0;
	opacity: 0;
	margin: auto;
	line-height: 65px;
	transform: rotateZ(-70deg);
	transition: all 0.3s;
	animation: edit-out 0.3s;
}

#container-floating:hover .edit {
	animation: edit-in 0.2s;
	animation-delay: 0.1s;
	animation-fill-mode: forwards;
}

@keyframes edit-in {
	from {
		opacity: 0;
		transform: rotateZ(-70deg);
	}
	to {
		opacity: 1;
		transform: rotateZ(0deg);
	}
}

@keyframes edit-out {
	from {
		opacity: 1;
		transform: rotateZ(0deg);
	}
	to {
		opacity: 0;
		transform: rotateZ(-70deg);
	}
}

@keyframes plus-in {
	from {
		opacity: 1;
		transform: rotateZ(0deg);
	}
	to {
		opacity: 0;
		transform: rotateZ(180deg);
	}
}

@keyframes plus-out {
	from {
		opacity: 0;
		transform: rotateZ(180deg);
	}
	to {
		opacity: 1;
		transform: rotateZ(0deg);
	}
}

.nds {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	position: fixed;
	z-index: 300;
	transform: scale(0);
	cursor: pointer;
}

.nd1 {
	background: linear-gradient(90deg, #1b1b1b 0%, #003153 100%);
	color: white;
	right: 40px;
	bottom: 120px;
	animation-delay: 0.2s;
	animation: bounce-out-nds 0.3s linear;
	animation-fill-mode: forwards;
}

.nd3 {
	background: linear-gradient(90deg, #1b1b1b 0%, #003153 100%);
	right: 40px;
	bottom: 180px;
	animation-delay: 0.15s;
	animation: bounce-out-nds 0.15s linear;
	animation-fill-mode: forwards;
}

.nd4 {
	background: linear-gradient(90deg, #1b1b1b 0%, #003153 100%);
	right: 40px;
	bottom: 240px;
	animation-delay: 0.1s;
	animation: bounce-out-nds 0.1s linear;
	animation-fill-mode: forwards;
}

.nd5 {
	background: linear-gradient(90deg, #1b1b1b 0%, #003153 100%);
	right: 40px;
	bottom: 300px;
	animation-delay: 0.05s;
	animation: bounce-out-nds 0.1s linear;
	animation-fill-mode: forwards;
}

@keyframes bounce-nds {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes bounce-out-nds {
	from {
		opacity: 1;
		transform: scale(1);
	}
	to {
		opacity: 0;
		transform: scale(0);
	}
}

#container-floating:hover .nds {
	animation: bounce-nds 0.1s linear;
	animation-fill-mode: forwards;
}

#container-floating:hover .nd3 {
	animation-delay: 0.08s;
}
#container-floating:hover .nd4 {
	animation-delay: 0.15s;
}
#container-floating:hover .nd5 {
	animation-delay: 0.2s;
}

.letter, .letter a{
	font-size: 23px;
	font-family: "Roboto";
	color: white;
	position: absolute;
	left: 0;
	right: 0;
	margin: 0;
	top: 0;
	bottom: 0;
	text-align: center;
	line-height: 40px;
}

.reminder {
	position: absolute;
	left: 0;
	right: 0;
	margin: auto;
	top: 0;
	bottom: 0;
	line-height: 40px;
}

.profile {
	border-radius: 50%;
	width: 40px;
	position: absolute;
	top: 0;
	bottom: 0;
	margin: auto;
	right: 20px;
}