*{border: 0px solid rgb(157, 157, 157)}

/*ESTILOS GENERALES-------------------------*/
body {
	--fondo_principal:rgba(3, 11, 21,1);
	/*--fondo_nav: rgba(3, 11, 21, 0.8);*/
	--fondo_tarjeta:rgb(208, 232, 245);
	--fondo_etiqueta:rgb(226, 238, 244);
	--fondo_boton:rgb(46, 135, 46);
	--texto_dmp: rgb(208, 232, 245);
	--texto_david: rgb(208, 232, 245);
	--texto_apellido: rgb(208, 232, 245);
	--texto_normal:rgb(208, 232, 245);
	--texto_nav: grey;
	--texto_tarjeta:rgba(3, 11, 21, 0.9);
	--texto_boton:rgb(208, 232, 245);
	--texto_seccion: rgb(208, 232, 245);
	--barra_horizontal:rgb(0, 190, 0);
	--borde_foto: rgba(0, 230, 118, 0.1);
	--borde_tarjeta: rgb(208, 232, 245);
	--borde_etiqueta:rgba(3, 11, 21, 0.9);
	--borde_nav:rgb(208, 232, 245);
	--sombra_tarjeta: rgb(0, 0, 0);
	--sombra_imagen: rgb(208, 232, 245, 0.1);

	font-family: "Montserrat", sans-serif;
	color: var(--texto_normal);
	background: var(--fondo_principal);

  	position: relative;
}


body::before {
  	content: '';
  	position: fixed;
  	inset: 0;
  	pointer-events: none;
  	z-index: 0;
  	background-image: 
    	linear-gradient(rgba(100, 160, 255, 0.08) 1px, transparent 1px), 
    	linear-gradient(90deg, rgba(100, 160, 255, 0.08) 1px, transparent 1px), 
    	linear-gradient(rgba(100, 160, 255, 0.15) 1px, transparent 1px), 
    	linear-gradient(90deg, rgba(100, 160, 255, 0.15) 1px, transparent 1px);
  	background-size: 40px 40px, 40px 40px, 200px 200px, 200px 200px;
 	mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  	-webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}




.body80{
	display:flex;
	justify-content: center;
	flex-direction: column;
  	max-width: 2560px;
	width: 70%;
	margin: 0 auto;
	gap:100px;
  	font-size: clamp(1em, 1vw, 2rem);
  	position: relative;
  	z-index: 1;
}


ul{
	margin:0;
	padding:0;
}

li{
	list-style-type: none;
  	display:flex;
	align-items:center;
}

li::before {
    content: '›';
    margin-right: 8px;
    color: black;
}

h2{
  	font-size: clamp(2rem, 2vw, 8rem);
	color: var(--texto_seccion);
	font-family: "Oswald", sans-serif;
}


.titulo_seccion{
	display:flex;
	align-items:center;
	gap:16px;
	height: 50px;
	margin-bottom:10px;
}

.linea_horizontal{
	flex: 1;
	height: 1px;
	background-color: var(--barra_horizontal);
}



section{
	gap: 50px 50px;
}



#boton_arriba {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fondo_boton);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#boton_arriba img {
  width: 20px;
  height: auto;
  transform: rotate(-90deg);
}

#boton_arriba.visible {
  opacity: 0.5;
  visibility: visible;
}

#boton_arriba:hover {
  opacity: 1;
  transform: translateY(-3px);
}















/*PANEL NAVEGACION-------------------------*/
nav {
	background: var(--fondo_nav);
	padding-top: clamp(10px, 1vw, 50px);
	padding-bottom: clamp(10px, 1vw, 50px);
	width: 100%;
	display: flex;
}

.nav_inner {
  width: 50%;
  max-width: 2560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-left: 5%;
}


.nav_back {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--texto_normal);
  font-size: clamp(0.8rem, 1vw, 1rem);
  opacity: 0.7;
  transition: opacity 0.2s ease, gap 0.2s ease;
}
.nav_back:hover { opacity: 1; gap: 12px; }


.nav_back_arrow { 
  height: 15px;
	width: auto;
  transform: rotate(90deg);
}

.boton_idioma_container {
  width: 50%;
  max-width: 2560px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin-right: 5%;
}

#boton_idioma {
    background: transparent;
    border: 1px solid var(--borde_nav);
    border-radius: 8px;
    padding: 6px 12px;
    color: var(--texto_normal);
    transition: all 0.2s ease;
	font-size: 0.8rem;
}

#boton_idioma:hover {
    background: var(--fondo_tarjeta);
    color: var(--fondo_principal);
}


















/*NOMBRE, FOTO Y DESCRIPCIÓN-------------------------*/


.seccion_grid {
    display: flex;
    align-items: flex-start;
	margin-bottom: 40px;
}

.columna_izquierda {
    width:100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

}

.bienvenida{
    font-size: clamp(1rem, 1vw, 2rem);
	color: var(--texto_david);
	margin: 0;
}


.nombre, .apellido {
    font-size: clamp(2.5rem, 6vw, 8rem);
	color: var(--texto_david);
	font-family: "Bungee Shade", sans-serif;
	margin: 10px;
	display: flex;
}


.nombre {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.2s ease-out forwards;
}

.apellido1 {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.4s ease-out forwards;
}

.apellido2 {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s ease-out forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.rol{
	color: var(--texto_normal);
  	font-size: clamp(1rem, 1vw, 1.5rem);
	margin: 0px 0px 0px 15px;
	padding: 0px 0px 0px 0px;
}


.rol_container {
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	border-left: 5px solid var(--barra_horizontal);
	gap: 10px;
}









/*REPRODUCTOR MÚSICA-------------------------*/
.reproductor_aside {
 	margin-top: 20px;
	display: flex;
  	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.reproductor {
	display: flex;
	align-items: center;
	gap: 16px;
	background: rgba(208, 232, 245, 0.05);
	border: 1px solid var(--barra_horizontal);
	border-radius: 14px;
	padding: 14px 18px;
	width: 55%;
}

.reproductor_btn {
	background: var(--fondo_boton);
	color: var(--texto_boton);
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	font-size: 1rem;
	cursor: pointer;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}
.reproductor_btn:hover { transform: scale(1.1); }

.reproductor_info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.reproductor_titulo {
  font-size: 0.85rem;
  color: var(--texto_normal);
  opacity: 0.8;
}

.reproductor_barra_container {
  width: 100%;
  height: 4px;
  background: rgba(208, 232, 245, 0.2);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.reproductor_barra_progreso {
  height: 100%;
  width: 0%;
  background: var(--barra_horizontal);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.reproductor_tiempos {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(208, 232, 245, 0.5);
}

.nota_cancion {
	font-size: 0.5rem;
	margin-top:10px;
	color: var(--texto_normal);

}














/*BOTON DESCARGAR CV-------------------------*/
.boton_descargar_container{
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 40px;
	margin-top: 80px;
}


.imagen_cv {
	height: 60px;
	width: auto;
}

.imagen_descarga {
	height: 15px;
	width: auto;
	animation: bounceDown 2s infinite 2s;
}

@keyframes bounceDown {
	0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
	40% {
    transform: translateY(-5px);
  }
	60% {
    transform: translateY(-2px);
  }
}

.imagen_irProyectos {
	height: 10px;
	width: auto;
	animation: bounceDown 2s infinite 2s;
}


.boton_descargar, .boton_proyectos {
	font-weight: bold;
	color: var(--texto_boton);
	background-color:var(--fondo_boton);
	padding: 0px 15px 0px 15px;
	height: 40px;
	border-radius: 10px;
	display:flex;
	justify-content: center;
	align-items:center;
	text-align:center;
	gap: 10px;
	text-decoration: none;
	transition: all 0.2s ease;
	opacity: 0.9;
}

.boton_descargar:hover, .boton_proyectos:hover{
	transform: scale(1.05); 
	opacity: 1;
}

















/*EXPERIENCIA LABORAL-------------------------*/

article{
	color: var(--texto_tarjeta);
	height: auto;
	background: var(--fondo_tarjeta);
  	border-radius: 20px;
  	padding: 20px;
  	box-shadow: var(--sombra_tarjeta) 0px 0px 10px ;
  	margin: 20px 0px 20px 0px;
}



.imqiberica, .sgstecnos, .imqtecnocrea, .aidimme{
	display:flex;
  	padding-bottom: 5%;
}

.izquierdo{
	flex: 1.3;
}

.central{
	flex: 3.5;
}

.central_titulo {
	margin-bottom: 20px;
	font-weight: bold;
}

.derecho{
	flex: 4;
  	margin-left: 3%;
}

.empresa{
	font-size: clamp(2em, 2vw, 4rem);
	font-weight: bold;
}

.derecho > ul{
	margin-top: 40px;
}

.derecho > ul > li{
	margin-bottom: 15px;
	font-size: clamp(1em, 1vw, 2rem);
}

.etiqueta_container, .etiqueta_container_aidimme{
	width: 80%;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	margin: 0 auto;
	gap:10px;
}


.etiqueta{
	border: 1px solid var(--borde_etiqueta);
	border-radius: 5px;
	background-color: var(--fondo_etiqueta);
	padding: 5px;
	text-align:center;
  	align-content: center;
	font-size: clamp(0.7em, 0.5vw, 1rem);
}










/*SOBRE MI-------------------------*/

.sobremi_parrafo_contenedor {
	display: flex;
    align-items: flex-start;
}

.sobremi_izquierda {
    width:10%;
	display: flex;
	flex-direction: column;
}

.imagen_sobremi {
	width: 80%;
    height: auto;
	margin-bottom: 30px;
}

.sobremi_derecha {
	width:90%;
	display: flex;
	flex-direction: column;
	margin-bottom: 30px;
	border-left: 3px solid var(--barra_horizontal);
}


.sobremi_derecha > p:first-child {
	margin: 0px;
}

.texto_sobremi {
	padding: 0px 0px 0px 20px;
	margin-bottom: 0px;
}






/*PROYECTOS-------------------------*/
.tarj_grid{
	color: var(--texto_tarjeta);
	display:flex;
	margin-top: 30px;
}

.tarj_columna_izquierda{
	flex: 50%;
}

.tarj_columna_derecha{
	flex: 50%;
}

.tarjeta_proyectos{
	height: 95%;
	width: 85%;
	background: var(--fondo_tarjeta);
	border-radius: 20px;
	padding: 20px;
	box-shadow: var(--sombra_tarjeta) 0px 0px 50px;
	margin: 0 auto;
	cursor: pointer;
	text-decoration: none;
	color: var(--texto_tarjeta);
	display: block;
	transition: transform 0.2s ease;
	opacity: 0.98;
}

.tarjeta_proyectos:hover {
	transform: scale(1.02);
	opacity: 1;
}

.tarj_imagen_container{
	height: auto;
	position: relative;
}

.tarj_imagen{
	width: 100%;
	height: auto;
	border-radius: 20px;
	box-shadow: var(--sombra_tarjeta) 0px 0px 10px;
	border: 1px solid var(--fondo_principal);
}

@keyframes llamarAtencion {
    0%, 30%, 50%, 80%, 100% {
    transform: scale(1);
    opacity: 1;
  }
    10% {
    transform: scale(1.03);
  }
      20% {
    transform: scale(1);
  }
    30% {
    transform: scale(1.01);
  }
      80% {
    transform: scale(1);
  }
}

.tarj_ver_proyecto {
	position: absolute;
	bottom: 10px;
	right: 10px;
	background: var(--fondo_tarjeta);
	color: var(--fondo_principal);
	border: 2px solid var(--fondo_principal);
	box-shadow: var(--sombra_tarjeta) 0px 0px 25px;
	font-family: "Oswald", sans-serif;
	font-size: 1rem;
	padding: 6px 10%;
	border-radius: 8px;
	animation: llamarAtencion 2s ease-in-out 1s infinite;
}

.tarj_ver_proyecto img {
	height: 30px;
	width: auto;
	vertical-align: middle;
	margin-right: 10px;
}


.tarj_grid_tecnologias{
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	gap: 20px;
	margin-top: 20px;
}

.tarj_tecnologias{
	display:flex;
	justify-content: center;
	align-items: center;
}

.tecnologia_imagen1{
	width: 100%;
	height: auto;
}

.tecnologia_imagen2{
	width: 50%;
	height: auto;
	justify-content: center;
}

.tecnologia_imagen3{
	width: 100%;
	height: auto;
}

.tecnologia_imagen4{
	width: 90%;
	height: auto;
}

.proyecto_titulo {
	font-weight: bold;
	font-size: 1.5rem;
	margin: 20px 0px 0px 0px;
}

.proyecto_descripcion {
	margin: 10px 0px 10px 0px;
}









/*NORMAS Y TECNOLOGÍAS-------------------------*/
.tarjeta_normtec{
	height: 90%;
	width: 50%;
	background: var(--fondo_tarjeta);
	color: var(--texto_tarjeta);
  	border-radius: 20px;
  	padding: 20px;
  	margin: 0 auto;
	box-shadow: var(--sombra_tarjeta) 0px 0px 50px;
}

.tarjeta_normtec > p{
	font-weight: bold;
	text-align: center;
  	margin: 0px 0px 15px 0px;
}


.tarjeta_normtec > ul > li {
	justify-content: center;
	margin-bottom: 5px;

}





/*FORMACION-------------------------*/

.tarj_formacion{
	color: var(--texto_tarjeta);
	display:flex;
	width: 99%;
	background: var(--fondo_tarjeta);
  	border-radius: 20px;
  	margin: 0 auto;
  	margin-top: 20px;
	box-shadow: var(--sombra_tarjeta) 0px 0px 20px;
	gap: 10px;
}

.tarj_formacion > p{
	align-content: center;
}

.formacion_fecha{
	margin-left: 20px;
	width: 15%;
}

.formacion_nombre{
	font-weight: bold;
}









/*CONTACTO-------------------------*/

.contacto_container {
	display:flex;
	justify-content: left;
	align-items: center;
	height: 40px;
	transition: all 0.2s ease;
	text-decoration: none;
}

.contacto_container:hover {
	transform: scale(1.05);
	padding-left: 3%;
}

.contacto_container > span {
	display:flex;
	align-content: center;
	color: var(--texto_normal);
	font-style: normal;
}

.contacto_imagen {
	height: 25px;
	width: auto;
  	margin-right: 10px;
}











/*FOOTER-------------------------*/
footer{
	border-top:1px solid var(--borde_nav);
	margin-top: 30px;
	display: flex;
	justify-content: center;
	height: 50px;
}

.dmp_texto {
	font-size: 0.8rem;
	color: var(--texto_dmp);
	font-family: "Bungee Shade", sans-serif;
}














/* ============================================================
   RESPONSIVE
   ============================================================ */
 
@media (max-width: 1024px) {
 
	.body80 {
		width: 85%;
		gap: 70px;
	}

	.hero{
		margin-top:30px
	}

    #boton_idioma {
        padding: 5px 10px;
        font-size: 0.75rem;
    }



	#boton_arriba {
		display: none;
	}





	/* NOMBRE */
	.nombre, .apellido {
		font-size: clamp(1.5rem, 7vw, 9rem);
	}


	.rol_container {
		margin-top: 40px;
		margin-bottom: 20px;
	}






	/* EXPERIENCIA */
	.imqiberica, .sgstecnos, .imqtecnocrea, .aidimme {
		flex-direction: column;
		gap: 12px;
	}
 

	.izquierdo, .central, .derecho {
		flex: unset;
		width: 100%;
	}
 
	.central, .derecho {
		flex: unset;
	}

	.derecho {
		width: 90%;
		margin: 0 auto;
	}

	.derecho > ul {
		margin: 0px;
	}
 
	.etiqueta_container{
		grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
		gap:10px;
		margin: 0 auto;
		width: 80%;
	}

	.etiqueta_container_aidimme {
		grid-template-columns: 1fr 1fr 1fr;
		gap:10px;
		margin: 0 auto;
		width: 50%;
	}





	/* PROYECTOS */
	.tarj_grid {
		flex-direction: column;
		gap: 30px;
	}
 
	.tarjeta_proyectos {
		width: 90%;
	}
 











	/* NORMAS Y TECNOLOGÍAS */
	.tarjeta_normtec {
		width: 50%;
	}

 	.tarjeta_normtec > p {
		font-size: 1.2rem;
	}











	/* FORMACIÓN */
	.tarj_formacion {
		width: 90%;
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		padding: 12px 15px;
	}
 
	.formacion_fecha {
		width: auto;
		color: var(--texto_tarjeta);
	}
 
	.formacion_separador {
		display: none;
	}
 
	.formacion_fecha,
	.formacion_nombre,
	.formacion_grado,
	.formacion_institucion {
		font-size: 1rem;
		padding: 0px;
		margin: 0px 0px 0px 20px;
	}
 
	.formacion_institucion {
		margin-bottom: 10px;
	}
 









	/* CONTACTO */





}
 









@media (max-width: 600px) {

	.body80 {
		width: 90%;
		gap: 50px;
	}
 
	.hero{
		margin-top:20px
	}



	/* NOMBRE */
	.nombre, .apellido {
		font-size: clamp(1.5rem, 7vw, 9rem);
	}


	.rol_container {
		margin-top: 20px;
	}






	/* EXPERIENCIA */
	.empresa {
		font-size: 1.4rem;
	}

	.etiqueta_container{
		grid-template-columns: 1fr 1fr 1fr;
		gap:10px;
		margin: 0 auto;
		width: 100%;
	}

	.etiqueta_container_aidimme {
		grid-template-columns: 1fr 1fr 1fr;
		gap:10px;
		margin: 0 auto;
		width: 90%;
	}








	/* BOTON CV */
 	.boton_descargar_container{
		gap: 0px;
	}

	.boton_descargar {
		scale: 0.8;
	}

	.boton_proyectos {
		scale: 0.8;
	}






	/* PROYECTOS */
	.tarjeta_proyectos {
		padding: 15px;
	}
 
	.tarj_grid_tecnologias {
		gap: 10px;
		margin-top: 20px;
	}
 




	/* SOBRE MI */








	/* NORMAS Y TECNOLOGÍAS */
	.tarjeta_normtec {
		width: 50%;
	}
 
	.tarjeta_normtec > p {
		font-size: 1.2rem;
	}
 












	/* FORMACIÓN */
	.tarj_formacion {
		width: 90%;
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		padding: 12px 15px;
	}
 
	.formacion_fecha {
		width: auto;
		color: var(--texto_tarjeta);
	}
 
	.formacion_separador {
		display: none;
	}
 
	.formacion_fecha,
	.formacion_nombre,
	.formacion_grado,
	.formacion_institucion {
		font-size: 1rem;
		padding: 0px;
		margin: 0px 0px 0px 15px;
	}
 
	.formacion_institucion {
		margin-bottom: 10px;
	}






	/* CONTACTO */











	/* FOOTER */
	footer {
		justify-content: center;
	}
 
	footer > p {
		padding-right: 0;
	}
 
}






/* ============================================================
   ANIMACIONES DE ENTRADA (scroll)
   ============================================================ */

.slide-in {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in.visible {
    opacity: 1;
    transform: translateY(0);
}