.index {
	width: 100%;
	height: 100dvh;
	overflow: hidden;
	padding: 0 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	background-image: url(/images/fondo.webp);
	background-repeat: no-repeat;
	background-size: cover;
}

/* HEADER */
.index__header {
	width: 100%;
	max-width: 50rem;
	padding: 0.5rem;
	gap: 0.5rem;
	z-index: 3;
	/* Animaciones */
	animation: rotation 2s;
}

.index__header-banderas {
	width: 100%;
	display: flex;
	justify-content: end;
	align-items: center;
	gap: 0.7rem;
}
.index_header-banderas-flag {
	width: 2.2rem;
	border-radius: 50%;
	box-shadow: var(--sombra);
	cursor: pointer;
}
/* HERO */
.index__hero-img {
	width: 100%;
	background-color: var(--color-secundario);
	max-width: 50rem;
	height: 12rem;
	max-height: 10rem;
	margin: 1.5rem 0;
	border-radius: var(--border-radius);
	box-shadow: var(--sombra);
	object-fit: cover;
}

/* BOTONES */
.index__buttons {
	width: 100%;
	max-width: 50rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	z-index: 1;
}
.index__buttons > :nth-child(1) {
	width: 95%;
	/* Animaciones */
	animation: rotation 2s;
}
.index__buttons > :nth-child(2) {
	width: 85%;
	animation: rotation 2s;
}
.index__buttons > :nth-child(3) {
	width: 75%;
	animation: rotation 2s;
}
.index__buttons > :nth-child(4) {
	width: 65%;
	animation: rotation 2s;
}
.index__buttons > :nth-child(5) {
	width: 55%;
	animation: rotation 2s;
}
.index__buttons > :nth-child(6) {
	width: 45%;
	animation: rotation 2s;
}
.index__buttons-btn {
	width: 100%;
	padding: 0.4rem;
	background: var(--color-degradado2);
	border-radius: var(--border-radius);
	box-shadow: var(--sombra);
	cursor: pointer;
}
.index__buttons-texto {
	font-size: 1.5rem;
	color: var(--negro);
	font-weight: 800;
	text-transform: uppercase;
}
.easy-index {
	display: flex;
}

/* ELEMENTOS CON POSITION: ABSOLUTE */

/* ************************************************** */
/* MODAL*/
/* ************************************************** */
.modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	animation: modal 1.5s;
	animation-delay: 3s;
	animation-fill-mode: forwards;
	visibility: hidden;
	opacity: 0;
	justify-content: center;
	align-items: center;
	z-index: 3;
	background: rgba(0, 0, 0, 0.8);
	border-radius: 16px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(5px);
}
.anuncio {
	max-width: 70%;
	max-height: 80%;
	margin: auto;
	overflow: hidden;
	padding: 0 0.3rem;
	border-radius: var(--border-radius);
	box-shadow: var(--sombra);
	position: relative;
}
.anuncio-textos {
	padding: 1rem;
	color: rgb(124, 124, 124);
}
.anuncio-textos h1 {
	font-size: 2rem;
}
.anuncio-textos-date {
	color: #fa8580;
	padding: 0.6rem 0;
}
.bold {
	font-family: "arial";
	font-weight: bold;
}
.bi-arrow-right {
	font-size: 1rem;
}

.modal-img {
	width: 90%;
	height: auto;
	max-width: 20rem;
	object-fit: cover;
	display: block;
	margin: 10% auto;
}
a {
	display: inline-block;
}
a:hover,
i:hover {
	color: var(--color-secundario);
}
.modal-cerrar {
	position: absolute;
	top: 2rem;
	right: 1rem;
	font-size: 2rem;
	cursor: pointer;
	color: var(--blanco);
	z-index: 4;
}
@keyframes modal {
	100% {
		visibility: visible;
		opacity: 1;
	}
}

/* ********************************************** */
/* MOVIMIENTO */
.movimiento {
	animation: slide-in-elliptic-left-bck 2s cubic-bezier(0.25, 0.46, 0.45, 0.94)
		both;
	/*  */
	width: 70dvw;
	max-width: 30rem;
	position: fixed;
	bottom: 3rem;
	left: 30%;
	margin: auto;
	/* filter: drop-shadow(1rem 1rem 10px rgb(123, 123, 123)); */
	z-index: -1;
	@media (min-width: 768px) {
		left: 40%;
	}
}

/**
 * ----------------------------------------
 * animation slide-in-elliptic-left-bck
 * ----------------------------------------
 */
@-webkit-keyframes slide-in-elliptic-left-bck {
	0% {
		transform: translateX(-800px) rotateY(-30deg) scale(6.5);
		transform-origin: 200% 50%;
		opacity: 0;
	}
	100% {
		transform: translateX(0) rotateY(0) scale(1);
		transform-origin: -600px 50%;
		opacity: 1;
	}
}
@keyframes slide-in-elliptic-left-bck {
	0% {
		transform: translateX(-800px) rotateY(-30deg) scale(6.5);
		transform-origin: 200% 50%;
		opacity: 0;
	}
	100% {
		transform: translateX(0) rotateY(0) scale(1);
		transform-origin: -600px 50%;
		opacity: 1;
	}
}

/* ************************************************** */
/* MODAL GOOGLE MAPS */
/* ************************************************** */

/* Bloquear scroll cuando el modal está abierto */
body.menu-open {
	overflow: hidden;
}

/* Overlay del modal */
.maps-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(5px);
	z-index: 15;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 2rem;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.3s ease-out,
		visibility 0.3s ease-out;
}

.maps-modal.active {
	opacity: 1;
	visibility: visible;
	pointer-events: all;
}

/* Contenido del modal */
.maps-modal-content {
	position: relative;
	width: 100%;
	max-width: 900px;
	height: 80vh;
	max-height: 600px;
	background: #fff;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	transform: scale(0.9);
	opacity: 0;
	transition:
		transform 0.3s ease-out,
		opacity 0.3s ease-out;
}

.maps-modal.active .maps-modal-content {
	transform: scale(1);
	opacity: 1;
}

/* Botón cerrar (X) */
.maps-modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 40px;
	height: 40px;
	background: linear-gradient(-55deg, #333 0%, #000 55%);
	border: none;
	border-radius: 50%;
	color: #fff;
	font-size: 1.5rem;
	cursor: pointer;
	z-index: 16;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	transition:
		transform 0.3s ease,
		background 0.3s ease;
}

.maps-modal-close:hover {
	transform: rotate(90deg) scale(1.1);
}

/* Iframe del mapa */
.maps-container {
	width: 100%;
	height: 100%;
}

.maps-container iframe {
	width: 100%;
	height: 100%;
	border: none;
}

/* Botón "Cómo llegar" */
.maps-directions-btn {
	position: absolute;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 1.5rem;
	background: linear-gradient(-55deg, #333 0%, #000 55%);
	color: #fff;
	text-decoration: none;
	border-radius: 50px;
	font-weight: 400;
	font-size: 1rem;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	transition:
		transform 0.3s ease,
		background 0.3s ease;
	z-index: 16;
}

.maps-directions-btn:hover {
	transform: translateX(-50%) scale(1.05);
	color: #fff;
}

/* MediaQuerys */
@media (min-width: 768px) {
	.anuncio {
		max-width: 25dvw;
	}
}
